Skip to main content

Type alias: ScalarOptions<T>

ScalarOptions<T>: {"column": string;"convert": ConversionOptions;"generate": GeneratorOptions<T>;"name": string;"nullable": boolean;"type": SqlType; }

Options shared by all scalar properties.

Type parameters

Type parameterDescription
TThe property type.

Type declaration

column?

optional column: string

The column name of the property.

convert?

optional convert: ConversionOptions

Value conversion options for the property.

generate?

optional generate: GeneratorOptions<T>

Value generation options for the property.

name

name: string

The name of the property.

nullable?

optional nullable: boolean

The nullability of the property.

type?

optional type: SqlType

The SQL type of the property.

Source

packages/verse-core/src/model/builder.ts:485