SET_DEFAULT

Constant SET_DEFAULT 

Source
pub const SET_DEFAULT: ColumnMarker;
Expand description

SET DEFAULT action: Set referencing columns to their default values.

§Example

#[column(REFERENCES = User::id, ON_DELETE = SET_DEFAULT, DEFAULT = 0)]
user_id: i32,

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