feat(core): update backend coordinator, docgov lease, squad workflow and web governance integration

This commit is contained in:
WeiCHEN
2026-09-10 09:38:35 +08:00
parent d40de5fe61
commit 747cd39e97
140 changed files with 20414 additions and 264 deletions
+8
View File
@@ -53,6 +53,14 @@ CREATE TABLE IF NOT EXISTS document_records (
-- 可配置项 (Config JSONB)
config JSONB NOT NULL DEFAULT '{"reject_rollback_to": "drafting", "allow_approver_to_reviewer": true}'::jsonb,
-- 编辑租约 (运行时互斥,正交于 is_locked)
lease_holder_type TEXT NOT NULL DEFAULT '',
lease_holder_id TEXT NOT NULL DEFAULT '',
lease_work_dir TEXT NOT NULL DEFAULT '',
lease_expires_at TIMESTAMPTZ,
lease_heartbeat_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);