docs: 电表读数落库的文档同步(AGENTS.md/数据模型 21->22 张表;tasks/002 标记已实现)
- AGENTS.md 与 docs/tech/数据模型.md:21 -> 22 张表,补 cabinet_meter_readings 说明(抄表留痕:只在读数变化时追加,cabinets.meter_wh 冗余最新值) - tasks/002:电表项由「待确认是否实现」改为「已实现」并列出实测证据(4 次同值只留 1 行、改值新增 1 行) - 生产已发布并核验:22 张表、结构漂移 0、0 ERROR
This commit is contained in:
parent
e8d7442377
commit
f3e733eaec
@ -967,12 +967,14 @@ organization(组织/企业)
|
||||
battery(电池台账,按 battery_id 唯一) ── sim_change_log(换 SIM 记录,按 imei)
|
||||
```
|
||||
|
||||
### 21 张表(实测两库表名完全一致,`information_schema.TABLES` 计数 = 21)
|
||||
### 22 张表(实测两库表名完全一致,`information_schema.TABLES` 计数 = 22)
|
||||
|
||||
`organizations` `projects` `cabinets` `cabin_boards` `compartments` `batteries`
|
||||
`charge_orders` `charge_records` `energy_stats` `device_logs` `abstract_bindings`
|
||||
`users` `roles` `permissions` `user_roles` `role_permissions` `user_scopes`
|
||||
`operation_logs` `user_feedback` `download_tasks` `sim_change_logs`
|
||||
`operation_logs` `user_feedback` `download_tasks` `sim_change_logs` `cabinet_meter_readings`
|
||||
|
||||
> `cabinet_meter_readings` = **柜级电表读数变化留痕**(抄表记录):`status_post.cabinet.meter`(Wh)**只在读数变化时**追加一行,`cabinets.meter_wh`/`meter_at` 冗余最新值。见 `workers/meter.rs`。
|
||||
|
||||
### 改动前必读的硬约束
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ battery(电池台账,按 battery_id 唯一) ── sim_change_log(换 SIM 记
|
||||
|
||||
### 数据库表
|
||||
|
||||
**实测:测试库 `pms_dev` 与生产库 `pms` 各 21 张表**(依据:
|
||||
**实测:测试库 `pms_dev` 与生产库 `pms` 各 22 张表**(依据:
|
||||
`SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA=...`,两库表名完全一致)。
|
||||
|
||||
| 表名 | 说明 |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user