Files
eip4-platform/tools/local-devdb/sql/data-tables.txt
zhengwr d137577759 eip4dev: 构建本地开发库,日常开发完全脱离 5435
- tools/local-devdb/build_devdb.sh: 幂等构建脚本,分层 dump/restore
  (ACT_* schema-only / 超500MB巨表 schema-only / 其余全量),
  内置 5435/ceshi 库安全守门,参数化源/目标/阈值/巨表清单
- tools/local-devdb/sql/data-tables.txt: 必须全量的引擎元数据/组织表清单
- tools/local-devdb/本地开发库构建报告.md: 实跑报告(2738MB/345s/94.1%对拍通过)
- application-dev.yml: dev profile 指向 localhost:5433/eip4dev,端口 8093
- README.md: 补三套 profile 说明(dev/local/默认)及常用命令
- SysUserService.java: 修复 MASTERDEPART 列不存在导致登录 500 的 bug
- docs/迁移手册.md: 追加三条新坑位(MASTERDEPART/sys_page_schema/shell 中文变量名)

验证: 登录 OK / list(1079行) / picker(5条) / ParityCli 1166实体 803 OK_FULL+294 OK_SAMPLE
完全本地: pg_stat_activity 全部连接来自 127.0.0.1:eip4dev,无 5435 连接

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 18:19:01 +08:00

54 lines
1.6 KiB
Plaintext
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.
# ============================================================================
# eip4dev 数据分层配置 — 决定哪些表拉全量数据
# 格式:每行一个表名(小写,无 schema 前缀)
# 规则:
# - ACT_* 表:全部 schema-only(流程数据在 eip4flow,dev 库只需结构)
# - 超阈值(>500MB)非ACT_巨表:schema-only 或 TABLESAMPLE
# - 列在此文件中的表:全量复制数据
# - 其他非ACT_小表(<500MB):全量复制数据(脚本自动计算)
# ============================================================================
# ---- 引擎元数据(必须全量,驱动引擎核心)----
sys_entity
sys_entityattribute
sys_reference
sys_referencevalue
sys_rule
sys_enumerate
sys_enumeratevalue
sys_enumerate_item
view_template
view_page
view_page_field
view_page_config
sys_serviceflow
sys_filterrule
sys_filterrulerole
sys_datastatus
# ---- 组织 / 权限(必须全量,登录/数据权限依赖)----
sys_user
sys_org
sys_role
sys_depart
sys_usergroup
sys_resource
sys_authority
sys_roleresource
sys_userrole
sys_userauth
sys_userlogin_history
pm_project_user
sys_dept_user
sys_org_user
sys_role_user
sys_group_user
# ---- 说明:超阈值巨表(schema-only,不在此文件中则不拉数据)----
# gb_clockingin 8.4GB => schema-only
# gb_prj_worker 1.6GB => schema-only
# sys_data_logitem 1.5GB => schema-only(日志,非联调主路径)
# act_hi_varinst_archive 3GB => schema-only(ACT归档)
# act_hi_varinst 2.3GB => schema-only
# act_ge_bytearray 1.2GB => schema-only