CHECK

Constant CHECK 

Source
pub const CHECK: ColumnMarker;
Expand description

Adds a CHECK constraint to this column.

§Example

#[column(CHECK = "age >= 0")]
age: i32,

See: https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-CHECK-CONSTRAINTS