Initial commit: GovAI 政务AI平台

This commit is contained in:
freedakgmail
2026-06-15 23:48:37 +08:00
commit 0f490f72a9
245 changed files with 51669 additions and 0 deletions
@@ -0,0 +1,3 @@
-- 回滚:把 super_admin 恢复绑定到第一个机构(仅作占位,无法还原原始关系)
UPDATE users SET org_id = (SELECT id FROM organizations ORDER BY sort_order LIMIT 1)
WHERE role = 'super_admin' AND org_id IS NULL;