feat(MED-85): create audit log on orders view + export csv
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user