feat(MED-85): create audit log on orders view + export csv

This commit is contained in:
2025-08-25 11:51:43 +03:00
parent eb1eeb690b
commit 828f32ee81

View File

@@ -0,0 +1,12 @@
CREATE TABLE "audit"."medipost_dispatch" (
"id" bigint generated by default as identity not null,
"medusa_order_id" text not null,
"is_medipost_error" boolean not null,
"is_success" boolean not null,
"error_message" text,
"created_at" timestamp with time zone not null default now(),
"changed_by" uuid not null
);
grant usage on schema audit to service_role;
grant select, insert, update, delete on table audit.medipost_dispatch to service_role;