ActivitySamples table
The ActivitySamples table in the FitStack - V2 schema has 10 columns, keyed by Id.
Time series inside one activity — heart-rate trace, pace curve.
Columns (10)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| ActivityId | uuid | not null | POLYMORPHIC — no FK. A CardioLog or WorkoutSession id, discriminated by Kind. |
| Kind | text | not null | `ActivityKind` as TEXT. |
| MetricType | text | not null | `ActivityMetricType` as TEXT. |
| Value | numeric | not null | |
| Timestamp | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(ActivityId, Kind, MetricType, Timestamp)unique (IX_ActivitySamples_Activity_Kind_Metric_Timestamp)