Shopping list (WIP)
This commit is contained in:
parent
ce3821b94e
commit
084be9fb00
16 changed files with 296 additions and 90 deletions
|
|
@ -72,3 +72,15 @@ pub struct Ingredient {
|
|||
pub quantity_value: Option<f64>,
|
||||
pub quantity_unit: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, FromRow)]
|
||||
pub struct ShoppingListItem {
|
||||
pub id: i64,
|
||||
pub name: String,
|
||||
pub quantity_value: Option<f64>,
|
||||
pub quantity_unit: String,
|
||||
pub recipe_id: Option<i64>,
|
||||
pub recipe_title: Option<String>,
|
||||
pub date: Option<NaiveDate>,
|
||||
pub is_checked: bool,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue