VideoCallSessions table
The VideoCallSessions table in the FitStack - V2 schema has 11 columns, keyed by Id. 1 column in CoachAppointments references it.
WebRTC session. TURN credentials are issued at runtime and never stored.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| AppointmentId | uuid | not null | CASCADE. v2 FIX: the index is now UNIQUE — v1 allowed unlimited sessions per appointment. |
| StartedAt | timestamp with time zone | not null | |
| EndedAt | timestamp with time zone | ||
| EndReason | text | `CallEndReason` as TEXT. | |
| RecordingUrl | character varying(2048) | ||
| RecordingConsentedByClient | boolean | not null | v2 ADD. A recording of a health consultation must not exist without the client having said yes. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(AppointmentId)unique (IX_VideoCallSessions_AppointmentId)
Relationships
CoachAppointments.IdreferencesVideoCallSessions