Add route /family/list

This commit is contained in:
2023-06-20 18:55:14 +02:00
parent 0ef722d29f
commit 3004f57185
5 changed files with 33 additions and 3 deletions

View File

@ -94,3 +94,15 @@ pub struct NewMembership {
pub time_create: i64,
pub is_admin: bool,
}
#[derive(Queryable, Debug, serde::Serialize)]
pub struct FamilyMembership {
user_id: i32,
family_id: i32,
name: String,
time_create: i64,
is_admin: bool,
invitation_code: String,
count_members: i64,
count_admins: i64,
}