CoachCheckInSubmissions table
The CoachCheckInSubmissions table in the FitStack - V2 schema has 12 columns, keyed by Id. 3 columns in CoachCheckIns, CoachCheckInMedia and CoachCheckInFeedback reference it.
What the client volunteers is distinct from what the coach may query. Submitting a check-in is itself an act of consent for the values inside it, which is why the metrics are snapshotted here rather than joined live out of `DeviceHealthData`.
Columns (12)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| CheckInId | uuid | not null | CASCADE. One submission per check-in. |
| SubmittedAt | timestamp with time zone | not null | |
| Body | character varying(8000) | Client narrative. | |
| WeightKg | double precision | Denormalised snapshot AT SUBMISSION TIME. Deliberate: a check-in is a fixed record of what was reported, and it must stay readable after a body-metrics grant is revoked. | |
| EnergyLevel | integer | 1-5. | |
| SleepQuality | integer | 1-5. | |
| Adherence | integer | Self-reported percentage, 0-100. | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(CheckInId)unique (IX_CoachCheckInSubmissions_CheckInId)
Relationships
CoachCheckIns.IdreferencesCoachCheckInSubmissionsCoachCheckInMedia.SubmissionIdreferencesCoachCheckInSubmissionsCoachCheckInFeedback.SubmissionIdreferencesCoachCheckInSubmissions