Wellness
The wellness table stores daily health metrics from wearable devices or manual entry. Each row represents one day from one source.
Schema
Section titled “Schema”| Column | Type | Unit | Description |
|---|---|---|---|
id | UUID | — | Row identifier |
user_id | UUID | — | Owner |
date | date | — | Calendar date (YYYY-MM-DD) |
source | text | — | Data source (see below) |
weight_kg | real | kg | Body weight |
rhr_bpm | real | bpm | Resting heart rate |
hrv_rmssd | real | ms | HRV — root mean square of successive differences |
sleep_hours | real | hours | Total sleep duration |
sleep_score | real | 0–100 | Sleep quality score (source-specific scale) |
readiness | real | 0–100 | Readiness / recovery score (source-specific scale) |
steps | integer | steps | Steps in the day. For intervals rows the final count arrives the day after, so recent days are re-synced |
created_at | timestamptz | — | When the record was created |
All metric columns are nullable — a row may have only some metrics filled in depending on what the device reported.
Source values
Section titled “Source values”| Source | Description |
|---|---|
oura | Oura Ring (via Oura API) |
garmin | Garmin Connect (via Garmin Health API) |
whoop | WHOOP (via sync_wellness or the Backfill page’s Sync now button) |
intervals | Intervals.icu (via sync_wellness or the Backfill page’s Sync wellness button) |
manual | Entered manually in FitRepo |
Uniqueness
Section titled “Uniqueness”Each (user_id, date, source) combination is unique. If a source reports updated data for the same day, FitRepo upserts the row.
HRV note
Section titled “HRV note”hrv_rmssd is the standard overnight HRV metric used by most wearables. RMSSD (root mean square of successive RR-interval differences) is a time-domain measure — higher values generally indicate better parasympathetic activity and recovery.
Different devices measure HRV differently (sampling window, filter algorithms). For trend analysis, stick to a single source to avoid cross-device noise.
Readiness score
Section titled “Readiness score”The readiness field maps to the device’s own readiness/recovery score:
- Oura: Readiness Score (0–100)
- Garmin: Body Battery (0–100)
- WHOOP: Recovery Score (0–100)
- Intervals.icu: the readiness value you log there
These are not directly comparable across sources.
Several sources for one day
Section titled “Several sources for one day”If more than one source has a row for a day (for example whoop and intervals), they are stored separately and never overwrite each other. get_wellness merges them into one row per day using your preferred source order (Backfill page → Wellness data → Preferred source). Recovery numbers (HRV, resting HR, readiness, sleep) come as one set from a single source; weight and steps are picked independently. Ask for source or merge: false to see the stored rows. See get_wellness.
Querying via MCP
Section titled “Querying via MCP”Use the get_wellness tool to fetch wellness data:
get_wellness(from: "2025-01-01", to: "2025-03-31", source: "oura")The source filter is optional — omit it to get all sources for a date range.