Commit 73988ec0 by 向延琳

增加电量索引

1 parent 5e45d20c
......@@ -39,7 +39,7 @@ create table t_device_journey_overview
id int(11) auto_increment comment '里程主键ID'
primary key,
sn varchar(32) null comment '设备序列号',
vd_id int(11) null comment '车辆、设备关系id',
vd_id int(11) default 0 null comment '车辆、设备关系id',
total_journey_count int(11) null comment '总行驶次数',
distance int(11) null comment '总里程m',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
......@@ -84,7 +84,7 @@ create table t_device_power
id int(11) auto_increment comment '电量主键ID'
primary key,
sn varchar(32) null comment '设备序列号',
vd_id int(11) null comment '车辆、设备关系id',
vd_id int(11) default 0 null comment '车辆、设备关系id',
alarm_time datetime null comment '电量上传时间',
soc int(20) null comment '设备剩余电量',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
......@@ -100,6 +100,8 @@ ALTER TABLE `t_device_power`
ADD INDEX idx_sn (`sn`);
ALTER TABLE `t_device_power`
ADD INDEX idx_vd_id (`vd_id`);
ALTER TABLE `t_device_power`
ADD INDEX idx_soc (`soc`);
-- 短信模板
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!