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