MealLogs table

The MealLogs table in the FitStack - V2 schema has 32 columns, keyed by Id, with 4 foreign keys to Users, Meals, Recipes and Media. 4 columns in MealLogIngredients, MealLogReviews, InstacartOrderRequests and ScheduledItems reference it.

In v1 every insert here was pushed to all active coaches over SignalR with no consent — see 62.

Columns (32)

Columns of the MealLogs table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
UserIdtextnot null, references Users.Id
MealIduuidreferences Meals.Id
RecipeIduuidreferences Recipes.Id
PhotoIduuidreferences Media.Id
MealNametextnot null
MealTypeintegernot null
Datedatenot null
ConsumedAttimestamp with time zonenot null
Descriptiontext
Caloriesnumeric
Proteinnumeric
Carbohydratesnumeric
Fatnumeric
Fibernumeric
Sugarnumeric
Sodiumnumeric
Cholesterolnumeric
SaturatedFatnumeric
ServingSizetext
IsSnackbooleannot null
IsBeveragebooleannot null
IsPublicbooleannot null
IsDraftbooleannot null
ImageUrltext
IsSyncedbooleannot null
ExternalUuidtext
Notestext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Relationships