Merge branch 'main' into MED-104

This commit is contained in:
Danel Kungla
2025-08-29 09:46:04 +03:00
27 changed files with 491 additions and 135 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;