pub const FOREIGN_KEY: TableMarker;Expand description
Adds a table-level foreign key, for keys over several columns.
on_delete and on_update take the action as a string here.
ยงExamples
#[SQLiteTable(foreign_key(
columns(tenant_id, user_id),
references(Users, tenant_id, id),
on_delete = "CASCADE"
))]
struct Posts {
tenant_id: i32,
user_id: i32,
}