feat: 增加i2同步数据需要的表

main
huangfeng 1 year ago
parent af27131105
commit 51c1799b2f

@ -2112,6 +2112,82 @@ LOCK TABLES `i2relation` WRITE;
/*!40000 ALTER TABLE `i2relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `i2sync_config`
--
DROP TABLE IF EXISTS `i2sync_config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `i2sync_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`modevtype_id` int(11) DEFAULT NULL COMMENT '类型id',
`create_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='i2导出类型配置';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `i2sync_config`
--
LOCK TABLES `i2sync_config` WRITE;
/*!40000 ALTER TABLE `i2sync_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `i2sync_config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `i2sync_field`
--
DROP TABLE IF EXISTS `i2sync_field`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `i2sync_field` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`table_name` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
`field_name` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
`dest_field_name` varchar(128) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `idxTb` (`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='i2导出字段映射配置';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `i2sync_field`
--
LOCK TABLES `i2sync_field` WRITE;
/*!40000 ALTER TABLE `i2sync_field` DISABLE KEYS */;
/*!40000 ALTER TABLE `i2sync_field` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `i2sync_record`
--
DROP TABLE IF EXISTS `i2sync_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `i2sync_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`modevtype_id` int(11) DEFAULT NULL,
`eqmid` int(11) DEFAULT NULL,
`last_d_time` datetime DEFAULT NULL COMMENT '最后数据同步时间',
PRIMARY KEY (`id`),
KEY `idx` (`eqmid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='i2导出记录';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `i2sync_record`
--
LOCK TABLES `i2sync_record` WRITE;
/*!40000 ALTER TABLE `i2sync_record` DISABLE KEYS */;
/*!40000 ALTER TABLE `i2sync_record` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `icd_config_type`
--
@ -3772,4 +3848,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2024-06-05 13:59:59
-- Dump completed on 2024-06-06 11:32:25

Loading…
Cancel
Save