MED-145: send notification to patient when summary completed (#61)

* MED-145: send notification to patient when summary completed

* MED-145: send notification to patient when summary completed

* use aliased imports where possible, revert cart service urls

* save language preference to local db

* remove unnecessary optional chaning
This commit is contained in:
Helena
2025-08-28 13:05:07 +03:00
committed by GitHub
parent 5159325e6d
commit 86dc221cc6
22 changed files with 551 additions and 169 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;