Merge branch 'main' into MED-85

This commit is contained in:
2025-08-28 14:57:09 +03:00
23 changed files with 561 additions and 179 deletions

View File

@@ -0,0 +1,7 @@
ALTER TABLE medreport.accounts
DROP COLUMN IF EXISTS public_data;
create type medreport.locale as enum ('en', 'et', 'ru');
ALTER TABLE medreport.accounts
ADD COLUMN preferred_locale medreport.locale

View File

@@ -0,0 +1,13 @@
create type "audit"."action_status" as enum ('SUCCESS', 'FAIL');
create table audit.notification_entries (
"id" bigint generated by default as identity not null,
"status" audit.action_status not null,
"action" text not null,
"comment" text,
"related_record_key" text,
"created_at" timestamp with time zone not null default now()
);
grant usage on schema audit to authenticated;
grant select, insert on table audit.notification_entries to authenticated;