Recipes table
The Recipes table in the FitStack - V2 schema has 20 columns, keyed by Id, with 1 foreign key to Users. 5 columns in Meals, MealLogs, MealPlanDayItems, NutritionLogs and 1 more reference it.
Columns (20)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | references Users.Id | |
| Name | text | not null | |
| Description | text | ||
| Instructions | text | ||
| Servings | numeric | not null | |
| PrepTimeMinutes | integer | ||
| CookTimeMinutes | integer | ||
| CaloriesPerServing | numeric | ||
| ProteinPerServing | numeric | ||
| CarbsPerServing | numeric | ||
| FatPerServing | numeric | ||
| FiberPerServing | numeric | ||
| SugarPerServing | numeric | ||
| Tags | text | ||
| IsPublic | boolean | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
Recipes.UserIdreferencesUsers.IdMeals.RecipeIdreferencesRecipesMealLogs.RecipeIdreferencesRecipesMealPlanDayItems.RecipeIdreferencesRecipesNutritionLogs.RecipeIdreferencesRecipesScheduledItems.RecipeIdreferencesRecipes