GeneIT/geneit_backend/src/schema.rs

42 lines
1005 B
Rust

// @generated automatically by Diesel CLI.
diesel::table! {
families (id) {
id -> Int4,
time_create -> Int8,
name -> Varchar,
invitation_code -> Varchar,
}
}
diesel::table! {
memberships (user_id, family_id) {
user_id -> Int4,
family_id -> Int4,
time_create -> Int8,
is_admin -> Bool,
}
}
diesel::table! {
users (id) {
id -> Int4,
name -> Varchar,
email -> Varchar,
password -> Nullable<Varchar>,
time_create -> Int8,
reset_password_token -> Nullable<Varchar>,
time_gen_reset_token -> Int8,
delete_account_token -> Nullable<Varchar>,
time_gen_delete_account_token -> Int8,
time_activate -> Int8,
active -> Bool,
admin -> Bool,
}
}
diesel::joinable!(memberships -> families (family_id));
diesel::joinable!(memberships -> users (user_id));
diesel::allow_tables_to_appear_in_same_query!(families, memberships, users,);