init: 项目初始提交 - NeoZQYY Monorepo 完整代码
This commit is contained in:
21
db/README.md
Normal file
21
db/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# db/
|
||||
|
||||
## 作用说明
|
||||
|
||||
数据库资产目录,集中管理所有数据库的 DDL、迁移脚本和种子数据。每个数据库实例对应一个子目录。
|
||||
|
||||
## 内部结构
|
||||
|
||||
- `etl_feiqiu/` — ETL 数据库(六层 schema:meta/ods/dwd/core/dws/app)
|
||||
- `schemas/` — DDL 定义(每个 schema 一个文件)
|
||||
- `migrations/` — 迁移脚本(日期前缀命名)
|
||||
- `seeds/` — 种子数据
|
||||
- `zqyy_app/` — 业务应用数据库(用户/权限/任务/审批)
|
||||
- `schemas/` / `migrations/` / `seeds/`
|
||||
- `fdw/` — PostgreSQL FDW 跨库映射配置
|
||||
|
||||
## Roadmap
|
||||
|
||||
- FDW 演进:当前为单机 localhost 映射,未来支持跨主机远程 FDW 配置
|
||||
- 引入 schema diff 工具,自动检测生产与测试库结构偏差
|
||||
- 考虑 FDW 性能监控与查询下推优化
|
||||
Reference in New Issue
Block a user