Files
qipai/docs/devlogs/2026-06-18-M03-A-门店与房间基础.md

32 lines
1.2 KiB
Markdown
Raw Permalink 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.
# M03-A 门店与房间基础
- 日期:2026-06-18
- 起始 commit`47094d5`
- 工程 commit`15139b3`
- 推送校验:`HEAD == origin/main == 15139b396235cdbcc4afa253ed4769d08310e503`
- ENGINEERING_DELTA=YES
- 子阶段状态:DONE
## 工程增量
- 门店 CRUD、每周营业时间、经纬度、时区、电话、Wi-Fi、通知地址和排序。
- 房型与房间 CRUD,工作日/节假日/通宵价、押金、预约限制、标签和图片。
- 房间配置状态与运营状态分离,支持维修禁用时段。
- 租户管理员和门店管理员数据范围鉴权;写操作审计。
- 数据删除采用软删除,门店仍有有效房间时禁止归档。
## 验证
- Windows `npm test`M01-A 至 M03-A 全量测试通过。
- WSL MySQL 8.4.9 临时库:`up → verify → down → up → verify` 通过。
- 真实迁移语句:up 40、verify 23、down 37。
- 实测营业时间、房型、价格、状态分离、禁用时段、审计和跨门店拒绝。
## 影响
- 数据库迁移:`2026061807_m03a_store_room_domain`
- API:新增门店与房间后台管理接口。
- 配置:无新增环境变量或秘密。
- 部署:生产迁移前必须备份,通过 Ubuntu 菜单执行。
- 下一阶段:M03-B 装修和广告。