MealRatings table

The MealRatings table in the FitStack - V2 schema has 9 columns, keyed by Id, with 2 foreign keys to Meals and Users.

Columns (9)

Columns of the MealRatings table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
MealIduuidnot null, references Meals.Id
UserIdtextnot null, references Users.Id
Ratingintegernot null
Reviewtext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (UserId, MealId) unique (IX_MealRatings_UserId_MealId)

Relationships