JavaProjectRepo/framework/db-init/README.md

8 lines
549 B
Markdown
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.

# db-init 目录说明
- `sql/base-schema.sql`:数据库结构(表、索引、约束),由 mysqldump 导出或手写维护。
- `sql/base-data.sql`:初始化数据(字典、角色、菜单、管理员等),由 mysqldump 导出或手写维护。
- `scripts/export.ps1`Windows 导出脚本;将当前库结构与指定白名单数据导出到 sql 目录。
- `scripts/import.ps1`Windows 导入脚本;将 sql 中的结构与数据导入到目标库。
请参考 `../docs/数据库初始方案.md` 获取完整流程与约束。