-- ----------------------------
|
-- 1、增加大屏名称配置字段
|
alter table t_screen_content add column screen_name varchar(255) default '' null comment '大屏名称';
|
|
-- 2、增加储能电站表设备编号
|
alter table t_emind_station add column station_code varchar(255) default '' null comment '设备编号';
|
|
ALTER TABLE t_emind_dashboard_daily MODIFY COLUMN id BIGINT NOT NULL AUTO_INCREMENT comment '主键ID';
|
|
-- 3、储能能量连表增加(设备类型)
|
alter table t_emind_energy_chain add column station_type varchar(255) default '' null comment '设备类型';
|
|
-- 增加能量链详情表
|
create table t_emind_energy_chain_detail
|
(
|
id bigint auto_increment comment '主键ID'
|
primary key,
|
platform_name varchar(100) null comment '所属平台(利普芯、欧力特)',
|
station_code varchar(255) null comment '设备编号',
|
station_id varchar(255) null comment '设备ID',
|
station_type varchar(255) null comment '设备类型(与能量链里面的设备类型进行关联)',
|
detail text null comment '设备详情json字段',
|
data_source int null comment '数据来源(1系统创建,2第三方接口)',
|
create_time datetime null comment '创建时间',
|
sync_time datetime null comment '同步时间',
|
update_time datetime null comment '更新时间',
|
del_flag char default '0' not null comment '删除标志(0存在 2删除)'
|
)
|
comment '能量链详情表' collate = utf8mb4_bin;
|