WorkoutSessionInvitations table

The WorkoutSessionInvitations table in the FitStack - V2 schema has 9 columns, keyed by Id, with 2 foreign keys to WorkoutSessions and Users.

The existing invite precedent. The coaching invitation (61) is modelled separately — it needs withdrawal and expiry, which this lacks.

Columns (9)

Columns of the WorkoutSessionInvitations table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
WorkoutSessionIduuidnot null, references WorkoutSessions.Id
InvitedUserIdtextnot null, references Users.Id
Statusintegernot null`InvitationStatus`.
Roleintegernot null`WorkoutSessionRole`.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Relationships

  • WorkoutSessionInvitations.WorkoutSessionId references WorkoutSessions.Id
  • WorkoutSessionInvitations.InvitedUserId references Users.Id