RESTRICT

Constant RESTRICT 

Source
pub const RESTRICT: ColumnMarker;
Expand description

RESTRICT action: Prevent delete/update if referenced.

§Example

#[column(REFERENCES = User::id, ON_DELETE = RESTRICT)]
user_id: i32,

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