Skip to content

StringConstraints

Defined in: core/field/types/String.ts:36

String-specific constraints

  • BaseConstraints

optional enum: string[]

Defined in: core/field/types/String.ts:55

Restrict values to a specified set of strings


optional maxLength: number

Defined in: core/field/types/String.ts:45

Maximum string length


optional minLength: number

Defined in: core/field/types/String.ts:40

Minimum string length


optional pattern: string

Defined in: core/field/types/String.ts:50

Regular expression pattern to match


optional required: boolean

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

Indicates if field is allowed to be null/empty

BaseConstraints.required


optional unique: boolean

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

Indicates if values must be unique within the column

BaseConstraints.unique