add ai_tables

This commit is contained in:
Danel Kungla
2025-09-20 18:12:34 +03:00
parent d86495d7f7
commit 5f0ca6bdae

View File

@@ -0,0 +1,10 @@
create table if not exists medreport.ai_responses (
id uuid unique not null default extensions.uuid_generate_v4 (),
account_id uuid references medreport.accounts(id) on delete cascade not null,
prompt_name varchar(50) not null,
prompt_id varchar(50) not null,
input jsonb not null,
response jsonb not null,
created_at timestamp with time zone not null default now(),
latest_data_change timestamp with time zone not null
);