StreamlabsConnections table
The StreamlabsConnections table in the FitStack - V2 schema has 20 columns, keyed by Id. 1 column in Users references it.
No audit columns. Gated by the StreamlabsEligible policy (SuperAdmin, Admin, ContentCreator, Trainer, Influencer) — the policy that had `Coach` removed from it by commit 73923a4.
Columns (20)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null | 1:1. |
| AccessTokenCiphertext | text | not null | ENCRYPTED AT REST. Never log or expose. |
| SocketTokenCiphertext | text | not null | ENCRYPTED AT REST. |
| OverlayTokenHash | text | not null | HASHED, not encrypted — it is only ever compared. |
| OverlayTokenIssuedAt | timestamp with time zone | not null | |
| StreamlabsUserId | text | ||
| StreamlabsDisplayName | text | ||
| TwitchUsername | text | ||
| ConnectedAt | timestamp with time zone | not null | |
| DisconnectedAt | timestamp with time zone | ||
| LastSocketEventAt | timestamp with time zone | ||
| SessionStartedAt | timestamp with time zone | ||
| IsActive | boolean | not null | |
| StreamSessionId | uuid | ||
| StreamWorkoutId | uuid | ||
| ShowDebtPanel | boolean | not null | |
| SendChatResponse | boolean | not null | |
| ChatResponseTemplate | text | ||
| AlertSoundPreset | text |
Indexes (2)
(UserId)unique (IX_StreamlabsConnections_UserId)(OverlayTokenHash)unique (IX_StreamlabsConnections_OverlayTokenHash)
Relationships
Users.IdreferencesStreamlabsConnections