feat: extend operational investigation workflows
Generic Container CI/CD / test-build-publish (push) Successful in 3m53s
Server CI/CD v2 / build-test-publish-and-deploy (push) Successful in 3m52s

This commit is contained in:
2026-10-30 17:30:19 +08:00
parent 63af998045
commit 05183aff93
82 changed files with 4644 additions and 330 deletions
+15
View File
@@ -0,0 +1,15 @@
-- Apply to every project business database before enabling task questions.
CREATE TABLE IF NOT EXISTS workbench.operational_task_questions (
project_id uuid NOT NULL,
task_id uuid NOT NULL,
question_request_id uuid NOT NULL,
document jsonb NOT NULL,
PRIMARY KEY (project_id, question_request_id),
FOREIGN KEY (project_id, task_id)
REFERENCES workbench.operational_tasks(project_id, task_id) ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS operational_task_questions_task
ON workbench.operational_task_questions(project_id, task_id);
CREATE UNIQUE INDEX IF NOT EXISTS operational_task_questions_pending
ON workbench.operational_task_questions(project_id, task_id)
WHERE document->>'status' = 'pending';