CASCADE

Constant CASCADE 

Source
pub const CASCADE: ColumnMarker;
Expand description

CASCADE action: Propagate the delete/update to referencing rows.

§Example

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

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