feat(gateway): persist profile operation build logs

This commit is contained in:
2026-08-11 15:11:27 +00:00
parent d1c35cc380
commit 3620f79c6a
15 changed files with 857 additions and 92 deletions
@@ -0,0 +1,18 @@
CREATE TABLE "gateway_operation_log" (
"id" BIGSERIAL NOT NULL,
"operation_id" TEXT NOT NULL,
"level" TEXT NOT NULL,
"phase" TEXT NOT NULL,
"message" TEXT NOT NULL,
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "gateway_operation_log_pkey" PRIMARY KEY ("id")
);
CREATE INDEX "gateway_operation_log_operation_id_id_idx"
ON "gateway_operation_log"("operation_id", "id");
ALTER TABLE "gateway_operation_log"
ADD CONSTRAINT "gateway_operation_log_operation_id_fkey"
FOREIGN KEY ("operation_id") REFERENCES "gateway_operation"("id")
ON DELETE CASCADE ON UPDATE CASCADE;