Interface ColumnOptions

General column options

Hierarchy

Properties

allowNull?: boolean

If false, the column will have a NOT NULL constraint, and a not null validation will be run before an instance is saved.

Default

true

defaultValue?: unknown

A literal default value, a JavaScript function, or an SQL function (using fn)

field?: string

The name of the column.

If no value is provided, Sequelize will use the name of the attribute (in snake_case if underscored is true)

Generated using TypeDoc