# Type Alias CustomTypeValues

type CustomTypeValues = {
config?: Record<string, any>;
configRequired?: boolean;
data: unknown;
default?: boolean;
driverData?: unknown;
notNull?: boolean;
}

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/columns/custom.d.ts:44

##### Index

### Properties

config?
configRequired?
data
default?
driverData?
notNull?

## Properties

### `Optional` config

config?: Record<string, any>

What config type should be used for CustomTypeParams `dataType` generation

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/columns/custom.d.ts:62

### `Optional` configRequired

configRequired?: boolean

Whether the config argument should be required or not

#### Default

    false

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/columns/custom.d.ts:67

### data

data: unknown

Required type for custom column, that will infer proper type model

Examples:

If you want your column to be `string` type after selecting/or on inserting - use `data: string`. Like `text`, `varchar`

If you want your column to be `number` type after selecting/or on inserting - use `data: number`. Like `integer`

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/columns/custom.d.ts:54

### `Optional` default

default?: boolean

If your custom data type has default you can use `default: true`

#### Example

    const customSerial = customType<{ data: number, notNull: true, default: true }>({
    	  dataType() {
    	    return 'serial';
       },
    });

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/columns/custom.d.ts:89

### `Optional` driverData

driverData?: unknown

Type helper, that represents what type database driver is accepting for specific database data type

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/columns/custom.d.ts:58

### `Optional` notNull

notNull?: boolean

If your custom data type should be notNull by default you can use `notNull: true`

#### Example

    const customSerial = customType<{ data: number, notNull: true, default: true }>({
    	  dataType() {
    	    return 'serial';
       },
    });

- Defined in node_modules/.pnpm/drizzle-orm@0.44.6_@cloudflare+workers-types@4.20251014.0_@opentelemetry+api@1.9.0_@typ_31a6f5ca8f102af87864dd251ed08d88/node_modules/drizzle-orm/sqlite-core/columns/custom.d.ts:78