SET_NULL

Constant SET_NULL 

Source
pub const SET_NULL: ColumnMarker;
Expand description

SET NULL action: Set referencing columns to NULL.

§Example

#[column(REFERENCES = User::id, ON_DELETE = SET_NULL)]
user_id: Option<i32>,

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