ProgramRatings table
The ProgramRatings table in the FitStack - V2 schema has 9 columns, keyed by Id, with 2 foreign keys to Programs and Users.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| ProgramId | uuid | not null, references Programs.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 |
Relationships
ProgramRatings.ProgramIdreferencesPrograms.IdProgramRatings.UserIdreferencesUsers.Id