HealthMetricGoals table
The HealthMetricGoals table in the FitStack - V2 schema has 9 columns, keyed by Id, with 1 foreign key to UserHealthProfiles.
No audit columns — no soft-delete filter.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| HealthProfileId | uuid | not null, references UserHealthProfiles.Id | CASCADE. |
| MetricType | integer | not null | `HealthMetricType`, 79 members. |
| Unit | integer | not null | `HealthMetricUnit`. |
| TargetValue | numeric | not null | |
| IsCustom | boolean | not null | |
| Notes | text | ||
| LastUpdated | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null |
Indexes (1)
(HealthProfileId, MetricType)unique (IX_HealthMetricGoals_HealthProfileId_MetricType)
Relationships
HealthMetricGoals.HealthProfileIdreferencesUserHealthProfiles.Id