db: 调整icd字段和增加远端下载表

main
huangfeng 9 months ago
parent b7658e0d95
commit e2fc190eb5

@ -1907,13 +1907,16 @@ DROP TABLE IF EXISTS `icd_config_type`;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_config_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`icd_file_id` int(11) DEFAULT NULL,
`ip` varchar(45) DEFAULT NULL,
`ap_title` varchar(45) DEFAULT NULL,
`ied_name` varchar(45) NOT NULL COMMENT 'IED名称',
`ldevice_inst` varchar(45) NOT NULL COMMENT '设备类型',
`ln_class` varchar(45) NOT NULL COMMENT 'LN类型',
`ln_desc` varchar(200) DEFAULT NULL,
`table_name` varchar(45) DEFAULT NULL COMMENT '表名',
PRIMARY KEY (`id`),
KEY `idxKey` (`ied_name`,`ldevice_inst`,`ln_class`)
KEY `idxKey` (`icd_file_id`,`ied_name`,`ldevice_inst`,`ln_class`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ICD配置类型表';
/*!40101 SET character_set_client = @saved_cs_client */;
@ -1978,6 +1981,30 @@ LOCK TABLES `icd_config_type_inst` WRITE;
/*!40000 ALTER TABLE `icd_config_type_inst` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `icd_file`
--
DROP TABLE IF EXISTS `icd_file`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `icd_file` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`md5` varchar(45) DEFAULT NULL,
`xml` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ICD文件';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `icd_file`
--
LOCK TABLES `icd_file` WRITE;
/*!40000 ALTER TABLE `icd_file` DISABLE KEYS */;
/*!40000 ALTER TABLE `icd_file` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `jg`
--
@ -2382,6 +2409,65 @@ LOCK TABLES `n_sensor` WRITE;
/*!40000 ALTER TABLE `n_sensor` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `remote_config`
--
DROP TABLE IF EXISTS `remote_config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `remote_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) DEFAULT NULL,
`ip` varchar(45) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`user` varchar(45) DEFAULT NULL,
`passwd` varchar(45) DEFAULT NULL,
`path` varchar(2000) DEFAULT NULL COMMENT '目录',
`suffix` varchar(45) DEFAULT NULL COMMENT '后缀名',
`todel` int(11) DEFAULT NULL COMMENT '下载后删除',
`active` int(11) DEFAULT NULL COMMENT '0:停用; 1:启用;',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='远端服务器信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `remote_config`
--
LOCK TABLES `remote_config` WRITE;
/*!40000 ALTER TABLE `remote_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `remote_config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `remote_download`
--
DROP TABLE IF EXISTS `remote_download`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `remote_download` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`config_id` int(11) DEFAULT NULL COMMENT '目录',
`remote_path` varchar(200) DEFAULT NULL,
`filename` varchar(45) DEFAULT NULL COMMENT '下载后删除',
`path` varchar(200) DEFAULT NULL COMMENT '后缀名',
`create_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx` (`config_id`,`remote_path`,`filename`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='远端文件下载记录表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `remote_download`
--
LOCK TABLES `remote_download` WRITE;
/*!40000 ALTER TABLE `remote_download` DISABLE KEYS */;
/*!40000 ALTER TABLE `remote_download` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `rptparamindex`
--
@ -2688,4 +2774,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2024-09-24 10:50:54
-- Dump completed on 2024-09-30 15:20:33

Loading…
Cancel
Save