feat(dashboard, api): integrate BMI thresholds and enhance dashboard with health metrics

This commit is contained in:
Danel Kungla
2025-08-21 22:09:17 +03:00
parent b1b0846234
commit 1fb8df7c89
9 changed files with 269 additions and 101 deletions

View File

@@ -690,6 +690,42 @@ export type Database = {
},
]
}
bmi_thresholds: {
Row: {
age_max: number | null
age_min: number
id: number
normal_max: number
normal_min: number
obesity_min: number
overweight_min: number
strong_min: number
underweight_max: number
}
Insert: {
age_max?: number | null
age_min: number
id?: number
normal_max: number
normal_min: number
obesity_min: number
overweight_min: number
strong_min: number
underweight_max: number
}
Update: {
age_max?: number | null
age_min?: number
id?: number
normal_max?: number
normal_min?: number
obesity_min?: number
overweight_min?: number
strong_min?: number
underweight_max?: number
}
Relationships: []
}
codes: {
Row: {
analysis_element_id: number | null
@@ -1807,6 +1843,7 @@ export type Database = {
primary_owner_user_id: string
subscription_status: Database["medreport"]["Enums"]["subscription_status"]
permissions: Database["medreport"]["Enums"]["app_permissions"][]
account_role: string
application_role: Database["medreport"]["Enums"]["application_role"]
}[]
}