feat: 添加 G5 数据库支持,更新配置和文档

This commit is contained in:
2026-03-10 19:52:58 +08:00
parent 156930e6bc
commit 1329eca99e
6 changed files with 222 additions and 9 deletions

View File

@@ -35,6 +35,15 @@ Topicblwlog4Nodejs-rcu-onoffline-topic
主键ts_ms, mac, device_id, room_id
按 ts_ms 每日分区
G5库结构双写临时接入
库同为log_platform
onoffline_record_g5
差异字段:
- guid 为 int4由库自己生成。
- record_source 固定为 CRICS。
- current_status 为 int2on映射为1off映射为2其余为0。
支持通过环境变量开关双写。
4. 数据处理规则
非重启数据reboot_reason 为空或不存在current_status 取 CurrentStatus
重启数据reboot_reason 不为空current_status 固定为 on