SET FOREIGN_KEY_CHECKS=0;

ALTER TABLE `dev_access_conf` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_access_conf` MODIFY COLUMN `access_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备id' AFTER `id`;

ALTER TABLE `dev_access_conf` MODIFY COLUMN `access_conf_value_regular` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置值校验正则表达式' AFTER `access_conf_value`;

ALTER TABLE `dev_access_conf` MODIFY COLUMN `access_conf_value_prompt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置值校验提示语' AFTER `access_conf_value_regular`;

-- 国际化内容修改
-- 水文协议
UPDATE dev_access_conf SET `access_conf_name` = 'secretGenerator.hydrological.accessId.name' WHERE `access_conf_name` = '遥测站地址';
UPDATE dev_access_conf SET `access_conf_value_prompt` = 'secretGenerator.hydrological.accessId.prompt' WHERE `access_conf_value_prompt` = '请输入10位数字组成的字符!';
UPDATE dev_access_conf SET `access_conf_name` = 'secretGenerator.hydrological.password.name' WHERE `access_conf_name` = '密码';
UPDATE dev_access_conf SET `access_conf_value_prompt` = 'secretGenerator.hydrological.password.prompt' WHERE `access_conf_value_prompt` LIKE '请输入4位0-f的16进制字符%';
-- gnss csv协议
UPDATE dev_access_conf SET `access_conf_name` = 'secretGenerator.gnssCsv.accessId.name' WHERE `access_conf_name` = '监测站编码';
UPDATE dev_access_conf SET `access_conf_value_prompt` = 'secretGenerator.gnssCsv.accessId.prompt' WHERE `access_conf_value_prompt` = 'GNSS协议监测站编码应与SN号相同!';
-- 预警广播协议
UPDATE dev_access_conf SET `access_conf_name` = 'secretGenerator.sxBroadcast.accessId.name' WHERE `access_conf_name` = '设备ID号';
UPDATE dev_access_conf SET `access_conf_value_prompt` = 'secretGenerator.sxBroadcast.accessId.prompt' WHERE `access_conf_value_prompt` = '预警广播协议设备ID号应与SN号相同!';


ALTER TABLE `dev_bind_relation` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_bind_relation` MODIFY COLUMN `server_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务编码' AFTER `tenant_id`;

ALTER TABLE `dev_command_panel` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_command_panel` ADD COLUMN `is_delete` tinyint(1) UNSIGNED ZEROFILL NULL DEFAULT 0 COMMENT '是否删除 0否1是' AFTER `update_time`;

ALTER TABLE `dev_command_panel` MODIFY COLUMN `protocol_kind` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '传输类协议/配置类协议 0/1' AFTER `id`;

ALTER TABLE `dev_command_panel` MODIFY COLUMN `config_protocol_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配置类协议id' AFTER `protocol_id`;

ALTER TABLE `dev_command_panel` MODIFY COLUMN `command_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '指令名称' AFTER `protocol_version_id`;

ALTER TABLE `dev_command_panel` MODIFY COLUMN `command_identifier` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '指令标识符' AFTER `command_name`;

ALTER TABLE `dev_command_panel` MODIFY COLUMN `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '指令面板名称' AFTER `command_identifier`;

ALTER TABLE `dev_command_panel` MODIFY COLUMN `command_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'json' AFTER `name`;

ALTER TABLE `dev_command_panel` MODIFY COLUMN `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '说明' AFTER `command_json`;

ALTER TABLE `dev_command_task` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_command_task` MODIFY COLUMN `access_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备接入id' AFTER `id`;

ALTER TABLE `dev_command_task` MODIFY COLUMN `command_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '指令名称' AFTER `access_id`;

ALTER TABLE `dev_command_task` MODIFY COLUMN `command_identifier` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '指令标识符' AFTER `command_name`;

ALTER TABLE `dev_command_task` MODIFY COLUMN `command_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '指令参数' AFTER `command_panel_id`;

ALTER TABLE `dev_command_task` MODIFY COLUMN `result_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '执行结果' AFTER `result_code`;

