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://sqlite.org/foreignkeys.html#fk_actions