Create view to load memberships
This commit is contained in:
@ -5,5 +5,6 @@ pub mod controllers;
|
||||
pub mod services;
|
||||
pub mod utils;
|
||||
|
||||
pub mod manual_schema;
|
||||
pub mod models;
|
||||
pub mod schema;
|
||||
|
12
geneit_backend/src/manual_schema.rs
Normal file
12
geneit_backend/src/manual_schema.rs
Normal file
@ -0,0 +1,12 @@
|
||||
diesel::table! {
|
||||
families_memberships (user_id, family_id) {
|
||||
user_id -> Int4,
|
||||
family_id -> Int4,
|
||||
name -> Varchar,
|
||||
time_create -> Int8,
|
||||
is_admin -> Bool,
|
||||
invitation_code -> Varchar,
|
||||
count_members -> Int4,
|
||||
count_admins -> Int4,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user