update datatypes
This commit is contained in:
parent
71794010f5
commit
60e1e72bff
1 changed files with 16 additions and 0 deletions
|
@ -58,6 +58,22 @@ class Supplier:
|
|||
def dict(self):
|
||||
return {k: str(v) for k, v in asdict(self).items()}
|
||||
|
||||
@dataclass
|
||||
class Recipe:
|
||||
recipe_id: int
|
||||
preperation_time: int
|
||||
name: str
|
||||
description: str
|
||||
instructions: str
|
||||
|
||||
def dict(self):
|
||||
return {k: str(v) for k, v in asdict(self).items()}
|
||||
|
||||
@dataclass
|
||||
class SupplierContainsIngredients:
|
||||
recipe: Recipe
|
||||
ingredient: Ingredient
|
||||
amount: int
|
||||
|
||||
@dataclass
|
||||
class SupplierContainsIngredients:
|
||||
|
|
Loading…
Add table
Reference in a new issue