Guides Reference Source
public class | source

ENUM

Extends:

src/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:

NameTypeAttributeDescription
args ...any | {values: any[]} | any[]

either array of values or options object with values array. It also supports variadic values