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)

Columns of the CoachCheckInSubmissions table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
CheckInIduuidnot nullCASCADE. One submission per check-in.
SubmittedAttimestamp with time zonenot null
Bodycharacter varying(8000)Client narrative.
WeightKgdouble precisionDenormalised 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.
EnergyLevelinteger1-5.
SleepQualityinteger1-5.
AdherenceintegerSelf-reported percentage, 0-100.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (CheckInId) unique (IX_CoachCheckInSubmissions_CheckInId)

Relationships