ALTER TABLE `dev_command_task` MODIFY COLUMN `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '说明' AFTER `result_data`;

ALTER TABLE `dev_info` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_info` MODIFY COLUMN `sn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备sn, 内部配置协议的设备唯一标识' AFTER `id`;

ALTER TABLE `dev_info` MODIFY COLUMN `access_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备接入id, 消息协议的设备唯一标识' AFTER `sn`;

ALTER TABLE `dev_info` MODIFY COLUMN `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备名称' AFTER `access_id`;

ALTER TABLE `dev_info` MODIFY COLUMN `location_json` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '位置json' AFTER `tenant_id`;

ALTER TABLE `dev_info` MODIFY COLUMN `online_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备在线ID' AFTER `online`;

ALTER TABLE `dev_info` MODIFY COLUMN `firmware_ver` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '固件版本' AFTER `online_change_time`;

ALTER TABLE `dev_info` MODIFY COLUMN `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `firmware_ver`;

ALTER TABLE `dev_info` MODIFY COLUMN `dev_picture` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备图片' AFTER `update_time`;

ALTER TABLE `dev_info` DROP COLUMN `access_username`;

ALTER TABLE `dev_info` DROP COLUMN `access_passwd`;

ALTER TABLE `dev_info` DROP COLUMN `auth_conf`;

ALTER TABLE `dev_info` DROP COLUMN `work_info`;

ALTER TABLE `dev_log` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_log` MODIFY COLUMN `log_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '日志内容' AFTER `log_type`;

ALTER TABLE `dev_product` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_product` MODIFY COLUMN `product_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品名称' AFTER `id`;

ALTER TABLE `dev_product` MODIFY COLUMN `product_code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品型号' AFTER `product_name`;

ALTER TABLE `dev_product` MODIFY COLUMN `product_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品类型' AFTER `product_code`;

ALTER TABLE `dev_product` MODIFY COLUMN `industry` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属行业' AFTER `product_type`;

ALTER TABLE `dev_product` MODIFY COLUMN `config_protocol_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品使用的配置类协议唯一标识' AFTER `industry`;

ALTER TABLE `dev_product` MODIFY COLUMN `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品说明' AFTER `config_protocol_id`;

ALTER TABLE `dev_product` MODIFY COLUMN `pic_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品图片' AFTER `remark`;

ALTER TABLE `dev_protocol` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_protocol` MODIFY COLUMN `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议名称' AFTER `id`;

ALTER TABLE `dev_protocol` MODIFY COLUMN `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议类型' AFTER `name`;

ALTER TABLE `dev_protocol` MODIFY COLUMN `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最新版本号' AFTER `type`;

ALTER TABLE `dev_protocol` MODIFY COLUMN `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议说明' AFTER `protocol_version_id`;

ALTER TABLE `dev_protocol_version` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_protocol_version` ADD COLUMN `config_command_content` json NULL COMMENT '配置指令内容' AFTER `command_content`;

ALTER TABLE `dev_protocol_version` MODIFY COLUMN `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '版本号' AFTER `protocol_id`;

ALTER TABLE `dev_protocol_version` MODIFY COLUMN `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议说明' AFTER `status`;

ALTER TABLE `dev_protocol_version` MODIFY COLUMN `file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议文件路径' AFTER `remark`;

ALTER TABLE `dev_protocol_version` MODIFY COLUMN `command_content` json NULL COMMENT '采集指令内容' AFTER `factor_content`;

ALTER TABLE `dev_template` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_template` MODIFY COLUMN `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板名称' AFTER `id`;

ALTER TABLE `dev_template` MODIFY COLUMN `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板说明' AFTER `name`;

ALTER TABLE `dev_template_factor_conf_release` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_template_factor_conf_release` ADD COLUMN `factor_group` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素分组' AFTER `update_time`;

-- ----------------------------
-- Records of dev_template_factor_conf_release factor_group
-- ----------------------------

UPDATE dev_template_factor_conf_release SET`factor_group` ='实时监测信息' WHERE `factor_group` IS NULL;

ALTER TABLE `dev_template_factor_conf_release` ADD COLUMN `factor_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素编码' AFTER `factor_group`;

