feat(dm): migrated all the dm topics
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 4m26s

This commit is contained in:
2026-06-26 11:05:17 -05:00
parent 012a7e83b2
commit 47b149d1ea
48 changed files with 14156 additions and 44 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE "order_import" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"receiving_plant_id" text NOT NULL,
"documentName" text,
"sender" text,
"customer_id" text,
"invoice_address_id" text,
"raw_data" jsonb DEFAULT '[]'::jsonb,
"add_date" timestamp with time zone DEFAULT now(),
"add_user" text DEFAULT 'lst-system',
"upd_date" timestamp with time zone DEFAULT now(),
"upd_user" text DEFAULT 'lst-system'
);

View File

@@ -0,0 +1,18 @@
CREATE TABLE "prod_audit_log" (
"id" serial PRIMARY KEY NOT NULL,
"audit_id" integer NOT NULL,
"actor_name" text NOT NULL,
"audit_created_date" timestamp with time zone NOT NULL,
"message" text NOT NULL,
"content" jsonb NOT NULL,
"status" text DEFAULT 'pending' NOT NULL,
"processed" boolean DEFAULT false,
"retry_count" integer DEFAULT 0 NOT NULL,
"next_retry_at" timestamp with time zone,
"error_message" text,
"error_stack" text,
"processed_at" timestamp with time zone,
"created_at" timestamp with time zone DEFAULT now(),
"updated_at" timestamp with time zone DEFAULT now(),
CONSTRAINT "prod_audit_log_audit_id_unique" UNIQUE("audit_id")
);

View File

@@ -0,0 +1,3 @@
CREATE TABLE "prod_audit_log_processed" (
"last_processed" integer DEFAULT 0
);

View File

@@ -0,0 +1,7 @@
ALTER TABLE "prod_audit_log_processed" RENAME TO "prod_audit_log_state";--> statement-breakpoint
ALTER TABLE "prod_audit_log_state" ADD COLUMN "id" integer PRIMARY KEY DEFAULT 1 NOT NULL;--> statement-breakpoint
ALTER TABLE "prod_audit_log_state" ADD COLUMN "last_imported_audit_id" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
ALTER TABLE "prod_audit_log_state" ADD COLUMN "last_processed_audit_id" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
ALTER TABLE "prod_audit_log_state" ADD COLUMN "created_at" timestamp with time zone DEFAULT now();--> statement-breakpoint
ALTER TABLE "prod_audit_log_state" ADD COLUMN "updated_at" timestamp with time zone DEFAULT now();--> statement-breakpoint
ALTER TABLE "prod_audit_log_state" DROP COLUMN "last_processed";

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -463,6 +463,41 @@
"when": 1781426193735,
"tag": "0065_jittery_ares",
"breakpoints": true
},
{
"idx": 66,
"version": "7",
"when": 1782292405098,
"tag": "0066_milky_bedlam",
"breakpoints": true
},
{
"idx": 67,
"version": "7",
"when": 1782400069152,
"tag": "0067_low_bullseye",
"breakpoints": true
},
{
"idx": 68,
"version": "7",
"when": 1782401046031,
"tag": "0068_flaky_retro_girl",
"breakpoints": true
},
{
"idx": 69,
"version": "7",
"when": 1782403148642,
"tag": "0069_slow_speedball",
"breakpoints": true
},
{
"idx": 70,
"version": "7",
"when": 1782403232037,
"tag": "0070_broad_revanche",
"breakpoints": true
}
]
}