Skip to content

YearConstraints

Defined in: core/field/types/Year.ts:16

Year-specific constraints

  • BaseConstraints

optional enum: string[] | number[]

Defined in: core/field/types/Year.ts:31

Restrict values to a specified set of years Can be an array of numbers or strings that parse to years


optional maximum: number

Defined in: core/field/types/Year.ts:25

Maximum allowed year


optional minimum: number

Defined in: core/field/types/Year.ts:20

Minimum allowed year


optional required: boolean

Defined in: core/field/types/Base.ts:52

Indicates if field is allowed to be null/empty

BaseConstraints.required


optional unique: boolean

Defined in: core/field/types/Base.ts:57

Indicates if values must be unique within the column

BaseConstraints.unique