docs: 补充 seed 命令写入的测试账号信息

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-04-07 23:30:03 +08:00
parent 098fba38f2
commit 92bcad086b
2 changed files with 13 additions and 0 deletions
+9
View File
@@ -84,6 +84,15 @@ cd client && flutter pub get
| `sh scripts/dev.sh reset` | 删表重建(AutoMigrate |
| `sh scripts/dev.sh clear` | 清空所有业务数据(保留表结构) |
执行完成后会打印测试账号:
```
门店编号: H001
admin / password123 (管理员,可审核单据)
operator / password123 (操作员,可创建/提交单据)
test / password123 (只读,仅查看)
```
`seed` 命令工作原理:
1.`backend/config/config.yaml` 解析数据库连接信息
2. 检查 MySQL 容器(`jiu_mysql`)是否运行