Skip to content

CheckModel

CheckModel = object

Defined in: packages/schema/src/model.ts:760

A database check that refuses a write, named by its constraint: a CHECK constraint of that name, or a trigger’s raise exception ... using errcode = 'check_violation', constraint = '<name>'. See Checks the database makes.

label: string

Defined in: packages/schema/src/model.ts:765

What the app shows when the check refuses a write, an ICU message whose {field} values come from the record as the app has it, never from the database’s error. Translated as resources.<resource>.checks.<name>.label.