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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| WorkoutSessionId | uuid | not null, references WorkoutSessions.Id | |
| InvitedUserId | text | not null, references Users.Id | |
| Status | integer | not null | `InvitationStatus`. |
| Role | integer | not null | `WorkoutSessionRole`. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
WorkoutSessionInvitations.WorkoutSessionIdreferencesWorkoutSessions.IdWorkoutSessionInvitations.InvitedUserIdreferencesUsers.Id