GeneIT/geneit_backend/src/schema.rs

48 lines
1.1 KiB
Rust
Raw Normal View History

2023-05-24 11:52:24 +00:00
// @generated automatically by Diesel CLI.
2023-06-15 16:00:31 +00:00
diesel::table! {
families (id) {
id -> Int4,
time_create -> Int8,
2023-07-04 16:47:37 +00:00
#[max_length = 30]
2023-06-15 16:00:31 +00:00
name -> Varchar,
2023-07-04 16:47:37 +00:00
#[max_length = 7]
2023-06-15 16:00:31 +00:00
invitation_code -> Varchar,
}
}
diesel::table! {
memberships (user_id, family_id) {
user_id -> Int4,
family_id -> Int4,
time_create -> Int8,
is_admin -> Bool,
}
}
2023-05-24 11:52:24 +00:00
diesel::table! {
users (id) {
id -> Int4,
2023-07-04 16:47:37 +00:00
#[max_length = 30]
2023-05-24 12:38:18 +00:00
name -> Varchar,
2023-07-04 16:47:37 +00:00
#[max_length = 255]
2023-05-24 11:52:24 +00:00
email -> Varchar,
password -> Nullable<Varchar>,
time_create -> Int8,
2023-07-04 16:47:37 +00:00
#[max_length = 150]
2023-06-06 07:47:52 +00:00
reset_password_token -> Nullable<Varchar>,
2023-05-24 11:52:24 +00:00
time_gen_reset_token -> Int8,
2023-07-04 16:47:37 +00:00
#[max_length = 150]
2023-06-06 07:47:52 +00:00
delete_account_token -> Nullable<Varchar>,
time_gen_delete_account_token -> Int8,
2023-05-24 11:52:24 +00:00
time_activate -> Int8,
active -> Bool,
admin -> Bool,
}
}
2023-06-15 16:00:31 +00:00
diesel::joinable!(memberships -> families (family_id));
diesel::joinable!(memberships -> users (user_id));
2023-07-09 15:02:43 +00:00
diesel::allow_tables_to_appear_in_same_query!(families, memberships, users,);