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)

Columns of the StreamlabsConnections table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
UserIdtextnot null1:1.
AccessTokenCiphertexttextnot nullENCRYPTED AT REST. Never log or expose.
SocketTokenCiphertexttextnot nullENCRYPTED AT REST.
OverlayTokenHashtextnot nullHASHED, not encrypted — it is only ever compared.
OverlayTokenIssuedAttimestamp with time zonenot null
StreamlabsUserIdtext
StreamlabsDisplayNametext
TwitchUsernametext
ConnectedAttimestamp with time zonenot null
DisconnectedAttimestamp with time zone
LastSocketEventAttimestamp with time zone
SessionStartedAttimestamp with time zone
IsActivebooleannot null
StreamSessionIduuid
StreamWorkoutIduuid
ShowDebtPanelbooleannot null
SendChatResponsebooleannot null
ChatResponseTemplatetext
AlertSoundPresettext

Indexes (2)

  • (UserId) unique (IX_StreamlabsConnections_UserId)
  • (OverlayTokenHash) unique (IX_StreamlabsConnections_OverlayTokenHash)

Relationships

  • Users.Id references StreamlabsConnections