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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| MealId | uuid | not null, references Meals.Id | |
| UserId | text | not null, references Users.Id | |
| Rating | integer | not null | |
| Review | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(UserId, MealId)unique (IX_MealRatings_UserId_MealId)