pub const REFERENCES: ColumnMarker;Expand description
Adds a foreign key that references a column of another table.
ยงExamples
#[column(references = User::id)]
user_id: i32,With the query feature this also generates relation accessors: a
forward one on this table, named after the column without its _id suffix
(user_id gives .user()), and a reverse one on the referenced table
(see RELATION).