feat: 添加 G5 数据库支持,更新配置和文档
This commit is contained in:
@@ -35,6 +35,15 @@ Topic:blwlog4Nodejs-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 为 int2,on映射为1,off映射为2,其余为0。
|
||||
支持通过环境变量开关双写。
|
||||
|
||||
4. 数据处理规则
|
||||
非重启数据:reboot_reason 为空或不存在,current_status 取 CurrentStatus
|
||||
重启数据:reboot_reason 不为空,current_status 固定为 on
|
||||
|
||||
Reference in New Issue
Block a user