MealPlanCategories table
The MealPlanCategories table in the FitStack - V2 schema has 11 columns, keyed by Id, with 2 foreign keys to MealPlans and Users. 1 column in MealPlanDayItems references it.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| MealPlanId | uuid | not null, references MealPlans.Id | |
| UserId | text | not null, references Users.Id | |
| Name | text | not null | |
| ColorHex | text | not null | |
| SortOrder | integer | not null | |
| TargetTime | time | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
MealPlanCategories.MealPlanIdreferencesMealPlans.IdMealPlanCategories.UserIdreferencesUsers.IdMealPlanDayItems.CategoryIdreferencesMealPlanCategories