ModelColumn | D1 Orm - v0.9.2

Interface ModelColumn

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 an ArrayBuffer.

interface ModelColumn {
    defaultValue?: unknown;
    notNull?: boolean;
    type: DataTypes;
}

Properties

defaultValue? notNull? type

Properties

OptionaldefaultValue

defaultValue?: unknown

OptionalnotNull

notNull?: boolean

type

type: DataTypes