ALTER TABLE `dev_template_factor_conf_release` MODIFY COLUMN `identifier` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素标识符' AFTER `template_id`;

ALTER TABLE `dev_template_factor_conf_release` MODIFY COLUMN `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素名称' AFTER `identifier`;

ALTER TABLE `dev_template_factor_conf_release` MODIFY COLUMN `unit` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计量单位' AFTER `name`;

ALTER TABLE `dev_template_factor_conf_release` MODIFY COLUMN `data_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '数据类型' AFTER `unit`;

ALTER TABLE `dev_template_factor_conf_snap` COLLATE = utf8mb4_general_ci;

ALTER TABLE `dev_template_factor_conf_snap` ADD COLUMN `factor_group` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素分组' AFTER `custom`;

-- ----------------------------
-- Records of dev_template_factor_conf_snap factor_group
-- ----------------------------

UPDATE dev_template_factor_conf_snap SET`factor_group` ='实时监测信息' WHERE `factor_group` IS NULL;

ALTER TABLE `dev_template_factor_conf_snap` ADD COLUMN `factor_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素编码' AFTER `factor_group`;

ALTER TABLE `dev_template_factor_conf_snap` MODIFY COLUMN `identifier` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素标识符' AFTER `template_id`;

ALTER TABLE `dev_template_factor_conf_snap` MODIFY COLUMN `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '要素名称' AFTER `identifier`;

ALTER TABLE `dev_template_factor_conf_snap` MODIFY COLUMN `unit` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计量单位' AFTER `name`;

ALTER TABLE `dev_template_factor_conf_snap` MODIFY COLUMN `data_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '数据类型' AFTER `unit`;

ALTER TABLE `oper_debug_online_record` COLLATE = utf8mb4_general_ci;

ALTER TABLE `oper_debug_online_record_log` COLLATE = utf8mb4_general_ci;

ALTER TABLE `oper_dev_info` COLLATE = utf8mb4_general_ci;

ALTER TABLE `oper_dev_info` MODIFY COLUMN `sn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备sn' AFTER `id`;

ALTER TABLE `oper_dev_info` MODIFY COLUMN `firmware_version` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '固件版本' AFTER `init_product_id`;

ALTER TABLE `oper_dev_info` MODIFY COLUMN `auth` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配置连接秘钥' AFTER `online`;

ALTER TABLE `oper_dev_info` MODIFY COLUMN `connect_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '连接id_可能为空' AFTER `anomal_flag`;

ALTER TABLE `oper_dev_info` MODIFY COLUMN `channel_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '管道id' AFTER `connect_id`;

ALTER TABLE `oper_firmware` COLLATE = utf8mb4_general_ci;

ALTER TABLE `oper_firmware` MODIFY COLUMN `firmware_version` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '固件包版本' AFTER `update_time`;

ALTER TABLE `oper_firmware_upgrade_task` COLLATE = utf8mb4_general_ci;

ALTER TABLE `oper_firmware_upgrade_task` MODIFY COLUMN `conf_device_sn` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置设备sn号' AFTER `task_batch_id`;

ALTER TABLE `oper_firmware_upgrade_task` MODIFY COLUMN `previous_firmware_version` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备先前固件版本' AFTER `conf_device_sn`;

