Add patient personalization: profile saved once, reused every chat turn

This commit is contained in:
2026-08-25 11:55:13 +07:00
parent 501c226ecd
commit 1ddd878431
12 changed files with 548 additions and 6 deletions
@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS patient_profile (
user_id uuid PRIMARY KEY REFERENCES auth_user(id) ON DELETE CASCADE,
age_text text,
weight_kg numeric,
renal_function text,
hepatic_function text,
known_allergies text,
updated_at timestamptz NOT NULL DEFAULT now()
);