pub const ON_DELETE: ColumnMarker;Expand description
Specifies the ON DELETE action for foreign key references.
§Example
ⓘ
#[column(references = User::id, on_delete = CASCADE)]
user_id: i32,§Supported Actions
CASCADE: Delete rows that reference the deleted rowSET_NULL: Set the column to NULL when referenced row is deletedSET_DEFAULT: Set the column to its default valueRESTRICT: Prevent deletion if referencedNO_ACTION: Similar to RESTRICT (default)