An enumeration, Postgres Only
DataTypes.ENUM('value', 'another value')
DataTypes.ENUM(['value', 'another value'])
DataTypes.ENUM({
values: ['value', 'another value']
})
Public Constructor | ||
---|---|---|
public | constructor(args: ...any | {values: any[]} | any[]) |
Name | Type | Attribute | Description |
---|---|---|---|
args | ...any | {values: any[]} | any[] |
either array of values or options object with values array. It also supports variadic values |
Copyright © 2014–present Sequelize contributors
Licensed under the MIT License.
https://sequelize.org/master/class/lib/data-types.js~ENUM.html