From 46a6583dd0ead3c2e75afd30c77442ee728326e8 Mon Sep 17 00:00:00 2001 From: montymi Date: Thu, 7 Mar 2024 10:54:38 -0500 Subject: [PATCH] edits to erd and addition of chef/main model --- src/model/chef.py | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/model/chef.py diff --git a/src/model/chef.py b/src/model/chef.py new file mode 100644 index 0000000..4b3f849 --- /dev/null +++ b/src/model/chef.py @@ -0,0 +1,40 @@ +from controller.dataControllerv2 import DataController2 as DataController + +USER='default' +DB='lazygrocer' + +class Chef: + def __init__(self, dc: DataController, username: str=USER, database: str=DB): + self.dc = dc + self.username = username + self.database = database + + # favorites + def read_favorites(self): + pass + + # recipe list + def create_recipe_list(self, name: str, desc: str='', recipes: tuple=()): + pass + + def read_recipe_list(self, name: str): + pass + + def update_recipe_list(self, name: str, desc: str='', recipes: tuple=()): + pass + + def delete_recipe_list(self, name: str): + pass + + # ingredient list + def create_ingredient_list(): + pass + + def read_ingredient_list(): + pass + + def update_ingredient_list(): + pass + + def delete_ingredient_list(): + pass \ No newline at end of file