Model
Column
: { autoIncrement
?: boolean; defaultValue
?: unknown; notNull
?: boolean; primaryKey
?: boolean; type
: DataTypes; unique
?: boolean }
Type declaration
-
Optional autoIncrement?: boolean
-
Optional defaultValue?: unknown
-
Optional notNull?: boolean
-
Optional primaryKey?: boolean
-
-
Optional unique?: boolean
The definition of a column in a model. If the
defaultValueis provided, it should be of the type defined by yourtype. Blobs should be provided as a Uint32Array.