diff --git a/supabase/migrations/20250825094541_medipost_dispatch_audit.sql b/supabase/migrations/20250825094541_medipost_dispatch_audit.sql new file mode 100644 index 0000000..97e65fd --- /dev/null +++ b/supabase/migrations/20250825094541_medipost_dispatch_audit.sql @@ -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;