fix: 为停电事件同步表添加关联事件ID字段
添加 event_id 字段以建立与事件表的关联关系,确保数据同步时能正确对应具体事件。
This commit is contained in:
parent
b49bab1ccc
commit
07068a9113
@ -233,6 +233,7 @@ create table dner_daily_power_outage_event_sync
|
|||||||
(
|
(
|
||||||
id bigint unsigned auto_increment comment '主键ID'
|
id bigint unsigned auto_increment comment '主键ID'
|
||||||
primary key,
|
primary key,
|
||||||
|
event_id BIGINT(20) NOT NULL COMMENT '关联事件ID',
|
||||||
date_time varchar(32) not null comment '日期(yyyy-mm-dd)',
|
date_time varchar(32) not null comment '日期(yyyy-mm-dd)',
|
||||||
sync_status int default 1 not null comment '同步状态 1 全部同步 2部分同步',
|
sync_status int default 1 not null comment '同步状态 1 全部同步 2部分同步',
|
||||||
error_msg text null comment '同步失败原因',
|
error_msg text null comment '同步失败原因',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user