Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ColumnOptions

General column options

Hierarchy

Index

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 {@link 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 InitOptions.underscored is true)

Generated using TypeDoc