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)

Columns of the CoachCheckIns table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null, references CoachCheckInSubmissions.CheckInId
CoachClientIduuidnot null, references CoachClients.IdCASCADE.
Titlecharacter varying(200)not null
Promptcharacter varying(2000)What the coach is asking for this period.
DueAttimestamp with time zonenot null
PeriodStartdatenot null
PeriodEnddatenot null
Statustextnot null`CheckInStatus`.
RecurrenceRuleIduuidreferences ScheduleRecurrenceRules.IdReuses the existing scheduling primitive rather than inventing a coaching-only recurrence.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (2)

  • (CoachClientId, DueAt) (IX_CoachCheckIns_CoachClientId_DueAt)
  • (Status, DueAt) (IX_CoachCheckIns_Status_DueAt)

Relationships