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)

Columns of the ActivitySamples table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ActivityIduuidnot nullPOLYMORPHIC — no FK. A CardioLog or WorkoutSession id, discriminated by Kind.
Kindtextnot null`ActivityKind` as TEXT.
MetricTypetextnot null`ActivityMetricType` as TEXT.
Valuenumericnot null
Timestamptimestamp with time zonenot null
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (ActivityId, Kind, MetricType, Timestamp) unique (IX_ActivitySamples_Activity_Kind_Metric_Timestamp)