1
0
Fork 0
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:
Hayden 2022-02-08 14:55:18 -09:00
parent fbc17b670d
commit 9a82a172cb
11 changed files with 194 additions and 15 deletions

View file

@ -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