docs: 补充 seed 命令写入的测试账号信息
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -130,6 +130,10 @@ sh scripts/dev.sh run
|
||||
|
||||
# 3. 写入测试数据(另开终端)
|
||||
sh scripts/dev.sh seed H001
|
||||
# 写入后可用以下账号登录(门店编号 H001):
|
||||
# admin / password123 管理员
|
||||
# operator / password123 操作员
|
||||
# test / password123 只读
|
||||
|
||||
# 4. 数据库管理界面(可选)
|
||||
# 浏览器打开 http://localhost:8888
|
||||
|
||||
@@ -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`)是否运行
|
||||
|
||||
Reference in New Issue
Block a user