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 + + + + + + + + + + + + + + + + + +