From b105ce3f4b1a077e77f72102e48249335885c0ad Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sun, 28 Jan 2024 15:09:24 -0500 Subject: [PATCH] Add some models --- models/planning.d2 | 17 ++++++ models/planning.svg | 125 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 models/planning.d2 create mode 100644 models/planning.svg diff --git a/models/planning.d2 b/models/planning.d2 new file mode 100644 index 0000000..04dafdf --- /dev/null +++ b/models/planning.d2 @@ -0,0 +1,17 @@ +Meal Planning: { + shape: sequence_diagram + user: Cook; client: Kitchen frontend; kitchen: Kitchen backend + + user -> client: Start new meal Plan + client -> kitchen: new plan created + user -> client: Add recipe to meal plan + client -> kitchen: Update meal plan with recipe + client -> client: cache updated meal plan + user -> client: Do inventory + client -> kitchen: Store inventory mutations + client -> client: cache inventory mutations + user -> client: Undo mutation + client -> kitchen: Store inventory mutations + client -> client: cache inventory mutations + user -> user: Cook recipes +} diff --git a/models/planning.svg b/models/planning.svg new file mode 100644 index 0000000..b9984ec --- /dev/null +++ b/models/planning.svg @@ -0,0 +1,125 @@ + + + + + + + + +Meal PlanningCookKitchen frontendKitchen backend Start new meal Plan new plan created Add recipe to meal plan Update meal plan with recipe cache updated meal plan Do inventory Store inventory mutations cache inventory mutations Undo mutation Store inventory mutations cache inventory mutations Cook recipes + + + + + + + + + + + + + + + + + +