eduardosanzb / my-meal-planner

0 stars 0 forks source link

Digital Meal plan object model #1

Open eduardosanzb opened 3 years ago

eduardosanzb commented 3 years ago

I have always the same issue! I receive my meal plan and I need to translate that into a shopping list.

So the challenge is to digitalize this meal plan and autogenerate the shopping list for me! I'm attaching a pdf of my meal plan. PFFITNESS- Diet Plan_N1 Eduardo Sanchéz.pdf


So here let's start discussing the object model to support this!

Screenshot 2021-04-25 at 22 14 05 logan
eduardosanzb commented 3 years ago

This would be a way of organizing the diet by its components: Here we have a meal plan of 2 days, where Day 1: have 2 configurations & defaults Day 2: Have 3 configurations & no defaults.

┌─────────────────────────────┬─────────────────────────────┐
│ Meal 1                      │ Meal 2                      │
│                             │                             │
│ ┌──────────────────────┐    │ ┌──────────────────────┐    │
│ │Training day          │    │ │Training day          │    │
│ │ ┌──────────────────┐ │    │ │ ┌──────────────────┐ │    │
│ │ │Option 1          │ │    │ │ │Option 1          │ │    │
│ │ ├──────────────────┤ │    │ │ ├──────────────────┤ │    │
│ │ │Option 2          │ │    │ │ │Option 2          │ │    │
│ │ ├──────────────────┤ │    │ │ ├──────────────────┤ │    │
│ │ │Option 3          │ │    │ │ │Option 3          │ │    │
│ │ ├──────────────────┤ │    │ │ ├──────────────────┤ │    │
│ └─┴──────────────────┴─┘    │ ├─┴──────────────────┴─┤    │
│                             │ │ Weight lifting day:  │    │
│ ┌──────────────────────┐    │ │ ┌──────────────────┐ │    │
│ │No training day       │    │ │ │Option 1          │ │    │
│ │ ┌──────────────────┐ │    │ │ ├──────────────────┤ │    │
│ │ │Option 1          │ │    │ │ ├──────────────────┤ │    │
│ │ ├──────────────────┤ │    │ │ │Option 2          │ │    │
│ │ ├──────────────────┤ │    │ │ └──────────────────┘ │    │
│ │ │Option 2          │ │    │ │                      │    │
│ │ └──────────────────┘ │    │ ├──────────────────────┤    │
│ │                      │    │ │ Cardio Day:          │    │
│ └──────────────────────┘    │ │                      │    │
│                             │ │ ┌──────────────────┐ │    │
│                             │ │ │Option 1          │ │    │
│ ┌──────────────────────┐    │ │ ├──────────────────┤ │    │
│ │ Defaults:            │    │ │ ├──────────────────┤ │    │
│ │                      │    │ │ │Option 2          │ │    │
│ │  Omega 3 & vitamin D │    │ │ └──────────────────┘ │    │
│ │                      │    │ │                      │    │
│ └──────────────────────┘    │ └──────────────────────┘    │
│                             │                             │
└─────────────────────────────┴─────────────────────────────┘

   ┌───────────────────────────┬───────────────────────────┐
   │ Meal 1                    │ Meal 2                    │
   │                           │                           │
   │ ┌──────────────────────┐  │ ┌──────────────────────┐  │
   │ │ Option               │  │ │ Option               │  │
   │ │                      │  │ │                      │  │
   │ └──────────────────────┘  │ └──────────────────────┘  │
   │                           │                           │
   │                           │                           │
   └───────────────────────────┴───────────────────────────┘