CoachCheckInFeedback table
The CoachCheckInFeedback table in the FitStack - V2 schema has 9 columns, keyed by Id, with 2 foreign keys to CoachCheckInSubmissions and Users.
Threaded discussion on one submission. Kept separate from `Messages` (71) on purpose: this is durable coaching record attached to a period of work, not chat.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| SubmissionId | uuid | not null, references CoachCheckInSubmissions.Id | CASCADE. |
| AuthorUserId | text | not null, references Users.Id | Coach or client — a check-in is a thread, not a one-shot reply. |
| Body | character varying(8000) | not null | |
| PostedAt | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(SubmissionId, PostedAt)(IX_CoachCheckInFeedback_SubmissionId_PostedAt)
Relationships
CoachCheckInFeedback.SubmissionIdreferencesCoachCheckInSubmissions.IdCoachCheckInFeedback.AuthorUserIdreferencesUsers.Id