From 8de0307e44ce6e722b8729697f15e5d7f3888493 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 + + + + + + + + + + + + + + + + + +