record meals that were added to list, allow delete with ingredients
This commit is contained in:
@@ -31,6 +31,9 @@ pub struct Passkey {
|
||||
pub user_id: i64,
|
||||
pub credential_id: String,
|
||||
pub credential: String,
|
||||
/// WebAuthn sign counter, persisted for future cloned-authenticator
|
||||
/// detection. Not currently read by application logic.
|
||||
#[allow(dead_code)]
|
||||
pub counter: i64,
|
||||
}
|
||||
|
||||
@@ -89,6 +92,18 @@ pub struct MealIngredient {
|
||||
pub category_id: Option<i64>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct ListMeal {
|
||||
pub id: i64,
|
||||
/// The catalog meal this instance came from; `None` once the meal is deleted.
|
||||
#[allow(dead_code)]
|
||||
pub meal_id: Option<i64>,
|
||||
pub name: String,
|
||||
/// When the meal was added to the list.
|
||||
#[allow(dead_code)]
|
||||
pub created_at: i64,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct PresenceUser {
|
||||
pub user_id: i64,
|
||||
|
||||
Reference in New Issue
Block a user