ALTER TABLE `oper_firmware_upgrade_task` MODIFY COLUMN `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `update_time`;

ALTER TABLE `oper_firmware_upgrade_task` MODIFY COLUMN `stoping` tinyint(1) NULL DEFAULT 0 COMMENT '是否停止中标识' AFTER `remark`;

ALTER TABLE `oper_firmware_upgrade_task_batch` COLLATE = utf8mb4_general_ci;

ALTER TABLE `oper_firmware_version_dep_conf` COLLATE = utf8mb4_general_ci;

ALTER TABLE `oper_firmware_version_dep_conf` MODIFY COLUMN `upgradeable_firmware_version` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '可被升级的固件版本' AFTER `product_id`;

ALTER TABLE `oper_product_secret_conf` COLLATE = utf8mb4_general_ci;

CREATE TABLE `sys_dict`  (
                             `id` bigint(0) NOT NULL AUTO_INCREMENT,
                             `type_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型标识符',
                             `type_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型名称',
                             `order_no` int(0) NULL DEFAULT 0 COMMENT '排序号',
                             `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
                             `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
                             PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据字典类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict
-- ----------------------------
INSERT INTO `sys_dict` VALUES (2, 'product_type', '产品类型', 2, '2022-06-14 10:08:56', '2022-06-14 10:08:58');
INSERT INTO `sys_dict` VALUES (3, 'industry', '所属行业', 3, '2022-06-14 10:09:32', '2022-06-14 10:09:35');
INSERT INTO `sys_dict` VALUES (4, 'factor_group', '要素分组', 4, '2022-09-08 10:26:01', '2022-09-08 10:26:04');

CREATE TABLE `sys_dict_item` (
                                 `id` bigint NOT NULL AUTO_INCREMENT,
                                 `type_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '类型标识符',
                                 `value_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '字典值标识符',
                                 `value_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '字典值显示名称',
                                 `order_no` int DEFAULT '0' COMMENT '排序号',
                                 `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
                                 `create_time` datetime DEFAULT NULL COMMENT '创建时间',
                                 `update_time` datetime DEFAULT NULL COMMENT '更新时间',
                                 PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='数据字典值表';
-- ----------------------------
-- Records of sys_dict_item
-- ----------------------------
INSERT INTO `sys_dict_item` VALUES (20, 'product_type', 'DTU', 'DTU', 1, NULL, '2022-06-14 10:12:41', '2022-06-14 10:12:44');
INSERT INTO `sys_dict_item` VALUES (21, 'product_type', 'RTU', 'RTU', 2, NULL, '2022-06-14 10:12:41', '2022-06-14 10:12:44');
INSERT INTO `sys_dict_item` VALUES (22, 'product_type', 'router', '路由器', 3, NULL, '2022-06-14 10:12:41', '2022-06-14 10:12:44');
INSERT INTO `sys_dict_item` VALUES (23, 'product_type', 'sensor', '传感器', 4, NULL, '2022-06-14 10:12:41', '2022-06-14 10:12:44');
INSERT INTO `sys_dict_item` VALUES (30, 'industry', 'iot', '物联网', 1, NULL, '2022-06-14 10:13:44', '2022-06-14 10:13:48');
INSERT INTO `sys_dict_item` VALUES (31, 'industry', 'fileControl', '消防', 2, NULL, '2022-06-14 10:13:44', '2022-06-14 10:13:48');
INSERT INTO `sys_dict_item` VALUES (32, 'industry', 'electricity', '电力', 3, NULL, '2022-06-14 10:13:44', '2022-06-14 10:13:48');
INSERT INTO `sys_dict_item` VALUES (33, 'industry', 'waterAffairs', '水务', 4, NULL, '2022-06-14 10:13:44', '2022-06-14 10:13:48');
INSERT INTO `sys_dict_item` VALUES (34, 'industry', 'communication', '通信', 5, NULL, '2022-06-14 10:13:44', '2022-06-14 10:13:48');
INSERT INTO `sys_dict_item` VALUES (40, 'factor_group', 'monitorInfo', '实时监测信息', 2, NULL, '2022-09-08 10:27:39', '2022-09-08 10:27:42');
INSERT INTO `sys_dict_item` VALUES (41, 'factor_group', 'workingInfo', '工况信息', 1, NULL, '2022-09-08 10:27:39', '2022-09-08 10:27:42');

ALTER TABLE `sys_operate_log` COLLATE = utf8mb4_general_ci;

ALTER TABLE `sys_operate_log` MODIFY COLUMN `creator_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作人姓名' AFTER `creator_id`;

ALTER TABLE `sys_operate_log` MODIFY COLUMN `operate_module` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作模块' AFTER `creator_name`;

ALTER TABLE `sys_operate_log` MODIFY COLUMN `log_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作类型' AFTER `operate_module`;

DROP TABLE `dev_protocol_type`;

DROP TABLE `dev_sys_dict`;

DROP TABLE `dev_sys_dict_item`;

SET FOREIGN_KEY_CHECKS=1;