CoachCheckIns table
The CoachCheckIns table in the FitStack - V2 schema has 13 columns, keyed by Id, with 3 foreign keys to CoachCheckInSubmissions, CoachClients and ScheduleRecurrenceRules.
One scheduled check-in occurrence. v2 ADD — no equivalent in v1.
Columns (13)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null, references CoachCheckInSubmissions.CheckInId | |
| CoachClientId | uuid | not null, references CoachClients.Id | CASCADE. |
| Title | character varying(200) | not null | |
| Prompt | character varying(2000) | What the coach is asking for this period. | |
| DueAt | timestamp with time zone | not null | |
| PeriodStart | date | not null | |
| PeriodEnd | date | not null | |
| Status | text | not null | `CheckInStatus`. |
| RecurrenceRuleId | uuid | references ScheduleRecurrenceRules.Id | Reuses the existing scheduling primitive rather than inventing a coaching-only recurrence. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (2)
(CoachClientId, DueAt)(IX_CoachCheckIns_CoachClientId_DueAt)(Status, DueAt)(IX_CoachCheckIns_Status_DueAt)
Relationships
CoachCheckIns.IdreferencesCoachCheckInSubmissions.CheckInIdCoachCheckIns.CoachClientIdreferencesCoachClients.IdCoachCheckIns.RecurrenceRuleIdreferencesScheduleRecurrenceRules.Id