diff --git a/supabase/migrations/20250920154900_ai_tables.sql b/supabase/migrations/20250920154900_ai_tables.sql new file mode 100644 index 0000000..d3afa99 --- /dev/null +++ b/supabase/migrations/20250920154900_ai_tables.sql @@ -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 +); \ No newline at end of file