pbls/scripts/ddl/base_table_alias_map.json
2026-09-30 19:30:47 +08:00

46 lines
1.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"_comment": "声明口径表名 → models 单一真源表名对照;test/deploy 探针请改用 real 名,避免 ERROR 1146 误报为『表缺失』。real=null 表示该声明项本就零表设计。",
"generated_by": "scripts/gen_base_ddl.py",
"base_tables": [
"appcodes",
"appcodes_kv",
"audit_log",
"organization",
"orgtypes",
"params",
"permission",
"role",
"rolepermission",
"svgicon",
"userrole",
"users"
],
"mapping": {
"pbl_role": {
"real": "role",
"module": "rbac",
"note": "rbac 角色表真名为 role,非 pbl_role;7 类角色种子写 role + userrole"
},
"pbl_appcode": {
"real": "appcodes",
"module": "appbase",
"note": "共享编码父表真名 appcodes(子表 appcodes_kv),非 pbl_appcode"
},
"pbl_validation_rule": {
"real": "pbl_validation_ruleset",
"module": "pbl_validation",
"note": "14 维校验规则集真名 pbl_validation_ruleset"
},
"pbl_agent_tool": {
"real": null,
"module": "pbl_agent_runtime",
"note": "Agent 工具白名单 13 启用/9 禁用落在 appcodes 组内(零表设计),无独立表"
},
"pbl_role_binding": {
"real": "pbl_role_binding",
"module": "pbl_governance",
"note": "治理域角色绑定表,真名一致;行数 0 属种子未注入(见 seed_rbac_admin.py)"
}
}
}