MealPlanDayItems table
The MealPlanDayItems table in the FitStack - V2 schema has 15 columns, keyed by Id, with 5 foreign keys to MealPlans, MealPlanCategories, Meals, Recipes and 1 more.
Exactly one of MealId / RecipeId / ProductId should be set. Not enforced.
Columns (15)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| MealPlanId | uuid | not null, references MealPlans.Id | |
| CategoryId | uuid | not null, references MealPlanCategories.Id | |
| MealId | uuid | references Meals.Id | |
| RecipeId | uuid | references Recipes.Id | |
| ProductId | uuid | references Products.Id | |
| DayOffset | integer | not null | |
| ScheduledTime | time | ||
| SortOrder | integer | not null | |
| SeriesId | uuid | ||
| Notes | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
MealPlanDayItems.MealPlanIdreferencesMealPlans.IdMealPlanDayItems.CategoryIdreferencesMealPlanCategories.IdMealPlanDayItems.MealIdreferencesMeals.IdMealPlanDayItems.RecipeIdreferencesRecipes.IdMealPlanDayItems.ProductIdreferencesProducts.Id