Create view to load memberships

This commit is contained in:
2023-06-19 19:00:35 +02:00
parent c2e93aebbe
commit 0ef722d29f
4 changed files with 55 additions and 1 deletions

View File

@ -5,5 +5,6 @@ pub mod controllers;
pub mod services;
pub mod utils;
pub mod manual_schema;
pub mod models;
pub mod schema;

View 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,
}
}