mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Introduce an explicit, user-declared "I have diabetes / clinician glucose targets" preference (`User.hasDiabetes`, migration 0174, defaulted false) plus its GET/PATCH endpoint at `/api/auth/me/diabetes`. The flag selects which glucose target band a reading is judged against; it is never inferred from a value and never asserts a diagnosis. Mirrors the existing per-user-scalar preference pattern: 60/min rate limit, Zod validation, audit-logged, field-by-field write. OpenAPI regenerated for the new route.
675 KiB
675 KiB