feat(documents): prepare inbox suggestions and add entity assignments
All checks were successful
Build and Release FEDEO / verify (push) Successful in 56s
Build and Release FEDEO / build-and-release (push) Successful in 5m58s

This commit is contained in:
2026-10-02 16:09:04 +02:00
parent 64299843e2
commit d7382e7319
15 changed files with 707 additions and 72 deletions

View File

@@ -0,0 +1,13 @@
ALTER TABLE "scanner_inbox_documents"
ADD COLUMN "suggestion_status" text NOT NULL DEFAULT 'pending',
ADD COLUMN "suggestion" jsonb,
ADD COLUMN "suggestion_message" text,
ADD COLUMN "suggestion_claim" uuid,
ADD COLUMN "suggestion_updated_at" timestamptz NOT NULL DEFAULT now();
--> statement-breakpoint
ALTER TABLE "scanner_inbox_documents" ADD CONSTRAINT "scanner_inbox_suggestion_status_check"
CHECK ("suggestion_status" IN ('pending', 'processing', 'ready', 'failed'));
--> statement-breakpoint
CREATE INDEX "scanner_inbox_suggestion_queue_idx"
ON "scanner_inbox_documents" ("suggestion_status", "suggestion_updated_at", "received_at")
WHERE "filed_at" IS NULL;

View File

@@ -519,6 +519,13 @@
"when": 1790726400001,
"tag": "0076_collaboration_federation",
"breakpoints": true
},
{
"idx": 74,
"version": "7",
"when": 1790899200000,
"tag": "0077_scanner_inbox_preparation",
"breakpoints": true
}
]
}