mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-06 05:55:23 +02:00
update foods and units for multitenant support
This commit is contained in:
parent
fbc17b670d
commit
9a82a172cb
11 changed files with 194 additions and 15 deletions
|
@ -17,6 +17,10 @@ class CreateIngredientFood(UnitFoodBase):
|
|||
label_id: UUID4 = None
|
||||
|
||||
|
||||
class SaveIngredientFood(CreateIngredientFood):
|
||||
group_id: UUID4
|
||||
|
||||
|
||||
class IngredientFood(CreateIngredientFood):
|
||||
id: int
|
||||
label: MultiPurposeLabelSummary = None
|
||||
|
@ -30,6 +34,10 @@ class CreateIngredientUnit(UnitFoodBase):
|
|||
abbreviation: str = ""
|
||||
|
||||
|
||||
class SaveIngredientUnit(CreateIngredientUnit):
|
||||
group_id: UUID4
|
||||
|
||||
|
||||
class IngredientUnit(CreateIngredientUnit):
|
||||
id: int
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue