RunSessionInvitations table
The RunSessionInvitations table in the FitStack - V2 schema has 9 columns, keyed by Id, with 2 foreign keys to RunSessions and Users.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| RunSessionId | uuid | not null, references RunSessions.Id | |
| InvitedUserId | text | not null, references Users.Id | |
| Status | integer | not null | `InvitationStatus`. |
| Role | integer | not null | `RunSessionRole`. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(RunSessionId, InvitedUserId)unique (IX_RunSessionInvitations_RunSessionId_InvitedUserId)
Relationships
RunSessionInvitations.RunSessionIdreferencesRunSessions.IdRunSessionInvitations.InvitedUserIdreferencesUsers.Id