From e2fc190eb5fd0e97e78fa6e73f14bc40e0563350 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Mon, 30 Sep 2024 15:22:28 +0800 Subject: [PATCH] =?UTF-8?q?db:=20=E8=B0=83=E6=95=B4icd=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=92=8C=E5=A2=9E=E5=8A=A0=E8=BF=9C=E7=AB=AF=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ncac/package/cacdb.sql | 90 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 88 insertions(+), 2 deletions(-) diff --git a/ncac/package/cacdb.sql b/ncac/package/cacdb.sql index 6247534..2d5a7a7 100644 --- a/ncac/package/cacdb.sql +++ b/ncac/package/cacdb.sql @@ -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