feat: 新增数据库持久化支持并完善后台管理功能

- 引入dotenv加载环境变量,新增数据库同步配置项
- 为用户服务、管理员服务、数据服务添加数据库持久化逻辑
- 新增管理员用户邮箱字段,完善权限校验逻辑
- 添加数据库初始化与种子数据脚本
- 新增e2e测试验证管理员数据持久化
This commit is contained in:
2026-07-01 17:11:29 +08:00
parent 026665b2cc
commit d3083bf16b
16 changed files with 641 additions and 50 deletions

View File

@@ -23,6 +23,7 @@
"bcrypt": "^6.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"dotenv": "17.4.1",
"mysql2": "^3.0.0",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",