ENUM

Extends:

lib/data-types.js~ABSTRACT → ENUM

An enumeration, Postgres Only

Example:

DataTypes.ENUM('value', 'another value')
DataTypes.ENUM(['value', 'another value'])
DataTypes.ENUM({
  values: ['value', 'another value']
})

Constructor Summary

Public Constructor
public

constructor(args: ...any | {values: any[]} | any[])

Public Constructors

public constructor(args: ...any | {values: any[]} | any[]) source

Params:

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