OptionalfieldsOptionalnameOptionalreferencesOptionalonOptionalonOptionalcheckPredicate for a CHECK constraint, as a where object compiled for the
target dialect — or a raw SQL string:
{ type: 'CHECK', check: { age: { $gte: 18 } } } // CHECK ("age" >= 18)
OptionalwherePartial-index predicate; see IndexOptions.where in src/dialects/dialect.ts.
Also accepted as the older spelling of a CHECK constraint's predicate.
Constraint definition for addConstraint