Type alias ModelColumn

ModelColumn: { autoIncrement?: boolean; defaultValue?: unknown; notNull?: boolean; primaryKey?: boolean; type: DataTypes; unique?: boolean }

The definition of a column in a model. If the defaultValue is provided, it should be of the type defined by your type. Blobs should be provided as a Uint32Array.

Type declaration

  • Optional autoIncrement?: boolean
  • Optional defaultValue?: unknown
  • Optional notNull?: boolean
  • Optional primaryKey?: boolean
  • type: DataTypes
  • Optional unique?: boolean

Generated using TypeDoc