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;
}
Index
Properties
Properties
OptionaldefaultValue
default
OptionalnotNull
not
type
type: DataTypes