feat: harden loose-offline sync for user JWT, schema, and console ops

Enable Binding-scoped agent push/pull, empty-table schema ensure, SyncPage inspect/drop-table, default module import, and agent-bound publish docs from the 宇恒联调意见.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-08-05 09:47:35 +08:00
parent 76cdcd760e
commit b04b180d30
59 changed files with 4762 additions and 308 deletions

View File

@@ -124,6 +124,14 @@ CREATE TABLE IF NOT EXISTS platform_meta.role_permissions (
ALTER TABLE platform_meta.agent_accounts
ADD COLUMN IF NOT EXISTS role_id BIGINT;
-- Z8b智能体绑定同步通道 / 线上库 / 模块落库名
ALTER TABLE platform_meta.agent_accounts
ADD COLUMN IF NOT EXISTS channel_id VARCHAR(128) NOT NULL DEFAULT '';
ALTER TABLE platform_meta.agent_accounts
ADD COLUMN IF NOT EXISTS online_db_id VARCHAR(128) NOT NULL DEFAULT '';
ALTER TABLE platform_meta.agent_accounts
ADD COLUMN IF NOT EXISTS database_name VARCHAR(128) NOT NULL DEFAULT '';
-- 租户邀请码pending 用户凭码加入已有公司
CREATE TABLE IF NOT EXISTS platform_meta.tenant_invites (
invite_id BIGSERIAL PRIMARY KEY,