/*
 Navicat Premium Data Transfer

 Source Server         : 本机
 Source Server Type    : MariaDB
 Source Server Version : 100214
 Source Host           : 127.0.0.1:3306
 Source Schema         : nms-master

 Target Server Type    : MariaDB
 Target Server Version : 100214
 File Encoding         : 65001

 Date: 12/01/2019 22:00:21
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for check_type_info
-- ----------------------------
DROP TABLE IF EXISTS `check_type_info`;
CREATE TABLE `check_type_info`  (
  `ID` bigint(20) NOT NULL DEFAULT 0,
  `CHECK_TYPE_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '检测类别（只能使用26个字母和数字，不区分大小写，在监控信息交互方面与设置名称用于Server向Client端发送映射关系如：cpu：detect_info_cpu）',
  `CHECK_PARAM_VALUE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测描述',
  `CHECK_REMARK` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `TABLE_NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'CHECK_TYPE_NAME对应的的表名',
  `CRETE_STATE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表是否生成标识0已生成或已创建；1未生成；2停用 默认1',
  `TABLE_DESC` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'CHECK_TYPE_NAME对应的的表描述',
  `IS_SCHEDULE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测类型： 0预置监测类型，1三方监测类型，2页面不显示（如snmp_trap）',
  `CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `VIEW_LEVEL` bigint(22) NULL DEFAULT NULL COMMENT '查看范围取值范围[1、4]1-发布人查看2-发布人所在组查看3-系统内全部人员可看4-无限制',
  `GROUP_ID` bigint(22) NULL DEFAULT NULL COMMENT '用户组id',
  `USER_ID` bigint(22) NULL DEFAULT NULL COMMENT '用户id',
  `SYSTEM_ID` bigint(22) NULL DEFAULT NULL COMMENT '业务系统id',
  `IS_SNMP` bigint(22) NULL DEFAULT NULL COMMENT '是否是SNMP 监控，标识从属于字段IS_SCHEDULE的1三方监测类型：0，是ObjectSNMP监控 1，是SNMP4J监控，2 或null否  默认null',
  `OID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '对应监测oid',
  `CHECK_TYPE_NAME1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测类别名称（不区分大小写）',
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '监测类别' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of check_type_info
-- ----------------------------
INSERT INTO `check_type_info` VALUES (0, 'systeminfo', NULL, NULL, 'DI_SYSTEMINFO', '0', 'i18n_check_type_info.systeminfo.TABLE_DESC_n81i', '0', '2013-01-31 16:40:12', 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.systeminfo.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (1, 'cpu', 'total_used_perc', 'cpu', 'DETECT_INFO_CPU', '0', NULL, '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.cpu.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (2, 'memory', 'used_memory_perc', 'memory', 'DETECT_INFO_MEMORY', '0', NULL, '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.memory.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (3, 'disk', 'used_disk_perc', 'disk', 'DETECT_INFO_DISK', '0', NULL, '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.disk.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (4, 'net', 'rx_dropped', 'net', 'DETECT_INFO_NETDATA', '0', NULL, '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.net.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (5, 'systemdate', 'time_delay', 'systemdate', 'DETECT_INFO_SYSTEM_DATE', '0', NULL, '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.systemdate.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (6, 'PING', 'packets_lost_rate', 'ping', 'DETECT_INFO_PING', '0', NULL, '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.PING.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (7, 'NMSClient', NULL, NULL, 'DELECT_INFO_NMSC', '0', 'i18n_check_type_info.NMSClient.TABLE_DESC_n81i', '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.NMSClient.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (8, 'process', NULL, NULL, 'DETECT_INFO_PROCESS', '0', 'i18n_check_type_info.process.TABLE_DESC_n81i', '0', NULL, 4, NULL, 1, NULL, NULL, NULL, 'i18n_check_type_info.process.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (9, 'SYSTEM', NULL, NULL, 'DI_SYSTEM', '0', 'i18n_check_type_info.SYSTEM.TABLE_DESC_n81i', '0', '2012-11-27 13:41:11', 4, NULL, 580, 192, 1, '1.3.6.1.2.1.1', 'SYSTEM');
INSERT INTO `check_type_info` VALUES (10, 'switchport', NULL, NULL, 'DI_SWITCHPORT', '0', NULL, '0', '2012-11-13 10:03:24', 4, NULL, 539, 192, 1, '1.3.6.1.2.1.2.2.1', 'i18n_check_type_info.switchport.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (11, 'SNMP_TRAP', NULL, 'i18n_check_type_info.SNMP_TRAP.CHECK_REMARK_n81i', 'DETECT_INFO_SNMP_TRAP', '1', 'i18n_check_type_info.SNMP_TRAP.TABLE_DESC_n81i', '2', '2012-05-07 14:18:28', 4, NULL, 44, -1, 2, NULL, NULL);
INSERT INTO `check_type_info` VALUES (17, 'ifXTable', NULL, NULL, 'DI_IFXTABLE', '0', NULL, '1', '2013-03-18 15:05:53', 4, NULL, 1, 1, 1, '1.3.6.1.2.1.31.1.1.1', 'ifXTable');
INSERT INTO `check_type_info` VALUES (100, 'sugonrule', NULL, 'sugon rule info', 'DI_RULE', '0', 'sugon rule info', '1', '2018-07-18 11:23:18', 4, NULL, 1, -1, 1, '1.3.6.1.4.1.5000000.4.3.1', 'sugon_rule');
INSERT INTO `check_type_info` VALUES (101, 'propmStatus', NULL, '', 'DI_PROPMSTATUS', '0', '', '1', '2018-09-20 10:43:17', 4, NULL, 1, -1, 1, '1.3.6.1.4.1.5000000.1.4.1.1.3', 'propmStatus');
INSERT INTO `check_type_info` VALUES (102, 'checktype100015', NULL, '', 'DI_BUSINESSPRO', '0', 'i18n_check_type_info.checktype100015.CHECK_TYPE_NAME1_n81i', '1', '2018-10-05 20:46:10', 4, NULL, 1, -1, 2, '', 'i18n_check_type_info.checktype100015.CHECK_TYPE_NAME1_n81i');
INSERT INTO `check_type_info` VALUES (103, 'checktype100017', NULL, 'C3-G DEV ERROR LOG', 'DI_C3GLOG', '0', 'C3-G DEV ERROR LOG', '1', '2018-10-09 22:11:01', 4, NULL, 1, -1, 2, '', 'C3errorlog');
INSERT INTO `check_type_info` VALUES (104, 'checktype100019', '', '', 'DI_DKLOG', '0', 'DK ERROR LOG', '1', '2012-11-27 13:41:11', 4, NULL, 1, -1, 2, '', 'Dkerrorlog');

-- ----------------------------
-- Table structure for data_police_relation
-- ----------------------------
DROP TABLE IF EXISTS `data_police_relation`;
CREATE TABLE `data_police_relation`  (
  `ID` bigint(20) NOT NULL DEFAULT 0,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id外键',
  `METADATA_ID` bigint(22) NULL DEFAULT NULL COMMENT '字段id',
  `POLICE_STATE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否用于报警：是否用于报警	0启用，1停用',
  `POLICE_VALUE` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报警值',
  `POLICE_UNIT` varchar(22) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '报警值单位：如%等',
  `POLICE_SYMBOLS` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '报警比较符：针对number型数据>、<、>=、<=、=针对字符串类型数据equal、 include、exclude',
  `POLICE_LEVEL` bigint(22) NULL DEFAULT NULL COMMENT '报警级别',
  `POLICE_SHOW_INFO` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '报警提示信息',
  `POLICE_EMERGENT` bigint(22) NULL DEFAULT NULL COMMENT '告警是否紧急 0：紧急  1：非紧急',
  `MARKER` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设置告警时，指定多个标识符（如多个盘符、多个CPU、多个网卡），如硬盘使用率，空：所有盘存在一个盘使用率超过告警值，则告警；all：所有盘总的使用率超过告警值，则告警；指定多个盘符：指定盘存在一个盘使用率超过告警值，则告警',
  `MARKER_FILED_ID` bigint(22) NULL DEFAULT NULL COMMENT '设置告警时，过滤标识marker对应的字段在metadata表中的id。',
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '监测数据报警关系表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for delect_info_nmsc
-- ----------------------------
DROP TABLE IF EXISTS `delect_info_nmsc`;
CREATE TABLE `delect_info_nmsc`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `SEND_INFO` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '发送信息',
  `RETURN_INFO` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '返回信息',
  `IS_IDENTICAL` bigint(22) NULL DEFAULT NULL COMMENT '是否可达',
  `SEND_TIME` datetime(0) NULL DEFAULT NULL COMMENT '发送时间',
  `RETURN_TIME` datetime(0) NULL DEFAULT NULL COMMENT '返回时间',
  `DELAY_TIME` bigint(22) NULL DEFAULT NULL COMMENT '延迟时间',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DELECT_INFO_NMSC_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `INDEX_DET_NMSC_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DET_NMSC_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15647 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_cpu
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_cpu`;
CREATE TABLE `detect_info_cpu`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `USER_USED_CPU_PERC` bigint(22) NULL DEFAULT NULL COMMENT '用户使用率(us%)',
  `SYS_USED_CPU_PERC` bigint(22) NULL DEFAULT NULL COMMENT '系统使用率(sy%)',
  `WAIT_CPU_PERC` bigint(22) NULL DEFAULT NULL COMMENT '当前等待率(wa%)',
  `NICE_PERC` bigint(22) NULL DEFAULT NULL COMMENT '用户空间进程CPU占用比(ni%)',
  `FREE_CPU_PERC` bigint(22) NULL DEFAULT NULL COMMENT '当前空闲率(id%)',
  `TOTAL_USED_PERC` bigint(22) NULL DEFAULT NULL COMMENT '总的使用率(%)',
  `CPU_MHZ` bigint(22) NULL DEFAULT NULL COMMENT '主频',
  `CPU_NAME` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'cpu标识',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_CPU_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_CPU_2`(`USER_USED_CPU_PERC`) USING BTREE,
  INDEX `DETECT_INFO_CPU_3`(`SYS_USED_CPU_PERC`) USING BTREE,
  INDEX `DETECT_INFO_CPU_4`(`WAIT_CPU_PERC`) USING BTREE,
  INDEX `DETECT_INFO_CPU_5`(`NICE_PERC`) USING BTREE,
  INDEX `DETECT_INFO_CPU_6`(`FREE_CPU_PERC`) USING BTREE,
  INDEX `DETECT_INFO_CPU_7`(`TOTAL_USED_PERC`) USING BTREE,
  INDEX `INDEX_DET_CPU_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DET_CPU_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 137807 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_disk
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_disk`;
CREATE TABLE `detect_info_disk`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `DISK_RANGE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '磁盘',
  `TOTAL_DISK_SIZE` bigint(22) NULL DEFAULT NULL COMMENT '磁盘总容量(G)',
  `FREE_DISK_SIZE` bigint(22) NULL DEFAULT NULL COMMENT '磁盘空闲容量(G)',
  `USED_DISK_PERC` bigint(22) NULL DEFAULT NULL COMMENT '磁盘使用率(%)',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DISK_ISWRITE` bigint(22) NULL DEFAULT NULL COMMENT '磁盘是否可写',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_DISK_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_DISK_2`(`FREE_DISK_SIZE`) USING BTREE,
  INDEX `DETECT_INFO_DISK_3`(`USED_DISK_PERC`) USING BTREE,
  INDEX `INDEX_DET_DISK_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DET_DISK_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 40288 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_memory
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_memory`;
CREATE TABLE `detect_info_memory`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `FREE_SPACE_INPAGING_FILES` bigint(22) NULL DEFAULT NULL COMMENT '可用交换空间(swapfreeG)',
  `SIZE_STOREDINPAGING_FILES` bigint(22) NULL DEFAULT NULL COMMENT '总交换空间(swaptotalG)',
  `TOTAL_MEMORY_SIZE` bigint(22) NULL DEFAULT NULL COMMENT '总内存(totalG)',
  `USED_MEMORY_SIZE` bigint(22) NULL DEFAULT NULL COMMENT '已用内存(usedG)',
  `FREE_MEMORY_SIZE` bigint(22) NULL DEFAULT NULL COMMENT '空闲内存(freeG)',
  `USED_MEMORY_PERC` bigint(22) NULL DEFAULT NULL COMMENT '内存使用率(%)',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_MEMORY_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_MEMORY_2`(`FREE_SPACE_INPAGING_FILES`) USING BTREE,
  INDEX `DETECT_INFO_MEMORY_3`(`USED_MEMORY_PERC`) USING BTREE,
  INDEX `INDEX_DET_MEM_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DET_MEM_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16524 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_netdata
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_netdata`;
CREATE TABLE `detect_info_netdata`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `RX_PACKETS` bigint(22) NULL DEFAULT NULL COMMENT '接收的总包裹数',
  `TX_PACKETS` bigint(22) NULL DEFAULT NULL COMMENT '发送的总包裹数',
  `RX_BYTES` bigint(22) NULL DEFAULT NULL COMMENT '接收到的总字节数',
  `TX_BYTES` bigint(22) NULL DEFAULT NULL COMMENT '发送的总字节数',
  `RX_ERRORS` bigint(22) NULL DEFAULT NULL COMMENT '接收到的错误包数',
  `TX_ERRORS` bigint(22) NULL DEFAULT NULL COMMENT '发送数据包时的错误数',
  `RX_DROPPED` bigint(22) NULL DEFAULT NULL COMMENT '接收时丢弃的包数',
  `TX_DROPPED` bigint(22) NULL DEFAULT NULL COMMENT '发送时丢弃的包数',
  `SPEED` bigint(22) NULL DEFAULT NULL COMMENT '带宽（单位：Mbps）',
  `RX_BPS` bigint(22) NULL DEFAULT NULL COMMENT '输入bps（单位：bps）',
  `TX_BPS` bigint(22) NULL DEFAULT NULL COMMENT '输出bps（单位：bps）',
  `RX_PPS` bigint(22) NULL DEFAULT NULL COMMENT '输入pps（每秒接收包数）',
  `TX_PPS` bigint(22) NULL DEFAULT NULL COMMENT '输出pps（每秒发出包数）',
  `NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '网卡名称',
  `RX_ERRORS_PERC` bigint(22) NULL DEFAULT NULL COMMENT '接收错包率',
  `TX_ERRORS_PERC` bigint(22) NULL DEFAULT NULL COMMENT '发送错包率',
  `RX_DROP_PERC` bigint(22) NULL DEFAULT NULL COMMENT '接收丢包率',
  `TX_DROP_PERC` bigint(22) NULL DEFAULT NULL COMMENT '发送丢包率',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_2`(`RX_PACKETS`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_3`(`TX_PACKETS`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_4`(`RX_BYTES`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_5`(`TX_BYTES`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_6`(`RX_ERRORS`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_7`(`TX_ERRORS`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_8`(`RX_DROPPED`) USING BTREE,
  INDEX `DETECT_INFO_NETDATA_9`(`TX_DROPPED`) USING BTREE,
  INDEX `INDEX_DET_NETDATA_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DET_NETDATA_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 41691 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_ping
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_ping`;
CREATE TABLE `detect_info_ping`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `PACKETS_SEND` bigint(22) NULL DEFAULT NULL COMMENT '已发送包数',
  `PACKETS_RECEIVED` bigint(22) NULL DEFAULT NULL COMMENT '已接受包数',
  `PACKETS_LOST` bigint(22) NULL DEFAULT NULL COMMENT '丢包个数',
  `PACKETS_LOST_RATE` bigint(22) NULL DEFAULT NULL COMMENT '丢包率',
  `TIME_CONSUMING_MIN` bigint(22) NULL DEFAULT NULL COMMENT '最短耗时（单位毫秒）',
  `TIME_CONSUMING_MAX` bigint(22) NULL DEFAULT NULL COMMENT '最长耗时（单位毫秒）',
  `TIME_CONSUMING_AVER` bigint(22) NULL DEFAULT NULL COMMENT '平均耗时（单位毫秒）',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_PING_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_PING_2`(`PACKETS_LOST_RATE`) USING BTREE,
  INDEX `DETECT_INFO_PING_3`(`TIME_CONSUMING_AVER`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22283 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_port
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_port`;
CREATE TABLE `detect_info_port`  (
  `DETECTION_INFO_ID` bigint(20) NOT NULL DEFAULT 0,
  `RX_BYTES` bigint(22) NULL DEFAULT NULL,
  `TX_BYTES` bigint(22) NULL DEFAULT NULL,
  `RX_PPS` bigint(22) NULL DEFAULT NULL,
  `TX_PPS` bigint(22) NULL DEFAULT NULL,
  `RX_DROP_PERC` bigint(22) NULL DEFAULT NULL,
  `TX_DROP_PERC` bigint(22) NULL DEFAULT NULL,
  `RX_BPS` bigint(22) NULL DEFAULT NULL,
  `TX_BPS` bigint(22) NULL DEFAULT NULL,
  `RX_DROPPED` bigint(22) NULL DEFAULT NULL,
  `TX_DROPPED` bigint(22) NULL DEFAULT NULL,
  `PORT_STATE` bigint(22) NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `DATA_CHECK_TIME` datetime(0) NOT NULL,
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL,
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `INTERFACE_NAME` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`DETECTION_INFO_ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_PORT_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_PORT_2`(`SEQ_ID`) USING BTREE,
  INDEX `DETECT_INFO_PORT_3`(`DETECTION_SET_INFO_ID`) USING BTREE,
  INDEX `DETECT_INFO_PORT_4`(`RX_BPS`) USING BTREE,
  INDEX `DETECT_INFO_PORT_5`(`TX_BPS`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_process
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_process`;
CREATE TABLE `detect_info_process`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `CPU_USED_PERC` bigint(22) NULL DEFAULT NULL COMMENT '进程的CPU使用率',
  `MEM_USED_PERC` bigint(22) NULL DEFAULT NULL COMMENT '进程的内存使用率',
  `PRO_START_TIME` datetime(0) NULL DEFAULT NULL COMMENT '进程启动时间',
  `PROC_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '进程的状态',
  `PROC_PRIORITY` bigint(22) NULL DEFAULT NULL COMMENT '进程的优先级',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_PROCESS_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_PROCESS_2`(`CPU_USED_PERC`) USING BTREE,
  INDEX `DETECT_INFO_PROCESS_3`(`MEM_USED_PERC`) USING BTREE,
  INDEX `INDEX_DET_PROCESS_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DET_PROCESS_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_snmp_trap
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_snmp_trap`;
CREATE TABLE `detect_info_snmp_trap`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `AGENT_SEND_IP` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `PDU_AGENT_IP` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `RECEIVER_TIME` bigint(22) NULL DEFAULT NULL,
  `TRAP_VERSION` bigint(22) NULL DEFAULT NULL,
  `GENERIC_TYPE` bigint(22) NULL DEFAULT NULL,
  `SPECIFIC_TYPE` bigint(22) NULL DEFAULT NULL,
  `TRAP_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `TRAP_OID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `TRAP_PDU_OIDS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `TRAP_PDU_OID_V` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `ORIGINAL_PDU` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL,
  `DATA_CHECK_TIME` datetime(0) NOT NULL,
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL,
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detect_info_system_date
-- ----------------------------
DROP TABLE IF EXISTS `detect_info_system_date`;
CREATE TABLE `detect_info_system_date`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `SERVICE_DATE` datetime(0) NULL DEFAULT NULL COMMENT '服务机时间',
  `DETECT_DATE` datetime(0) NULL DEFAULT NULL COMMENT '监控机时间',
  `TIME_DELAY` bigint(22) NULL DEFAULT NULL COMMENT '时间差（单位：分钟）',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECT_INFO_SYSTEM_DATE_1`(`DATA_CHECK_TIME`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14733 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detection_info
-- ----------------------------
DROP TABLE IF EXISTS `detection_info`;
CREATE TABLE `detection_info`  (
  `ID` bigint(20) NOT NULL DEFAULT 0,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id，外键',
  `CHECK_WAY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测方式不能为空，可选[0/1]0主动、1被动（设置为主动可能本记录为被动）',
  `DETECTION_STATE_INFO` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态信息',
  `PERFORMACE_DATA` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '性能数据',
  `CURRENT_TIMES` bigint(22) NULL DEFAULT NULL COMMENT '当前尝试次数',
  `START_TIME` datetime(0) NULL DEFAULT NULL COMMENT '开运时间',
  `WAIT_TIME` bigint(22) NULL DEFAULT NULL COMMENT '检测等待时间单位秒',
  `DELAY_TIME` bigint(22) NULL DEFAULT NULL COMMENT '检测时延单位秒',
  `NEXT_CHECK_TIME` datetime(0) NULL DEFAULT NULL COMMENT '下一次计划主动式检测时间',
  `OFF_LINE` datetime(0) NULL DEFAULT NULL COMMENT '计划宕机时间',
  `POLICE_LEVEL` bigint(22) NULL DEFAULT NULL COMMENT '预警级别',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '被监控状态是否正常：-1执行不成功；0不正常；1正常',
  `NODE_IP` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主机ip，标识主机位置',
  `STATUS_CHANGE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '监控状态最后一次变化时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间 数字类型',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间 数字类型',
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理节点唯一标识',
  `POLICE_EMERGENT` bigint(22) NULL DEFAULT NULL COMMENT '告警是否紧急 0：紧急  1：非紧急',
  `INSERT_DB_TIME` datetime(0) NULL DEFAULT NULL COMMENT '入库时间',
  `SEQUENCE` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号',
  PRIMARY KEY (`SEQUENCE`, `DATA_CHECK_TIME`, `ID`) USING BTREE,
  INDEX `DETECTION_INFO_DATA_CHECK_TIME`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `INDEX_DI_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DI_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 155463 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detection_info_new
-- ----------------------------
DROP TABLE IF EXISTS `detection_info_new`;
CREATE TABLE `detection_info_new`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id，外键',
  `CHECK_WAY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测方式不能为空，可选[0/1]0主动、1被动（设置为主动可能本记录为被动）',
  `DETECTION_STATE_INFO` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态信息',
  `PERFORMACE_DATA` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '性能数据',
  `CURRENT_TIMES` bigint(22) NULL DEFAULT NULL COMMENT '当前尝试次数',
  `START_TIME` datetime(0) NULL DEFAULT NULL COMMENT '开运时间',
  `WAIT_TIME` bigint(22) NULL DEFAULT NULL COMMENT '检测等待时间单位秒',
  `DELAY_TIME` bigint(22) NULL DEFAULT NULL COMMENT '检测时延单位秒',
  `NEXT_CHECK_TIME` datetime(0) NULL DEFAULT NULL COMMENT '下一次计划主动式检测时间',
  `OFF_LINE` datetime(0) NULL DEFAULT NULL COMMENT '计划宕机时间',
  `POLICE_LEVEL` bigint(22) NULL DEFAULT NULL COMMENT '预警级别',
  `DATA_CHECK_TIME` datetime(0) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '被监控状态是否正常：0不正常；1正常',
  `NODE_IP` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主机ip，标识主机位置',
  `STATUS_CHANGE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '监控状态最后一次变化时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间 数字类型',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间 数字类型',
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理节点唯一标识',
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT 'detection_info表主键',
  `VALID` bigint(22) NULL DEFAULT 1 COMMENT '监测数据是否有效，1有效，0无效，默认有效',
  `POLICE_EMERGENT` bigint(22) NULL DEFAULT 1 COMMENT '告警是否紧急 0：紧急  1：非紧急',
  PRIMARY KEY (`ID`) USING BTREE,
  INDEX `DETECTION_INFO_NEW_CT`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `FK_DETECTION_SET_INFO_NEW`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 101016 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '监控数据表(最新数据:最后一次监测数据信息表)' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for detection_info_warning
-- ----------------------------
DROP TABLE IF EXISTS `detection_info_warning`;
CREATE TABLE `detection_info_warning`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id，外键',
  `CHECK_WAY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测方式不能为空，可选[0/1]0主动、1被动（设置为主动可能本记录为被动）',
  `DETECTION_STATE_INFO` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态信息',
  `PERFORMACE_DATA` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '性能数据',
  `CURRENT_TIMES` bigint(22) NULL DEFAULT NULL COMMENT '当前尝试次数',
  `START_TIME` datetime(0) NULL DEFAULT NULL COMMENT '开机时间（开运时间）',
  `WAIT_TIME` bigint(22) NULL DEFAULT NULL COMMENT '检测等待时间单位秒',
  `DELAY_TIME` bigint(22) NULL DEFAULT NULL COMMENT '检测时延单位秒',
  `NEXT_CHECK_TIME` datetime(0) NULL DEFAULT NULL COMMENT '下一次计划主动式检测时间',
  `OFF_LINE` datetime(0) NULL DEFAULT NULL COMMENT '计划宕机时间',
  `POLICE_LEVEL` bigint(22) NULL DEFAULT NULL COMMENT '预警级别',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `NOTICE_FLAG` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否已发通知:0未发；1已发',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '被监控状态是否正常：0不正常；1正常',
  `NOTICE_INFO` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '警告信息',
  `NODE_IP` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主机ip，标识主机位置',
  `STATUS_CHANGE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '监控状态最后一次变化时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间 数字类型',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间 数字类型',
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理节点唯一标识',
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT 'detection_info表主键',
  `VALID` int(22) NULL DEFAULT 1 COMMENT '告警数据是否有效，1有效，0无效，默认有效',
  `POLICE_EMERGENT` int(22) NULL DEFAULT 1 COMMENT '告警是否紧急 0：紧急  1：非紧急',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DETECTION_INFO_WARNING_CT`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `INDEX_DIW_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DIW_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 158630 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '监控数据表(需警告数据)' ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for detection_set_info
-- ----------------------------
DROP TABLE IF EXISTS `detection_set_info`;
CREATE TABLE `detection_set_info`  (
  `ID` bigint(20) NOT NULL DEFAULT 0,
  `NODE_IP` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主机ip，标识主机位置',
  `CHECK_TYPE_ID` bigint(22) NULL DEFAULT NULL COMMENT '外键对应check_type_info表的id；监测类别id:监测类别：ping；cpu;硬盘；内存；软件进程等等对应的id',
  `CHECK_GAP` bigint(22) NULL DEFAULT NULL COMMENT '监测时间间隔单位分钟：不能为空，默认15分钟。监测在设置后获取一次数据，然后按间隔获取；如果只监测一次，把时间设置足够长',
  `CHECK_WAY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测方式：0，1；不能为空，默认1被动',
  `CHECK_OUT_TIME` bigint(22) NULL DEFAULT NULL COMMENT '超时时间(单位秒)：0为无限制，默认值为0',
  `CHECK_MAX_TIMES` bigint(22) NULL DEFAULT NULL COMMENT '最大测试次数：如果第一次不成功，重新执行最大次数',
  `PROCESS_IDEN` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设置标识（只能使用26个字母和数字，不区分大小写，在监控信息交互方面与检测类别用于Server向Client端发送映射关系如：cpu：detect_info_cpu）',
  `DETECTION_SET_STATE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '监测设置的状态0无效；1有效;是否有效，如果有效按设置执行监测，否则不再执行该监测',
  `PROCESS_FILE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '进程名称',
  `PROCESS_PATH` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '进程执行文件路径',
  `OID` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'OID：SNMP对应的OID',
  `IS_CONTROL_START` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否系统启动（NMSAgent启动/第三方自己启动）；默认0手工启动；1NCt启动',
  `IS_ISSUE_FILE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否需下发文件：0需要；1不需要 默认1',
  `IS_ISSUED` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件下发是否成功;0成功；1不成功 默认1',
  `CONTROL_START_TIME` datetime(0) NULL DEFAULT NULL COMMENT '控制启动时间',
  `UPLOAD_GAP` bigint(22) NULL DEFAULT NULL COMMENT '上传数据时间间隔单位分钟：不能为空，默认15分钟。监测数据上传到NMSServer周期',
  `IS_ISSUE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否下发设置：0下发；1未下发 默认值为1如新添加或者修改一项设置之后设置为未下发，需要完成其他配置信息后才执行一次下发',
  `PLAN_CHECK_TIME` datetime(0) NULL DEFAULT NULL COMMENT '计划检测时间:针对当前配置信息首次执行时间',
  `GROUP_ID` int(11) NULL DEFAULT NULL COMMENT '节点组ID',
  `VIEW_LEVEL` bigint(22) NULL DEFAULT NULL COMMENT '查看级别1个人2组内3系统内4无限制',
  `CONTACT_USER_IDS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系人ID,逗号间隔',
  `CREATE_USER_ID` bigint(22) NULL DEFAULT NULL COMMENT '创建者ID',
  `CREATE_USERGROUP_ID` bigint(22) NULL DEFAULT NULL COMMENT '创建者所在用户组ID',
  `SYSTEM_ID` bigint(22) NULL DEFAULT NULL COMMENT '系统ID',
  `NODE_GROUPS_ID` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设置的有效节点组范围',
  `NODE_IPS_ID` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设置的有效节点范围。如果有NODES_IP有值则不管节点组的有效范围；如果NODES_IP无值则使用节点组的范围；如果NODES_IP和NODE_GROUPS_ID均为空则有效范围是SYSTEM_ID系统内全部有效节点；如果三者均为空则有效范围为NMS系统内全部有效节点',
  `PROCESS_IDEN_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设置名称：如果是进程则是进程标识.进程标识，根据标识获取相应的进程信息',
  `PROCESS_SEARCH_KEYCODE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '进程搜索关键字  用于NC进程监测',
  PRIMARY KEY (`ID`) USING BTREE,
  INDEX `GROUP_ID`(`GROUP_ID`) USING BTREE,
  CONSTRAINT `detection_set_info_ibfk_1` FOREIGN KEY (`GROUP_ID`) REFERENCES `nodegroup_table` (`group_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '监测设置表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of detection_set_info
-- ----------------------------
INSERT INTO `detection_set_info` VALUES (0, '', 0, 5, '1', 0, 3, 'servicessysinfo', '1', '', '', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, '', 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.servicessysinfo.PROCESS_IDEN_NAME_n81i', '');
INSERT INTO `detection_set_info` VALUES (1, NULL, 1, 5, '1', 0, 3, 'cpu', '1', NULL, NULL, NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.cpu.PROCESS_IDEN_NAME_n81i', NULL);
INSERT INTO `detection_set_info` VALUES (2, NULL, 2, 5, '1', 0, 3, 'memory', '1', NULL, NULL, NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.memory.PROCESS_IDEN_NAME_n81i', NULL);
INSERT INTO `detection_set_info` VALUES (3, NULL, 3, 5, '1', 0, 3, 'disk', '1', NULL, NULL, NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.disk.PROCESS_IDEN_NAME_n81i', NULL);
INSERT INTO `detection_set_info` VALUES (4, NULL, 4, 5, '1', 0, 3, 'net', '1', NULL, NULL, NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.net.PROCESS_IDEN_NAME_n81i', NULL);
INSERT INTO `detection_set_info` VALUES (5, '', 5, 5, '0', 0, 3, 'systemdate', '1', '', '', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, '', 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.systemdate.PROCESS_IDEN_NAME_n81i', '');
INSERT INTO `detection_set_info` VALUES (6, NULL, 6, 5, '0', 0, 3, 'ping', '1', NULL, NULL, NULL, '1', '1', '1', NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'PING', NULL);
INSERT INTO `detection_set_info` VALUES (7, NULL, 7, 5, '0', 0, 3, 'nmsclient', '1', NULL, NULL, NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.nmsclient.PROCESS_IDEN_NAME_n81i', NULL);
INSERT INTO `detection_set_info` VALUES (8, NULL, 9, 5, '0', 10, 3, 'SYSTEM', '1', NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.SYSTEM.PROCESS_IDEN_NAME_n81i', NULL);
INSERT INTO `detection_set_info` VALUES (9, NULL, 10, 5, '0', 10, 3, 'switchport', '0', NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, NULL, -1, NULL, NULL, 'i18n_detection_set_info.switchport.PROCESS_IDEN_NAME_n81i', NULL);

-- ----------------------------
-- Table structure for device_boardsolt_board
-- ----------------------------
DROP TABLE IF EXISTS `device_boardsolt_board`;
CREATE TABLE `device_boardsolt_board`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `device_brand_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '品牌code',
  `device_board_solt_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '槽位code',
  `device_board_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '板卡code',
  `device_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设备型号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备板槽板子对应关系表，每个板槽都可用放什么板子' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of device_boardsolt_board
-- ----------------------------
INSERT INTO `device_boardsolt_board` VALUES (18, 'CEIEC', 'CILD10-04-1', 'PPB-C8H16X-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (19, 'CEIEC', 'CILD10-04-1', 'W-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (20, 'CEIEC', 'CILD10-04-1', 'OPB-A2LS-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (21, 'CEIEC', 'CILD10-04-2', 'PPB-C8H16X-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (22, 'CEIEC', 'CILD10-04-2', 'W-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (23, 'CEIEC', 'CILD10-04-2', 'OPB-A2LS-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (24, 'CEIEC', 'CILD10-04-3', 'PPB-C8H16X-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (25, 'CEIEC', 'CILD10-04-3', 'W-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (26, 'CEIEC', 'CILD10-04-3', 'OPB-A2LS-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (27, 'CEIEC', 'CILD10-04-4', 'CPB-CPPC-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (28, 'CEIEC', 'CILD10-04-4', 'N-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (29, 'CEIEC', 'CILD10-04-5', 'CPB-CPPC-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (30, 'CEIEC', 'CILD10-04-5', 'N-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (31, 'CEIEC', 'CILD10-04-6', 'PPB-C8H16X-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (32, 'CEIEC', 'CILD10-04-6', 'W-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (33, 'CEIEC', 'CILD10-04-6', 'OPB-A2LS-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (34, 'CEIEC', 'CILD10-04-7', 'PPB-C8H16X-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (35, 'CEIEC', 'CILD10-04-7', 'W-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (36, 'CEIEC', 'CILD10-04-7', 'OPB-A2LS-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (37, 'CEIEC', 'CILD10-04-8', 'PPB-C8H16X-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (38, 'CEIEC', 'CILD10-04-8', 'W-BLANK', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (39, 'CEIEC', 'CILD10-04-8', 'OPB-A2LS-I', 'CILD10-04');
INSERT INTO `device_boardsolt_board` VALUES (42, 'CEIEC', 'CILD100-01-2', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (43, 'CEIEC', 'CILD100-01-2', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (44, 'CEIEC', 'CILD100-01-3', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (45, 'CEIEC', 'CILD100-01-3', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (46, 'CEIEC', 'CILD100-01-4', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (47, 'CEIEC', 'CILD100-01-4', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (48, 'CEIEC', 'CILD100-01-5', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (49, 'CEIEC', 'CILD100-01-5', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (50, 'CEIEC', 'CILD100-01-6', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (51, 'CEIEC', 'CILD100-01-6', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (52, 'CEIEC', 'CILD100-01-7', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (53, 'CEIEC', 'CILD100-01-7', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (54, 'CEIEC', 'CILD100-01-8', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (55, 'CEIEC', 'CILD100-01-8', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (56, 'CEIEC', 'CILD100-01-9', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (57, 'CEIEC', 'CILD100-01-9', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (58, 'CEIEC', 'CILD100-01-10', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (59, 'CEIEC', 'CILD100-01-10', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (60, 'CEIEC', 'CILD100-01-11', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (61, 'CEIEC', 'CILD100-01-11', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (62, 'CEIEC', 'CILD100-01-12', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (63, 'CEIEC', 'CILD100-01-12', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (64, 'CEIEC', 'CILD100-01-1', 'CE-XGBB8-QOPC-2S', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (65, 'CEIEC', 'CILD100-01-1', 'LIG-EDA-2CGE-24XGESFP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (66, 'CEIEC', 'CILD100-01-13', 'CILD100-01-MCP', 'CILD100-01');
INSERT INTO `device_boardsolt_board` VALUES (67, 'CEIEC', 'CILD100-01-14', 'CILD100-01-MCP', 'CILD100-01');

-- ----------------------------
-- Table structure for device_brand_info
-- ----------------------------
DROP TABLE IF EXISTS `device_brand_info`;
CREATE TABLE `device_brand_info`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `device_rand_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备品牌代码，不重复',
  `device_rand_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备品牌',
  `device_brand_desc` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
  `add_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
  `add_userid` int(11) NULL DEFAULT NULL COMMENT '添加人',
  `last_update_time` datetime(0) NULL DEFAULT NULL COMMENT '最后更改时间',
  `last_update_userid` int(11) NULL DEFAULT NULL COMMENT '最后更改人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备品牌表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of device_brand_info
-- ----------------------------
INSERT INTO `device_brand_info` VALUES (1, 'CEIEC', 'CEIEC', 'CEIEC', '2018-08-31 16:16:29', 1, '2018-08-31 16:16:29', 1);

-- ----------------------------
-- Table structure for device_brand_type
-- ----------------------------
DROP TABLE IF EXISTS `device_brand_type`;
CREATE TABLE `device_brand_type`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `device_brand_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设备品牌代码',
  `par_device_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设备代码',
  `sub_device_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设备板子代码',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备品牌板子类型对应表多对多' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of device_brand_type
-- ----------------------------
INSERT INTO `device_brand_type` VALUES (2, 'CEIEC', 'CILD10-04', 'PPB-C8H16X-I');
INSERT INTO `device_brand_type` VALUES (3, 'CEIEC', 'CILD10-04', 'CPB-CPPC-I');
INSERT INTO `device_brand_type` VALUES (4, 'CEIEC', 'CILD10-04', 'N-BLANK');
INSERT INTO `device_brand_type` VALUES (5, 'CEIEC', 'CILD10-04', 'W-BLANK');
INSERT INTO `device_brand_type` VALUES (6, 'CEIEC', 'CILD10-04', 'OPB-A2LS-I');
INSERT INTO `device_brand_type` VALUES (7, 'CEIEC', 'CILD100-01', 'CILD100-01-MCP');
INSERT INTO `device_brand_type` VALUES (8, 'CEIEC', 'CILD100-01', 'CE-XGBB8-QOPC-2S');
INSERT INTO `device_brand_type` VALUES (9, 'CEIEC', 'CILD100-01', 'LIG-EDA-2CGE-24XGESFP');

-- ----------------------------
-- Table structure for device_info
-- ----------------------------
DROP TABLE IF EXISTS `device_info`;
CREATE TABLE `device_info`  (
  `device_id` bigint(20) NOT NULL DEFAULT 0,
  `device_locate` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `device_made` varchar(3) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `device_type` varchar(3) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `commu_addr` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `commu_mac` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `commu_mask` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `commu_gateway` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `manage_addr` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `manage_mac` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `manage_mask` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `manage_gateway` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `center_ip1` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `center_ip2` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `soft_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `dns_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `ip_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `swip_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `geoip_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `sen_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `spe_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `mail_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `own_version` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `commu_interface` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `manage_interface` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `insititue` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `update_time` datetime(0) NULL DEFAULT NULL,
  PRIMARY KEY (`device_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for device_type_info
-- ----------------------------
DROP TABLE IF EXISTS `device_type_info`;
CREATE TABLE `device_type_info`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `device_type_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备型号，不重复',
  `device_rand_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备品牌代码',
  `device_desc` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
  `show_index` decimal(22, 0) NULL DEFAULT NULL COMMENT '级别下位置序号，注意从0还是从1开始',
  `pid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '父级标识（Device_type_code）',
  `figure_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '图片类型，rect、circle、image等svg图形类型',
  `figure_x` decimal(22, 0) NULL DEFAULT NULL COMMENT 'X坐标',
  `figure_y` decimal(22, 0) NULL DEFAULT NULL COMMENT 'Y坐标',
  `figure_width` decimal(22, 0) NULL DEFAULT NULL COMMENT '宽',
  `figure_height` decimal(22, 0) NULL DEFAULT NULL COMMENT '高',
  `figure_stroke` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '边颜色',
  `figure_stroke_width` decimal(22, 0) NULL DEFAULT NULL COMMENT '边宽',
  `figure_fill` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '填充色：图形为填充色；image为xlink:href内容',
  `name_format` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '命名格式：Name[x]/[y]其中的x(板卡位置)y（端口位置）是要替换的内容',
  `add_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
  `add_userid` int(11) NULL DEFAULT NULL COMMENT '添加人',
  `last_update_time` datetime(0) NULL DEFAULT NULL COMMENT '最后更改时间',
  `last_update_userid` int(11) NULL DEFAULT NULL COMMENT '最后更改人',
  `di_table_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `index_filed` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `status_filed` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `status_symbols` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `status_value` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `show_level` decimal(22, 0) NULL DEFAULT NULL COMMENT '图形级别，最多支持5级',
  `is_link` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否有链接，1是，0否，对应node_figure_info表的IS_LEAF字段',
  `is_leaf` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否叶子设备（叶子设备不会再有设备接到它上面），1是，0否，',
  `max_device_num` decimal(22, 0) NULL DEFAULT 1 COMMENT '设备最大叠加数',
  `is_positiondev` decimal(22, 0) NULL DEFAULT 0 COMMENT '是否为槽位设备，1是，0否',
  `has_instance` decimal(22, 0) NULL DEFAULT 1 COMMENT '是否配置实例，1是，0否',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备型号表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of device_type_info
-- ----------------------------
INSERT INTO `device_type_info` VALUES (2, 'CILD10-04', 'CEIEC', '', 1, '0', 'image', 35, 35, 442, 573, 'red', 1, 'CILD10-04.png', 'CILD10-04', '2018-08-31 19:12:31', 1, '2018-08-31 19:12:31', 1, 'DI_SYSTEM', '', '', '', '', 1, 0, 0, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (3, 'CILD10-04-1', 'CEIEC', 'CILD10-04-1', 1, '2', 'image', 22, 404, 397, 41, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (4, 'CILD10-04-2', 'CEIEC', 'CILD10-04-2', 2, '2', 'image', 22, 361, 397, 41, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (5, 'CILD10-04-3', 'CEIEC', 'CILD10-04-3', 3, '2', 'image', 22, 321, 397, 41, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (6, 'CILD10-04-4', 'CEIEC', 'CILD10-04-4', 4, '2', 'image', 22, 285, 397, 31, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (7, 'CILD10-04-5', 'CEIEC', 'CILD10-04-5', 5, '2', 'image', 23, 252, 397, 31, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (8, 'CILD10-04-6', 'CEIEC', 'CILD10-04-6', 6, '2', 'image', 22, 210, 397, 41, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (9, 'CILD10-04-7', 'CEIEC', 'CILD10-04-7', 7, '2', 'image', 22, 170, 397, 41, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (10, 'CILD10-04-8', 'CEIEC', 'CILD10-04-8', 8, '2', 'image', 22, 128, 397, 41, 'red', 1, NULL, NULL, '2018-08-31 19:13:11', 1, '2018-08-31 19:13:11', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (11, 'PPB-C8H16X-I', 'CEIEC', '', 1, '0', 'image', 35, 35, 397, 41, 'red', 1, 'PPB-C8H116X-I.png', 'PPB-C8H116X-I', '2018-08-31 19:18:01', 1, '2018-08-31 19:18:01', 1, '', '', '', '', '', 2, 0, 0, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (12, 'CPB-CPPC-I', 'CEIEC', '', 1, '0', 'image', 35, 35, 397, 31, 'red', 1, 'CPB-CPPC-I.png', 'CPB-CPPC-I', '2018-08-31 19:19:51', 1, '2018-08-31 19:19:51', 1, '', '', '', '', '', 2, 0, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (13, 'N-BLANK', 'CEIEC', '', 1, '0', 'image', 35, 35, 397, 31, 'red', 1, 'N-BLANK.png', 'N-BLANK', '2018-08-31 19:21:16', 1, '2018-08-31 19:21:16', 1, '', '', '', '', '', 2, 0, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (14, 'W-BLANK', 'CEIEC', '', 1, '0', 'image', 35, 35, 397, 41, 'red', 1, 'W-BLANK.png', 'W-BLANK', '2018-08-31 19:21:48', 1, '2018-08-31 19:21:48', 1, '', '', '', '', '', 2, 0, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (15, 'PPB-C8H16X-I-1-1', 'CEIEC', 'PPB-C8H16X-I-1-1', 1, '11', 'image', 58, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (16, 'PPB-C8H16X-I-1-2', 'CEIEC', 'PPB-C8H16X-I-1-2', 2, '11', 'image', 58, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (17, 'PPB-C8H16X-I-1-3', 'CEIEC', 'PPB-C8H16X-I-1-3', 3, '11', 'image', 72, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (18, 'PPB-C8H16X-I-1-4', 'CEIEC', 'PPB-C8H16X-I-1-4', 4, '11', 'image', 73, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (19, 'PPB-C8H16X-I-1-5', 'CEIEC', 'PPB-C8H16X-I-1-5', 5, '11', 'image', 86, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (20, 'PPB-C8H16X-I-1-6', 'CEIEC', 'PPB-C8H16X-I-1-6', 6, '11', 'image', 86, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (21, 'PPB-C8H16X-I-1-7', 'CEIEC', 'PPB-C8H16X-I-1-7', 7, '11', 'image', 100, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (22, 'PPB-C8H16X-I-1-8', 'CEIEC', 'PPB-C8H16X-I-1-8', 8, '11', 'image', 100, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (23, 'PPB-C8H16X-I-1-9', 'CEIEC', 'PPB-C8H16X-I-1-9', 9, '11', 'image', 115, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (24, 'PPB-C8H16X-I-1-10', 'CEIEC', 'PPB-C8H16X-I-1-10', 10, '11', 'image', 115, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (25, 'PPB-C8H16X-I-1-11', 'CEIEC', 'PPB-C8H16X-I-1-11', 11, '11', 'image', 129, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (26, 'PPB-C8H16X-I-1-12', 'CEIEC', 'PPB-C8H16X-I-1-12', 12, '11', 'image', 129, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/1/[Y]', '2018-08-31 19:38:56', 1, '2018-08-31 19:38:56', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (27, 'PPB-C8H16X-I-2-1', 'CEIEC', 'PPB-C8H16X-I-2-1', 1, '11', 'image', 284, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (28, 'PPB-C8H16X-I-2-2', 'CEIEC', 'PPB-C8H16X-I-2-2', 2, '11', 'image', 284, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (29, 'PPB-C8H16X-I-2-3', 'CEIEC', 'PPB-C8H16X-I-2-3', 3, '11', 'image', 299, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (30, 'PPB-C8H16X-I-2-4', 'CEIEC', 'PPB-C8H16X-I-2-4', 4, '11', 'image', 299, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (31, 'PPB-C8H16X-I-2-5', 'CEIEC', 'PPB-C8H16X-I-2-5', 5, '11', 'image', 312, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (32, 'PPB-C8H16X-I-2-6', 'CEIEC', 'PPB-C8H16X-I-2-6', 6, '11', 'image', 312, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (33, 'PPB-C8H16X-I-2-7', 'CEIEC', 'PPB-C8H16X-I-2-7', 7, '11', 'image', 327, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (34, 'PPB-C8H16X-I-2-8', 'CEIEC', 'PPB-C8H16X-I-2-8', 8, '11', 'image', 327, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (35, 'PPB-C8H16X-I-2-9', 'CEIEC', 'PPB-C8H16X-I-2-9', 9, '11', 'image', 341, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (36, 'PPB-C8H16X-I-2-10', 'CEIEC', 'PPB-C8H16X-I-2-10', 10, '11', 'image', 341, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (37, 'PPB-C8H16X-I-2-11', 'CEIEC', 'PPB-C8H16X-I-2-11', 11, '11', 'image', 356, 5, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (38, 'PPB-C8H16X-I-2-12', 'CEIEC', 'PPB-C8H16X-I-2-12', 12, '11', 'image', 356, 19, 12, 10, 'red', 1, 'FF-N3100-port.png', 'xgei_[X]/2/[Y]', '2018-08-31 19:40:04', 1, '2018-08-31 19:40:04', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (39, 'OPB-A2LS-I', 'CEIEC', '', 1, '0', 'image', 35, 35, 397, 41, 'red', 1, 'OPB-A2LS-I.png', 'OPB-A2LS-I', '2018-08-31 20:01:01', 1, '2018-08-31 20:01:01', 1, '', '', '', '', '', 2, 0, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (40, 'CILD100-01', 'CEIEC', '', 1, '0', 'image', 35, 35, 442, 775, 'red', 1, 'CILD100-01-FRAME.png', 'CILD100-01', '2018-08-31 20:13:12', 1, '2018-08-31 20:13:12', 1, 'DI_SYSTEM', '', '', '', '', 1, 0, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (41, 'CILD100-01-1', 'CEIEC', 'CILD100-01-1', 1, '40', 'image', 59, 37, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (42, 'CILD100-01-2', 'CEIEC', 'CILD100-01-2', 2, '40', 'image', 58, 78, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (43, 'CILD100-01-3', 'CEIEC', 'CILD100-01-3', 3, '40', 'image', 59, 118, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (44, 'CILD100-01-4', 'CEIEC', 'CILD100-01-4', 4, '40', 'image', 59, 158, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (45, 'CILD100-01-5', 'CEIEC', 'CILD100-01-5', 5, '40', 'image', 59, 198, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (46, 'CILD100-01-6', 'CEIEC', 'CILD100-01-6', 6, '40', 'image', 58, 238, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (47, 'CILD100-01-7', 'CEIEC', 'CILD100-01-7', 7, '40', 'image', 60, 358, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (48, 'CILD100-01-8', 'CEIEC', 'CILD100-01-8', 8, '40', 'image', 59, 398, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (49, 'CILD100-01-9', 'CEIEC', 'CILD100-01-9', 9, '40', 'image', 59, 438, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (50, 'CILD100-01-10', 'CEIEC', 'CILD100-01-10', 10, '40', 'image', 59, 478, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (51, 'CILD100-01-11', 'CEIEC', 'CILD100-01-11', 11, '40', 'image', 59, 518, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (52, 'CILD100-01-12', 'CEIEC', 'CILD100-01-12', 12, '40', 'image', 59, 557, 349, 39, 'red', 1, NULL, NULL, '2018-08-31 20:14:03', 1, '2018-08-31 20:14:03', 1, NULL, NULL, NULL, NULL, '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (53, 'CILD100-01-MCP', 'CEIEC', '', 1, '0', 'image', 35, 35, 349, 43, 'red', 1, 'CILD100-01-MCP.png', 'CILD100-01-MCP', '2018-09-02 14:41:46', 1, '2018-09-02 14:41:46', 1, '', '', '', '', '', 2, 0, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (54, 'CE-XGBB8-QOPC-2S', 'CEIEC', '', 1, '0', 'image', 35, 35, 349, 43, 'red', 1, 'CE-XGBB8-QOPC-2S.png', 'CE-XGBB8-QOPC-2S', '2018-09-02 14:42:29', 1, '2018-09-02 14:42:29', 1, '', '', '', '', '', 2, 0, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (55, 'LIG-EDA-2CGE-24XGESFP', 'CEIEC', '', 1, '0', 'image', 35, 35, 349, 42, 'red', 1, 'LIG-EDA-2CGE-24XGESFP.png', 'LIG-EDA-2CGE-24XGESFP', '2018-09-02 14:44:06', 1, '2018-09-02 14:44:06', 1, '', '', '', '', '', 2, 1, 0, NULL, 0, 0);
INSERT INTO `device_type_info` VALUES (56, 'LIG-EDA-2CGE-24XGESFP-2', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-2', 2, '55', 'image', 176, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (57, 'LIG-EDA-2CGE-24XGESFP-3', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-3', 3, '55', 'image', 189, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (58, 'LIG-EDA-2CGE-24XGESFP-4', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-4', 4, '55', 'image', 189, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (59, 'LIG-EDA-2CGE-24XGESFP-5', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-5', 5, '55', 'image', 201, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (60, 'LIG-EDA-2CGE-24XGESFP-6', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-6', 6, '55', 'image', 201, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (61, 'LIG-EDA-2CGE-24XGESFP-7', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-7', 7, '55', 'image', 214, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (62, 'LIG-EDA-2CGE-24XGESFP-8', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-8', 8, '55', 'image', 214, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (63, 'LIG-EDA-2CGE-24XGESFP-9', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-9', 9, '55', 'image', 227, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (64, 'LIG-EDA-2CGE-24XGESFP-10', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-10', 10, '55', 'image', 227, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (65, 'LIG-EDA-2CGE-24XGESFP-11', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-11', 11, '55', 'image', 239, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (66, 'LIG-EDA-2CGE-24XGESFP-12', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-12', 12, '55', 'image', 239, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (67, 'LIG-EDA-2CGE-24XGESFP-13', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-13', 13, '55', 'image', 255, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (68, 'LIG-EDA-2CGE-24XGESFP-14', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-14', 14, '55', 'image', 255, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (69, 'LIG-EDA-2CGE-24XGESFP-15', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-15', 15, '55', 'image', 267, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (70, 'LIG-EDA-2CGE-24XGESFP-16', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-16', 16, '55', 'image', 267, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (71, 'LIG-EDA-2CGE-24XGESFP-17', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-17', 17, '55', 'image', 280, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (72, 'LIG-EDA-2CGE-24XGESFP-18', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-18', 18, '55', 'image', 280, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:55:40', 1, '2018-09-02 15:55:40', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (73, 'LIG-EDA-2CGE-24XGESFP-1', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-1', 1, '55', 'image', 176, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'gei-0/[X]/0/[Y]', '2018-09-02 15:57:11', 1, '2018-09-02 15:57:11', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (74, 'LIG-EDA-2CGE-24XGESFP-19', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-19', 19, '55', 'image', 293, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'gei-0/[X]/0/[Y]', '2018-09-02 15:58:19', 1, '2018-09-02 15:58:19', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (75, 'LIG-EDA-2CGE-24XGESFP-20', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-20', 20, '55', 'image', 293, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'gei-0/[X]/0/[Y]', '2018-09-02 15:58:19', 1, '2018-09-02 15:58:19', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (76, 'LIG-EDA-2CGE-24XGESFP-21', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-21', 21, '55', 'image', 306, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:59:09', 1, '2018-09-02 15:59:09', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (77, 'LIG-EDA-2CGE-24XGESFP-22', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-22', 22, '55', 'image', 306, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:59:09', 1, '2018-09-02 15:59:09', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (78, 'LIG-EDA-2CGE-24XGESFP-23', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-23', 23, '55', 'image', 319, 6, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:59:09', 1, '2018-09-02 15:59:09', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (79, 'LIG-EDA-2CGE-24XGESFP-24', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-24', 24, '55', 'image', 319, 18, 10, 8, 'red', 1, 'FF-N3100-port.png', 'xgei-0/[X]/0/[Y]', '2018-09-02 15:59:09', 1, '2018-09-02 15:59:09', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (80, 'LIG-EDA-2CGE-24XGESFP-25', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-25', 25, '55', 'image', 46, 13, 30, 12, 'red', 1, 'FF-N3100-port.png', 'cgei-0/[X]/0/[Y]', '2018-09-02 15:59:53', 1, '2018-09-02 15:59:53', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (81, 'LIG-EDA-2CGE-24XGESFP-26', 'CEIEC', 'LIG-EDA-2CGE-24XGESFP-26', 26, '55', 'image', 79, 13, 30, 12, 'red', 1, 'FF-N3100-port.png', 'cgei-0/[X]/0/[Y]', '2018-09-02 15:59:53', 1, '2018-09-02 15:59:53', 1, 'DI_SWITCHPORT', 'ifDescr', '', '', '', 3, 1, 1, 1, 0, 0);
INSERT INTO `device_type_info` VALUES (82, 'CILD100-01-13', 'CEIEC', 'T1', 13, '40', 'image', 58, 278, 349, 39, 'red', 1, NULL, 'CILD100-01-13', '2018-09-02 16:17:28', 1, '2018-09-02 16:17:54', 1, '', '', '', '', '', 2, 0, 0, 1, 1, 0);
INSERT INTO `device_type_info` VALUES (83, 'CILD100-01-14', 'CEIEC', 'T2', 14, '40', 'image', 58, 318, 349, 39, 'red', 1, NULL, 'CILD100-01-14', '2018-09-02 16:17:28', 1, '2018-09-02 16:18:05', 1, '', '', '', '', '', 2, 0, 0, 1, 1, 0);

-- ----------------------------
-- Table structure for di_base_info
-- ----------------------------
DROP TABLE IF EXISTS `di_base_info`;
CREATE TABLE `di_base_info`  (
  `DETECTION_INFO_ID` bigint(20) NOT NULL DEFAULT 0,
  `IP` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `NETCARD_NUM` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `BUSINESS_IP` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `DATA_CHECK_TIME` datetime(0) NOT NULL,
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL,
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `ID` bigint(22) NOT NULL,
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`, `DETECTION_INFO_ID`) USING BTREE,
  INDEX `DI_BASE_INFO_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DI_BASE_INFO_2`(`SEQ_ID`) USING BTREE,
  INDEX `DI_BASE_INFO_3`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_businesspro
-- ----------------------------
DROP TABLE IF EXISTS `di_businesspro`;
CREATE TABLE `di_businesspro`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `detection_info_id` bigint(20) NOT NULL,
  `module` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '进程所属业务进程',
  `pid` bigint(20) NULL DEFAULT NULL COMMENT '进程号',
  `cpupct` decimal(20, 2) NULL DEFAULT NULL COMMENT 'cpu占用百分比',
  `mempct` decimal(20, 2) NULL DEFAULT NULL COMMENT '内存占用百分比',
  `prostatus` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '进程状态',
  `propriority` bigint(20) NULL DEFAULT NULL COMMENT '进程调度优先级',
  `lstart` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '进程启动时间',
  `iscritical` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '最近是否有关键日志产生',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` int(11) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DETECTION_SET_INFO_ID` bigint(20) NULL DEFAULT NULL,
  `data_check_time` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `data_arrive_time` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `data_check_time_digital` bigint(20) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `data_arrive_time_digital` bigint(20) NULL DEFAULT NULL COMMENT '数据入库时间',
  PRIMARY KEY (`ID`, `data_check_time`) USING BTREE,
  INDEX `DI_BUSINESSPRO_1`(`data_check_time`) USING BTREE,
  INDEX `DI_BUSINESSPRO_2`(`SEQ_ID`) USING BTREE,
  INDEX `DI_BUSINESSPRO_3`(`DETECTION_SET_INFO_ID`) USING BTREE,
  INDEX `DI_BUSINESSPRO_4`(`cpupct`) USING BTREE,
  INDEX `DI_BUSINESSPRO_5`(`mempct`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12230 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic PARTITION BY RANGE (to_days(`data_check_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_c3glog
-- ----------------------------
DROP TABLE IF EXISTS `di_c3glog`;
CREATE TABLE `di_c3glog`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `detection_info_id` bigint(20) NOT NULL,
  `logpath` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `reptime` datetime(0) NULL DEFAULT NULL,
  `c3ip` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `gdevip` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `repcontent` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` int(11) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(20) NULL DEFAULT NULL,
  `data_check_time` datetime(0) NOT NULL,
  `data_arrive_time` datetime(0) NULL DEFAULT NULL,
  `data_check_time_digital` bigint(20) NULL DEFAULT NULL,
  `data_arrive_time_digital` bigint(20) NULL DEFAULT NULL,
  PRIMARY KEY (`ID`, `data_check_time`) USING BTREE,
  INDEX `DI_C3GLOG_1`(`data_check_time`) USING BTREE,
  INDEX `DI_C3GLOG_2`(`SEQ_ID`) USING BTREE,
  INDEX `DI_C3GLOG_3`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 896 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic PARTITION BY RANGE (to_days(`data_check_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_dklog
-- ----------------------------
DROP TABLE IF EXISTS `di_dklog`;
CREATE TABLE `di_dklog`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `detection_info_id` bigint(20) NOT NULL,
  `logpath` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `reptime` datetime(0) NULL DEFAULT NULL,
  `repcontent` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` int(11) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(20) NULL DEFAULT NULL,
  `data_check_time` datetime(0) NOT NULL,
  `data_arrive_time` datetime(0) NULL DEFAULT NULL,
  `data_check_time_digital` bigint(20) NULL DEFAULT NULL,
  `data_arrive_time_digital` bigint(20) NULL DEFAULT NULL,
  PRIMARY KEY (`ID`, `data_check_time`) USING BTREE,
  INDEX `DI_DKLOG_1`(`data_check_time`) USING BTREE,
  INDEX `DI_DKLOG_2`(`SEQ_ID`) USING BTREE,
  INDEX `DI_DKLOG_3`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1649 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic PARTITION BY RANGE (to_days(`data_check_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_ifxtable
-- ----------------------------
DROP TABLE IF EXISTS `di_ifxtable`;
CREATE TABLE `di_ifxtable`  (
  `detection_info_id` int(11) NOT NULL,
  `ifname` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `inmulticastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `inbroadcastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `outmulcastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `outbrocastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `ifhcinoctets` decimal(22, 0) NULL DEFAULT NULL,
  `hcinucastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `hcimulcastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `hcibrocastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `hcoutoctets` decimal(22, 0) NULL DEFAULT NULL,
  `hcoucastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `hcomulcastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `hcobrocastpkts` decimal(22, 0) NULL DEFAULT NULL,
  `linkupdowntrape` decimal(22, 0) NULL DEFAULT NULL,
  `ifhighspeed` decimal(22, 0) NULL DEFAULT NULL,
  `promiscuousmode` decimal(22, 0) NULL DEFAULT NULL,
  `connectorpresen` decimal(22, 0) NULL DEFAULT NULL,
  `ifalias` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `counterdisconti` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `detectioned_state` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `seq_id` decimal(22, 0) NULL DEFAULT NULL,
  `data_check_time` datetime(0) NOT NULL,
  `data_arrive_time` datetime(0) NULL DEFAULT NULL,
  `data_check_time_digital` decimal(22, 0) NULL DEFAULT NULL,
  `data_arrive_time_digital` decimal(22, 0) NULL DEFAULT NULL,
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `detection_set_info_id` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`id`, `data_check_time`) USING BTREE,
  INDEX `INDEX_DI_IFXTABLE_SET_ID`(`detection_set_info_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4268 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`data_check_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_propmstatus
-- ----------------------------
DROP TABLE IF EXISTS `di_propmstatus`;
CREATE TABLE `di_propmstatus`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `detection_info_id` bigint(20) NOT NULL,
  `propmStatus` bigint(20) NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` int(11) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(20) NULL DEFAULT NULL,
  `data_check_time` datetime(0) NOT NULL,
  `data_arrive_time` datetime(0) NULL DEFAULT NULL,
  `data_check_time_digital` bigint(20) NULL DEFAULT NULL,
  `data_arrive_time_digital` bigint(20) NULL DEFAULT NULL,
  PRIMARY KEY (`ID`, `data_check_time`) USING BTREE,
  INDEX `DI_PROPMSTATUS_1`(`data_check_time`) USING BTREE,
  INDEX `DI_PROPMSTATUS_2`(`SEQ_ID`) USING BTREE,
  INDEX `DI_PROPMSTATUS_3`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1666 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic PARTITION BY RANGE (to_days(`data_check_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_rule
-- ----------------------------
DROP TABLE IF EXISTS `di_rule`;
CREATE TABLE `di_rule`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `detection_info_id` bigint(20) NOT NULL,
  `ServiceIndex` bigint(20) NULL DEFAULT NULL,
  `ServiceCode` bigint(20) NULL DEFAULT NULL,
  `ServiceDesc` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `agedTime` bigint(20) NULL DEFAULT NULL,
  `ClientNum` bigint(20) NULL DEFAULT NULL,
  `RefluxPort` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `RuleNumber` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `usedRuleNum` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `leftRuleNum` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `HitTotalNum` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` int(11) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(20) NULL DEFAULT NULL,
  `data_check_time` datetime(0) NOT NULL,
  `data_arrive_time` datetime(0) NULL DEFAULT NULL,
  `data_check_time_digital` bigint(20) NULL DEFAULT NULL,
  `data_arrive_time_digital` bigint(20) NULL DEFAULT NULL,
  PRIMARY KEY (`ID`, `data_check_time`) USING BTREE,
  INDEX `DI_SUGON_RULE_1`(`data_check_time`) USING BTREE,
  INDEX `DI_SUGON_RULE_2`(`SEQ_ID`) USING BTREE,
  INDEX `DI_SUGON_RULE_3`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1277499 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic PARTITION BY RANGE (to_days(`data_check_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_switchport
-- ----------------------------
DROP TABLE IF EXISTS `di_switchport`;
CREATE TABLE `di_switchport`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `IFINDEX` bigint(22) NULL DEFAULT NULL COMMENT '索引',
  `IFDESCR` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
  `IFTYPE` bigint(22) NULL DEFAULT NULL COMMENT '端口类型',
  `IFMTU` bigint(22) NULL DEFAULT NULL COMMENT 'ifMtu',
  `IFSPEED` bigint(22) NULL DEFAULT NULL COMMENT '端口带宽',
  `IFPHYSADDRESS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'mac地址',
  `IFADMINSTATUS` bigint(22) NULL DEFAULT NULL COMMENT '管理状态',
  `IFOPERSTATUS` bigint(22) NULL DEFAULT NULL COMMENT '打开状态',
  `IFLASTCHANGE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '状态变更时间',
  `IFINOCTETS` bigint(22) NULL DEFAULT NULL COMMENT '接收的字节',
  `IFINUCASTPKTS` bigint(22) NULL DEFAULT NULL COMMENT '被承认的单向传输数据包',
  `IFINNUCASTPKTS` bigint(22) NULL DEFAULT NULL COMMENT '被承认的非单向传输数据包',
  `IFINDISCARDS` bigint(22) NULL DEFAULT NULL COMMENT '入站被丢弃的数据包',
  `IFINERRORS` bigint(22) NULL DEFAULT NULL COMMENT '入站错误数据包',
  `IFINUNKNOWNPROTOS` bigint(22) NULL DEFAULT NULL COMMENT '入站不知名的数据包',
  `IFOUTOCTETS` bigint(22) NULL DEFAULT NULL COMMENT '输出字节数',
  `IFOUTUCASTPKTS` bigint(22) NULL DEFAULT NULL COMMENT '单向传输数据包',
  `IFOUTNUCASTPKTS` bigint(22) NULL DEFAULT NULL COMMENT '非单向传输数据包',
  `IFOUTDISCARDS` bigint(22) NULL DEFAULT NULL COMMENT '出站被丢弃的数据包',
  `IFOUTERRORS` bigint(22) NULL DEFAULT NULL COMMENT '出站传输失败的数据包',
  `IFOUTQLEN` bigint(22) NULL DEFAULT NULL COMMENT '输出信息包排列的长度（数据包内）',
  `IFSPECIFIC` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '管理信息库（MIB）对端口详细的说明',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理位置节点',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `INOCTETSSPEED` bigint(22) NULL DEFAULT NULL COMMENT '输入速度',
  `INERRORSSCALE` bigint(22) NULL DEFAULT NULL COMMENT '输入错包率',
  `OUTOCTETSSPEED` bigint(22) NULL DEFAULT NULL COMMENT '输出速度',
  `OUTERRORSSCALE` bigint(22) NULL DEFAULT NULL COMMENT '输出错包率',
  `IFINDISCARDSPERC` bigint(22) NULL DEFAULT NULL COMMENT '输入丢包率',
  `IFOUTDISCARDSPERC` bigint(22) NULL DEFAULT NULL COMMENT '输出丢包率',
  `INPKTSSPEED` bigint(22) NULL DEFAULT NULL COMMENT '收包速率',
  `OUTPKTSSPEED` bigint(22) NULL DEFAULT NULL COMMENT '发包速率',
  `IFINDISCARDS_VARY` bigint(22) NULL DEFAULT NULL,
  `IFOUTDISCARDS_VARY` bigint(22) NULL DEFAULT NULL,
  `IFINERRORS_VARY` bigint(22) NULL DEFAULT NULL,
  `IFOUTERRORS_VARY` bigint(22) NULL DEFAULT NULL,
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `IFINOCTETS_T1` bigint(22) NULL DEFAULT NULL COMMENT '接收的字节',
  `IFINUCASTPKTS_T1` bigint(22) NULL DEFAULT NULL COMMENT '被承认的单向传输数据包',
  `IFINNUCASTPKTS_T1` bigint(22) NULL DEFAULT NULL COMMENT '被承认的非单向传输数据包',
  `IFOUTOCTETS_T1` bigint(22) NULL DEFAULT NULL COMMENT '输出字节数',
  `IFOUTUCASTPKTS_T1` bigint(22) NULL DEFAULT NULL COMMENT '单向传输数据包',
  `IFOUTNUCASTPKTS_T1` bigint(22) NULL DEFAULT NULL COMMENT '非单向传输数据包',
  `IFHIGHSPEED` bigint(22) NULL DEFAULT NULL COMMENT '端口速率单位（Mbps）',
  `DATA_64_FLAG` bigint(22) NULL DEFAULT NULL COMMENT '64位数据标识',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DI_SWITCHPORT_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `DI_SWITCHPORT_2`(`IFSPEED`) USING BTREE,
  INDEX `DI_SWITCHPORT_3`(`IFADMINSTATUS`) USING BTREE,
  INDEX `DI_SWITCHPORT_4`(`IFOUTOCTETS`) USING BTREE,
  INDEX `INDEX_DISW_SEQ_ID`(`SEQ_ID`) USING BTREE,
  INDEX `INDEX_DISW_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 341507 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_system
-- ----------------------------
DROP TABLE IF EXISTS `di_system`;
CREATE TABLE `di_system`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `SYSDESCR` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `SYSOBJECTID` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `SYSUPTIME` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `SYSCONTACT` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `SYSNAME` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `SYSLOCATION` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `SYSSERVICES` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL,
  `DATA_CHECK_TIME` datetime(0) NOT NULL,
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL,
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL,
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DI_SYSTEM_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `INDEX_DI_SYSTEM_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7950 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_systeminfo
-- ----------------------------
DROP TABLE IF EXISTS `di_systeminfo`;
CREATE TABLE `di_systeminfo`  (
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `HOST_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主机名称',
  `OPERATE_SYSTEM` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作系统和发行版本',
  `CPU_CNT` bigint(22) NULL DEFAULT NULL COMMENT 'CPU核数',
  `CPU_MHZ` bigint(22) NULL DEFAULT NULL COMMENT '主频',
  `MEMORY_SIZE` bigint(22) NULL DEFAULT NULL COMMENT '内存大小(单位：G)',
  `SWAP_SIZE` bigint(22) NULL DEFAULT NULL COMMENT 'SWAP大小(单位\\: G)',
  `DISK_SIZE` bigint(22) NULL DEFAULT NULL COMMENT '硬盘总大小(单位\\: G)',
  `NET_CNT` bigint(22) NULL DEFAULT NULL COMMENT '逻辑网卡数量',
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL COMMENT '物理节点位置',
  `DATA_CHECK_TIME` datetime(0) NOT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '数据入库时间',
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '获取监测数据时间',
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL COMMENT '数据入库时间',
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL COMMENT '监测设置id',
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `DI_SYSTEMINFO_1`(`DATA_CHECK_TIME`) USING BTREE,
  INDEX `INDEX_DI_SYSTEMINFO_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5022 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_systeminfo_disk
-- ----------------------------
DROP TABLE IF EXISTS `di_systeminfo_disk`;
CREATE TABLE `di_systeminfo_disk`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `DISK_RANG` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `DISK_SIZE` bigint(22) NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL,
  `DATA_CHECK_TIME` datetime(0) NOT NULL,
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL,
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL,
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `INDEX_DI_SYSDISK_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12516 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for di_systeminfo_net
-- ----------------------------
DROP TABLE IF EXISTS `di_systeminfo_net`;
CREATE TABLE `di_systeminfo_net`  (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `DETECTION_INFO_ID` bigint(22) NULL DEFAULT NULL,
  `NET_NAME` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `NET_STATE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `NET_SPEED` bigint(20) NULL DEFAULT NULL,
  `NET_IP` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `NET_SUBMASK` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `NET_GATEWAY` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `NET_MAC` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `DETECTIONED_STATE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `SEQ_ID` bigint(22) NULL DEFAULT NULL,
  `DATA_CHECK_TIME` datetime(0) NOT NULL,
  `DATA_ARRIVE_TIME` datetime(0) NULL DEFAULT NULL,
  `DATA_CHECK_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DATA_ARRIVE_TIME_DIGITAL` bigint(22) NULL DEFAULT NULL,
  `DETECTION_SET_INFO_ID` bigint(22) NULL DEFAULT NULL,
  PRIMARY KEY (`ID`, `DATA_CHECK_TIME`) USING BTREE,
  INDEX `INDEX_DI_SYSNET_SET_ID`(`DETECTION_SET_INFO_ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18225 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for dictionary_table
-- ----------------------------
DROP TABLE IF EXISTS `dictionary_table`;
CREATE TABLE `dictionary_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `type_nmae` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '名称',
  `type_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述',
  `type_state` decimal(22, 0) NULL DEFAULT NULL COMMENT '状态',
  `type_value` decimal(22, 0) NULL DEFAULT NULL COMMENT '值',
  `type_mark` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '类别标识（预留）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '基本数据字典表，定义字典类别' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for email_table
-- ----------------------------
DROP TABLE IF EXISTS `email_table`;
CREATE TABLE `email_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `to_address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '接收地址',
  `action_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '事件类型 值域10监测恢复，11监测信息异常，13:监测结果超时，21主动告警恢复，20主动告警异常，31结果失败，32任务状态变更，40系统运行异常恢复，41系统运行异常',
  `content` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '邮件内容',
  `send_flag` decimal(22, 0) NULL DEFAULT NULL COMMENT '0未发送 1已发送',
  `action_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '地点',
  `action_date` datetime(0) NULL DEFAULT NULL COMMENT '触发时间，监测数据时间',
  `action_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '事件标题（具体的监测、任务等名称标题）',
  `send_level` decimal(22, 0) NULL DEFAULT NULL COMMENT '值同 data_police_relation  POLICE_EMERGENT 的值',
  `create_time` datetime(0) NOT NULL COMMENT '插入记录时间',
  PRIMARY KEY (`id`, `create_time`) USING BTREE,
  INDEX `FGDHDFGVBCG`(`action_date`) USING BTREE,
  INDEX `FGHFGHFG`(`to_address`) USING BTREE,
  INDEX `FGHFGHFGHFGGF`(`send_flag`) USING BTREE,
  INDEX `FGHFGHFGHFGH`(`action_ip`) USING BTREE,
  INDEX `FGHFGHFGHFH`(`action_type`) USING BTREE,
  INDEX `SFGSFDFGDFG`(`action_desc`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'NMS产生的所有邮件信息' ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`create_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for event_record_library
-- ----------------------------
DROP TABLE IF EXISTS `event_record_library`;
CREATE TABLE `event_record_library`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `record_type` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `record_content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `seq_ids` int(11) NULL DEFAULT NULL,
  `state` decimal(22, 0) NULL DEFAULT NULL,
  `record_command` varchar(125) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `pid` decimal(22, 0) NULL DEFAULT NULL,
  `create_time` datetime(0) NULL DEFAULT NULL,
  `table_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `table_id` decimal(22, 0) NULL DEFAULT NULL,
  `nmsserver_id` decimal(22, 0) NULL DEFAULT NULL,
  `sync_status` int(11) NULL DEFAULT 0 COMMENT '是否为同步过来的数据 0不是 1 是',
  `old_id` bigint(20) NULL DEFAULT NULL COMMENT '原库表id',
  `db_id` int(20) NULL DEFAULT 1 COMMENT '原数据库id关联sync_db_info，填写默认值，值为sync_db_info表中定义的db_id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for flow_audit_rz
-- ----------------------------
DROP TABLE IF EXISTS `flow_audit_rz`;
CREATE TABLE `flow_audit_rz`  (
  `seq` bigint(20) NOT NULL DEFAULT 0,
  `dip` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `dport` decimal(22, 0) NOT NULL,
  `sip` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `sport` decimal(22, 0) NOT NULL,
  `protocol` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `start_time` varchar(24) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `end_time` varchar(24) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `in_kb` decimal(22, 0) NOT NULL,
  `out_kb` decimal(22, 0) NOT NULL,
  PRIMARY KEY (`seq`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for gorup_system_table
-- ----------------------------
DROP TABLE IF EXISTS `gorup_system_table`;
CREATE TABLE `gorup_system_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `user_group_id` int(11) NULL DEFAULT NULL COMMENT '用户组id',
  `system_id` int(11) NULL DEFAULT NULL COMMENT '业务系统id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `IDX_GROUPSYSTEMSYSTEMFKIDGORUP`(`system_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户组系统关系表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of gorup_system_table
-- ----------------------------
INSERT INTO `gorup_system_table` VALUES (100000, 100001, 100001);
INSERT INTO `gorup_system_table` VALUES (100001, 100003, 100002);
INSERT INTO `gorup_system_table` VALUES (100002, 100005, 100003);
INSERT INTO `gorup_system_table` VALUES (100003, 100007, 100004);
INSERT INTO `gorup_system_table` VALUES (100004, 100009, 100005);
INSERT INTO `gorup_system_table` VALUES (100005, 100011, 100006);
INSERT INTO `gorup_system_table` VALUES (100006, 100013, 100007);
INSERT INTO `gorup_system_table` VALUES (100007, 100015, 100008);
INSERT INTO `gorup_system_table` VALUES (100008, 100017, 100009);
INSERT INTO `gorup_system_table` VALUES (100009, 100019, 100010);
INSERT INTO `gorup_system_table` VALUES (100010, 100021, 100011);
INSERT INTO `gorup_system_table` VALUES (100011, 100023, 100012);
INSERT INTO `gorup_system_table` VALUES (100012, 100025, 100013);
INSERT INTO `gorup_system_table` VALUES (100013, 100027, 100014);
INSERT INTO `gorup_system_table` VALUES (100014, 100029, 100015);
INSERT INTO `gorup_system_table` VALUES (100015, 100031, 100016);
INSERT INTO `gorup_system_table` VALUES (100016, 100033, 100017);
INSERT INTO `gorup_system_table` VALUES (100017, 100000, 100000);

-- ----------------------------
-- Table structure for img_url
-- ----------------------------
DROP TABLE IF EXISTS `img_url`;
CREATE TABLE `img_url`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '图片url路径',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '图片url' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for loopmission_state_table
-- ----------------------------
DROP TABLE IF EXISTS `loopmission_state_table`;
CREATE TABLE `loopmission_state_table`  (
  `cur_mission_id` bigint(20) NOT NULL COMMENT '当前周期id',
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id',
  `mission_state` decimal(22, 0) NULL DEFAULT NULL COMMENT '任务状态：不能为空，状态可选：1-任务已创建；2-任务已开始执行；3-任务已完成（包含部分节点失败情况）；4-任务未能执行',
  `start_time` datetime(0) NULL DEFAULT NULL COMMENT '周期开始时间',
  `end_time` datetime(0) NULL DEFAULT NULL COMMENT '周期结束时间',
  `fail_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '失败描述',
  PRIMARY KEY (`mission_id`, `cur_mission_id`) USING BTREE,
  UNIQUE INDEX `cur_mission_id`(`cur_mission_id`, `mission_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for metadata
-- ----------------------------
DROP TABLE IF EXISTS `metadata`;
CREATE TABLE `metadata`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `check_type_id` decimal(22, 0) NULL DEFAULT NULL COMMENT '外键检测类别ID',
  `table_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表名',
  `table_comments` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表描述',
  `filed_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字段名',
  `filed_comments` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字段描述',
  `filed_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字段类型',
  `create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建日期',
  `create_person` decimal(22, 0) NULL DEFAULT NULL COMMENT '创建人',
  `state` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否启用标识0启用1停用',
  `update_date` datetime(0) NULL DEFAULT NULL COMMENT '停用时间',
  `update_person` decimal(22, 0) NULL DEFAULT NULL COMMENT '停用人',
  `chart_state` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否用于统计0启用1停用',
  `show_num` decimal(22, 0) NULL DEFAULT NULL COMMENT '在传输过程中的序号',
  `isnull` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否为空',
  `oid` varchar(400) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'oid',
  `sort_sign` decimal(22, 0) NULL DEFAULT 1 COMMENT '是否分类标识:0是；1否，公用统计图中的多线分类标识字段',
  `type_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '对应翻译字典，对部分标识字段的对应翻译字典',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '元数据定义，每个监测类别具体监测数据的定义' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of metadata
-- ----------------------------
INSERT INTO `metadata` VALUES (1, 0, 'DI_SYSTEMINFO', NULL, 'HOST_NAME', 'i18n_metadata.HOST_NAME.filed_comments_n81i', 'VARCHAR2(200)', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (2, 0, 'DI_SYSTEMINFO', NULL, 'OPERATE_SYSTEM', 'i18n_metadata.OPERATE_SYSTEM.filed_comments_n81i', 'VARCHAR2(200)', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (3, 0, 'DI_SYSTEMINFO', NULL, 'CPU_CNT', 'i18n_metadata.CPU_CNT.filed_comments_n81i', 'Number', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 3, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (4, 0, 'DI_SYSTEMINFO', NULL, 'CPU_MHZ', 'i18n_metadata.CPU_MHZ.filed_comments_n81i', 'Number', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (5, 0, 'DI_SYSTEMINFO', NULL, 'MEMORY_SIZE', 'i18n_metadata.MEMORY_SIZE.filed_comments_n81i', 'Number', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 5, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (6, 0, 'DI_SYSTEMINFO', NULL, 'SWAP_SIZE', 'i18n_metadata.SWAP_SIZE.filed_comments_n81i', 'Number', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 6, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (7, 0, 'DI_SYSTEMINFO', NULL, 'DISK_SIZE', 'i18n_metadata.DISK_SIZE.filed_comments_n81i', 'Number', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 7, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (8, 0, 'DI_SYSTEMINFO', NULL, 'NET_CNT', 'i18n_metadata.NET_CNT.filed_comments_n81i', 'Number', '2013-01-31 00:00:00', 1, '0', NULL, NULL, '1', 8, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (9, 1, 'DETECT_INFO_CPU', NULL, 'USER_USED_CPU_PERC', 'i18n_metadata.USER_USED_CPU_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (10, 1, 'DETECT_INFO_CPU', NULL, 'SYS_USED_CPU_PERC', 'i18n_metadata.SYS_USED_CPU_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 3, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (11, 1, 'DETECT_INFO_CPU', NULL, 'WAIT_CPU_PERC', 'i18n_metadata.WAIT_CPU_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (12, 1, 'DETECT_INFO_CPU', NULL, 'NICE_PERC', 'i18n_metadata.NICE_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (13, 1, 'DETECT_INFO_CPU', NULL, 'FREE_CPU_PERC', 'i18n_metadata.FREE_CPU_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 6, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (14, 1, 'DETECT_INFO_CPU', NULL, 'TOTAL_USED_PERC', 'i18n_metadata.TOTAL_USED_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 7, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (15, 1, 'DETECT_INFO_CPU', NULL, 'CPU_MHZ', 'i18n_metadata.CPU_MHZ.filed_comments_n81i', 'Number', '2013-01-23 00:00:00', 1, '0', NULL, NULL, '1', 8, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (16, 1, 'DETECT_INFO_CPU', NULL, 'CPU_NAME', 'i18n_metadata.CPU_NAME.filed_comments_n81i', 'VARCHAR2(100)', '2013-01-23 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, NULL, 0, NULL);
INSERT INTO `metadata` VALUES (17, 2, 'DETECT_INFO_MEMORY', NULL, 'SIZE_STOREDINPAGING_FILES', 'i18n_metadata.SIZE_STOREDINPAGING_FILES.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 1, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (18, 2, 'DETECT_INFO_MEMORY', NULL, 'FREE_SPACE_INPAGING_FILES', 'i18n_metadata.FREE_SPACE_INPAGING_FILES.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (19, 2, 'DETECT_INFO_MEMORY', NULL, 'TOTAL_MEMORY_SIZE', 'i18n_metadata.TOTAL_MEMORY_SIZE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 3, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (20, 2, 'DETECT_INFO_MEMORY', NULL, 'USED_MEMORY_SIZE', 'i18n_metadata.USED_MEMORY_SIZE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (21, 2, 'DETECT_INFO_MEMORY', NULL, 'FREE_MEMORY_SIZE', 'i18n_metadata.FREE_MEMORY_SIZE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (22, 2, 'DETECT_INFO_MEMORY', NULL, 'USED_MEMORY_PERC', 'i18n_metadata.USED_MEMORY_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 6, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (23, 3, 'DETECT_INFO_DISK', NULL, 'DISK_RANGE', 'i18n_metadata.DISK_RANGE.filed_comments_n81i', 'VARCHAR2(50)', NULL, 1, '0', NULL, 0, '1', 1, NULL, NULL, 0, NULL);
INSERT INTO `metadata` VALUES (24, 3, 'DETECT_INFO_DISK', NULL, 'TOTAL_DISK_SIZE', 'i18n_metadata.TOTAL_DISK_SIZE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (25, 3, 'DETECT_INFO_DISK', NULL, 'FREE_DISK_SIZE', 'i18n_metadata.FREE_DISK_SIZE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 3, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (26, 3, 'DETECT_INFO_DISK', NULL, 'USED_DISK_PERC', 'i18n_metadata.USED_DISK_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (27, 3, 'DETECT_INFO_DISK', NULL, 'DISK_ISWRITE', 'i18n_metadata.DISK_ISWRITE.filed_comments_n81i', 'NUMBER', '2013-03-28 00:00:00', 1, '0', NULL, 0, '1', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (28, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_PACKETS', 'i18n_metadata.RX_PACKETS.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (29, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_PACKETS', 'i18n_metadata.TX_PACKETS.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 3, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (30, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_BYTES', 'i18n_metadata.RX_BYTES.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (31, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_BYTES', 'i18n_metadata.TX_BYTES.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (32, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_ERRORS', 'i18n_metadata.RX_ERRORS.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 6, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (33, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_ERRORS', 'i18n_metadata.TX_ERRORS.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 7, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (34, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_DROPPED', 'i18n_metadata.RX_DROPPED.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 8, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (35, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_DROPPED', 'i18n_metadata.TX_DROPPED.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 9, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (36, 4, 'DETECT_INFO_NETDATA', NULL, 'SPEED', 'i18n_metadata.SPEED.filed_comments_n81i', 'Number', '2013-01-22 00:00:00', 1, '0', NULL, NULL, '1', 10, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (37, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_BPS', 'i18n_metadata.RX_BPS.filed_comments_n81i', 'Number', '2013-01-22 00:00:00', 1, '0', NULL, NULL, '0', 11, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (38, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_BPS', 'i18n_metadata.TX_BPS.filed_comments_n81i', 'Number', '2013-01-22 00:00:00', 1, '0', NULL, NULL, '0', 12, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (39, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_PPS', 'i18n_metadata.RX_PPS.filed_comments_n81i', 'Number', '2013-01-22 00:00:00', 1, '0', NULL, NULL, '0', 13, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (40, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_PPS', 'i18n_metadata.TX_PPS.filed_comments_n81i', 'Number', '2013-01-22 00:00:00', 1, '0', NULL, NULL, '0', 14, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (41, 4, 'DETECT_INFO_NETDATA', NULL, 'NAME', 'i18n_metadata.NAME.filed_comments_n81i', 'VARCHAR2(200)', '2013-01-22 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, NULL, 0, NULL);
INSERT INTO `metadata` VALUES (42, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_ERRORS_PERC', 'i18n_metadata.RX_ERRORS_PERC.filed_comments_n81i', 'Number', '2013-01-23 00:00:00', 1, '0', NULL, NULL, '1', 15, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (43, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_ERRORS_PERC', 'i18n_metadata.TX_ERRORS_PERC.filed_comments_n81i', 'Number', '2013-01-23 00:00:00', 1, '0', NULL, NULL, '1', 16, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (44, 4, 'DETECT_INFO_NETDATA', NULL, 'RX_DROP_PERC', 'i18n_metadata.RX_DROP_PERC.filed_comments_n81i', 'Number', '2013-01-23 00:00:00', 1, '0', NULL, NULL, '1', 17, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (45, 4, 'DETECT_INFO_NETDATA', NULL, 'TX_DROP_PERC', 'i18n_metadata.TX_DROP_PERC.filed_comments_n81i', 'Number', '2013-01-23 00:00:00', 1, '0', NULL, NULL, '1', 18, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (46, 5, 'DETECT_INFO_SYSTEM_DATE', NULL, 'SERVICE_DATE', 'i18n_metadata.SERVICE_DATE.filed_comments_n81i', 'DATE', NULL, 1, '0', NULL, 0, '1', 1, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (47, 5, 'DETECT_INFO_SYSTEM_DATE', NULL, 'DETECT_DATE', 'i18n_metadata.DETECT_DATE.filed_comments_n81i', 'DATE', NULL, 1, '0', NULL, 0, '1', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (48, 5, 'DETECT_INFO_SYSTEM_DATE', NULL, 'TIME_DELAY', 'i18n_metadata.TIME_DELAY.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 3, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (49, 6, 'DETECT_INFO_PING', NULL, 'PACKETS_SEND', 'i18n_metadata.PACKETS_SEND.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 1, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (50, 6, 'DETECT_INFO_PING', NULL, 'PACKETS_RECEIVED', 'i18n_metadata.PACKETS_RECEIVED.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (51, 6, 'DETECT_INFO_PING', NULL, 'PACKETS_LOST', 'i18n_metadata.PACKETS_LOST.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 3, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (52, 6, 'DETECT_INFO_PING', NULL, 'PACKETS_LOST_RATE', 'i18n_metadata.PACKETS_LOST_RATE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (53, 6, 'DETECT_INFO_PING', NULL, 'TIME_CONSUMING_MIN', 'i18n_metadata.TIME_CONSUMING_MIN.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (54, 6, 'DETECT_INFO_PING', NULL, 'TIME_CONSUMING_MAX', 'i18n_metadata.TIME_CONSUMING_MAX.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 6, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (55, 6, 'DETECT_INFO_PING', NULL, 'TIME_CONSUMING_AVER', 'i18n_metadata.TIME_CONSUMING_AVER.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 7, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (56, 7, 'DELECT_INFO_NMSC', NULL, 'SEND_INFO', 'i18n_metadata.SEND_INFO.filed_comments_n81i', 'VARCHAR2(100)', NULL, 1, '0', NULL, 0, '1', 1, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (57, 7, 'DELECT_INFO_NMSC', NULL, 'RETURN_INFO', 'i18n_metadata.RETURN_INFO.filed_comments_n81i', 'VARCHAR2(100)', NULL, 1, '0', NULL, 0, '1', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (58, 7, 'DELECT_INFO_NMSC', NULL, 'IS_IDENTICAL', 'i18n_metadata.IS_IDENTICAL.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, 0, '0', 3, NULL, NULL, 1, '161');
INSERT INTO `metadata` VALUES (59, 7, 'DELECT_INFO_NMSC', NULL, 'SEND_TIME', 'i18n_metadata.SEND_TIME.filed_comments_n81i', 'DATE', NULL, 1, '0', NULL, 0, '1', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (60, 7, 'DELECT_INFO_NMSC', NULL, 'RETURN_TIME', 'i18n_metadata.RETURN_TIME.filed_comments_n81i', 'DATE', NULL, 1, '0', NULL, 0, '1', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (61, 7, 'DELECT_INFO_NMSC', NULL, 'DELAY_TIME', 'i18n_metadata.DELAY_TIME.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, 0, '1', 6, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (62, 8, 'DETECT_INFO_PROCESS', NULL, 'CPU_USED_PERC', 'i18n_metadata.CPU_USED_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 1, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (63, 8, 'DETECT_INFO_PROCESS', NULL, 'MEM_USED_PERC', 'i18n_metadata.MEM_USED_PERC.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '0', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (64, 8, 'DETECT_INFO_PROCESS', NULL, 'PRO_START_TIME', 'i18n_metadata.PRO_START_TIME.filed_comments_n81i', 'DATE', NULL, 1, '0', NULL, 0, '1', 3, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (65, 8, 'DETECT_INFO_PROCESS', NULL, 'PROC_STATE', 'i18n_metadata.PROC_STATE.filed_comments_n81i', 'VARCHAR2(2)', NULL, 1, '0', NULL, 0, '1', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (66, 8, 'DETECT_INFO_PROCESS', NULL, 'PROC_PRIORITY', 'i18n_metadata.PROC_PRIORITY.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, 0, '1', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (67, 9, 'DI_SYSTEM', 'i18n_metadata.sysDescr.table_comments_n81i', 'sysDescr', 'sysDescr', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.2.1.1.1', 1, NULL);
INSERT INTO `metadata` VALUES (68, 9, 'DI_SYSTEM', 'i18n_metadata.sysObjectID.table_comments_n81i', 'sysObjectID', 'sysObjectID', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.2.1.1.2', 1, NULL);
INSERT INTO `metadata` VALUES (69, 9, 'DI_SYSTEM', 'i18n_metadata.sysUpTime.table_comments_n81i', 'sysUpTime', 'sysUpTime', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 3, NULL, '1.3.6.1.2.1.1.3', 1, NULL);
INSERT INTO `metadata` VALUES (70, 9, 'DI_SYSTEM', 'i18n_metadata.sysContact.table_comments_n81i', 'sysContact', 'sysContact', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 4, NULL, '1.3.6.1.2.1.1.4', 1, NULL);
INSERT INTO `metadata` VALUES (71, 9, 'DI_SYSTEM', 'i18n_metadata.sysName.table_comments_n81i', 'sysName', 'sysName', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 5, NULL, '1.3.6.1.2.1.1.5', 1, NULL);
INSERT INTO `metadata` VALUES (72, 9, 'DI_SYSTEM', 'i18n_metadata.sysLocation.table_comments_n81i', 'sysLocation', 'sysLocation', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 6, NULL, '1.3.6.1.2.1.1.6', 1, NULL);
INSERT INTO `metadata` VALUES (73, 9, 'DI_SYSTEM', 'i18n_metadata.sysServices.table_comments_n81i', 'sysServices', 'sysServices', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 7, NULL, '1.3.6.1.2.1.1.7', 1, NULL);
INSERT INTO `metadata` VALUES (74, 10, 'DI_SWITCHPORT', NULL, 'ifIndex', 'i18n_metadata.ifIndex.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.2.1.2.2.1.1', 1, NULL);
INSERT INTO `metadata` VALUES (75, 10, 'DI_SWITCHPORT', NULL, 'ifDescr', 'i18n_metadata.ifDescr.filed_comments_n81i', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.2.1.2.2.1.2', 0, NULL);
INSERT INTO `metadata` VALUES (76, 10, 'DI_SWITCHPORT', NULL, 'ifType', 'i18n_metadata.ifType.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 3, NULL, '1.3.6.1.2.1.2.2.1.3', 1, NULL);
INSERT INTO `metadata` VALUES (77, 10, 'DI_SWITCHPORT', NULL, 'ifMtu', 'ifMtu', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 4, NULL, '1.3.6.1.2.1.2.2.1.4', 1, NULL);
INSERT INTO `metadata` VALUES (78, 10, 'DI_SWITCHPORT', NULL, 'ifSpeed', 'i18n_metadata.ifSpeed.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 5, NULL, '1.3.6.1.2.1.2.2.1.5', 1, NULL);
INSERT INTO `metadata` VALUES (79, 10, 'DI_SWITCHPORT', NULL, 'ifPhysAddress', 'i18n_metadata.ifPhysAddress.filed_comments_n81i', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 6, NULL, '1.3.6.1.2.1.2.2.1.6', 1, NULL);
INSERT INTO `metadata` VALUES (80, 10, 'DI_SWITCHPORT', NULL, 'ifAdminStatus', 'i18n_metadata.ifAdminStatus.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 7, NULL, '1.3.6.1.2.1.2.2.1.7', 1, NULL);
INSERT INTO `metadata` VALUES (81, 10, 'DI_SWITCHPORT', NULL, 'ifOperStatus', 'i18n_metadata.ifOperStatus.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 8, NULL, '1.3.6.1.2.1.2.2.1.8', 1, NULL);
INSERT INTO `metadata` VALUES (82, 10, 'DI_SWITCHPORT', NULL, 'ifLastChange', 'i18n_metadata.ifLastChange.filed_comments_n81i', 'VARCHAR2(50)', NULL, 1, '0', NULL, NULL, '1', 9, NULL, '1.3.6.1.2.1.2.2.1.9', 1, NULL);
INSERT INTO `metadata` VALUES (83, 10, 'DI_SWITCHPORT', NULL, 'ifInOctets', 'i18n_metadata.ifInOctets.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '0', 10, NULL, '1.3.6.1.2.1.2.2.1.10', 1, NULL);
INSERT INTO `metadata` VALUES (84, 10, 'DI_SWITCHPORT', NULL, 'ifInUcastPkts', 'i18n_metadata.ifInUcastPkts.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 11, NULL, '1.3.6.1.2.1.2.2.1.11', 1, NULL);
INSERT INTO `metadata` VALUES (85, 10, 'DI_SWITCHPORT', NULL, 'ifInNUcastPkts', 'i18n_metadata.ifInNUcastPkts.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 12, NULL, '1.3.6.1.2.1.2.2.1.12', 1, NULL);
INSERT INTO `metadata` VALUES (86, 10, 'DI_SWITCHPORT', NULL, 'ifInDiscards', 'i18n_metadata.ifInDiscards.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 13, NULL, '1.3.6.1.2.1.2.2.1.13', 1, NULL);
INSERT INTO `metadata` VALUES (87, 10, 'DI_SWITCHPORT', NULL, 'ifInErrors', 'i18n_metadata.ifInErrors.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 14, NULL, '1.3.6.1.2.1.2.2.1.14', 1, NULL);
INSERT INTO `metadata` VALUES (88, 10, 'DI_SWITCHPORT', NULL, 'ifInUnknownProtos', 'i18n_metadata.ifInUnknownProtos.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 15, NULL, '1.3.6.1.2.1.2.2.1.15', 1, NULL);
INSERT INTO `metadata` VALUES (89, 10, 'DI_SWITCHPORT', NULL, 'ifOutOctets', 'i18n_metadata.ifOutOctets.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 16, NULL, '1.3.6.1.2.1.2.2.1.16', 1, NULL);
INSERT INTO `metadata` VALUES (90, 10, 'DI_SWITCHPORT', NULL, 'ifOutUcastPkts', 'i18n_metadata.ifOutUcastPkts.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 17, NULL, '1.3.6.1.2.1.2.2.1.17', 1, NULL);
INSERT INTO `metadata` VALUES (91, 10, 'DI_SWITCHPORT', NULL, 'ifOutNUcastPkts', 'i18n_metadata.ifOutNUcastPkts.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 18, NULL, '1.3.6.1.2.1.2.2.1.18', 1, NULL);
INSERT INTO `metadata` VALUES (92, 10, 'DI_SWITCHPORT', NULL, 'ifOutDiscards', 'i18n_metadata.ifOutDiscards.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 19, NULL, '1.3.6.1.2.1.2.2.1.19', 1, NULL);
INSERT INTO `metadata` VALUES (93, 10, 'DI_SWITCHPORT', NULL, 'ifOutErrors', 'i18n_metadata.ifOutErrors.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 20, NULL, '1.3.6.1.2.1.2.2.1.20', 1, NULL);
INSERT INTO `metadata` VALUES (94, 10, 'DI_SWITCHPORT', NULL, 'ifOutQLen', 'i18n_metadata.ifOutQLen.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 21, NULL, '1.3.6.1.2.1.2.2.1.21', 1, NULL);
INSERT INTO `metadata` VALUES (95, 10, 'DI_SWITCHPORT', NULL, 'ifSpecific', 'i18n_metadata.ifSpecific.filed_comments_n81i', 'VARCHAR2(400)', NULL, 1, '0', NULL, NULL, '1', 22, NULL, '1.3.6.1.2.1.2.2.1.22', 1, NULL);
INSERT INTO `metadata` VALUES (96, 10, 'DI_SWITCHPORT', NULL, 'INOCTETSSPEED', 'i18n_metadata.INOCTETSSPEED.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, NULL, '0', 23, NULL, '.0', NULL, NULL);
INSERT INTO `metadata` VALUES (97, 10, 'DI_SWITCHPORT', NULL, 'inPktsSpeed', 'i18n_metadata.inPktsSpeed.filed_comments_n81i', 'Number', '2012-12-06 00:00:00', 1, '0', NULL, NULL, '0', 24, NULL, '.0', 1, NULL);
INSERT INTO `metadata` VALUES (98, 10, 'DI_SWITCHPORT', NULL, 'ifInDiscardsPerc', 'i18n_metadata.ifInDiscardsPerc.filed_comments_n81i', 'Number', '2012-12-06 00:00:00', 1, '0', NULL, NULL, '1', 25, NULL, '.0', 1, NULL);
INSERT INTO `metadata` VALUES (99, 10, 'DI_SWITCHPORT', NULL, 'INERRORSSCALE', 'i18n_metadata.INERRORSSCALE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, NULL, '1', 26, NULL, '.0', NULL, NULL);
INSERT INTO `metadata` VALUES (100, 10, 'DI_SWITCHPORT', NULL, 'OUTOCTETSSPEED', 'i18n_metadata.OUTOCTETSSPEED.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, NULL, '0', 27, NULL, '.0', NULL, NULL);
INSERT INTO `metadata` VALUES (101, 10, 'DI_SWITCHPORT', NULL, 'outPktsSpeed', 'i18n_metadata.outPktsSpeed.filed_comments_n81i', 'Number', '2012-12-06 00:00:00', 1, '0', NULL, NULL, '0', 28, NULL, '.0', 1, NULL);
INSERT INTO `metadata` VALUES (102, 10, 'DI_SWITCHPORT', NULL, 'ifOutDiscardsPerc', 'i18n_metadata.ifOutDiscardsPerc.filed_comments_n81i', 'Number', '2012-12-06 00:00:00', 1, '0', NULL, NULL, '1', 29, NULL, '.0', 1, NULL);
INSERT INTO `metadata` VALUES (103, 10, 'DI_SWITCHPORT', NULL, 'OUTERRORSSCALE', 'i18n_metadata.OUTERRORSSCALE.filed_comments_n81i', 'Number', NULL, 1, '0', NULL, NULL, '1', 30, NULL, '.0', NULL, NULL);
INSERT INTO `metadata` VALUES (104, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'agent_Send_IP', 'agentSendIP', 'VARCHAR2(20)', NULL, 1, '0', NULL, NULL, '1', 1, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (105, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'pdu_Agent_IP', 'pduAgentIP', 'VARCHAR2(20)', NULL, 1, '0', NULL, NULL, '1', 2, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (106, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'receiver_Time', 'receiverTime', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 3, NULL, NULL, 0, NULL);
INSERT INTO `metadata` VALUES (107, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'trap_Version', 'trapVersion', 'Number', NULL, 1, '0', NULL, NULL, '1', 4, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (108, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'Generic_Type', 'trapV1GenericType', 'Number', NULL, 1, '0', NULL, NULL, '1', 5, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (109, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'Specific_Type', 'trapV1SpecificType', 'Number', NULL, 1, '0', NULL, NULL, '1', 6, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (110, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'trap_Name', 'trapName', 'VARCHAR2(200)', NULL, 1, '0', NULL, NULL, '1', 7, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (111, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'trap_OID', 'trapOID', 'VARCHAR2(200)', NULL, 1, '0', NULL, NULL, '1', 8, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (112, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'trap_PDU_OIDs', 'trapPDUOIDs', 'VARCHAR2(2000)', NULL, 1, '0', NULL, NULL, '1', 9, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (113, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'trap_PDU_OID_V', 'trapPDUOIDValues', 'VARCHAR2(2000)', NULL, 1, '0', NULL, NULL, '1', 10, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (114, 11, 'DETECT_INFO_SNMP_TRAP', NULL, 'original_PDU', 'originalPDU', 'VARCHAR2(1000)', NULL, 1, '0', NULL, NULL, '1', 11, NULL, NULL, 1, NULL);
INSERT INTO `metadata` VALUES (115, 13, 'DI_DPBOARDSTATUSENTRY', NULL, 'dpBoardTemperature', 'dpBoardTemperature', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '0', 1, NULL, '1.3.6.1.4.1.31648.3.19.1.1', 0, NULL);
INSERT INTO `metadata` VALUES (116, 14, 'DI_DPSYSTEMPOWERENTRY', NULL, 'dpSystemPowerNo', 'dpSystemPowerNo', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.4.1.31648.3.20.1.1', 0, NULL);
INSERT INTO `metadata` VALUES (117, 14, 'DI_DPSYSTEMPOWERENTRY', NULL, 'dpSystemPowerStat', 'dpSystemPowerStat', 'VARCHAR2(400)', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.4.1.31648.3.20.1.2', 1, NULL);
INSERT INTO `metadata` VALUES (118, 15, 'DI_DPSYSTEMFANENTRY', NULL, 'dpSystemFanNo', 'dpSystemFanNo', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.4.1.31648.3.21.1.1', 0, NULL);
INSERT INTO `metadata` VALUES (119, 15, 'DI_DPSYSTEMFANENTRY', NULL, 'dpSystemFanStat', 'dpSystemFanStat', 'VARCHAR2(400)', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.4.1.31648.3.21.1.2', 1, NULL);
INSERT INTO `metadata` VALUES (120, 16, 'DI_DPSLOTENTRY', NULL, 'dpSlotIndex', 'i18n_metadata.dpSlotIndex.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.4.1.31648.6.1.1.1', 1, NULL);
INSERT INTO `metadata` VALUES (121, 16, 'DI_DPSLOTENTRY', NULL, 'dpSlotType', 'i18n_metadata.dpSlotType.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.4.1.31648.6.1.1.2', 1, NULL);
INSERT INTO `metadata` VALUES (122, 16, 'DI_DPSLOTENTRY', NULL, 'dpSlotDesc', 'i18n_metadata.dpSlotDesc.filed_comments_n81i', 'VARCHAR2(400)', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 3, NULL, '1.3.6.1.4.1.31648.6.1.1.3', 0, NULL);
INSERT INTO `metadata` VALUES (123, 16, 'DI_DPSLOTENTRY', NULL, 'dpSlotPortNum', 'i18n_metadata.dpSlotPortNum.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 4, NULL, '1.3.6.1.4.1.31648.6.1.1.4', 1, NULL);
INSERT INTO `metadata` VALUES (124, 16, 'DI_DPSLOTENTRY', NULL, 'dpSlotStatus', 'i18n_metadata.dpSlotStatus.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '0', 5, NULL, '1.3.6.1.4.1.31648.6.1.1.5', 1, NULL);
INSERT INTO `metadata` VALUES (125, 16, 'DI_DPSLOTENTRY', NULL, 'dpSlotIsMain', 'i18n_metadata.dpSlotIsMain.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 6, NULL, '1.3.6.1.4.1.31648.6.1.1.6', 1, NULL);
INSERT INTO `metadata` VALUES (126, 16, 'DI_DPSLOTENTRY', NULL, 'dpSlotRunTimes', 'i18n_metadata.dpSlotRunTimes.filed_comments_n81i', 'VARCHAR2(400)', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 7, NULL, '1.3.6.1.4.1.31648.6.1.1.7', 1, NULL);
INSERT INTO `metadata` VALUES (127, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpCpuRatio', 'i18n_metadata.dpCpuRatio.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.4.1.31648.3.15.1', 1, NULL);
INSERT INTO `metadata` VALUES (128, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpCpuRatioPeak', 'i18n_metadata.dpCpuRatioPeak.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.4.1.31648.3.15.2', 1, NULL);
INSERT INTO `metadata` VALUES (129, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpCpuRatioAverage', 'i18n_metadata.dpCpuRatioAverage.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 3, NULL, '1.3.6.1.4.1.31648.3.15.3', 1, NULL);
INSERT INTO `metadata` VALUES (130, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpCpuTemperature', 'i18n_metadata.dpCpuTemperature.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 4, NULL, '1.3.6.1.4.1.31648.3.15.4', 1, NULL);
INSERT INTO `metadata` VALUES (131, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpMemRatio', 'i18n_metadata.dpMemRatio.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 5, NULL, '1.3.6.1.4.1.31648.3.15.5', 1, NULL);
INSERT INTO `metadata` VALUES (132, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpMemRatioPeak', 'i18n_metadata.dpMemRatioPeak.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 6, NULL, '1.3.6.1.4.1.31648.3.15.6', 1, NULL);
INSERT INTO `metadata` VALUES (133, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpMemRatioAverage', 'i18n_metadata.dpMemRatioAverage.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 7, NULL, '1.3.6.1.4.1.31648.3.15.7', 1, NULL);
INSERT INTO `metadata` VALUES (134, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpMainboardTemperature', 'i18n_metadata.dpMainboardTemperature.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '0', 8, NULL, '1.3.6.1.4.1.31648.3.15.8', 1, NULL);
INSERT INTO `metadata` VALUES (135, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpSession', 'i18n_metadata.dpSession.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 9, NULL, '1.3.6.1.4.1.31648.3.15.9', 0, NULL);
INSERT INTO `metadata` VALUES (136, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpCpuRatio30s', 'i18n_metadata.dpCpuRatio30s.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 10, NULL, '1.3.6.1.4.1.31648.3.15.10', 1, NULL);
INSERT INTO `metadata` VALUES (137, 19, 'DI_DPSYSTEMSTATUS', NULL, 'dpCpuRatio5min', 'i18n_metadata.dpCpuRatio5min.filed_comments_n81i', 'NUMBER', '2013-03-14 00:00:00', 1, '0', NULL, NULL, '1', 11, NULL, '1.3.6.1.4.1.31648.3.15.11', 1, NULL);
INSERT INTO `metadata` VALUES (138, 17, 'DI_IFXTABLE', NULL, 'ifName', 'ifName', 'VARCHAR2(25)', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.2.1.31.1.1.1.1', NULL, NULL);
INSERT INTO `metadata` VALUES (139, 17, 'DI_IFXTABLE', NULL, 'InMulticastPkts', 'ifInMulticastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.2.1.31.1.1.1.2', NULL, NULL);
INSERT INTO `metadata` VALUES (140, 17, 'DI_IFXTABLE', NULL, 'InBroadcastPkts', 'ifInBroadcastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 3, NULL, '1.3.6.1.2.1.31.1.1.1.3', NULL, NULL);
INSERT INTO `metadata` VALUES (141, 17, 'DI_IFXTABLE', NULL, 'OutMulcastPkts', 'ifOutMulticastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 4, NULL, '1.3.6.1.2.1.31.1.1.1.4', NULL, NULL);
INSERT INTO `metadata` VALUES (142, 17, 'DI_IFXTABLE', NULL, 'OutBrocastPkts', 'ifOutBroadcastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 5, NULL, '1.3.6.1.2.1.31.1.1.1.5', NULL, NULL);
INSERT INTO `metadata` VALUES (143, 17, 'DI_IFXTABLE', NULL, 'ifHCInOctets', 'ifHCInOctets', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 6, NULL, '1.3.6.1.2.1.31.1.1.1.6', NULL, NULL);
INSERT INTO `metadata` VALUES (144, 17, 'DI_IFXTABLE', NULL, 'HCInUCastPkts', 'ifHCInUcastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 7, NULL, '1.3.6.1.2.1.31.1.1.1.7', NULL, NULL);
INSERT INTO `metadata` VALUES (145, 17, 'DI_IFXTABLE', NULL, 'HCIMulCastPkts', 'ifHCInMulticastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 8, NULL, '1.3.6.1.2.1.31.1.1.1.8', NULL, NULL);
INSERT INTO `metadata` VALUES (146, 17, 'DI_IFXTABLE', NULL, 'HCIBroCastPkts', 'ifHCInBroadcastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 9, NULL, '1.3.6.1.2.1.31.1.1.1.9', 1, NULL);
INSERT INTO `metadata` VALUES (147, 17, 'DI_IFXTABLE', NULL, 'HCOutOctets', 'ifHCOutOctets', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 10, NULL, '1.3.6.1.2.1.31.1.1.1.10', 1, NULL);
INSERT INTO `metadata` VALUES (148, 17, 'DI_IFXTABLE', NULL, 'HCOUcastPkts', 'ifHCOutUcastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 11, NULL, '1.3.6.1.2.1.31.1.1.1.11', 1, NULL);
INSERT INTO `metadata` VALUES (149, 17, 'DI_IFXTABLE', NULL, 'HCOMulCastPkts', 'ifHCOutMulticastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 12, NULL, '1.3.6.1.2.1.31.1.1.1.12', 1, NULL);
INSERT INTO `metadata` VALUES (150, 17, 'DI_IFXTABLE', NULL, 'HCOBroCastPkts', 'ifHCOutBroadcastPkts', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 13, NULL, '1.3.6.1.2.1.31.1.1.1.13', 1, NULL);
INSERT INTO `metadata` VALUES (151, 17, 'DI_IFXTABLE', NULL, 'LinkUpDownTrapE', 'ifLinkUpDownTrapEnable', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 14, NULL, '1.3.6.1.2.1.31.1.1.1.14', 1, NULL);
INSERT INTO `metadata` VALUES (152, 17, 'DI_IFXTABLE', NULL, 'ifHighSpeed', 'i18n_metadata.ifHighSpeed.filed_comments_n81i', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 15, NULL, '1.3.6.1.2.1.31.1.1.1.15', 1, NULL);
INSERT INTO `metadata` VALUES (153, 17, 'DI_IFXTABLE', NULL, 'PromiscuousMode', 'ifPromiscuousMode', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 16, NULL, '1.3.6.1.2.1.31.1.1.1.16', 1, NULL);
INSERT INTO `metadata` VALUES (154, 17, 'DI_IFXTABLE', NULL, 'ConnectorPresen', 'ifConnectorPresent', 'Number', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 17, NULL, '1.3.6.1.2.1.31.1.1.1.17', 1, NULL);
INSERT INTO `metadata` VALUES (155, 17, 'DI_IFXTABLE', NULL, 'ifAlias', 'ifAlias', 'VARCHAR2(50)', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 18, NULL, '1.3.6.1.2.1.31.1.1.1.18', 1, NULL);
INSERT INTO `metadata` VALUES (156, 17, 'DI_IFXTABLE', NULL, 'CounterDisconti', 'ifCounterDiscontinuityTime', 'VARCHAR2(100)', '2013-03-18 00:00:00', 1, '0', NULL, NULL, '1', 19, NULL, '1.3.6.1.2.1.31.1.1.1.19', 1, NULL);
INSERT INTO `metadata` VALUES (183, 10, 'DI_SWITCHPORT', NULL, 'ifInOctets_t1', 'i18n_metadata.ifInOctets_t1.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 31, NULL, '1.3.6.1.2.1.2.2.1.10', 1, NULL);
INSERT INTO `metadata` VALUES (184, 10, 'DI_SWITCHPORT', NULL, 'ifInUcastPkts_t1', 'i18n_metadata.ifInUcastPkts_t1.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 32, NULL, '1.3.6.1.2.1.2.2.1.11', 1, NULL);
INSERT INTO `metadata` VALUES (185, 10, 'DI_SWITCHPORT', NULL, 'ifInNUcastPkts_t1', 'i18n_metadata.ifInNUcastPkts_t1.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 33, NULL, '1.3.6.1.2.1.2.2.1.12', 1, NULL);
INSERT INTO `metadata` VALUES (186, 10, 'DI_SWITCHPORT', NULL, 'ifOutOctets_t1', 'i18n_metadata.ifOutOctets_t1.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 34, NULL, '1.3.6.1.2.1.2.2.1.16', 1, NULL);
INSERT INTO `metadata` VALUES (187, 10, 'DI_SWITCHPORT', NULL, 'ifOutUcastPkts_t1', 'i18n_metadata.ifOutUcastPkts_t1.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 35, NULL, '1.3.6.1.2.1.2.2.1.17', 1, NULL);
INSERT INTO `metadata` VALUES (188, 10, 'DI_SWITCHPORT', NULL, 'ifOutNUcastPkts_t1', 'i18n_metadata.ifOutNUcastPkts_t1.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 36, NULL, '1.3.6.1.2.1.2.2.1.18', 1, NULL);
INSERT INTO `metadata` VALUES (189, 10, 'DI_SWITCHPORT', NULL, 'ifHighSpeed', 'i18n_metadata.ifHighSpeed.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 37, NULL, '1.3.6.1.2.1.31.1.1.1.15.1.1000000', 1, NULL);
INSERT INTO `metadata` VALUES (201, 10, 'DI_SWITCHPORT', NULL, 'Data_64_FLag', 'i18n_metadata.Data_64_FLag.filed_comments_n81i', 'NUMBER', NULL, 1, '0', NULL, NULL, '1', 38, NULL, '.0', 1, NULL);
INSERT INTO `metadata` VALUES (100016, 100, 'DI_RULE', NULL, 'ServiceIndex', 'aclServiceIndex', 'Number', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.4.1.5000000.4.3.1.1', NULL, NULL);
INSERT INTO `metadata` VALUES (100017, 100, 'DI_RULE', NULL, 'ServiceCode', 'ServiceCode', 'Number', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, '1.3.6.1.4.1.5000000.4.3.1.2', NULL, NULL);
INSERT INTO `metadata` VALUES (100018, 100, 'DI_RULE', NULL, 'ServiceDesc', 'ServiceDesc', 'VARCHAR2(32)', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 3, NULL, '1.3.6.1.4.1.5000000.4.3.1.3', NULL, NULL);
INSERT INTO `metadata` VALUES (100019, 100, 'DI_RULE', NULL, 'agedTime', 'agedTime', 'Number', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 4, NULL, '1.3.6.1.4.1.5000000.4.3.1.4', NULL, NULL);
INSERT INTO `metadata` VALUES (100020, 100, 'DI_RULE', NULL, 'ClientNum', 'ServiceRefluxClientNum', 'Number', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 5, NULL, '1.3.6.1.4.1.5000000.4.3.1.5', NULL, NULL);
INSERT INTO `metadata` VALUES (100021, 100, 'DI_RULE', NULL, 'RefluxPort', 'aclServiceRefluxPort', 'VARCHAR2(64)', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 6, NULL, '1.3.6.1.4.1.5000000.4.3.1.6', NULL, NULL);
INSERT INTO `metadata` VALUES (100022, 100, 'DI_RULE', NULL, 'RuleNumber', 'maxmumRuleNumber', 'VARCHAR2(1024)', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 7, NULL, '1.3.6.1.4.1.5000000.4.3.1.7', NULL, NULL);
INSERT INTO `metadata` VALUES (100023, 100, 'DI_RULE', NULL, 'usedRuleNum', 'usedRuleNumber', 'VARCHAR2(1024)', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 8, NULL, '1.3.6.1.4.1.5000000.4.3.1.8', NULL, NULL);
INSERT INTO `metadata` VALUES (100024, 100, 'DI_RULE', NULL, 'leftRuleNum', 'leftRuleNumber', 'VARCHAR2(1024)', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 9, NULL, '1.3.6.1.4.1.5000000.4.3.1.9', NULL, NULL);
INSERT INTO `metadata` VALUES (100025, 100, 'DI_RULE', NULL, 'HitTotalNum', 'aclHitTotalNumber', 'VARCHAR2(64)', '2018-07-18 00:00:00', 1, '0', NULL, NULL, '1', 10, NULL, '1.3.6.1.4.1.5000000.4.3.1.10', NULL, NULL);
INSERT INTO `metadata` VALUES (100026, 101, 'DI_PROPMSTATUS', NULL, 'propmStatus', 'propmStatus', 'Number', '2018-09-20 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '1.3.6.1.4.1.5000000.1.4.1.1.3', 0, '');
INSERT INTO `metadata` VALUES (100027, 102, 'DI_BUSINESSPRO', NULL, 'module', 'i18n_metadata.module.filed_comments_n81i', 'VARCHAR2(32)', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, NULL, 1, '');
INSERT INTO `metadata` VALUES (100028, 102, 'DI_BUSINESSPRO', NULL, 'pid', 'i18n_metadata.pid.filed_comments_n81i', 'Number', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100029, 102, 'DI_BUSINESSPRO', NULL, 'cpupct', 'i18n_metadata.cpupct.filed_comments_n81i', 'Number', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '0', 3, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100030, 102, 'DI_BUSINESSPRO', NULL, 'mempct', 'i18n_metadata.mempct.filed_comments_n81i', 'Number', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '0', 4, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100031, 102, 'DI_BUSINESSPRO', NULL, 'prostatus', 'i18n_metadata.prostatus.filed_comments_n81i', 'VARCHAR2(8)', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '1', 5, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100032, 102, 'DI_BUSINESSPRO', NULL, 'propriority', 'i18n_metadata.propriority.filed_comments_n81i', 'Number', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '1', 6, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100033, 102, 'DI_BUSINESSPRO', NULL, 'lstart', 'i18n_metadata.lstart.filed_comments_n81i', 'VARCHAR2(128)', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '1', 7, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100034, 102, 'DI_BUSINESSPRO', NULL, 'iscritical', 'i18n_metadata.iscritical.filed_comments_n81i', 'VARCHAR2(128)', '2018-10-05 00:00:00', 1, '0', NULL, NULL, '1', 8, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100035, 103, 'DI_C3GLOG', NULL, 'logpath', 'path of log file', 'VARCHAR2(256)', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100036, 103, 'DI_C3GLOG', NULL, 'reptime', 'report time', 'DATE', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100037, 103, 'DI_C3GLOG', NULL, 'c3ip', 'c3 server IP', 'VARCHAR2(32)', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 3, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100038, 103, 'DI_C3GLOG', NULL, 'gdevip', 'G device IP', 'VARCHAR2(32)', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 4, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100039, 103, 'DI_C3GLOG', NULL, 'repcontent', 'details of report', 'VARCHAR2(256)', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 5, NULL, NULL, NULL, NULL);
INSERT INTO `metadata` VALUES (100040, 104, 'DI_DKLOG', '', 'logpath', 'path of log file', 'VARCHAR2(256)', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 1, NULL, '', 1, '');
INSERT INTO `metadata` VALUES (100041, 104, 'DI_DKLOG', '', 'reptime', 'report time', 'DATE', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 2, NULL, '', 2, '');
INSERT INTO `metadata` VALUES (100042, 104, 'DI_DKLOG', '', 'repcontent', 'details of report', 'VARCHAR2(256)', '2018-10-09 00:00:00', 1, '0', NULL, NULL, '1', 3, NULL, '', 3, '');

-- ----------------------------
-- Table structure for mission_file_information
-- ----------------------------
DROP TABLE IF EXISTS `mission_file_information`;
CREATE TABLE `mission_file_information`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `mission_id` int(11) NULL DEFAULT NULL COMMENT '任务id',
  `file_name` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件名称',
  `dest_path` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '源路径',
  `md5_value` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件校验值',
  `owner` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '推送文件的所有者（只针对Linux有效）',
  `permission` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '推送文件拥有的权限（只针对Linux有效）',
  `is_cover` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '覆盖标识（Y创建，N不创建 ，默认为N，忽略大小写）',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务推送文件信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for mission_parameter_table1
-- ----------------------------
DROP TABLE IF EXISTS `mission_parameter_table1`;
CREATE TABLE `mission_parameter_table1`  (
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id	主键',
  `mission_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务描述	可以为空',
  `source_path` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件源路径	不能为空，长度不能为0',
  `target_path` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件目的路径	不能为空，长度不能为0',
  `check_value` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件校验值	不能为空，初步可以设定文件长度',
  `node_list_id` int(11) NULL DEFAULT NULL COMMENT '节点组id	不能为空，外键',
  `os_limits` decimal(22, 0) NULL DEFAULT NULL COMMENT '-1系统类型无关（用于非系统升级标识）  0全系统 ， 1Windows系统， 2 Linux系统',
  `start_time` datetime(0) NULL DEFAULT NULL COMMENT '启动时间，或文件推送后任务重启时间',
  `version` decimal(22, 0) NULL DEFAULT NULL COMMENT '版本号',
  `is_create_cover` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建覆盖标识（Y创建，N不创建 ，默认为N，忽略大小写）',
  `command_para` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '文件推送参数',
  `node_groups_id` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务的有效节点组范围',
  `node_ips_id` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设置的有效节点范围（存储节点id，用逗号连接）。如果有NODES_IP有值则不管节点组的有效范围；如果NODES_IP无值则使用节点组的范围；如果NODES_IP和NODE_GROUPS_ID均为空则有效范围是SYSTEM_ID系统内全部有效节点；如果三者均为空则有效范围为NMS系统内全部有效节点',
  PRIMARY KEY (`mission_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务参数表1对应任务类型是文件推送的任务' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for mission_parameter_table4
-- ----------------------------
DROP TABLE IF EXISTS `mission_parameter_table4`;
CREATE TABLE `mission_parameter_table4`  (
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id	主键',
  `mission_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务描述	可以为空',
  `command_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '类型',
  `command_id` decimal(22, 0) NULL DEFAULT NULL COMMENT 'commond id',
  `command_para` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '文件推送参数',
  `filter_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '过滤类型',
  `filter_keyword` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '过滤关键词	支持与或表达式',
  `max_return` decimal(22, 0) NULL DEFAULT NULL COMMENT '返回结果最大长度	不能为空，缺省1024，返回结果的最大长度',
  `node_list_id` int(11) NULL DEFAULT NULL COMMENT '节点组id	不能为空，外键',
  `version` decimal(22, 0) NULL DEFAULT NULL COMMENT '版本号',
  `node_groups_id` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务的有效节点组范围',
  `node_ips_id` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设置的有效节点范围（存储节点id，用逗号连接）。如果有NODES_IP有值则不管节点组的有效范围；如果NODES_IP无值则使用节点组的范围；如果NODES_IP和NODE_GROUPS_ID均为空则有效范围是SYSTEM_ID系统内全部有效节点；如果三者均为空则有效范围为NMS系统内全部有效节点',
  `command_ename` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '命令名称，根据要求废弃command_id,使用命令名称作为命令唯一标识关联命令信息',
  PRIMARY KEY (`mission_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务参数表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for mission_parameter_table6
-- ----------------------------
DROP TABLE IF EXISTS `mission_parameter_table6`;
CREATE TABLE `mission_parameter_table6`  (
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id',
  `mission_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务描述',
  `command_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '类型',
  `command_id` int(11) NULL DEFAULT NULL COMMENT 'command id',
  `command_para` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '文件推送参数',
  `filter_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '过滤类型',
  `filter_keyword` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '过滤关键词	支持与或表达式',
  `max_return` decimal(22, 0) NULL DEFAULT NULL COMMENT '返回结果最大长度	不能为空，缺省1024，返回结果的最大长度',
  `node_list_id` int(11) NULL DEFAULT NULL COMMENT '节点组id	不能为空，外键',
  `source_path` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件源路径	不能为空，长度不能为0',
  `target_path` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件目的路径	不能为空，长度不能为0',
  `check_value` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '文件校验值	不能为空，初步可以设定文件长度',
  `start_time` datetime(0) NULL DEFAULT NULL COMMENT '启动时间，或文件推送后任务重启时间',
  `version` decimal(22, 0) NULL DEFAULT NULL COMMENT '版本号',
  `node_groups_id` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务的有效节点组范围',
  `node_ips_id` varchar(4000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设置的有效节点范围（存储节点id，用逗号连接）。如果有NODES_IP有值则不管节点组的有效范围；如果NODES_IP无值则使用节点组的范围；如果NODES_IP和NODE_GROUPS_ID均为空则有效范围是SYSTEM_ID系统内全部有效节点；如果三者均为空则有效范围为NMS系统内全部有效节点',
  `old_task_id` int(11) NULL DEFAULT NULL COMMENT '再次执行任务ID',
  `command_ename` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '命令名称，根据要求废弃command_id,使用命令名称作为命令唯一标识关联命令信息',
  PRIMARY KEY (`mission_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务参数表6升级任务参数信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for mission_result_table1
-- ----------------------------
DROP TABLE IF EXISTS `mission_result_table1`;
CREATE TABLE `mission_result_table1`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id	和下一项联合主键',
  `node_id` int(11) NULL DEFAULT NULL COMMENT '节点id	节点id',
  `result` decimal(22, 0) NULL DEFAULT NULL COMMENT '执行失败，最终结果1;最终执行成功状态为0',
  `result_desc` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '失败原因	可以为空',
  `seq_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '物理位置唯一节点',
  PRIMARY KEY (`id`, `mission_id`, `seq_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 46 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for mission_result_table4
-- ----------------------------
DROP TABLE IF EXISTS `mission_result_table4`;
CREATE TABLE `mission_result_table4`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id',
  `node_id` int(11) NULL DEFAULT NULL COMMENT '节点id',
  `result` decimal(22, 0) NULL DEFAULT NULL COMMENT '3任务信息下发中；40任务信息下发成功（信息有NMSAgent端提供），41任务信息下发失败（信息有NMSServer端提供）；以下结果由NMSAgent端提供：50停用进程成功，51停用进程失败；60备份失败，61备份成功；70覆盖目标目录成功，71覆盖目标目录失败；80启动成功，81启动失败；每个失败都表示本节点执行失败，最终结果1;最终执行成功状态为0',
  `result_desc` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '描述',
  `seq_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '物理位置唯一节点',
  `file_info` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '上传文件存储字段（格式： 显示名称$@$实际名称;显示名称$@$实际名称',
  `result_detail` int(11) NULL DEFAULT NULL COMMENT '任务结果失败的具体原因，目前只用于下发失败的情况(41)，主要用于下发失败后，再次初始化周期任务的结果时，默认结果为1（失败），具体结果为41（下发失败）',
  PRIMARY KEY (`id`, `mission_id`, `seq_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3022 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for mission_result_table6
-- ----------------------------
DROP TABLE IF EXISTS `mission_result_table6`;
CREATE TABLE `mission_result_table6`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id',
  `node_id` int(11) NULL DEFAULT NULL COMMENT '节点id',
  `result` decimal(22, 0) NULL DEFAULT NULL COMMENT '3任务信息下发中；40任务信息下发成功（信息有NMSAgent端提供），41任务信息下发失败（信息有NMSServer端提供）；以下结果由NMSAgent端提供：50停用进程成功，51停用进程失败；60备份失败，61备份成功；70覆盖目标目录成功，71覆盖目标目录失败；80启动成功，81启动失败；每个失败都表示本节点执行失败，最终结果1;最终执行成功状态为0',
  `result_desc` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '描述',
  `seq_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '物理位置唯一节点',
  `file_info` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '上传文件存储字段（格式： 显示名称$@$实际名称;显示名称$@$实际名称',
  PRIMARY KEY (`id`, `mission_id`, `seq_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 130 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for mission_state_table
-- ----------------------------
DROP TABLE IF EXISTS `mission_state_table`;
CREATE TABLE `mission_state_table`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mission_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '任务id',
  `mission_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务名称',
  `mission_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '任务类型	不能为空，类型可选[1、2、3、4、5]1-文件推送\r\n2-非流文本数据获取\r\n3-流文本数据获取\r\n4-命令执行\r\n5-shell注册',
  `mission_state` decimal(22, 0) NULL DEFAULT NULL COMMENT '任务状态  不能为空，状态可选[0、1、2、3、4、5]0-任务信息保存 1-任务已创建',
  `view_level` decimal(22, 0) NULL DEFAULT NULL COMMENT '查看范围取值范围[1、3]\r\n1-发布人查看\r\n2-发布人所在组查看\r\n3-系统内全部人员可看',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `group_id` int(11) NULL DEFAULT NULL COMMENT '用户组id',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `start_time` datetime(0) NULL DEFAULT NULL COMMENT '开始执行时间',
  `end_time` datetime(0) NULL DEFAULT NULL COMMENT '中止时间',
  `fail_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '失败原因',
  `system_id` int(11) NULL DEFAULT NULL COMMENT '业务系统id',
  `is_loop` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否定时任务	不能为空：1是；0不是。默认值0',
  `loop_delay` decimal(22, 0) NULL DEFAULT NULL COMMENT '任务循环周期，单位为分钟	Loop_flag为1时不能为空',
  `contact_user_ids` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '联系人ID,逗号间隔',
  `failed_count` decimal(22, 0) NULL DEFAULT 0 COMMENT '失败数',
  `auto_desc` varchar(3200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `mission_state_desc` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务结果状态的描述信息',
  `is_look` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否查看结果：0已查看  1未查看',
  `look_user_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '查看人ID',
  PRIMARY KEY (`id`, `mission_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 211 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务状态表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for nms_error_code
-- ----------------------------
DROP TABLE IF EXISTS `nms_error_code`;
CREATE TABLE `nms_error_code`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `error_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '异常code;非空不重复',
  `error_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '异常名称:非空不重复',
  `error_des` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常描述',
  `error_level` decimal(22, 0) NOT NULL DEFAULT 0 COMMENT '错误（告警）级别',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'NMS异常代码表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for nms_error_info
-- ----------------------------
DROP TABLE IF EXISTS `nms_error_info`;
CREATE TABLE `nms_error_info`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `error_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常code：非空',
  `error_time` datetime(0) NOT NULL COMMENT '异常产生时间：非空',
  `errort_getip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常信息提供IP：非空',
  `errort_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常信息产生IP：非空',
  `error_state` decimal(22, 0) NULL DEFAULT NULL COMMENT '非空异常状态非空：0已解决；1未解决',
  `state_update_time` datetime(0) NULL DEFAULT NULL COMMENT '解决时间',
  `state_update_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '解决人',
  `error_des` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常描述信息',
  PRIMARY KEY (`id`, `error_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '异常信息表' ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`error_time`))
PARTITIONS 1
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for node_box_table
-- ----------------------------
DROP TABLE IF EXISTS `node_box_table`;
CREATE TABLE `node_box_table`  (
  `box_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'id主键',
  `descinfo` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '机柜描述',
  `ispn` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '机柜编号',
  `box_u_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '机柜U位',
  `room_ispn` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '机房编号',
  `room_row_position` decimal(22, 0) NULL DEFAULT NULL COMMENT '机房行号',
  `room_col_position` decimal(22, 0) NULL DEFAULT NULL COMMENT '机房列号',
  PRIMARY KEY (`box_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机柜信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_figure_info
-- ----------------------------
DROP TABLE IF EXISTS `node_figure_info`;
CREATE TABLE `node_figure_info`  (
  `id` bigint(20) NOT NULL DEFAULT 0 COMMENT '主键',
  `pid` decimal(22, 0) NOT NULL COMMENT '父id',
  `device_type_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备型号:作为设置数据检查参照',
  `seqid` int(11) NOT NULL COMMENT '节点物理标识',
  `show_level` decimal(22, 0) NOT NULL COMMENT '图形级别:最多支持5级',
  `show_index` decimal(22, 0) NULL DEFAULT NULL COMMENT '级别下位置序号:注意从0还是从1开始',
  `name_flag` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称标识:例如：pos1_0,xgei_2/3,\r\nTen-GigabitEthernet14/0/1等',
  `port_oper_status` decimal(22, 0) NOT NULL COMMENT '状态：1up；2down',
  `port_status` decimal(22, 0) NOT NULL COMMENT 'Up端口的状态:0不正常；1正常',
  `figure_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'rect、circle、image等svg图形类型',
  `figure_x` decimal(22, 0) NULL DEFAULT NULL COMMENT 'x坐标',
  `figure_y` decimal(22, 0) NULL DEFAULT NULL COMMENT 'y坐标',
  `figure_width` decimal(22, 0) NULL DEFAULT NULL COMMENT '宽',
  `figure_height` decimal(22, 0) NULL DEFAULT NULL COMMENT '高',
  `figure_stroke` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '边缘填充色',
  `figure_stroke_width` decimal(22, 0) NULL DEFAULT NULL COMMENT '边缘宽度',
  `figure_fill` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '填充色:图形为填充色；image为xlink:href内容',
  `data_check_time_digital` decimal(22, 0) NULL DEFAULT NULL COMMENT '监测时间id（new）作为svg文件名称',
  `add_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
  `add_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '添加人',
  `last_update_time` datetime(0) NULL DEFAULT NULL COMMENT '最后修改时间',
  `last_update_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '最后修改人',
  `figure_fill_model` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '做为FIGURE_FILL字段的模板',
  `is_leaf` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否有链接，1：是，0：否（有的叶子节点没有链接，如电源、风扇）',
  `port_set_state` decimal(22, 0) NULL DEFAULT NULL COMMENT '端口设置状态：1up；2down',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '节点图形定义（根据设置生成）' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_ip_table
-- ----------------------------
DROP TABLE IF EXISTS `node_ip_table`;
CREATE TABLE `node_ip_table`  (
  `node_ip` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点ip',
  `node_id` int(11) NULL DEFAULT NULL COMMENT '节点id',
  `node_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '节点类型'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_lattice_record
-- ----------------------------
DROP TABLE IF EXISTS `node_lattice_record`;
CREATE TABLE `node_lattice_record`  (
  `v_number` int(11) NOT NULL,
  `v_nodeSeqs` int(11) NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_lattice_table
-- ----------------------------
DROP TABLE IF EXISTS `node_lattice_table`;
CREATE TABLE `node_lattice_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0 COMMENT '主键',
  `lattice_position` decimal(22, 0) NOT NULL COMMENT '机柜中的U位位置从下到上',
  `node_box_id` int(11) NOT NULL COMMENT '机柜id',
  `node_seq` int(11) NULL DEFAULT NULL COMMENT '物理节点seqid',
  `lottice_position_temp` decimal(22, 0) NULL DEFAULT NULL COMMENT '机柜中的U位位置从下到上bak',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机柜中个节点的格子' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_position
-- ----------------------------
DROP TABLE IF EXISTS `node_position`;
CREATE TABLE `node_position`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `table_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表名',
  `node_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点类型',
  `node_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点id',
  `position_x` decimal(22, 0) NULL DEFAULT NULL COMMENT '横坐标位置',
  `position_y` decimal(22, 0) NULL DEFAULT NULL COMMENT '纵坐标位置',
  `image_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '图片路径',
  `view_time_mark` datetime(0) NULL DEFAULT NULL COMMENT '创建展示的时间  通过时间间隔 ，借助CSS样式，用于区别新旧节点',
  `view_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '展示类别（0:默认值，普通节点  1:图标集合，可双击展示子图  2:方块集合，其子节点均为方块展示）',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '父级关联节点ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '拓扑位置关系表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_room_lattice_table
-- ----------------------------
DROP TABLE IF EXISTS `node_room_lattice_table`;
CREATE TABLE `node_room_lattice_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0 COMMENT '主键id',
  `lattice_row_position` decimal(22, 0) NOT NULL COMMENT '机房中的行位置',
  `lattice_col_position` decimal(22, 0) NOT NULL COMMENT '机房中的列位置',
  `room_id` int(11) NOT NULL COMMENT '机房id',
  `node_box_id` int(11) NULL DEFAULT NULL COMMENT '机柜id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机房位置表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_room_table
-- ----------------------------
DROP TABLE IF EXISTS `node_room_table`;
CREATE TABLE `node_room_table`  (
  `room_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'ID主键',
  `room_ispn` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机房编号',
  `room_desc` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '机房描述',
  `room_rows` decimal(22, 0) NULL DEFAULT NULL COMMENT '机房行数',
  `room_cols` decimal(22, 0) NULL DEFAULT NULL COMMENT '机房列数',
  `create_user_id` int(11) NULL DEFAULT NULL COMMENT '创建用户id',
  `create_datetime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_user_id` int(11) NULL DEFAULT NULL COMMENT '修改用户id',
  `update_datetime` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`room_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '机房表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for node_table
-- ----------------------------
DROP TABLE IF EXISTS `node_table`;
CREATE TABLE `node_table`  (
  `node_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '主键',
  `node_ip` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'ip',
  `node_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '节点类型：服务器等',
  `node_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点名称',
  `node_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述',
  `node_state` decimal(22, 0) NULL DEFAULT NULL COMMENT '节点状态：0，有效；1，无效\'',
  `system_id` int(11) NULL DEFAULT NULL COMMENT '业务系统id',
  `node_createtime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` int(11) NULL DEFAULT NULL COMMENT '创建人id',
  `node_stoptime` datetime(0) NULL DEFAULT NULL COMMENT '停用时间',
  `stop_user_id` int(11) NULL DEFAULT NULL COMMENT '停用人id',
  `is_temp` decimal(22, 0) NULL DEFAULT 0 COMMENT '临时节点标识默认0 临时节点，1为确认节点',
  `ipn` decimal(22, 0) NULL DEFAULT NULL COMMENT '整型IP值',
  `node_lattice_id` decimal(22, 0) NULL DEFAULT NULL COMMENT '格子id',
  `seq_id` int(11) NULL DEFAULT NULL COMMENT '物理主机的唯一标识',
  `node_group_id` int(11) NULL DEFAULT NULL COMMENT '节点组id',
  `node_u_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '节点物理厚度（U位）',
  `brand_id` int(11) NULL DEFAULT NULL COMMENT '品牌id',
  `snmp_version` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点支持的SNMP 的版本标准  version2c=1  version3=3',
  `node_system_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '节点的操作系统类型：1 Linux，2   Windows， 3 Other',
  `node_mac` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点MAC地址',
  `node_ip_info` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点IP信息',
  `node_begin_utype` decimal(22, 0) NULL DEFAULT NULL COMMENT '节点起始U位',
  `node_box_ispn` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '机柜编号',
  `node_username` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点机用户名',
  `node_password` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点机密码',
  `network_element_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '网元类型',
  `special_server_type` decimal(10, 0) NULL DEFAULT NULL COMMENT '特殊服务器类型',
  `sync_status` int(2) NULL DEFAULT 1 COMMENT 'sync_db_info 表中当前数据库配置的id',
  PRIMARY KEY (`node_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for nodegroup_arrow_position
-- ----------------------------
DROP TABLE IF EXISTS `nodegroup_arrow_position`;
CREATE TABLE `nodegroup_arrow_position`  (
  `id` int(11) NOT NULL COMMENT '主键id',
  `system_id` int(11) NOT NULL COMMENT '业务系统id',
  `src_group_id` int(11) NULL DEFAULT NULL COMMENT '箭头源节点组ID',
  `desc_group_id` int(11) NULL DEFAULT NULL COMMENT '箭头目标节点组ID',
  `figure_x` decimal(22, 0) NOT NULL COMMENT '图片X坐标',
  `figure_y` decimal(22, 0) NOT NULL COMMENT '图片y坐标',
  `figure_width` decimal(22, 0) NOT NULL COMMENT '宽',
  `figure_height` decimal(22, 0) NOT NULL COMMENT '高',
  `figure_fill` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '填充色',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '创建人id',
  `last_update_time` datetime(0) NULL DEFAULT NULL COMMENT '最后修改时间',
  `last_update_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '最后修改人id'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '拓扑图动态箭头位置预置数据表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for nodegroup_bgimg_position
-- ----------------------------
DROP TABLE IF EXISTS `nodegroup_bgimg_position`;
CREATE TABLE `nodegroup_bgimg_position`  (
  `id` bigint(20) NOT NULL DEFAULT 0 COMMENT '主键id',
  `system_id` int(11) NOT NULL COMMENT '业务系统id',
  `group_id` int(11) NOT NULL COMMENT '节点组ID',
  `figure_x` decimal(22, 0) NOT NULL COMMENT '图片x坐标',
  `figure_y` decimal(22, 0) NOT NULL COMMENT '图片y坐标',
  `figure_width` decimal(22, 0) NOT NULL COMMENT '宽',
  `figure_height` decimal(22, 0) NOT NULL COMMENT '高',
  `figure_fill` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '填充色',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_userid` int(11) NULL DEFAULT NULL COMMENT '创建人id',
  `last_update_time` datetime(0) NULL DEFAULT NULL COMMENT '最后一次修改时间',
  `last_update_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '最后一次修改人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '逻辑拓扑图节点组背景图片位置表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for nodegroup_position
-- ----------------------------
DROP TABLE IF EXISTS `nodegroup_position`;
CREATE TABLE `nodegroup_position`  (
  `id` bigint(20) NOT NULL DEFAULT 0 COMMENT '记录唯一标识',
  `system_id` int(11) NOT NULL COMMENT '业务系统id',
  `group_id` int(11) NOT NULL COMMENT '节点组id',
  `pgroup_id` int(11) NOT NULL COMMENT '父级组id',
  `show_level` decimal(22, 0) NOT NULL COMMENT '显示层级',
  `show_index` decimal(22, 0) NULL DEFAULT NULL COMMENT '显示序号',
  `figure_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'rect、circle、image等svg图形类型',
  `figure_x` decimal(22, 0) NULL DEFAULT NULL COMMENT 'x坐标',
  `figure_y` decimal(22, 0) NULL DEFAULT NULL COMMENT 'y坐标',
  `figure_width` decimal(22, 0) NULL DEFAULT NULL COMMENT '宽',
  `figure_height` decimal(22, 0) NULL DEFAULT NULL COMMENT '高',
  `figure_stroke` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '边缘填充色',
  `figure_stroke_width` decimal(22, 0) NULL DEFAULT NULL COMMENT '边宽',
  `figure_fill` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '填充色',
  `show_status` decimal(22, 0) NOT NULL COMMENT '0：正常 1：异常，匹配不到的不显示状态',
  `add_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
  `add_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '添加人',
  `last_update_time` datetime(0) NULL DEFAULT NULL COMMENT '最后修改时间',
  `last_update_userid` decimal(22, 0) NULL DEFAULT NULL COMMENT '最后修改人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '节点组位置信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for nodegroup_table
-- ----------------------------
DROP TABLE IF EXISTS `nodegroup_table`;
CREATE TABLE `nodegroup_table`  (
  `group_id` int(11) NOT NULL DEFAULT 0 COMMENT '主键',
  `group_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '节点组名称',
  `view_level` decimal(22, 0) NULL DEFAULT NULL COMMENT '查看权限范围',
  `create_user_id` int(11) NULL DEFAULT NULL COMMENT '创建人id',
  `create_usergroup_id` decimal(22, 0) NULL DEFAULT NULL COMMENT '创建人使用组id',
  `group_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '组类型：1临时，0常态',
  `group_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '组描述',
  `system_id` int(11) NULL DEFAULT NULL COMMENT '业务系统id',
  `is_valid` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否有效1有效，0无效',
  `group_createtime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `parent_group_id` int(11) NULL DEFAULT NULL COMMENT '父级组id',
  `leaf_group` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否叶子节点组：1是，0否',
  `group_level` decimal(22, 0) NULL DEFAULT NULL COMMENT '组级别',
  `show_index` decimal(22, 0) NULL DEFAULT NULL COMMENT '显示序号',
  `parent_group_ids` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '父节点组成的字符创，原始节点为0',
  PRIMARY KEY (`group_id`) USING BTREE,
  INDEX `IDX_NODEGROUP_SYSTEMFKIDNODEGR`(`system_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '节点组信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of nodegroup_table
-- ----------------------------
INSERT INTO `nodegroup_table` VALUES (100000, 'i18n_server.Constants.defaultNodeGroup_n81i', 4, NULL, NULL, 0, 'i18n_server.CommonService.saveDefault_n81i', NULL, 1, '2018-08-26 22:54:17', 0, 1, 1, 0, '0,');

-- ----------------------------
-- Table structure for oid_dictionary
-- ----------------------------
DROP TABLE IF EXISTS `oid_dictionary`;
CREATE TABLE `oid_dictionary`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `oid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `dsc` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for operate_audit_rz
-- ----------------------------
DROP TABLE IF EXISTS `operate_audit_rz`;
CREATE TABLE `operate_audit_rz`  (
  `seq` bigint(20) NOT NULL DEFAULT 0,
  `user_name` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `operate_desc` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `ins_time` datetime(0) NOT NULL,
  `is_upload` decimal(22, 0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`seq`) USING BTREE,
  INDEX `IDX_INSERT_TIME`(`ins_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for option_table
-- ----------------------------
DROP TABLE IF EXISTS `option_table`;
CREATE TABLE `option_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `type_identity` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典项代码同一TYPE_ID下不重复',
  `type_value` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典项名称',
  `show_num` decimal(22, 0) NULL DEFAULT NULL COMMENT '字典项显示序号',
  `type_state` decimal(22, 0) NULL DEFAULT 0 COMMENT '字典项状态0启用；1停用',
  `delay_time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '为0时，即时发，为-1时不发，其他数值为延时分钟数',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of option_table
-- ----------------------------
INSERT INTO `option_table` VALUES (100000, 'emergent', '1', 'i18n_option_table.1.type_value_n81i', 1, 0, '60');
INSERT INTO `option_table` VALUES (100001, 'isIdentical', '1', 'i18n_option_table.2.type_value_n81i', 1, 0, '0');
INSERT INTO `option_table` VALUES (100002, 'detecWarningLevel', '5', 'i18n_option_table.3.type_value_n81i', 5, 1, '0');
INSERT INTO `option_table` VALUES (100003, 'detecWarningLevel', '2', 'i18n_option_table.4.type_value_n81i', 2, 1, '0');
INSERT INTO `option_table` VALUES (100004, 'isIdentical', '0', 'i18n_option_table.5.type_value_n81i', 2, 0, '0');
INSERT INTO `option_table` VALUES (100005, 'detecWarningLevel', '1', 'i18n_option_table.6.type_value_n81i', 1, 0, '0');
INSERT INTO `option_table` VALUES (100006, 'detecWarningLevel', '3', 'i18n_option_table.7.type_value_n81i', 3, 1, '0');
INSERT INTO `option_table` VALUES (100007, 'detecWarningLevel', '4', 'i18n_option_table.8.type_value_n81i', 4, 1, '0');
INSERT INTO `option_table` VALUES (100008, 'emailflag', '1', 'i18n_option_table.9.type_value_n81i', 1, 1, '0');
INSERT INTO `option_table` VALUES (100009, 'diskwritestate', '0', 'i18n_option_table.10.type_value_n81i', 1, 0, NULL);
INSERT INTO `option_table` VALUES (100010, 'diskwritestate', '1', 'i18n_option_table.11.type_value_n81i', 2, 0, NULL);
INSERT INTO `option_table` VALUES (100011, 'emergent', '0', 'i18n_option_table.12.type_value_n81i', 0, 0, '0');
INSERT INTO `option_table` VALUES (100012, 'dpfan', 'normal', 'i18n_option_table.13.type_value_n81i', 1, 0, NULL);
INSERT INTO `option_table` VALUES (100013, 'dpfan', 'abnormal', 'i18n_option_table.14.type_value_n81i', 2, 0, NULL);
INSERT INTO `option_table` VALUES (100014, 'dpfan', 'offline', 'i18n_option_table.15.type_value_n81i', 3, 0, NULL);
INSERT INTO `option_table` VALUES (100015, 'netelementtype', '1', 'i18n_option_table.16.type_value_n81i', 1, 0, NULL);
INSERT INTO `option_table` VALUES (100016, 'netelementtype', '2', 'i18n_option_table.17.type_value_n81i', 2, 0, NULL);
INSERT INTO `option_table` VALUES (100017, 'netelementtype', '3', 'i18n_option_table.18.type_value_n81i', 3, 0, NULL);
INSERT INTO `option_table` VALUES (100018, 'netelementtype', '4', 'i18n_option_table.19.type_value_n81i', 4, 0, NULL);
INSERT INTO `option_table` VALUES (100019, 'monitorStatusInfo', 'i18n_option_table.20.type_code_n81i', 'i18n_option_table.20.type_value_n81i', 3, 0, '0');
INSERT INTO `option_table` VALUES (100020, 'monitorStatusInfo', 'i18n_option_table.21.type_code_n81i', 'i18n_option_table.21.type_value_n81i', 4, 0, '0');
INSERT INTO `option_table` VALUES (100021, 'monitorStatusInfo', 'i18n_option_table.22.type_code_n81i', 'i18n_option_table.22.type_value_n81i', 5, 0, '0');
INSERT INTO `option_table` VALUES (100022, 'monitorStatusInfo', 'i18n_option_table.23.type_code_n81i', 'i18n_option_table.23.type_value_n81i', 6, 0, '0');
INSERT INTO `option_table` VALUES (100023, 'monitorStatusInfo', 'i18n_option_table.24.type_code_n81i', 'i18n_option_table.24.type_value_n81i', 1, 0, '0');
INSERT INTO `option_table` VALUES (100024, 'monitorStatusInfo', 'ss', 'ss', 2, 0, '0');
INSERT INTO `option_table` VALUES (100025, 'monitorStatusInfo', 'i18n_option_table.26.type_code_n81i', 'i18n_option_table.26.type_value_n81i', 1, 0, '0');
INSERT INTO `option_table` VALUES (100026, 'monitorStatusInfo', 'i18n_option_table.27.type_code_n81i', 'i18n_option_table.27.type_value_n81i', 7, 0, '0');
INSERT INTO `option_table` VALUES (100027, 'specialServerType', '1', 'i18n_option_table.28.type_value_n81i', 1, 0, NULL);
INSERT INTO `option_table` VALUES (100028, 'specialServerType', '2', 'i18n_option_table.29.type_value_n81i', 2, 0, NULL);

-- ----------------------------
-- Table structure for order_table
-- ----------------------------
DROP TABLE IF EXISTS `order_table`;
CREATE TABLE `order_table`  (
  `command_id` bigint(20) NOT NULL DEFAULT 0,
  `command_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '命令名称',
  `command_desc` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '命令描述',
  `command_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '命令类型',
  `command_flag` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `shell_path` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '脚本路径',
  `shell_check` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `is_valid` decimal(22, 0) NULL DEFAULT NULL,
  `command_model` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '命令模板',
  `command_alias` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '别名',
  `command_modelnew` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '模板名称',
  PRIMARY KEY (`command_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '命令信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of order_table
-- ----------------------------
INSERT INTO `order_table` VALUES (1, 'upgrade_kill_process', 'i18n_order_table.upgrade_kill_process.command_desc_n81i', 1, 'Os.val.mem.used', NULL, NULL, 1, NULL, 'i18n_kill_process_n81i', 'killProcessTemplate');
INSERT INTO `order_table` VALUES (2, 'upgrade_backup', 'i18n_order_table.upgrade_backup.command_desc_n81i', 1, 'Os.val.disk.used', NULL, NULL, 1, 'i18n_order_table.upgrade_backup.command_model_n81i', 'i18n_backup_n81i', 'backupTemplate');
INSERT INTO `order_table` VALUES (3, 'upgrade_update', 'i18n_order_table.upgrade_update.command_desc_n81i', 1, 'Os.str.process', NULL, NULL, 1, 'i18n_order_table.upgrade_update.command_model_n81i', 'i18n_update_n81i', 'updateTemplate');
INSERT INTO `order_table` VALUES (4, 'upgrade_start', 'i18n_order_table.upgrade_start.command_desc_n81i', 1, 'Os.val.last.restart', NULL, NULL, 1, 'i18n_order_table.upgrade_start.command_model_n81i', 'i18n_start_n81i', 'startTemplate');
INSERT INTO `order_table` VALUES (5, 'upgrade_recover', 'i18n_order_table.upgrade_recover.command_desc_n81i', 1, 'Os.val.file.modify.time', 'i18n_order_table.upgrade_recover.shell_path_n81i', NULL, 1, 'i18n_order_table.upgrade_recover.command_model_n81i', 'i18n_recover_n81i', 'recoverTemplate');
INSERT INTO `order_table` VALUES (6, 'upgrade_exec', 'i18n_order_table.upgrade_exec.command_desc_n81i', 2, 'date', 'test_1305174377363.sh', 'fd4df417fc6cad0da1a49fb9872f59dd', 1, 'i18n_order_table.upgrade_exec.command_model_n81i', 'i18n_exec_n81i', 'startTemplate');
INSERT INTO `order_table` VALUES (7, 'push_file', 'i18n_order_table.push_file.command_desc_n81i', 5, NULL, NULL, NULL, 1, 'i18n_order_table.push_file.command_model_n81i', 'i18n_push_file_n81i', 'paramM1Template');
INSERT INTO `order_table` VALUES (8, 'upgrade_agent', 'i18n_order_table.upgrade_agent.command_desc_n81i', 4, NULL, NULL, NULL, 1, 'i18n_order_table.upgrade_agent.command_model_n81i', 'i18n_agent_n81i', 'AgentUpgradeTemplate');
INSERT INTO `order_table` VALUES (9, 'upgrade_other', 'i18n_order_table.upgrade_other.command_desc_n81i', 4, 'Os.val.cpu.used', NULL, NULL, 1, 'i18n_order_table.upgrade_other.command_model_n81i', 'i18n_other_n81i', 'OtherUpgradeTemplate');
INSERT INTO `order_table` VALUES (10, 'upgrade_server', 'i18n_order_table.upgrade_server.command_desc_n81i', 4, NULL, NULL, NULL, 1, 'i18n_order_table.upgrade_server.command_model_n81i', 'i18n_server_n81i', 'OtherUpgradeTemplate');
INSERT INTO `order_table` VALUES (11, 'single_exec', 'i18n_order_table.single_exec.command_desc_n81i', 2, NULL, NULL, NULL, 1, NULL, 'i18n_single_exec_n81i', 'SingleExecTemplate');

-- ----------------------------
-- Table structure for plugin_info
-- ----------------------------
DROP TABLE IF EXISTS `plugin_info`;
CREATE TABLE `plugin_info`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工具名称',
  `des` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '工具描述',
  `file_name` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件名',
  `creat_userid` int(11) NULL DEFAULT NULL COMMENT '创建人',
  `creat_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_userid` int(11) NULL DEFAULT NULL COMMENT '修改人',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '存放工具管理信息' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for pro_exec_log
-- ----------------------------
DROP TABLE IF EXISTS `pro_exec_log`;
CREATE TABLE `pro_exec_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `log_time` timestamp(0) NOT NULL DEFAULT current_timestamp() COMMENT '日志记录时间，默认取数据库时间',
  `proname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '存储过程名称',
  `sequence` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '步骤编号',
  `log_cont` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '日志详细内容',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7717 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of pro_exec_log
-- ----------------------------


-- ----------------------------
-- Table structure for procedure_log
-- ----------------------------
DROP TABLE IF EXISTS `procedure_log`;
CREATE TABLE `procedure_log`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `pro_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '存储过程名称',
  `pro_sql` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '存储过程语句',
  `er_info` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常信息',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '存储过程异常日志信息' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for proexecinfo
-- ----------------------------
DROP TABLE IF EXISTS `proexecinfo`;
CREATE TABLE `proexecinfo`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `proname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '存储过程名称',
  `param` decimal(22, 0) NULL DEFAULT NULL COMMENT '执行参数值，在存储过程执行到每一行都更参数值',
  `prodesc` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '执行存储过程到每一行需要存储的关键字数据',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '存储过程执行信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_blob_triggers`;
CREATE TABLE `qrtz_blob_triggers`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `BLOB_DATA` blob NULL DEFAULT NULL,
  PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  INDEX `SCHED_NAME`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_calendars`;
CREATE TABLE `qrtz_calendars`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `CALENDAR` blob NOT NULL,
  PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_cron_triggers`;
CREATE TABLE `qrtz_cron_triggers`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `CRON_EXPRESSION` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TIME_ZONE_ID` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_fired_triggers`;
CREATE TABLE `qrtz_fired_triggers`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `ENTRY_ID` varchar(95) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `FIRED_TIME` bigint(13) NOT NULL,
  `SCHED_TIME` bigint(13) NOT NULL,
  `PRIORITY` int(11) NOT NULL,
  `STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`) USING BTREE,
  INDEX `IDX_QRTZ_FT_TRIG_INST_NAME`(`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE,
  INDEX `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY`(`SCHED_NAME`, `INSTANCE_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
  INDEX `IDX_QRTZ_FT_J_G`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_FT_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_FT_T_G`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_FT_TG`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for qrtz_job_details
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_job_details`;
CREATE TABLE `qrtz_job_details`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `JOB_CLASS_NAME` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `IS_DURABLE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `IS_UPDATE_DATA` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `JOB_DATA` blob NULL DEFAULT NULL,
  PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_J_REQ_RECOVERY`(`SCHED_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
  INDEX `IDX_QRTZ_J_GRP`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_job_details
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_locks`;
CREATE TABLE `qrtz_locks`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `LOCK_NAME` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_locks
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
CREATE TABLE `qrtz_paused_trigger_grps`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_scheduler_state`;
CREATE TABLE `qrtz_scheduler_state`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `LAST_CHECKIN_TIME` bigint(13) NOT NULL,
  `CHECKIN_INTERVAL` bigint(13) NOT NULL,
  PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_scheduler_state
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simple_triggers`;
CREATE TABLE `qrtz_simple_triggers`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `REPEAT_COUNT` bigint(7) NOT NULL,
  `REPEAT_INTERVAL` bigint(12) NOT NULL,
  `TIMES_TRIGGERED` bigint(10) NOT NULL,
  PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_simple_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
CREATE TABLE `qrtz_simprop_triggers`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `STR_PROP_1` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `STR_PROP_2` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `STR_PROP_3` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `INT_PROP_1` int(11) NULL DEFAULT NULL,
  `INT_PROP_2` int(11) NULL DEFAULT NULL,
  `LONG_PROP_1` bigint(20) NULL DEFAULT NULL,
  `LONG_PROP_2` bigint(20) NULL DEFAULT NULL,
  `DEC_PROP_1` decimal(13, 4) NULL DEFAULT NULL,
  `DEC_PROP_2` decimal(13, 4) NULL DEFAULT NULL,
  `BOOL_PROP_1` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `BOOL_PROP_2` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for qrtz_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_triggers`;
CREATE TABLE `qrtz_triggers`  (
  `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `NEXT_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
  `PREV_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
  `PRIORITY` int(11) NULL DEFAULT NULL,
  `TRIGGER_STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `TRIGGER_TYPE` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `START_TIME` bigint(13) NOT NULL,
  `END_TIME` bigint(13) NULL DEFAULT NULL,
  `CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `MISFIRE_INSTR` smallint(2) NULL DEFAULT NULL,
  `JOB_DATA` blob NULL DEFAULT NULL,
  PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_T_J`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_T_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_T_C`(`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE,
  INDEX `IDX_QRTZ_T_G`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE,
  INDEX `IDX_QRTZ_T_STATE`(`SCHED_NAME`, `TRIGGER_STATE`) USING BTREE,
  INDEX `IDX_QRTZ_T_N_STATE`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
  INDEX `IDX_QRTZ_T_N_G_STATE`(`SCHED_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
  INDEX `IDX_QRTZ_T_NEXT_FIRE_TIME`(`SCHED_NAME`, `NEXT_FIRE_TIME`) USING BTREE,
  INDEX `IDX_QRTZ_T_NFT_ST`(`SCHED_NAME`, `TRIGGER_STATE`, `NEXT_FIRE_TIME`) USING BTREE,
  INDEX `IDX_QRTZ_T_NFT_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`) USING BTREE,
  INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_STATE`) USING BTREE,
  INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
  CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `qrtz_job_details` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for server_ip_segment
-- ----------------------------
DROP TABLE IF EXISTS `server_ip_segment`;
CREATE TABLE `server_ip_segment`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `server_id` int(11) NOT NULL COMMENT 'Server_table Id',
  `start_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '起始ip',
  `start_ipn` decimal(22, 0) NULL DEFAULT NULL COMMENT '起始ipn',
  `end_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '结束ip',
  `end_ipn` decimal(22, 0) NULL DEFAULT NULL COMMENT '结束ipn',
  `segment_state` decimal(22, 0) NULL DEFAULT 0 COMMENT '范围状态标示（0:固定和默认值 1:临时 2:自定义  -1:无效）（预留值-1，用于优化业务）',
  `node_type` decimal(22, 0) NULL DEFAULT NULL COMMENT '节点类型（由节点表 服务器交换机等节点类型的对应值）',
  `node_count` decimal(22, 0) NULL DEFAULT NULL COMMENT '管理节点数（计算后更新，只作为展示使用）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'NMSDataController服务器IP段信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for server_table
-- ----------------------------
DROP TABLE IF EXISTS `server_table`;
CREATE TABLE `server_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `server_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'NMSDataController名称',
  `server_state` decimal(22, 0) NULL DEFAULT NULL COMMENT 'server状态 0有效 1无效',
  `server_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'server_ip',
  `server_ipn` decimal(22, 0) NULL DEFAULT NULL COMMENT 'server_ipn',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `server_desc` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'NMSDataController 服务器信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for set_det_data_con
-- ----------------------------
DROP TABLE IF EXISTS `set_det_data_con`;
CREATE TABLE `set_det_data_con`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `menu_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '菜单名称，对应菜单名称修改时，可以修改，用于显示给用户',
  `police_level` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '告警级别：目前支持1-5级',
  `police_emergent` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '告警是否紧急 0：紧急  1：非紧急',
  `menu_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '菜单编号，不会改变',
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10006 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '监测数据列表过滤条件的设置信息表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of set_det_data_con
-- ----------------------------
INSERT INTO `set_det_data_con` VALUES (6, 'i18n_xt_mk_jbxx.441.mkmc_n81i', NULL, NULL, '3DroomWarningInfo');
INSERT INTO `set_det_data_con` VALUES (1, 'i18n_set_det_data_con.1.menu_name_n81i', NULL, ',0,', 'logicTopo');
INSERT INTO `set_det_data_con` VALUES (2, 'i18n_set_det_data_con.2.menu_name_n81i', NULL, ',0,', 'allWarningInfo');
INSERT INTO `set_det_data_con` VALUES (3, 'i18n_set_det_data_con.3.menu_name_n81i', NULL, NULL, 'serverWarningInfo');
INSERT INTO `set_det_data_con` VALUES (4, 'i18n_set_det_data_con.4.menu_name_n81i', NULL, ',0,1,', 'netEleWarningInfo');
INSERT INTO `set_det_data_con` VALUES (5, 'i18n_set_det_data_con.5.menu_name_n81i', NULL, ',0,', 'emergentwarningInfo');

-- ----------------------------
-- Table structure for sort_info
-- ----------------------------
DROP TABLE IF EXISTS `sort_info`;
CREATE TABLE `sort_info`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `sort_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '类别名称',
  `sort_desc` varchar(600) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '类别描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '监测名称定义表：如cpu用户使用率(%)、cpu系统使用率(%) 、硬盘使用率等' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for sync_db_info
-- ----------------------------
DROP TABLE IF EXISTS `sync_db_info`;
CREATE TABLE `sync_db_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键，自增',
  `ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '数据库ip',
  `port` int(11) NOT NULL COMMENT '端口号',
  `database_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '数据库名称',
  `user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
  `master` int(1) NULL DEFAULT 0 COMMENT '是否为主库，0：否，1：是',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sync_db_info
-- ----------------------------
INSERT INTO `sync_db_info` VALUES (1, '127.0.0.1', 3306, 'nms-master', 'root', '111111', 1);
INSERT INTO `sync_db_info` VALUES (2, '127.0.0.1', 3306, 'nms-slave1', 'root', '111111', 0);

-- ----------------------------
-- Table structure for sys_addr_info
-- ----------------------------
DROP TABLE IF EXISTS `sys_addr_info`;
CREATE TABLE `sys_addr_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `addr_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地域名称',
  `addr_code` int(11) NOT NULL COMMENT '地域编码',
  `create_time` datetime(0) NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for sys_data_dictionary_item
-- ----------------------------
DROP TABLE IF EXISTS `sys_data_dictionary_item`;
CREATE TABLE `sys_data_dictionary_item`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `item_value` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `item_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `status` decimal(22, 0) NULL DEFAULT NULL,
  `type` decimal(22, 0) NULL DEFAULT NULL,
  `dic_id` int(11) NOT NULL,
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for sys_data_dictionary_name
-- ----------------------------
DROP TABLE IF EXISTS `sys_data_dictionary_name`;
CREATE TABLE `sys_data_dictionary_name`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `module_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `mark` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `remark` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `revision` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `create_time` datetime(0) NULL DEFAULT NULL,
  `modify_time` datetime(0) NULL DEFAULT NULL,
  `valid` decimal(22, 0) NULL DEFAULT NULL,
  INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for sys_device_info
-- ----------------------------
DROP TABLE IF EXISTS `sys_device_info`;
CREATE TABLE `sys_device_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `device_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备类型',
  `ip_addr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `device_id` int(11) NOT NULL COMMENT '设备ID，相同设备可对应多个运营商',
  `isp` int(11) NOT NULL COMMENT '运营商编码，例如ktel-mxpe:1001',
  `entrance_id` int(11) NOT NULL COMMENT '地域 1-astana 2-alamty',
  `status` int(11) NOT NULL,
  `create_time` datetime(0) NOT NULL,
  `link_id` int(11) NOT NULL COMMENT '链路号索引',
  `port_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '端口名称，多个用逗号分隔',
  `system_id` int(11) NOT NULL COMMENT '业务系统id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for sys_isp_info
-- ----------------------------
DROP TABLE IF EXISTS `sys_isp_info`;
CREATE TABLE `sys_isp_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `isp_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '通信运营商名称',
  `isp_code` int(11) NOT NULL COMMENT '通信运营商编码',
  `link_type_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '链路类型名称',
  `link_type_code` int(11) NOT NULL COMMENT '链路类型编码',
  `isp_key_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '运营商唯一标识名称，例如ktel-mxpe:1001',
  `isp_key_code` int(11) NOT NULL COMMENT '运营商唯一标识编码',
  `create_time` datetime(0) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for sys_sequence
-- ----------------------------
DROP TABLE IF EXISTS `sys_sequence`;
CREATE TABLE `sys_sequence`  (
  `NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '序号名称',
  `CURRENT_VALUE` bigint(21) NOT NULL DEFAULT 0 COMMENT '值',
  `INCREMENT` int(11) NOT NULL DEFAULT 1 COMMENT '每次递增数',
  PRIMARY KEY (`NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of sys_sequence
-- ----------------------------
INSERT INTO `sys_sequence` VALUES ('SEQ_CHECK_TYPE_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_CHECK_TYPE_NAME', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DATA_POLICE_RELATION', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DELECT_INFO_NMSC', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECTION_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECTION_INFO_NEW', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECTION_INFO_WARNING', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECTION_SET_IDEN', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECTION_SET_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_CPU', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_DISK', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_MEMORY', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_NETDATA', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_PING', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_PROCESS', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_SNMP_TRAP', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DETECT_INFO_SYSTEM_DATE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DEVICE_BOARDSOLT_BOARD', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DEVICE_BRAND_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DEVICE_BRAND_TYPE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DEVICE_TYPE_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DICTIONARY_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_CHECKSET_GRID', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_DPBOARDSTATUSENTRY', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_DPSLOTENTRY', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_DPSYSTEMFANENTRY', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_DPSYSTEMFANENTRY2', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_DPSYSTEMPOWERENTRY', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_DPSYSTEMPOWERENTRY2', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_DPSYSTEMSTATUS', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_IFXTABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_KINGTEST', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_MENCPU', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_SWITCHPORT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_SYSTEM', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_SYSTEMINFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_SYSTEMZG', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_TCT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_TCT2', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_TCT3', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_TCT4', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_TESTLOCAL', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_DI_TT_INDEX', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_EMAIL_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_EVENT_RECORD_LIBRARY', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_FAIL_COMMUNICATION_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_GORUP_SYSTEM_TABLE', 100017, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_IMG_URL', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_METADATA', 100050, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MIB_SORT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_FILE_INFORMATION', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_PARAMETER_DEFAULTS', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_PARAMETER_TABLE1', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_PARAMETER_TABLE2', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_PARAMETER_TABLE3', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_PARAMETER_TABLE4', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_PARAMETER_TABLE5', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_RESULT_TABLE1', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_RESULT_TABLE2', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_RESULT_TABLE3', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_RESULT_TABLE4', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_RESULT_TABLE5', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_MISSION_STATE_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NMS_ERROR_CODE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NMS_ERROR_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODEGROUP_ARROW_POSITION', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODEGROUP_BGIMG_POSITION', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODEGROUP_MEM_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODEGROUP_POSITION', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODEGROUP_TABLE', 100000, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_BOX_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_FIGURE_INFO', 100277, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_IP_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_LATTICE_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_POSITION', 100016, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_ROOM_LATTICE_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_ROOM_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_NODE_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_OID_DICTIONARY', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_OPTION_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_ORDER_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_PLUGIN_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_POLICE_POINT_SET', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_PROCEDURE_LOG', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_PROEXECINFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_PRO_EXEC_LOG', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_SEQ_ID', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_SERVER_IP_SEGMENT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_SERVER_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_SET_DET_DATA_CON', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_SORT_INFO', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_SYSTEM_TABLE', 100017, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TABLEDBOPERATIONRPT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TABLEDEPARTMENT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TABLELOGINRPT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TABLEUSERDEPARTMENT', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TABLE_GUIDE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TESTTRRGGER', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TEST_BONECP_ZG', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TROUBLE_STATE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_TYPE_TABLE', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_XT_JS_JBXX', 100033, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_XT_JS_MK_GN_INDEX', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_XT_JS_MK_INDEX', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_XT_MK_GN_JBXX', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_XT_MK_JBXX', 99999, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_XT_YH_JBXX', 100001, 1);
INSERT INTO `sys_sequence` VALUES ('SEQ_XT_YH_JS_INDEX', 100020, 1);

-- ----------------------------
-- Table structure for system_company_config
-- ----------------------------
DROP TABLE IF EXISTS `system_company_config`;
CREATE TABLE `system_company_config`  (
  `config_id` bigint(20) NOT NULL DEFAULT 0,
  `company_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `company_desc` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for system_gateway_config
-- ----------------------------
DROP TABLE IF EXISTS `system_gateway_config`;
CREATE TABLE `system_gateway_config`  (
  `config_id` bigint(20) NOT NULL DEFAULT 0,
  `gateway_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `gateway_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `port` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for system_ip_config
-- ----------------------------
DROP TABLE IF EXISTS `system_ip_config`;
CREATE TABLE `system_ip_config`  (
  `config_id` bigint(20) NOT NULL DEFAULT 0,
  `port` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `mac` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `description` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `ip_type` decimal(22, 0) NULL DEFAULT NULL,
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for system_proxy_config
-- ----------------------------
DROP TABLE IF EXISTS `system_proxy_config`;
CREATE TABLE `system_proxy_config`  (
  `config_id` bigint(20) NOT NULL DEFAULT 0,
  `proxy_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `proxy_port` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `proxy_password` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `is_enabled` decimal(22, 0) NOT NULL,
  `proxy_type` decimal(22, 0) NOT NULL,
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for system_route_config
-- ----------------------------
DROP TABLE IF EXISTS `system_route_config`;
CREATE TABLE `system_route_config`  (
  `config_id` bigint(20) NOT NULL DEFAULT 0,
  `destination_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `ip_mask` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `gateway` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `interface` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for system_table
-- ----------------------------
DROP TABLE IF EXISTS `system_table`;
CREATE TABLE `system_table`  (
  `system_id` bigint(20) NOT NULL DEFAULT 0,
  `system_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '系统名称',
  `system_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '系统描述',
  `system_state` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '系统信息状态 （0有效，1无效）',
  `system_createtime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` int(11) NULL DEFAULT NULL COMMENT '创建人',
  `system_stoptime` datetime(0) NULL DEFAULT NULL COMMENT '停用时间',
  `stop_user_id` int(11) NULL DEFAULT NULL COMMENT '停用人',
  `system_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '系统webIP',
  `system_ipn` decimal(22, 0) NULL DEFAULT NULL COMMENT '系统webIPN',
  `system_port` decimal(22, 0) NULL DEFAULT NULL COMMENT '系统web端口',
  `system_start_state` decimal(22, 0) NULL DEFAULT NULL COMMENT '系统web启动状态（0启动，1未启动）',
  `is_master` decimal(22, 0) NULL DEFAULT NULL COMMENT '主控系统标识 （1主控系统  2子系统）',
  PRIMARY KEY (`system_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统信息表（NMSWeb信息表）' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of system_table
-- ----------------------------
INSERT INTO `system_table` VALUES (100000, 'Nation Center', 'Nation Center', '0', '2018-07-12 11:12:09', NULL, NULL, NULL, '192.168.10.125', 167773943, 8080, 1, 1);
INSERT INTO `system_table` VALUES (100001, 'Region Center1', 'Region Center1', '0', '2018-10-31 18:05:58', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100002, 'Region Center2', 'Region Center2', '0', '2018-10-31 18:06:11', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100003, 'Region Center3', 'Region Center3', '0', '2018-10-31 18:06:22', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100004, 'Region Center4', 'Region Center4', '0', '2018-10-31 18:06:35', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100005, 'Region Center5', 'Region Center5', '0', '2018-10-31 18:06:49', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100006, 'Region Center6', 'Region Center6', '0', '2018-10-31 18:07:01', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100007, 'Region Center7', 'Region Center7', '0', '2018-10-31 18:07:20', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100008, 'Region Center8', 'Region Center8', '0', '2018-10-31 18:12:11', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100009, 'Region Center9', 'Region Center9', '0', '2018-10-31 18:15:35', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100010, 'Region Center10', 'Region Center10', '0', '2018-10-31 18:16:12', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100011, 'Region Center11', 'Region Center11', '0', '2018-10-31 18:16:24', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100012, 'Region Center12', 'Region Center12', '0', '2018-10-31 18:16:37', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100013, 'Region Center13', 'Region Center13', '0', '2018-10-31 18:16:49', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100014, 'Region Center14', 'Region Center14', '0', '2018-10-31 18:19:48', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100015, 'Region Center15', 'Region Center15', '0', '2018-10-31 18:20:00', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100016, 'Region Center16', 'Region Center16', '0', '2018-10-31 18:20:11', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);
INSERT INTO `system_table` VALUES (100017, 'Region Center17', 'Region Center17', '0', '2018-10-31 18:20:22', 1, NULL, NULL, '192.168.10.125', NULL, 8080, NULL, 2);

-- ----------------------------
-- Table structure for table_event_log
-- ----------------------------
DROP TABLE IF EXISTS `table_event_log`;
CREATE TABLE `table_event_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增',
  `table_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '表名',
  `event` int(255) NOT NULL COMMENT '操作  1.insert 2.update 3 delete',
  `target_id` bigint(20) NOT NULL COMMENT '记录对应的id 一个主键时使用',
  `ids` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '多个主键时使用，用;分割',
  `time` datetime(0) NOT NULL DEFAULT current_timestamp() COMMENT '记录插入时间',
  PRIMARY KEY (`id`, `time`) USING BTREE,
  INDEX `index_log_table_name`(`table_name`) USING BTREE,
  INDEX `index_log_event`(`event`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact PARTITION BY RANGE (to_days(`time`))
PARTITIONS 2
(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ENGINE = InnoDB MAX_ROWS = 0 MIN_ROWS = 0 ,
PARTITION `NMS_PARTITION_20190107` VALUES LESS THAN (737432) ENGINE = InnoDB) MAX_ROWS = 0 MIN_ROWS = 0 )
;

-- ----------------------------
-- Table structure for table_guide
-- ----------------------------
DROP TABLE IF EXISTS `table_guide`;
CREATE TABLE `table_guide`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `user_id` int(11) NOT NULL COMMENT '用户id',
  `guide_id` int(11) NOT NULL COMMENT '向导id',
  `guide_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '向导名称',
  `system_id` int(11) NULL DEFAULT NULL COMMENT '业务系统id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设置向导' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for table_sync_info
-- ----------------------------
DROP TABLE IF EXISTS `table_sync_info`;
CREATE TABLE `table_sync_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增',
  `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表名',
  `event` int(11) NOT NULL COMMENT '操作1:insert 2update 3delete 4 all（全量更新）',
  `id_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主键字段名 一个主键时使用',
  `id_names` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多个主键字段名  多个主键时使用，用;分割',
  `columns` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '空则为全部字段 多个逗号分隔，配置之后 新增，更新时只 同步配置的 字段',
  `where` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过滤条件 用于同步时限制同步数据，如果 过滤字段中包含 ‘id’,需要加表别名 t_alias',
  `last_id` bigint(20) NOT NULL COMMENT '最后同步的id,初始id= -1，truncate,-2 delete where',
  `last_date` datetime(0) NOT NULL COMMENT '最后同步的时间',
  `db_id` bigint(20) NOT NULL COMMENT '数据库id 关联 sync_db_info表',
  `mode` int(255) NOT NULL COMMENT '同步表主键生成方式，只对 insert 有效  mode=0：需要使用触发器更新 table_event_log 表，同步时需要关联table_event_log 表 mode=1：主键为自定义不重复主键  mode=2：主键自增 ',
  `batch_size` int(11) NOT NULL DEFAULT 500 COMMENT '批处理最大条数，默认：500',
  `interceptor` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库拦截器配置的拦截器，可以实现在同步之前（before），之后（after）的其它操作',
  `update_ids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新或删除时使用的主键，多个用逗号分隔',
  `exclude_names` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '排除字段,insert,update时，会在更新记录将配置字段删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 195 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of table_sync_info
-- ----------------------------
INSERT INTO `table_sync_info` VALUES (1, 'check_type_info', 1, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (2, 'check_type_info', 2, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, 'com.nms.job.CheckTypeInfoInterceptor', NULL, NULL);
INSERT INTO `table_sync_info` VALUES (3, 'check_type_info', 3, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (4, 'xt_js_jbxx', 1, 'jsbh', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (5, 'xt_js_jbxx', 2, 'jsbh', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (6, 'xt_js_jbxx', 3, 'jsbh', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (7, 'xt_js_mk_index', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (8, 'xt_js_mk_index', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (9, 'xt_js_mk_index', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (10, 'xt_mk_jbxx', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (11, 'xt_mk_jbxx', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (12, 'xt_mk_jbxx', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (13, 'xt_yh_jbxx', 1, 'yhid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (14, 'xt_yh_jbxx', 2, 'yhid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (15, 'xt_yh_jbxx', 3, 'yhid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (16, 'xt_yh_js_index', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (17, 'xt_yh_js_index', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (18, 'xt_yh_js_index', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (19, 'event_record_library', 1, 'id', NULL, NULL, 'db_id != 2', -1, '2018-11-12 15:39:49', 2, 1, 500, NULL, '', 'id');
INSERT INTO `table_sync_info` VALUES (20, 'event_record_library', 2, 'id', NULL, NULL, 'db_id != 2', -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, 'old_id,db_id', 'id');
INSERT INTO `table_sync_info` VALUES (21, 'event_record_library', 3, 'id', NULL, NULL, 'db_id != 2', -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, 'old_id,db_id', 'id');
INSERT INTO `table_sync_info` VALUES (22, 'node_table', 1, 'node_id', NULL, NULL, 'sync_status != 2', -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (23, 'node_table', 2, 'node_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (24, 'node_table', 3, 'node_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (25, 'node_lattice_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (26, 'node_lattice_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (27, 'node_lattice_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (28, 'node_box_table', 1, 'box_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (29, 'node_box_table', 2, 'box_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (30, 'node_box_table', 3, 'box_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (31, 'node_room_lattice_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (32, 'node_room_lattice_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (33, 'node_room_lattice_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (34, 'node_room_table', 1, 'room_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (35, 'node_room_table', 2, 'room_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (36, 'node_room_table', 3, 'room_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (37, 'nodegroup_table', 1, 'group_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (38, 'nodegroup_table', 2, 'group_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (39, 'nodegroup_table', 3, 'group_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (40, 'server_ip_segment', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (41, 'server_ip_segment', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (42, 'server_ip_segment', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (43, 'server_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (44, 'server_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (45, 'server_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (46, 'system_table', 1, 'system_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (47, 'system_table', 2, 'system_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (48, 'system_table', 3, 'system_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (49, 'detection_set_info', 1, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, 'com.nms.job.DetectionSetInfoInterceptor', NULL, NULL);
INSERT INTO `table_sync_info` VALUES (50, 'detection_set_info', 2, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, 'com.nms.job.DetectionSetInfoInterceptor', NULL, NULL);
INSERT INTO `table_sync_info` VALUES (51, 'detection_set_info', 3, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (52, 'type_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (53, 'type_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (54, 'type_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (55, 'topo_con_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (56, 'topo_con_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (57, 'topo_con_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (58, 'topo_img', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (59, 'topo_img', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (60, 'topo_img', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (61, 'topo_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (62, 'topo_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (63, 'topo_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (64, 'topo_line_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (65, 'topo_line_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (66, 'topo_line_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (67, 'topo_node_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (68, 'topo_node_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (69, 'topo_node_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (70, 'tabledepartment', 1, 'deptid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (71, 'tabledepartment', 2, 'deptid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (72, 'tabledepartment', 3, 'deptid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (73, 'tableuserdepartment', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (74, 'tableuserdepartment', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (75, 'tableuserdepartment', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (76, 'metadata', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, 'com.nms.job.MetaDataInterceptor', NULL, NULL);
INSERT INTO `table_sync_info` VALUES (77, 'metadata', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, 'com.nms.job.MetaDataInterceptor', NULL, NULL);
INSERT INTO `table_sync_info` VALUES (78, 'metadata', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (79, 'gorup_system_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (80, 'gorup_system_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (81, 'gorup_system_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (82, 'order_table', 1, 'command_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (83, 'order_table', 2, 'command_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (84, 'order_table', 3, 'command_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (85, 'dictionary_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (86, 'dictionary_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (87, 'dictionary_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (88, 'email_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (89, 'email_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (90, 'email_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (91, 'flow_audit_rz', 1, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (92, 'flow_audit_rz', 2, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (93, 'flow_audit_rz', 3, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (94, 'img_url', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (95, 'img_url', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (96, 'img_url', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (97, 'nms_error_code', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (98, 'nms_error_code', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (99, 'nms_error_code', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (100, 'nms_error_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (101, 'nms_error_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (102, 'nms_error_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (103, 'oid_dictionary', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (104, 'oid_dictionary', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (105, 'oid_dictionary', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (106, 'operate_audit_rz', 1, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (107, 'operate_audit_rz', 2, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (108, 'operate_audit_rz', 3, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (109, 'option_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (110, 'option_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (111, 'option_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (112, 'plugin_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (113, 'plugin_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (114, 'plugin_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (115, 'set_det_data_con', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (116, 'set_det_data_con', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (117, 'set_det_data_con', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (118, 'sort_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (119, 'sort_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (120, 'sort_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (121, 'sys_data_dictionary_item', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (122, 'sys_data_dictionary_item', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (123, 'sys_data_dictionary_item', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (124, 'sys_data_dictionary_name', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (125, 'sys_data_dictionary_name', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (126, 'sys_data_dictionary_name', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (127, 'system_company_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (128, 'system_company_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (129, 'system_company_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (130, 'system_gateway_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (131, 'system_gateway_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (132, 'system_gateway_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (133, 'system_ip_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (134, 'system_ip_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (135, 'system_ip_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (136, 'system_proxy_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (137, 'system_proxy_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (138, 'system_proxy_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (139, 'system_route_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (140, 'system_route_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (141, 'system_route_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (142, 'table_guide', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (143, 'table_guide', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (144, 'table_guide', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (145, 'trouble_state', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (146, 'trouble_state', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (147, 'trouble_state', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (148, 'update_model_rz', 1, 'update_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (149, 'update_model_rz', 2, 'update_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (150, 'update_model_rz', 3, 'update_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (151, 'upload_file_rz', 1, 'unique_seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (152, 'upload_file_rz', 2, 'unique_seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (153, 'upload_file_rz', 3, 'unique_seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (154, 'device_boardsolt_board', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (155, 'device_boardsolt_board', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (156, 'device_boardsolt_board', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (157, 'device_brand_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (158, 'device_brand_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (159, 'device_brand_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (160, 'device_brand_type', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (161, 'device_brand_type', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (162, 'device_brand_type', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (163, 'device_info', 1, 'device_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (164, 'device_info', 2, 'device_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (165, 'device_info', 3, 'device_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (166, 'device_type_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (167, 'device_type_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (168, 'device_type_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (169, 'data_police_relation', 1, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (170, 'data_police_relation', 2, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (171, 'data_police_relation', 3, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (172, 'mission_file_information', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (173, 'mission_file_information', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (174, 'mission_file_information', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (175, 'node_figure_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (176, 'node_figure_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (177, 'node_figure_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (178, 'node_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (179, 'node_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (180, 'node_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (181, 'nodegroup_arrow_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (182, 'nodegroup_arrow_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (183, 'nodegroup_arrow_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (184, 'nodegroup_bgimg_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (185, 'nodegroup_bgimg_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (186, 'nodegroup_bgimg_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (187, 'nodegroup_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (188, 'nodegroup_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (189, 'nodegroup_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (190, 'mission_state_table', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (191, 'mission_parameter_table1', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (192, 'mission_parameter_table4', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (193, 'mission_parameter_table6', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info` VALUES (194, 'mission_state_table', 2, 'id', NULL, 'id,mission_state,mission_name,view_level,group_id', NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for table_sync_info_master
-- ----------------------------
DROP TABLE IF EXISTS `table_sync_info_master`;
CREATE TABLE `table_sync_info_master`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增',
  `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表名',
  `event` int(11) NOT NULL COMMENT '操作1:insert 2update 3delete 4 all（全量更新）',
  `id_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主键字段名 一个主键时使用',
  `id_names` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多个主键字段名  多个主键时使用，用;分割',
  `columns` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '空则为全部字段 多个逗号分隔，配置之后 新增，更新时只 同步配置的 字段',
  `where` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过滤条件 用于同步时限制同步数据，如果 过滤字段中包含 ‘id’,需要加表别名 t_alias',
  `last_id` bigint(20) NOT NULL COMMENT '最后同步的id,初始id= -1，truncate,-2 delete where',
  `last_date` datetime(0) NOT NULL COMMENT '最后同步的时间',
  `db_id` bigint(20) NOT NULL COMMENT '数据库id 关联 sync_db_info表',
  `mode` int(255) NOT NULL COMMENT '同步表主键生成方式，只对 insert 有效  mode=0：需要使用触发器更新 table_event_log 表，同步时需要关联table_event_log 表 mode=1：主键为自定义不重复主键  mode=2：主键自增 ',
  `batch_size` int(11) NOT NULL DEFAULT 500 COMMENT '批处理最大条数，默认：500',
  `interceptor` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库拦截器配置的拦截器，可以实现在同步之前（before），之后（after）的其它操作',
  `update_ids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新或删除时使用的主键，多个用逗号分隔',
  `exclude_names` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '排除字段,insert,update时，会在更新记录将配置字段删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 195 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of table_sync_info_master
-- ----------------------------
INSERT INTO `table_sync_info_master` VALUES (1, 'check_type_info', 1, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (2, 'check_type_info', 2, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, 'com.nms.job.CheckTypeInfoInterceptor', NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (3, 'check_type_info', 3, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (4, 'xt_js_jbxx', 1, 'jsbh', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (5, 'xt_js_jbxx', 2, 'jsbh', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (6, 'xt_js_jbxx', 3, 'jsbh', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (7, 'xt_js_mk_index', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (8, 'xt_js_mk_index', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (9, 'xt_js_mk_index', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (10, 'xt_mk_jbxx', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (11, 'xt_mk_jbxx', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (12, 'xt_mk_jbxx', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (13, 'xt_yh_jbxx', 1, 'yhid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (14, 'xt_yh_jbxx', 2, 'yhid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (15, 'xt_yh_jbxx', 3, 'yhid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (16, 'xt_yh_js_index', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (17, 'xt_yh_js_index', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (18, 'xt_yh_js_index', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (19, 'event_record_library', 1, 'id', NULL, NULL, 'db_id != 2', -1, '2018-11-12 15:39:49', 2, 1, 500, NULL, '', 'id');
INSERT INTO `table_sync_info_master` VALUES (20, 'event_record_library', 2, 'id', NULL, NULL, 'db_id != 2', -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, 'old_id,db_id', 'id');
INSERT INTO `table_sync_info_master` VALUES (21, 'event_record_library', 3, 'id', NULL, NULL, 'db_id != 2', -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, 'old_id,db_id', 'id');
INSERT INTO `table_sync_info_master` VALUES (22, 'node_table', 1, 'node_id', NULL, NULL, 'sync_status != 2', -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (23, 'node_table', 2, 'node_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (24, 'node_table', 3, 'node_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (25, 'node_lattice_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (26, 'node_lattice_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (27, 'node_lattice_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (28, 'node_box_table', 1, 'box_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (29, 'node_box_table', 2, 'box_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (30, 'node_box_table', 3, 'box_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (31, 'node_room_lattice_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (32, 'node_room_lattice_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (33, 'node_room_lattice_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (34, 'node_room_table', 1, 'room_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (35, 'node_room_table', 2, 'room_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (36, 'node_room_table', 3, 'room_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (37, 'nodegroup_table', 1, 'group_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (38, 'nodegroup_table', 2, 'group_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (39, 'nodegroup_table', 3, 'group_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (40, 'server_ip_segment', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (41, 'server_ip_segment', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (42, 'server_ip_segment', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (43, 'server_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (44, 'server_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (45, 'server_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (46, 'system_table', 1, 'system_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (47, 'system_table', 2, 'system_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (48, 'system_table', 3, 'system_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (49, 'detection_set_info', 1, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, 'com.nms.job.DetectionSetInfoInterceptor', NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (50, 'detection_set_info', 2, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, 'com.nms.job.DetectionSetInfoInterceptor', NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (51, 'detection_set_info', 3, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (52, 'type_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (53, 'type_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (54, 'type_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (55, 'topo_con_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (56, 'topo_con_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (57, 'topo_con_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (58, 'topo_img', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (59, 'topo_img', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (60, 'topo_img', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (61, 'topo_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (62, 'topo_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (63, 'topo_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (64, 'topo_line_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (65, 'topo_line_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (66, 'topo_line_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (67, 'topo_node_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (68, 'topo_node_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (69, 'topo_node_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (70, 'tabledepartment', 1, 'deptid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (71, 'tabledepartment', 2, 'deptid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (72, 'tabledepartment', 3, 'deptid', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (73, 'tableuserdepartment', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (74, 'tableuserdepartment', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (75, 'tableuserdepartment', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (76, 'metadata', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, 'com.nms.job.MetaDataInterceptor', NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (77, 'metadata', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, 'com.nms.job.MetaDataInterceptor', NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (78, 'metadata', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (79, 'gorup_system_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (80, 'gorup_system_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (81, 'gorup_system_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (82, 'order_table', 1, 'command_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (83, 'order_table', 2, 'command_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (84, 'order_table', 3, 'command_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (85, 'dictionary_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (86, 'dictionary_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (87, 'dictionary_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (88, 'email_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (89, 'email_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (90, 'email_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (91, 'flow_audit_rz', 1, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (92, 'flow_audit_rz', 2, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (93, 'flow_audit_rz', 3, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (94, 'img_url', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (95, 'img_url', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (96, 'img_url', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (97, 'nms_error_code', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (98, 'nms_error_code', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (99, 'nms_error_code', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (100, 'nms_error_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (101, 'nms_error_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (102, 'nms_error_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (103, 'oid_dictionary', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (104, 'oid_dictionary', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (105, 'oid_dictionary', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (106, 'operate_audit_rz', 1, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (107, 'operate_audit_rz', 2, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (108, 'operate_audit_rz', 3, 'seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (109, 'option_table', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (110, 'option_table', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (111, 'option_table', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (112, 'plugin_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (113, 'plugin_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (114, 'plugin_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (115, 'set_det_data_con', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (116, 'set_det_data_con', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (117, 'set_det_data_con', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (118, 'sort_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (119, 'sort_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (120, 'sort_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (121, 'sys_data_dictionary_item', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (122, 'sys_data_dictionary_item', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (123, 'sys_data_dictionary_item', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (124, 'sys_data_dictionary_name', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (125, 'sys_data_dictionary_name', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (126, 'sys_data_dictionary_name', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (127, 'system_company_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (128, 'system_company_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (129, 'system_company_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (130, 'system_gateway_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (131, 'system_gateway_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (132, 'system_gateway_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (133, 'system_ip_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (134, 'system_ip_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (135, 'system_ip_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (136, 'system_proxy_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (137, 'system_proxy_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (138, 'system_proxy_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (139, 'system_route_config', 1, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (140, 'system_route_config', 2, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (141, 'system_route_config', 3, 'config_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (142, 'table_guide', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (143, 'table_guide', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (144, 'table_guide', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (145, 'trouble_state', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (146, 'trouble_state', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (147, 'trouble_state', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (148, 'update_model_rz', 1, 'update_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (149, 'update_model_rz', 2, 'update_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (150, 'update_model_rz', 3, 'update_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (151, 'upload_file_rz', 1, 'unique_seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (152, 'upload_file_rz', 2, 'unique_seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (153, 'upload_file_rz', 3, 'unique_seq', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (154, 'device_boardsolt_board', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (155, 'device_boardsolt_board', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (156, 'device_boardsolt_board', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (157, 'device_brand_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (158, 'device_brand_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (159, 'device_brand_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (160, 'device_brand_type', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (161, 'device_brand_type', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (162, 'device_brand_type', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (163, 'device_info', 1, 'device_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (164, 'device_info', 2, 'device_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (165, 'device_info', 3, 'device_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (166, 'device_type_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (167, 'device_type_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (168, 'device_type_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (169, 'data_police_relation', 1, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (170, 'data_police_relation', 2, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (171, 'data_police_relation', 3, 'ID', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (172, 'mission_file_information', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (173, 'mission_file_information', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (174, 'mission_file_information', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (175, 'node_figure_info', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (176, 'node_figure_info', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (177, 'node_figure_info', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (178, 'node_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (179, 'node_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (180, 'node_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (181, 'nodegroup_arrow_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (182, 'nodegroup_arrow_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (183, 'nodegroup_arrow_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (184, 'nodegroup_bgimg_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (185, 'nodegroup_bgimg_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (186, 'nodegroup_bgimg_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (187, 'nodegroup_position', 1, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (188, 'nodegroup_position', 2, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (189, 'nodegroup_position', 3, 'id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (190, 'mission_state_table', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (191, 'mission_parameter_table1', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (192, 'mission_parameter_table4', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (193, 'mission_parameter_table6', 1, 'mission_id', NULL, NULL, NULL, -1, '2018-11-12 15:39:49', 2, 2, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_master` VALUES (194, 'mission_state_table', 2, 'id', NULL, 'id,mission_state,mission_name,view_level,group_id', NULL, -1, '2018-11-12 15:39:49', 2, -1, 500, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for table_sync_info_slave
-- ----------------------------
DROP TABLE IF EXISTS `table_sync_info_slave`;
CREATE TABLE `table_sync_info_slave`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增',
  `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表名',
  `event` int(11) NOT NULL COMMENT '操作1:insert 2update 3delete 4 all（全量更新）',
  `id_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主键字段名 一个主键时使用',
  `id_names` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多个主键字段名  多个主键时使用，用;分割',
  `columns` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '空则为全部字段 多个逗号分隔，配置之后 新增，更新时只 同步配置的 字段',
  `where` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过滤条件 用于同步时限制同步数据，如果 过滤字段中包含 ‘id’,需要加表别名 t_alias',
  `last_id` bigint(20) NOT NULL COMMENT '最后同步的id,初始id= -1，truncate,-2 delete where',
  `last_date` datetime(0) NOT NULL COMMENT '最后同步的时间',
  `db_id` bigint(20) NOT NULL COMMENT '数据库id 关联 sync_db_info表',
  `mode` int(255) NOT NULL COMMENT '同步表主键生成方式，只对 insert 有效  mode=0：需要使用触发器更新 table_event_log 表，同步时需要关联table_event_log 表 mode=1：主键为自定义不重复主键  mode=2：主键自增 ',
  `batch_size` int(11) NOT NULL DEFAULT 500 COMMENT '批处理最大条数，默认：500',
  `interceptor` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库拦截器配置的拦截器，可以实现在同步之前（before），之后（after）的其它操作',
  `update_ids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新或删除时使用的主键，多个用逗号分隔',
  `exclude_names` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '排除字段,insert,update时，会在更新记录将配置字段删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 44 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of table_sync_info_slave
-- ----------------------------
INSERT INTO `table_sync_info_slave` VALUES (1, 'delect_info_nmsc', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:21:14', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (2, 'detect_info_cpu', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:24:20', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (3, 'detect_info_disk', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:24:21', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (4, 'detect_info_memory', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:24:21', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (5, 'detect_info_netdata', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:24:22', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (6, 'detect_info_ping', 1, 'ID', NULL, NULL, NULL, 0, '2018-11-12 14:28:18', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (8, 'detect_info_process', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:24:22', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (10, 'detect_info_system_date', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:21:27', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (11, 'detection_info', 1, 'SEQUENCE', NULL, NULL, NULL, 0, '2019-01-11 21:24:25', -1, 1, 500, NULL, NULL, 'SEQUENCE');
INSERT INTO `table_sync_info_slave` VALUES (12, 'detection_info_new', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-07 14:21:27', -1, 1, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (13, 'detection_info_new', 2, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:24:36', -1, 0, 500, NULL, 'DETECTION_SET_INFO_ID,SEQ_ID', 'ID');
INSERT INTO `table_sync_info_slave` VALUES (14, 'detection_info_warning', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:24:37', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (15, 'detection_info_warning', 2, 'ID', NULL, 'DETECTION_SET_INFO_ID,SEQ_ID,VALID', NULL, 0, '2019-01-11 21:23:29', -1, 1, 500, NULL, 'DETECTION_SET_INFO_ID,SEQ_ID', 'ID');
INSERT INTO `table_sync_info_slave` VALUES (16, 'di_systeminfo_disk', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:23:29', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (17, 'di_systeminfo_net', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:23:29', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (18, 'di_systeminfo', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:23:29', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (19, 'mission_result_table1', 1, 'id', NULL, NULL, NULL, 0, '2018-11-11 20:36:16', -1, 2, 500, 'com.nms.job.CommonMissionInterceptor', 'mission_id,seq_id', 'id');
INSERT INTO `table_sync_info_slave` VALUES (20, 'mission_result_table4', 1, 'id', NULL, NULL, NULL, 0, '2018-11-12 14:13:15', -1, 2, 500, 'com.nms.job.CommonMissionInterceptor', 'mission_id,seq_id', 'id');
INSERT INTO `table_sync_info_slave` VALUES (21, 'mission_result_table6', 1, 'id', NULL, NULL, NULL, 0, '2018-10-26 15:05:01', -1, 2, 500, 'com.nms.job.CommonMissionInterceptor', 'mission_id,seq_id', 'id');
INSERT INTO `table_sync_info_slave` VALUES (22, 'mission_result_table1', 2, 'id', NULL, NULL, NULL, 0, '2018-11-11 20:37:56', -1, 2, 500, 'com.nms.job.CommonMissionInterceptor', 'mission_id,seq_id', 'id');
INSERT INTO `table_sync_info_slave` VALUES (23, 'mission_result_table4', 2, 'id', NULL, NULL, NULL, 0, '2018-11-12 14:23:18', -1, 2, 500, 'com.nms.job.CommonMissionInterceptor', 'mission_id,seq_id', 'id');
INSERT INTO `table_sync_info_slave` VALUES (24, 'mission_result_table6', 2, 'id', NULL, NULL, NULL, 0, '2018-10-31 10:28:54', -1, 2, 500, 'com.nms.job.CommonMissionInterceptor', 'mission_id,seq_id', 'id');
INSERT INTO `table_sync_info_slave` VALUES (25, 'loopmission_state_table', 1, 'cur_mission_id', NULL, NULL, NULL, 0, '2018-11-12 10:02:26', -1, 0, 500, 'com.nms.job.LoopStateTableInterceptor', NULL, NULL);
INSERT INTO `table_sync_info_slave` VALUES (26, 'loopmission_state_table', 2, 'cur_mission_id', NULL, NULL, NULL, 0, '2018-11-12 14:13:15', -1, 1, 500, 'com.nms.job.LoopStateTableInterceptor', NULL, NULL);
INSERT INTO `table_sync_info_slave` VALUES (27, 'loopmission_state_table', 3, 'cur_mission_id', NULL, NULL, NULL, 0, '2018-11-11 17:46:26', -1, 1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_slave` VALUES (28, 'di_system', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:22:27', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (29, 'di_switchport', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:23:30', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (30, 'di_base_info', 1, 'ID', NULL, NULL, NULL, 0, '2018-11-07 11:35:31', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (31, 'di_businesspro', 1, 'ID', NULL, NULL, NULL, 0, '2018-11-07 11:35:31', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (32, 'di_c3glog', 1, 'ID', NULL, NULL, NULL, 0, '2018-11-07 11:35:31', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (38, 'di_ifxtable', 1, 'id', NULL, NULL, NULL, 0, '2018-11-07 11:35:31', -1, 2, 500, NULL, NULL, 'id');
INSERT INTO `table_sync_info_slave` VALUES (39, 'di_propmstatus', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:20:41', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (40, 'di_rule', 1, 'ID', NULL, NULL, NULL, 0, '2019-01-11 21:20:42', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (41, 'di_sugon_board', 1, 'ID', NULL, NULL, NULL, 0, '2018-11-07 11:35:31', -1, 2, 500, NULL, NULL, 'ID');
INSERT INTO `table_sync_info_slave` VALUES (42, 'node_table', 1, 'node_id', NULL, NULL, 'sync_status = 2', 0, '2018-11-09 17:31:06', -1, 1, 500, NULL, NULL, NULL);
INSERT INTO `table_sync_info_slave` VALUES (43, 'di_dklog', 1, 'ID', NULL, NULL, NULL, 0, '2018-11-07 11:35:31', -1, 2, 500, NULL, NULL, 'ID');

-- ----------------------------
-- Table structure for tabledboperationrpt
-- ----------------------------
DROP TABLE IF EXISTS `tabledboperationrpt`;
CREATE TABLE `tabledboperationrpt`  (
  `logid` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户id',
  `username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `time` datetime(0) NULL DEFAULT NULL COMMENT '时间',
  `objtable` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作表名',
  `objid` decimal(22, 0) NULL DEFAULT NULL COMMENT '操作id',
  `action` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求路径',
  `sqlcondition` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '条件',
  PRIMARY KEY (`logid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for tabledepartment
-- ----------------------------
DROP TABLE IF EXISTS `tabledepartment`;
CREATE TABLE `tabledepartment`  (
  `deptid` bigint(20) NOT NULL DEFAULT 0,
  `deptname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '部门名称',
  `upperlayer` decimal(22, 0) NULL DEFAULT NULL COMMENT '是否为根',
  `deptstate` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '0:有效  1：无效',
  `pids` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '上级部门id组成的字符串',
  PRIMARY KEY (`deptid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for tableloginrpt
-- ----------------------------
DROP TABLE IF EXISTS `tableloginrpt`;
CREATE TABLE `tableloginrpt`  (
  `username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户名',
  `logid` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户id',
  `ip` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '登录ip',
  `time` datetime(0) NULL DEFAULT NULL COMMENT '时间',
  `action` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求路径',
  `status` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '状态',
  PRIMARY KEY (`logid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for tableuserdepartment
-- ----------------------------
DROP TABLE IF EXISTS `tableuserdepartment`;
CREATE TABLE `tableuserdepartment`  (
  `deptid` int(11) NULL DEFAULT NULL COMMENT '部门id',
  `userid` int(11) NULL DEFAULT NULL COMMENT '用户id',
  `id` bigint(20) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门用户关系表' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for topo_con_info
-- ----------------------------
DROP TABLE IF EXISTS `topo_con_info`;
CREATE TABLE `topo_con_info`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `topo_id` int(11) NOT NULL COMMENT 'TOPO图ID 与TOPO_INFO关联',
  `x` int(11) NOT NULL COMMENT 'x轴坐标',
  `y` int(11) NOT NULL COMMENT 'y轴坐标',
  `width` int(11) NOT NULL COMMENT '图片宽度',
  `height` int(11) NOT NULL COMMENT '图片高度',
  `create_time` date NOT NULL COMMENT '创建时间',
  `create_user` int(11) NOT NULL COMMENT '创建人',
  `update_time` date NOT NULL COMMENT '更新时间',
  `update_user` int(11) NOT NULL COMMENT '修改人',
  `class` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '样式',
  `text` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'NODE提示文本信息',
  `flag` int(11) NOT NULL DEFAULT 1 COMMENT '是否有效 0：无效，1：有效，默认：1',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for topo_img
-- ----------------------------
DROP TABLE IF EXISTS `topo_img`;
CREATE TABLE `topo_img`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件名',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of topo_img
-- ----------------------------
INSERT INTO `topo_img` VALUES (1, '11.png');
INSERT INTO `topo_img` VALUES (2, '22.png');
INSERT INTO `topo_img` VALUES (3, '33.png');
INSERT INTO `topo_img` VALUES (4, '44.png');
INSERT INTO `topo_img` VALUES (5, '55.png');
INSERT INTO `topo_img` VALUES (6, '66.png');
INSERT INTO `topo_img` VALUES (7, '77.png');
INSERT INTO `topo_img` VALUES (8, '88.png');
INSERT INTO `topo_img` VALUES (9, '99.png');
INSERT INTO `topo_img` VALUES (10, 'clound2.png');
INSERT INTO `topo_img` VALUES (21, 'ADC-A106.png');
INSERT INTO `topo_img` VALUES (22, 'ASEM-T102.png');
INSERT INTO `topo_img` VALUES (23, 'BlockRouter.png');
INSERT INTO `topo_img` VALUES (24, 'BusinessServers.png');
INSERT INTO `topo_img` VALUES (25, 'CoreSwitch.png');
INSERT INTO `topo_img` VALUES (26, 'ISPnInlineDevice.png');
INSERT INTO `topo_img` VALUES (27, 'ISPnInternet.png');
INSERT INTO `topo_img` VALUES (28, 'ISPnNetwork.png');
INSERT INTO `topo_img` VALUES (29, 'ISPnRingNetworkCoreRouter.png');
INSERT INTO `topo_img` VALUES (30, 'RCs.png');
INSERT INTO `topo_img` VALUES (31, 'unknown.png');
INSERT INTO `topo_img` VALUES (32, 'legend.png');

-- ----------------------------
-- Table structure for topo_info
-- ----------------------------
DROP TABLE IF EXISTS `topo_info`;
CREATE TABLE `topo_info`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '拓扑图名称',
  `system_id` int(11) NULL DEFAULT NULL COMMENT '业务系统ID',
  `width` int(11) NOT NULL COMMENT '图片宽度',
  `height` int(11) NOT NULL COMMENT '图片高度',
  `class` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '样式',
  `create_time` date NOT NULL COMMENT '创建时间',
  `create_user` int(11) NOT NULL COMMENT '创建人',
  `update_time` date NOT NULL COMMENT '修改时间',
  `update_user` int(11) NOT NULL COMMENT '修改人',
  `remarks` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `threshold` int(11) NULL DEFAULT NULL COMMENT '域值 主要对节点组有效',
  `flag` int(11) NOT NULL DEFAULT 1 COMMENT '0：无效，1：有效，默认：1',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of topo_info
-- ----------------------------
INSERT INTO `topo_info` VALUES (1, 'Nation Center', 100000, 800, 1600, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (2, 'Region Center1', 100016, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (3, 'Region Center2', 100001, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (4, 'Region Center3', 100002, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (5, 'Region Center4', 100003, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (6, 'Region Center5', 100004, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (7, 'Region Center6', 100005, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (8, 'Region Center7', 100006, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (9, 'Region Center8', 100007, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (10, 'Region Center9', 100008, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (11, 'Region Center10', 100009, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (12, 'Region Center11', 100010, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (13, 'Region Center12', 100011, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (14, 'Region Center13', 100012, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (15, 'Region Center14', 100013, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (16, 'Region Center15', 100014, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (17, 'Region Center16', 100015, 800, 800, '', '2018-08-14', 0, '2018-08-14', 0, NULL, NULL, 1);
INSERT INTO `topo_info` VALUES (18, 'Region Center17', 100018, 800, 800, '', '2018-09-18', 0, '2018-09-18', 0, NULL, NULL, 1);

-- ----------------------------
-- Table structure for topo_line_info
-- ----------------------------
DROP TABLE IF EXISTS `topo_line_info`;
CREATE TABLE `topo_line_info`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `src` int(11) NULL DEFAULT NULL COMMENT '线起点 TOPO_NODE_INFO 表的ID',
  `dest` int(11) NULL DEFAULT NULL COMMENT '线终点 TOPO_NODE_INFO 表的ID',
  `class` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '线的样式 1：节点组，2：节点，3：其它',
  `text` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '线条文本内容',
  `create_time` date NULL DEFAULT NULL COMMENT '创建时间',
  `create_user` int(11) NULL DEFAULT NULL COMMENT '创建人',
  `update_time` date NULL DEFAULT NULL COMMENT '更新时间',
  `update_user` int(11) NULL DEFAULT NULL COMMENT '修改人',
  `topo_id` int(11) NULL DEFAULT NULL COMMENT 'TOPO图ID 与TOPO_INFO关联',
  `flag` int(11) NULL DEFAULT 1 COMMENT '是否有效 0：无效，1：有效，默认：1',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 975 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of topo_line_info
-- ----------------------------
INSERT INTO `topo_line_info` VALUES (2, 2, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.25\"}]', '', NULL, NULL, NULL, NULL, 1, 0);
INSERT INTO `topo_line_info` VALUES (3, 3, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.35\"}]', '', NULL, NULL, NULL, NULL, 1, 0);
INSERT INTO `topo_line_info` VALUES (4, 4, 31, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (5, 5, 31, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (6, 6, 31, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (7, 7, 31, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (370, 1, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (371, 2, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (372, 3, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (374, 352, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (375, 353, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (376, 354, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (377, 355, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (378, 356, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (379, 357, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (380, 358, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (381, 359, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (382, 360, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (383, 361, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (384, 362, 30, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (411, 402, 401, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (412, 398, 401, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"70\"},{direction:\"vertical\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (413, 399, 401, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"70\"},{direction:\"vertical\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (414, 400, 401, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"70\"},{direction:\"vertical\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (415, 401, 402, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"70\"},{direction:\"vertical\"}]', '', NULL, NULL, NULL, NULL, 18, 0);
INSERT INTO `topo_line_info` VALUES (416, 402, 403, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (417, 404, 401, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (418, 401, 396, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (419, 396, 395, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"50\"},{direction:\"horizontal\"},{nodeIndex:\"-0.5\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (420, 396, 397, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"50\"},{direction:\"horizontal\"},{nodeIndex:\"-0.5\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (421, 402, 386, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"47\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (422, 402, 387, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"47\"},{direction:\"horizontal\"},{nodeIndex:\"0.75\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (423, 388, 403, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (424, 386, 388, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"53\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (425, 387, 388, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"53\"},{direction:\"horizontal\"},{nodeIndex:\"0.75\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (426, 388, 389, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (427, 394, 402, '[{newLineMethod:\"FoldLink\"},{nodeIndex:\"-0.5\"}]', '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (428, 394, 393, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (429, 393, 390, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (430, 393, 391, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (431, 393, 392, NULL, '', NULL, NULL, NULL, NULL, 18, 1);
INSERT INTO `topo_line_info` VALUES (443, 30, 4, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (444, 30, 5, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (445, 30, 6, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (446, 30, 7, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (447, 30, 8, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"55\"},{direction:\"horizontal\"},{nodeIndex:\"0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (448, 30, 21, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (449, 21, 22, NULL, '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (450, 8, 11, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (451, 16, 25, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (452, 16, 15, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (453, 414, 29, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (454, 414, 28, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (455, 20, 18, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (456, 20, 26, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (457, 18, 23, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (458, 26, 27, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (459, 29, 9, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (460, 28, 17, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (461, 25, 24, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (462, 15, 12, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (463, 22, 20, '[{newLineMethod:\"normalLink\"},{strokeColor:\"0,152,219\"},{arrowsRadius:\"15\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (464, 22, 414, '[{newLineMethod:\"normalLink\"},{strokeColor:\"0,152,219\"},{arrowsRadius:\"15\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (465, 22, 16, '[{newLineMethod:\"normalLink\"},{strokeColor:\"0,152,219\"},{arrowsRadius:\"15\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (466, 31, 19, '[{newLineMethod:\"normalLink\"},{strokeColor:\"167,81,90\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (467, 31, 413, '[{newLineMethod:\"normalLink\"},{strokeColor:\"167,81,90\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (468, 31, 14, '[{newLineMethod:\"normalLink\"},{strokeColor:\"167,81,90\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (469, 19, 26, '[{newLineMethod:\"FoldLink\"},{strokeColor:\"0,152,219\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (470, 413, 28, '[{newLineMethod:\"FoldLink\"},{strokeColor:\"0,152,219\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (471, 14, 15, '[{newLineMethod:\"FoldLink\"},{strokeColor:\"0,152,219\"}]', '', NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (472, 11, 12, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', NULL, NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (473, 11, 17, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', NULL, NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (474, 11, 27, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', NULL, NULL, NULL, NULL, NULL, 1, 1);
INSERT INTO `topo_line_info` VALUES (501, 501, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 0);
INSERT INTO `topo_line_info` VALUES (502, 502, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.25\"}]', '', NULL, NULL, NULL, NULL, 2, 0);
INSERT INTO `topo_line_info` VALUES (503, 503, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.35\"}]', '', NULL, NULL, NULL, NULL, 2, 0);
INSERT INTO `topo_line_info` VALUES (504, 504, 531, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (505, 505, 531, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (506, 506, 531, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (507, 507, 531, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"90\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (870, 501, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (871, 502, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (872, 503, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (874, 852, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (875, 853, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (876, 854, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (877, 855, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (878, 856, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (879, 857, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (880, 858, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (881, 859, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (882, 860, 530, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"40\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (943, 530, 504, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (944, 530, 505, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (945, 530, 506, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (946, 530, 507, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (947, 530, 508, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"55\"},{direction:\"horizontal\"},{nodeIndex:\"0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (948, 530, 521, '[{newLineMethod:\"FlexionalLink\"},{offsetGap:\"80\"},{direction:\"horizontal\"},{nodeIndex:\"-0.75\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (949, 521, 522, NULL, '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (950, 508, 511, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (951, 516, 525, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (952, 516, 515, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (953, 914, 529, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (954, 914, 528, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (955, 520, 518, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (956, 520, 526, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (957, 518, 523, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (958, 526, 527, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (959, 529, 509, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (960, 528, 517, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (961, 525, 524, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (962, 515, 512, '[{newLineMethod:\"normalLink\"},{lineWidth:4}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (963, 522, 520, '[{newLineMethod:\"normalLink\"},{strokeColor:\"0,152,219\"},{arrowsRadius:\"15\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (964, 522, 914, '[{newLineMethod:\"normalLink\"},{strokeColor:\"0,152,219\"},{arrowsRadius:\"15\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (965, 522, 516, '[{newLineMethod:\"normalLink\"},{strokeColor:\"0,152,219\"},{arrowsRadius:\"15\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (966, 531, 519, '[{newLineMethod:\"normalLink\"},{strokeColor:\"167,81,90\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (967, 531, 913, '[{newLineMethod:\"normalLink\"},{strokeColor:\"167,81,90\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (968, 531, 514, '[{newLineMethod:\"normalLink\"},{strokeColor:\"167,81,90\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (969, 519, 526, '[{newLineMethod:\"FoldLink\"},{strokeColor:\"0,152,219\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (970, 913, 528, '[{newLineMethod:\"FoldLink\"},{strokeColor:\"0,152,219\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (971, 514, 515, '[{newLineMethod:\"FoldLink\"},{strokeColor:\"0,152,219\"}]', '', NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (972, 511, 512, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', NULL, NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (973, 511, 517, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', NULL, NULL, NULL, NULL, NULL, 2, 1);
INSERT INTO `topo_line_info` VALUES (974, 511, 527, '[{newLineMethod:\"normalLink\"},{strokeColor:\"71,135,98\"}]', NULL, NULL, NULL, NULL, NULL, 2, 1);

-- ----------------------------
-- Table structure for topo_node_info
-- ----------------------------
DROP TABLE IF EXISTS `topo_node_info`;
CREATE TABLE `topo_node_info`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `img_id` int(11) NULL DEFAULT NULL COMMENT '图片id 与TOPO_IMG表ID关联',
  `topo_id` int(11) NULL DEFAULT NULL COMMENT 'topo图ID 与TOPO_INFO关联',
  `type` int(11) NULL DEFAULT NULL COMMENT 'NODE类型 1：节点组，2：节点，3：其它 4:topo',
  `type_id` int(11) NULL DEFAULT NULL COMMENT 'NODE对应的节点组或节点ID 当：TYPE = 1时，为节点组ID，TYPE = 2时，为节点ID，TYPE =3 时，无意义 type=4时 topo',
  `x` int(11) NULL DEFAULT NULL,
  `y` int(11) NULL DEFAULT NULL,
  `width` int(11) NULL DEFAULT NULL COMMENT '图片宽度',
  `height` int(11) NULL DEFAULT NULL COMMENT '图片高度',
  `create_time` date NULL DEFAULT NULL COMMENT '创建时间',
  `create_user` int(11) NULL DEFAULT NULL COMMENT '创建人',
  `update_time` date NULL DEFAULT NULL COMMENT '更新时间',
  `update_user` int(11) NULL DEFAULT NULL COMMENT '修改人',
  `text` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'NODE提示文本信息',
  `con_id` int(11) NULL DEFAULT NULL COMMENT '容器ID 关联TOPO_CON_INFO 的ID',
  `class` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '样式',
  `threshold_value` double(11, 0) NULL DEFAULT 80 COMMENT '阀值',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 916 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of topo_node_info
-- ----------------------------
INSERT INTO `topo_node_info` VALUES (1, 24, 1, 3, NULL, 1180, -560, 50, 50, NULL, NULL, NULL, NULL, 'Document\\nDeep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (2, 24, 1, 3, NULL, 1180, -460, 50, 50, NULL, NULL, NULL, NULL, 'Encryption Traffic\\nDeep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (3, 24, 1, 3, NULL, 1180, -360, 50, 50, NULL, NULL, NULL, NULL, 'Audio Deep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (4, 21, 1, 3, NULL, 740, -54, 50, 50, NULL, NULL, NULL, NULL, 'ADC-A016', NULL, NULL, 20);
INSERT INTO `topo_node_info` VALUES (5, 24, 1, 3, NULL, 740, 41, 50, 50, NULL, NULL, NULL, NULL, 'Encryption Traffic\\nDeep Analysis RI', NULL, NULL, 20);
INSERT INTO `topo_node_info` VALUES (6, 24, 1, 3, NULL, 740, 128, 50, 50, NULL, NULL, NULL, NULL, 'IP Reuse', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (7, 24, 1, 3, NULL, 740, 218, 50, 50, NULL, NULL, NULL, NULL, 'Network Traffic\\nManipulation', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (8, 24, 1, 3, NULL, 788, 370, 50, 50, NULL, NULL, NULL, NULL, 'Radius Analysis', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (9, 27, 1, 3, NULL, -252, -90, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Internet', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (11, 31, 1, 3, NULL, 631, 343, 100, 100, NULL, NULL, NULL, NULL, 'ISP Log\\n Receive Switch', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (12, 28, 1, 3, NULL, -252, 525, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Network', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (14, 23, 1, 3, NULL, 160, 625, 50, 50, NULL, NULL, NULL, NULL, 'Block\\n Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (15, 29, 1, 3, NULL, -25, 525, 70, 70, NULL, NULL, NULL, NULL, 'ISP3 Backbone\\nCore Router', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (16, 26, 1, 3, NULL, 104, 392, 70, 70, NULL, NULL, NULL, NULL, 'ISP3\\n In-line Device', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (17, 28, 1, 3, NULL, -252, 85, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Network', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (18, 29, 1, 3, NULL, -25, -529, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Ring\\nNetwork Core\\nRouter', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (19, 23, 1, 3, NULL, 160, -247, 50, 50, NULL, NULL, NULL, NULL, 'Bloke\\n Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (20, 26, 1, 3, NULL, 114, -418, 70, 70, NULL, NULL, NULL, NULL, 'ISP1\\n In-line Device', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (21, 22, 1, 3, NULL, 740, -280, 50, 50, NULL, NULL, NULL, NULL, 'ASEM-T102', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (22, 25, 1, 3, NULL, 455, -305, 100, 100, NULL, NULL, NULL, NULL, 'Shunt\\nCore Switch', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (23, 27, 1, 3, NULL, -252, -530, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Internet', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (24, 27, 1, 3, NULL, -252, 300, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Internet', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (25, 29, 1, 3, NULL, -25, 304, 70, 70, NULL, NULL, NULL, NULL, 'ISP3 Ring\\nNetwork Core Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (26, 29, 1, 3, NULL, -25, -337, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Backbone\\nCore Router', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (27, 28, 1, 3, NULL, -252, -340, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Network', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (28, 29, 1, 3, NULL, -25, 83, 70, 70, NULL, NULL, NULL, NULL, 'ISP2 Ring\\nNetwork Core Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (29, 29, 1, 3, NULL, -25, -90, 70, 70, NULL, NULL, NULL, NULL, 'ISPs Backbone\\nCore Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (30, 25, 1, 3, NULL, 950, -210, 150, 150, NULL, NULL, NULL, NULL, 'Core\\nSwitch', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (31, 25, 1, 3, NULL, 460, 80, 100, 100, NULL, NULL, NULL, NULL, 'Redirection\\n Core Switch', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (352, 24, 1, 3, NULL, 1180, -260, 50, 50, NULL, NULL, NULL, NULL, 'Video Deep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (353, 24, 1, 3, NULL, 1180, -160, 50, 50, NULL, NULL, NULL, NULL, 'Image Deep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (354, 24, 1, 3, NULL, 1180, -60, 50, 50, NULL, NULL, NULL, NULL, 'Configure & Log\\n Management', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (355, 24, 1, 3, NULL, 1180, 40, 50, 50, NULL, NULL, NULL, NULL, 'Time Synchronization', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (356, 24, 1, 3, NULL, 1180, 140, 50, 50, NULL, NULL, NULL, NULL, 'Content Cache', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (357, 24, 1, 3, NULL, 1180, 240, 50, 50, NULL, NULL, NULL, NULL, 'Cert Management', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (358, 24, 1, 3, NULL, 1180, 340, 50, 50, NULL, NULL, NULL, NULL, 'Big Data Storage', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (359, 24, 1, 3, NULL, 1180, 440, 50, 50, NULL, NULL, NULL, NULL, 'Big Data Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (360, 24, 1, 3, NULL, 1180, 540, 50, 50, NULL, NULL, NULL, NULL, 'Big Data Management', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (361, 30, 1, 3, NULL, 1180, 640, 70, 70, NULL, NULL, NULL, NULL, 'Astana C&C Center', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (362, 30, 1, 4, 2, 1180, 740, 70, 70, NULL, NULL, NULL, NULL, 'Almaty Region\\nCenter & Other RCs', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (413, 23, 1, 3, NULL, 160, 165, 50, 50, NULL, NULL, NULL, NULL, 'Block\\n Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (414, 26, 1, 3, NULL, 114, 10, 70, 70, NULL, NULL, NULL, NULL, 'ISP2\\nIn-line Device', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (415, 32, 1, 3, NULL, 480, -610, 400, 250, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 100);
INSERT INTO `topo_node_info` VALUES (501, 24, 2, 3, NULL, 1180, -560, 50, 50, NULL, NULL, NULL, NULL, 'Document\\nDeep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (502, 24, 2, 3, NULL, 1180, -460, 50, 50, NULL, NULL, NULL, NULL, 'Encryption Traffic\\nDeep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (503, 24, 2, 3, NULL, 1180, -360, 50, 50, NULL, NULL, NULL, NULL, 'Audio Deep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (504, 21, 2, 3, NULL, 740, -54, 50, 50, NULL, NULL, NULL, NULL, 'ADC-A016', NULL, NULL, 20);
INSERT INTO `topo_node_info` VALUES (505, 24, 2, 3, NULL, 740, 41, 50, 50, NULL, NULL, NULL, NULL, 'Encryption Traffic\\nDeep Analysis RI', NULL, NULL, 20);
INSERT INTO `topo_node_info` VALUES (506, 24, 2, 3, NULL, 740, 128, 50, 50, NULL, NULL, NULL, NULL, 'IP Reuse', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (507, 24, 2, 3, NULL, 740, 218, 50, 50, NULL, NULL, NULL, NULL, 'Network Traffic\\nManipulation', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (508, 24, 2, 3, NULL, 788, 370, 50, 50, NULL, NULL, NULL, NULL, 'Radius Analysis', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (509, 27, 2, 3, NULL, -252, -90, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Internet', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (511, 31, 2, 3, NULL, 631, 343, 100, 100, NULL, NULL, NULL, NULL, 'ISP Log\\n Receive Switch', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (512, 28, 2, 3, NULL, -252, 525, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Network', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (514, 23, 2, 3, NULL, 160, 625, 50, 50, NULL, NULL, NULL, NULL, 'Block\\n Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (515, 29, 2, 3, NULL, -25, 525, 70, 70, NULL, NULL, NULL, NULL, 'ISP3 Backbone\\nCore Router', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (516, 26, 2, 3, NULL, 104, 392, 70, 70, NULL, NULL, NULL, NULL, 'ISP3\\n In-line Device', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (517, 28, 2, 3, NULL, -252, 85, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Network', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (518, 29, 2, 3, NULL, -25, -529, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Ring\\nNetwork Core\\nRouter', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (519, 23, 2, 3, NULL, 160, -247, 50, 50, NULL, NULL, NULL, NULL, 'Bloke\\n Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (520, 26, 2, 3, NULL, 114, -418, 70, 70, NULL, NULL, NULL, NULL, 'ISP1\\n In-line Device', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (521, 22, 2, 3, NULL, 740, -280, 50, 50, NULL, NULL, NULL, NULL, 'ASEM-T102', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (522, 25, 2, 3, NULL, 455, -305, 100, 100, NULL, NULL, NULL, NULL, 'Shunt\\nCore Switch', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (523, 27, 2, 3, NULL, -252, -530, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Internet', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (524, 27, 2, 3, NULL, -252, 300, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Internet', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (525, 29, 2, 3, NULL, -25, 304, 70, 70, NULL, NULL, NULL, NULL, 'ISP3 Ring\\nNetwork Core Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (526, 29, 2, 3, NULL, -25, -337, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Backbone\\nCore Router', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (527, 28, 2, 3, NULL, -252, -340, 70, 70, NULL, NULL, NULL, NULL, 'ISP1 Network', NULL, '', 20);
INSERT INTO `topo_node_info` VALUES (528, 29, 2, 3, NULL, -25, 83, 70, 70, NULL, NULL, NULL, NULL, 'ISP2 Ring\\nNetwork Core Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (529, 29, 2, 3, NULL, -25, -90, 70, 70, NULL, NULL, NULL, NULL, 'ISPs Backbone\\nCore Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (530, 25, 2, 3, NULL, 950, -210, 150, 150, NULL, NULL, NULL, NULL, 'Core\\nSwitch', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (531, 25, 2, 3, NULL, 460, 80, 100, 100, NULL, NULL, NULL, NULL, 'Redirection\\n Core Switch', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (852, 24, 2, 3, NULL, 1180, -260, 50, 50, NULL, NULL, NULL, NULL, 'Video Deep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (853, 24, 2, 3, NULL, 1180, -160, 50, 50, NULL, NULL, NULL, NULL, 'Image Deep Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (854, 24, 2, 3, NULL, 1180, -60, 50, 50, NULL, NULL, NULL, NULL, 'Configure & Log\\n Management', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (855, 24, 2, 3, NULL, 1180, 40, 50, 50, NULL, NULL, NULL, NULL, 'Time Synchronization', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (856, 24, 2, 3, NULL, 1180, 140, 50, 50, NULL, NULL, NULL, NULL, 'Content Cache', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (857, 24, 2, 3, NULL, 1180, 240, 50, 50, NULL, NULL, NULL, NULL, 'Cert Management', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (858, 24, 2, 3, NULL, 1180, 340, 50, 50, NULL, NULL, NULL, NULL, 'Big Data Storage', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (859, 24, 2, 3, NULL, 1180, 440, 50, 50, NULL, NULL, NULL, NULL, 'Big Data Analysis', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (860, 24, 2, 3, NULL, 1180, 540, 50, 50, NULL, NULL, NULL, NULL, 'Big Data Management', NULL, '[{textPosition:\"Bottom_Right\"}]', 20);
INSERT INTO `topo_node_info` VALUES (913, 23, 2, 3, NULL, 160, 165, 50, 50, NULL, NULL, NULL, NULL, 'Block\\n Router', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (914, 26, 2, 3, NULL, 114, 10, 70, 70, NULL, NULL, NULL, NULL, 'ISP2\\nIn-line Device', NULL, '[{textPosition:\"Bottom_Center\"}]', 20);
INSERT INTO `topo_node_info` VALUES (915, 32, 2, 3, NULL, 480, -610, 400, 250, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 100);

-- ----------------------------
-- Table structure for trouble_state
-- ----------------------------
DROP TABLE IF EXISTS `trouble_state`;
CREATE TABLE `trouble_state`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `trouble_code` decimal(22, 0) NOT NULL COMMENT '故障代码',
  `trouble_info` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '故障名称',
  `trouble_descr` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '故障描述说明信息',
  `system_id` int(11) NULL DEFAULT NULL COMMENT '业务系统id',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建人id',
  `create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `last_update_id` int(11) NULL DEFAULT NULL COMMENT '修改人id',
  `last_update_date` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
  `state` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '状态 0: 有效 1:无效',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '故障库,故障代码在同一个业务系统内不重复' ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for type_table
-- ----------------------------
DROP TABLE IF EXISTS `type_table`;
CREATE TABLE `type_table`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `show_num` decimal(22, 0) NULL DEFAULT 0 COMMENT '显示序号',
  `type_state` decimal(22, 0) NOT NULL DEFAULT 0 COMMENT '状态0启用；1停用',
  `type_desc` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述',
  `type_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字典类型名称，不为空不重复',
  `type_identity` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字典标识，不为空不重复',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典类型定义表：定义字典大类型' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of type_table
-- ----------------------------
INSERT INTO `type_table` VALUES (1, 1, 0, 'i18n_type_table.1.type_desc_n81i', 'i18n_type_table.1.type_name_n81i', 'showAutoAlarm');
INSERT INTO `type_table` VALUES (2, 1, 0, 'i18n_type_table.2.type_desc_n81i', 'i18n_type_table.2.type_name_n81i', 'isIdentical');
INSERT INTO `type_table` VALUES (3, 1, 0, 'i18n_type_table.3.type_desc_n81i', 'i18n_type_table.3.type_name_n81i', 'detecWarningLevel');
INSERT INTO `type_table` VALUES (4, 10, 1, 'i18n_type_table.4.type_desc_n81i', 'i18n_type_table.4.type_name_n81i', 'emailflag');
INSERT INTO `type_table` VALUES (5, 3, 0, NULL, 'i18n_type_table.5.type_name_n81i', 'netelementtype');
INSERT INTO `type_table` VALUES (6, 5, 0, 'i18n_type_table.6.type_desc_n81i', 'i18n_type_table.6.type_name_n81i', 'emergent');
INSERT INTO `type_table` VALUES (7, 1, 0, NULL, 'i18n_type_table.7.type_name_n81i', 'dpfan');
INSERT INTO `type_table` VALUES (8, 2, 0, NULL, 'i18n_type_table.8.type_name_n81i', 'diskwritestate');
INSERT INTO `type_table` VALUES (9, 13, 0, 'i18n_type_table.9.type_desc_n81i', 'i18n_type_table.9.type_name_n81i', 'monitorStatusInfo');
INSERT INTO `type_table` VALUES (10, 11, 1, 'i18n_type_table.10.type_desc_n81i', 'i18n_type_table.10.type_name_n81i', 'deptflag');

-- ----------------------------
-- Table structure for update_model_rz
-- ----------------------------
DROP TABLE IF EXISTS `update_model_rz`;
CREATE TABLE `update_model_rz`  (
  `update_id` bigint(20) NOT NULL DEFAULT 0,
  `model_id` int(11) NOT NULL,
  `model_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `model_version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `is_valid` decimal(22, 0) NOT NULL,
  `ins_time` datetime(0) NOT NULL,
  PRIMARY KEY (`update_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for upload_file_rz
-- ----------------------------
DROP TABLE IF EXISTS `upload_file_rz`;
CREATE TABLE `upload_file_rz`  (
  `unique_seq` bigint(20) NOT NULL DEFAULT 0,
  `file_type` decimal(22, 0) NOT NULL,
  `file_path` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `gen_time` datetime(0) NOT NULL,
  PRIMARY KEY (`unique_seq`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for xt_js_jbxx
-- ----------------------------
DROP TABLE IF EXISTS `xt_js_jbxx`;
CREATE TABLE `xt_js_jbxx`  (
  `jsmc` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '角色名称',
  `jsbh` bigint(20) NOT NULL DEFAULT 0 COMMENT '角色编号',
  `zxbz` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '是否有效，0：有效，1：无效',
  `jsms` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '角色描述',
  `ctime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `type` decimal(22, 0) NULL DEFAULT NULL COMMENT '1：用户组，null：角色',
  PRIMARY KEY (`jsbh`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of xt_js_jbxx
-- ----------------------------
INSERT INTO `xt_js_jbxx` VALUES ('Region Role', 21, '0', 'i18n_xt_js_jbxx.regionRole.jsms_n81i', '2018-08-12 09:24:34', NULL);
INSERT INTO `xt_js_jbxx` VALUES ('Nation Role', 224, '0', 'i18n_xt_js_jbxx.nationRole.jsms_n81i', '2018-08-12 09:24:41', NULL);
INSERT INTO `xt_js_jbxx` VALUES ('Nation Center', 100000, '0', 'Nation Center Group', '2018-08-10 18:45:49', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center1', 100001, '0', 'Region Center1', '2018-10-31 18:05:58', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center2', 100003, '0', 'Region Center2', '2018-10-31 18:06:11', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center3', 100005, '0', 'Region Center3', '2018-10-31 18:06:22', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center4', 100007, '0', 'Region Center4', '2018-10-31 18:06:35', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center5', 100009, '0', 'Region Center5', '2018-10-31 18:06:49', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center6', 100011, '0', 'Region Center6', '2018-10-31 18:07:01', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center7', 100013, '0', 'Region Center7', '2018-10-31 18:07:20', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center8', 100015, '0', 'Region Center8', '2018-10-31 18:12:11', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center9', 100017, '0', 'Region Center9', '2018-10-31 18:15:35', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center10', 100019, '0', 'Region Center10', '2018-10-31 18:16:12', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center11', 100021, '0', 'Region Center11', '2018-10-31 18:16:24', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center12', 100023, '0', 'Region Center12', '2018-10-31 18:16:37', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center13', 100025, '0', 'Region Center13', '2018-10-31 18:16:49', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center14', 100027, '0', 'Region Center14', '2018-10-31 18:19:48', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center15', 100029, '0', 'Region Center15', '2018-10-31 18:20:00', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center16', 100031, '0', 'Region Center16', '2018-10-31 18:20:11', 1);
INSERT INTO `xt_js_jbxx` VALUES ('Region Center17', 100033, '0', 'Region Center17', '2018-10-31 18:20:22', 1);

-- ----------------------------
-- Table structure for xt_js_mk_index
-- ----------------------------
DROP TABLE IF EXISTS `xt_js_mk_index`;
CREATE TABLE `xt_js_mk_index`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `mkbh` decimal(22, 0) NULL DEFAULT NULL COMMENT '模块编号',
  `jsbh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '角色编号',
  `ctime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of xt_js_mk_index
-- ----------------------------
INSERT INTO `xt_js_mk_index` VALUES (6259, 267, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6261, 269, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6262, 311, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6263, 312, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6264, 313, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6265, 314, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6266, 315, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6267, 270, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6268, 308, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6269, 309, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6270, 310, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6271, 271, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6272, 303, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6273, 304, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6274, 305, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6275, 306, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6276, 307, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6277, 272, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6278, 273, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6279, 300, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6280, 301, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6281, 302, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6282, 274, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6283, 298, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6284, 299, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6285, 275, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6286, 294, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6287, 295, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6288, 296, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6289, 297, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6290, 276, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6291, 290, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6292, 291, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6293, 292, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6294, 293, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6297, 278, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6298, 288, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6299, 289, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6301, 361, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6302, 421, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6303, 461, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6304, 462, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6305, 521, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6306, 279, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6307, 280, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6308, 281, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6309, 282, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6310, 283, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6311, 284, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6312, 261, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6313, 262, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6314, 263, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6315, 264, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6316, 266, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6317, 285, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6318, 381, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6319, 441, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6321, 501, '61', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6882, 1, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6883, 9, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6884, 10, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6885, 11, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6886, 12, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6887, 13, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6888, 14, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6889, 15, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6890, 16, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6891, 17, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6892, 267, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6894, 269, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6895, 311, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6896, 312, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6897, 313, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6898, 314, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6899, 315, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6900, 270, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6901, 308, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6902, 309, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6903, 310, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6904, 271, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6905, 303, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6906, 304, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6907, 305, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6908, 306, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6909, 307, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6910, 272, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6911, 273, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6912, 300, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6913, 301, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6914, 302, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6915, 274, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6916, 298, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6917, 299, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6918, 275, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6919, 294, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6920, 295, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6921, 296, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6922, 297, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6923, 276, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6924, 290, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6925, 291, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6926, 292, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6927, 293, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6930, 288, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6931, 289, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6933, 361, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6934, 421, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6935, 461, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6936, 462, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6937, 521, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6938, 279, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6939, 280, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6940, 281, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6941, 282, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6942, 283, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6943, 284, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6944, 261, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6945, 262, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6946, 263, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6947, 264, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6948, 266, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6949, 285, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6950, 381, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6951, 441, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6953, 501, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6954, 541, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6955, 542, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6956, 543, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6957, 544, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6958, 545, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6959, 546, '201', NULL);
INSERT INTO `xt_js_mk_index` VALUES (6960, 1, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6961, 9, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6962, 10, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6963, 11, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6964, 12, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6965, 13, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6966, 14, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6967, 15, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6968, 16, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6969, 17, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6970, 267, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6972, 269, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6973, 311, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6974, 312, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6975, 313, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6976, 314, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6977, 315, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6978, 270, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6979, 308, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6980, 309, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6981, 310, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6982, 271, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6983, 303, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6984, 304, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6985, 305, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6986, 306, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6987, 307, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6988, 272, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6989, 273, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6990, 300, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6991, 301, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6992, 302, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6993, 274, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6994, 298, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6995, 299, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6996, 275, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6997, 294, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6998, 295, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (6999, 296, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7000, 297, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7001, 276, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7002, 290, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7003, 291, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7004, 292, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7005, 293, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7008, 288, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7009, 289, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7011, 361, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7012, 421, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7013, 461, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7014, 462, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7015, 521, '221', '2015-10-20 09:44:46');
INSERT INTO `xt_js_mk_index` VALUES (7996, 1, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (7997, 9, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (7998, 10, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (7999, 11, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8000, 12, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8001, 13, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8002, 14, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8003, 15, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8004, 16, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8005, 17, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8006, 267, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8007, 269, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8008, 311, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8009, 312, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8010, 313, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8011, 314, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8012, 315, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8013, 270, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8014, 308, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8015, 309, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8016, 310, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8017, 271, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8018, 303, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8019, 304, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8020, 305, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8021, 306, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8022, 307, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8023, 272, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8024, 273, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8025, 300, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8026, 301, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8027, 302, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8028, 274, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8029, 298, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8030, 299, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8031, 275, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8032, 294, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8033, 295, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8034, 296, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8035, 297, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8036, 276, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8037, 290, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8038, 291, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8039, 292, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8040, 293, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8041, 288, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8042, 289, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8043, 361, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8044, 421, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8045, 461, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8046, 462, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8047, 521, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8049, 279, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8050, 280, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8051, 281, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8052, 282, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8053, 283, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8054, 284, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8055, 261, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8056, 262, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8057, 263, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8058, 264, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8059, 266, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8060, 285, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8061, 381, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8062, 441, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8063, 501, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8064, 541, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8065, 542, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8066, 543, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8067, 544, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8068, 545, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (8069, 546, '1', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100000, 267, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100001, 269, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100002, 311, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100003, 312, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100004, 313, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100005, 314, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100006, 315, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100007, 272, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100008, 273, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100009, 300, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100010, 301, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100011, 302, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100012, 274, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100013, 298, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100014, 299, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100015, 276, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100016, 290, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100017, 291, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100018, 292, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100019, 293, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100020, 279, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100021, 282, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100022, 283, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100023, 284, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100024, 261, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100025, 262, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100026, 263, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100027, 264, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100028, 266, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100029, 285, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100030, 381, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100031, 441, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100032, 501, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100033, 604, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100034, 270, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100035, 308, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100036, 309, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100037, 310, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100038, 271, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100039, 303, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100040, 304, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100041, 305, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100042, 306, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100043, 307, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100044, 275, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100045, 294, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100046, 295, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100047, 296, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100048, 297, '224', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100195, 1, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100196, 9, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100197, 10, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100198, 11, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100199, 12, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100200, 13, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100201, 14, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100202, 15, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100203, 16, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100204, 17, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100205, 267, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100206, 269, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100207, 311, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100208, 312, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100209, 313, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100210, 314, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100211, 315, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100212, 270, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100213, 308, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100214, 309, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100215, 310, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100216, 271, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100217, 303, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100218, 304, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100219, 305, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100220, 306, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100221, 307, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100222, 272, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100223, 273, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100224, 300, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100225, 301, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100226, 302, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100227, 274, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100228, 298, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100229, 299, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100230, 275, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100231, 294, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100232, 295, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100233, 296, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100234, 297, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100235, 276, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100236, 290, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100237, 291, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100238, 292, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100239, 293, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100240, 288, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100241, 289, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100242, 361, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100243, 421, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100244, 461, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100245, 462, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100246, 521, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100247, 279, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100248, 280, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100249, 281, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100250, 282, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100251, 283, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100252, 284, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100253, 261, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100254, 262, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100255, 263, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100256, 264, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100257, 266, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100258, 285, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100259, 381, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100260, 441, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100261, 501, '2', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100262, 267, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100263, 269, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100264, 311, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100265, 312, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100266, 313, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100267, 314, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100268, 315, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100269, 270, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100270, 308, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100271, 309, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100272, 310, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100273, 271, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100274, 303, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100275, 304, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100276, 305, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100277, 306, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100278, 307, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100279, 272, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100280, 273, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100281, 300, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100282, 301, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100283, 302, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100284, 274, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100285, 298, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100286, 299, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100287, 275, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100288, 294, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100289, 295, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100290, 296, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100291, 297, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100292, 276, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100293, 290, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100294, 291, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100295, 292, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100296, 293, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100297, 288, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100298, 289, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100299, 361, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100300, 421, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100301, 461, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100302, 462, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100303, 521, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100304, 279, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100305, 280, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100306, 281, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100307, 282, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100308, 283, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100309, 284, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100310, 261, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100311, 262, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100312, 263, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100313, 264, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100314, 266, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100315, 285, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100316, 381, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100317, 441, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100318, 501, '3', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100367, 279, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100368, 283, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100369, 284, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100370, 261, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100371, 262, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100372, 263, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100373, 264, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100374, 266, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100375, 285, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100376, 381, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100377, 441, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100378, 501, '225', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100416, 279, '100002', '2018-09-11 14:03:22');
INSERT INTO `xt_js_mk_index` VALUES (100417, 280, '100002', '2018-09-11 14:03:22');
INSERT INTO `xt_js_mk_index` VALUES (100418, 281, '100002', '2018-09-11 14:03:22');
INSERT INTO `xt_js_mk_index` VALUES (100419, 282, '100002', '2018-09-11 14:03:22');
INSERT INTO `xt_js_mk_index` VALUES (100420, 283, '100002', '2018-09-11 14:03:22');
INSERT INTO `xt_js_mk_index` VALUES (100506, 267, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100507, 269, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100508, 311, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100509, 312, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100510, 313, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100511, 314, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100512, 315, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100513, 270, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100514, 308, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100515, 309, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100516, 310, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100517, 271, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100518, 303, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100519, 304, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100520, 305, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100521, 306, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100522, 307, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100523, 272, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100524, 273, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100525, 300, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100526, 301, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100527, 302, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100528, 274, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100529, 298, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100530, 299, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100531, 275, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100532, 294, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100533, 295, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100534, 296, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100535, 297, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100536, 276, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100537, 290, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100538, 291, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100539, 292, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100540, 293, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100541, 361, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100542, 521, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100543, 602, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100544, 603, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100545, 279, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100546, 280, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100547, 281, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100548, 282, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100549, 283, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100550, 284, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100551, 261, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100552, 262, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100553, 263, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100554, 264, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100555, 266, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100556, 285, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100557, 381, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100558, 441, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100559, 501, '100001', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100560, 279, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100561, 283, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100562, 284, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100563, 261, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100564, 262, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100565, 263, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100566, 264, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100567, 266, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100568, 285, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100569, 381, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100570, 441, '21', NULL);
INSERT INTO `xt_js_mk_index` VALUES (100571, 501, '21', NULL);

-- ----------------------------
-- Table structure for xt_mk_jbxx
-- ----------------------------
DROP TABLE IF EXISTS `xt_mk_jbxx`;
CREATE TABLE `xt_mk_jbxx`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `pid` decimal(22, 0) NULL DEFAULT NULL COMMENT '父级id',
  `mkbh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '模块编号',
  `mkmc` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '模块名称',
  `mkms` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '模块描述',
  `mkurl` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '模块url',
  `mktb` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `zxbz` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `ctime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `iconimage` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '头像图标',
  `handler` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作',
  `mktype` decimal(22, 0) NULL DEFAULT NULL COMMENT '模块类型',
  `showlevel` decimal(22, 0) NULL DEFAULT NULL COMMENT '菜单级别',
  `showorder` decimal(22, 0) NULL DEFAULT NULL COMMENT '显示序号',
  `showarea` decimal(22, 0) NULL DEFAULT NULL COMMENT '0:主控和子控系统全显示；1:主控系统显示；2：子控系统显示',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of xt_mk_jbxx
-- ----------------------------
INSERT INTO `xt_mk_jbxx` VALUES (1, 0, '0_0001', 'i18n_xt_mk_jbxx.1.mkmc_n81i', 'i18n_xt_mk_jbxx.1.mkms_n81i', '/main/welcome.html', NULL, '0', NULL, 'xtpz_b.png', NULL, NULL, 1, 7, 0);
INSERT INTO `xt_mk_jbxx` VALUES (9, 1, '0_0001_0002', 'i18n_xt_mk_jbxx.9.mkmc_n81i', 'i18n_xt_mk_jbxx.9.mkms_n81i', '/sysManage/dataDictionary.do?action=query', NULL, '0', NULL, NULL, NULL, 0, 2, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (10, 9, '0_0001_0002_0001', 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '0', NULL, NULL, 'addRecord', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (11, 1, '0_0001_0003', 'i18n_xt_mk_jbxx.11.mkms_n81i', 'i18n_xt_mk_jbxx.11.mkms_n81i', '/sysManage/sysErrorManage!execute.do?action=queryError', NULL, '0', NULL, NULL, NULL, 0, 2, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (12, 11, '0_0001_0003_0001', 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.12.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'addRecord', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (13, 11, '0_0001_0003_0002', 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.13.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'updateRecord', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (14, 1, '0_0001_0000', 'i18n_xt_mk_jbxx.14.mkmc_n81i', 'i18n_xt_mk_jbxx.14.mkms_n81i', '/functionManager/functionManager.do?action=queryMkInfo', NULL, '0', NULL, 'ywpz_b.png', NULL, 0, 2, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (15, 14, '0_0001_0002_0001', 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'delMk', NULL, '0', NULL, NULL, 'updateMk', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (16, 14, '0_0001_0002_0002', 'i18n_xt_mk_jbxx.16.mkmc_n81i', 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, '0', NULL, NULL, 'addZMk', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (17, 14, '0_0001_0002_0003', 'i18n_xt_mk_jbxx.17.mkms_n81i', 'i18n_xt_mk_jbxx.17.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'addMk', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (46, 5, NULL, 'i18n_xt_mk_jbxx.46.mkmc_n81i', 'i18n_xt_mk_jbxx.46.mkms_n81i', '/detection/oidDictionary.do?action=query', NULL, '1', NULL, NULL, NULL, 0, 2, 5, 0);
INSERT INTO `xt_mk_jbxx` VALUES (47, 46, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, NULL, '1', NULL, NULL, 'addRecord', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (48, 46, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '1', NULL, NULL, 'addRecord', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (49, 5, NULL, 'i18n_xt_mk_jbxx.49.mkmc_n81i', NULL, '/detection/switchDetection.do?action=query', NULL, '1', NULL, NULL, NULL, 0, 2, 6, 0);
INSERT INTO `xt_mk_jbxx` VALUES (50, 5, NULL, 'i18n_xt_mk_jbxx.50.mkmc_n81i', 'i18n_xt_mk_jbxx.50.mkms_n81i', '/detection/detectionSet.do?action=query', NULL, '1', NULL, NULL, NULL, NULL, 2, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (51, 50, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.51.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'addDetecSet', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (52, 50, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.52.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'updDetecSet', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (53, 50, NULL, 'i18n_xt_mk_jbxx.53.mkmc_n81i', 'i18n_xt_mk_jbxx.53.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'addPoliceSet', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (54, 53, NULL, 'i18n_xt_mk_jbxx.54.mkmc_n81i', 'i18n_xt_mk_jbxx.54.mkms_n81i', '/detection/policeSet.do?action=query', NULL, '0', NULL, NULL, NULL, 0, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (55, 54, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, '0', NULL, NULL, 'addPoliceRelation', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (56, 54, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, '0', NULL, NULL, 'updatePoliceRelation', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (57, 5, NULL, 'i18n_xt_mk_jbxx.57.mkmc_n81i', 'i18n_xt_mk_jbxx.57.mkms_n81i', '/detection/monitorData.do?action=query', NULL, '1', NULL, NULL, NULL, NULL, 2, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (58, 5, NULL, 'i18n_xt_mk_jbxx.58.mkmc_n81i', 'i18n_xt_mk_jbxx.58.mkms_n81i', '/detection/checkTypeSet.do?action=query', NULL, '1', NULL, NULL, NULL, NULL, 2, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (59, 58, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.59.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'addCheckTypeSet', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (60, 58, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.60.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'updCheckTypeSet', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (61, 58, NULL, 'i18n_xt_mk_jbxx.310.mkmc_n81i', 'i18n_xt_mk_jbxx.61.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'delCheckTypeSet', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (62, 5, NULL, 'i18n_xt_mk_jbxx.62.mkmc_n81i', 'i18n_xt_mk_jbxx.62.mkms_n81i', '/detection/detectionWarning.do?action=query', NULL, '1', NULL, NULL, NULL, 0, 2, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (69, 4, '0_0007_0001', 'i18n_xt_mk_jbxx.69.mkmc_n81i', 'i18n_xt_mk_jbxx.69.mkms_n81i', '/nodePosition/roomManage.do?action=query', NULL, '1', NULL, NULL, NULL, 0, 2, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (70, 69, '0_0007_0001_0001', 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.70.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'addRecord', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (71, 69, '0_0007_0001_0002', 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.71.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'updRecord', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (72, 69, '0_0007_0001_0003', 'i18n_xt_mk_jbxx.310.mkmc_n81i', 'i18n_xt_mk_jbxx.72.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'delRecord', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (75, 4, '0_0007_0004', 'i18n_xt_mk_jbxx.75.mkmc_n81i', 'i18n_xt_mk_jbxx.75.mkms_n81i', '/nodePosition/boxSet.do?action=query', NULL, '1', NULL, NULL, NULL, 0, 2, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (76, 75, '0_0007_0004_0001', 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, '0', NULL, NULL, 'addNb', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (77, 75, '0_0007_0004_0002', 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, '0', NULL, NULL, 'updNb', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (78, 75, '0_0007_0004_0003', 'i18n_xt_mk_jbxx.310.mkmc_n81i', 'i18n_xt_mk_jbxx.310.mkmc_n81i', NULL, NULL, '0', NULL, NULL, 'delNb', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (80, 50, NULL, 'i18n_xt_mk_jbxx.293.mkmc_n81i', 'i18n_xt_mk_jbxx.80.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'stopDSet', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (81, 50, NULL, 'i18n_xt_mk_jbxx.299.mkmc_n81i', 'i18n_xt_mk_jbxx.81.mkms_n81i', NULL, NULL, '0', NULL, NULL, 'startDSet', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (121, 4, NULL, 'i18n_xt_mk_jbxx.121.mkmc_n81i', 'i18n_xt_mk_jbxx.121.mkms_n81i', '/detection/switchDetection.do?action=toConfigSpecialDevice', NULL, '1', '2013-04-23 09:30:22', NULL, NULL, 0, 2, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (122, 4, NULL, 'i18n_xt_mk_jbxx.122.mkmc_n81i', 'i18n_xt_mk_jbxx.122.mkms_n81i', '/detection/switchDetection.do?action=toConfigSpecialDevice', NULL, '1', '2013-04-23 09:35:40', NULL, NULL, 0, 2, 5, 0);
INSERT INTO `xt_mk_jbxx` VALUES (161, 5, NULL, 'i18n_xt_mk_jbxx.161.mkmc_n81i', NULL, '/sysManage/guideManage!execute.do?action=index', NULL, '1', '2013-04-26 15:33:45', NULL, NULL, 0, 2, 7, 0);
INSERT INTO `xt_mk_jbxx` VALUES (181, 5, NULL, 'i18n_xt_mk_jbxx.181.mkmc_n81i', NULL, '/sysManage/guideManage!execute.do?action=task', NULL, '1', '2013-04-27 10:01:09', NULL, NULL, 0, 2, 9, 0);
INSERT INTO `xt_mk_jbxx` VALUES (201, 5, NULL, 'i18n_xt_mk_jbxx.201.mkmc_n81i', NULL, '/sysManage/guideManage!execute.do?action=monitor', NULL, '1', '2013-04-28 13:32:54', NULL, NULL, 0, 2, 10, 0);
INSERT INTO `xt_mk_jbxx` VALUES (221, 4, NULL, 'i18n_xt_mk_jbxx.221.mkmc_n81i', NULL, '/sysManage/deviceBrandManage.do?action=queryDeviceBrandInfo', NULL, '1', '2013-05-03 16:52:14', NULL, NULL, 0, 2, 6, 0);
INSERT INTO `xt_mk_jbxx` VALUES (222, 461, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, '0', '2013-05-03 17:10:40', NULL, 'toAddDevBrand', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (223, 461, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, '0', '2013-05-03 17:11:12', NULL, 'toUpdateDevBrand', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (224, 461, NULL, 'i18n_xt_mk_jbxx.310.mkmc_n81i', 'i18n_xt_mk_jbxx.310.mkmc_n81i', NULL, NULL, '0', '2013-05-03 17:11:39', NULL, 'deleteDevBrand', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (241, 4, NULL, 'i18n_xt_mk_jbxx.241.mkmc_n81i', 'i18n_xt_mk_jbxx.241.mkms_n81i', '/sysManage/deviceBrandManage.do?action=queryDeviceTypeInfo', NULL, '1', '2013-05-06 10:01:23', NULL, NULL, 0, 2, 7, 0);
INSERT INTO `xt_mk_jbxx` VALUES (242, 241, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.242.mkms_n81i', NULL, NULL, '1', '2013-05-06 10:04:42', NULL, 'toAdd', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (243, 241, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, '1', '2013-05-06 10:04:59', NULL, 'toUpdate', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (244, 241, NULL, 'i18n_xt_mk_jbxx.310.mkmc_n81i', 'i18n_xt_mk_jbxx.310.mkmc_n81i', NULL, NULL, '1', '2013-05-06 10:05:22', NULL, 'delete', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (245, 241, NULL, 'i18n_xt_mk_jbxx.245.mkmc_n81i', 'i18n_xt_mk_jbxx.245.mkms_n81i', NULL, NULL, '1', '2013-05-06 11:36:48', NULL, 'toAddDevType', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (261, 284, NULL, 'i18n_xt_mk_jbxx.261.mkmc_n81i', 'i18n_xt_mk_jbxx.261.mkms_n81i', '/detection/detectionWarning.do?action=query&menuVisit=true&timeoutDetecFilter=false', NULL, '0', '2013-05-10 14:41:43', NULL, NULL, 0, 2, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (262, 284, NULL, 'i18n_xt_mk_jbxx.262.mkmc_n81i', 'i18n_xt_mk_jbxx.262.mkms_n81i', '/detection/monitorData.do?action=query', NULL, '0', '2013-05-10 14:42:11', NULL, NULL, 0, 2, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (263, 284, NULL, 'i18n_xt_mk_jbxx.263.mkmc_n81i', NULL, '/detection/detectionWarning.do?action=queryNE&menuVisit=true&timeoutDetecFilter=true', NULL, '0', '2013-05-10 14:42:29', NULL, NULL, 0, 2, 6, 0);
INSERT INTO `xt_mk_jbxx` VALUES (264, 284, NULL, 'i18n_xt_mk_jbxx.264.mkmc_n81i', NULL, '/detection/switchDetection.do?action=query', NULL, '0', '2013-05-10 14:42:56', NULL, NULL, 0, 2, 7, 0);
INSERT INTO `xt_mk_jbxx` VALUES (266, 284, NULL, 'i18n_xt_mk_jbxx.266.mkmc_n81i', 'i18n_xt_mk_jbxx.266.mkms_n81i', '/nmstaskManager/nmsTaskManager!execute.do?action=query', NULL, '0', '2013-05-10 14:43:32', NULL, NULL, 0, 2, 13, 0);
INSERT INTO `xt_mk_jbxx` VALUES (267, 0, NULL, 'i18n_xt_mk_jbxx.267.mkmc_n81i', 'i18n_xt_mk_jbxx.267.mkms_n81i', NULL, NULL, '0', '2013-05-10 14:50:50', NULL, NULL, 0, 1, 9, 0);
INSERT INTO `xt_mk_jbxx` VALUES (268, 267, NULL, 'i18n_xt_mk_jbxx.268.mkmc_n81i', NULL, '/sysManage/guideManage!execute.do?action=monitor', NULL, '1', '2013-05-10 14:51:41', NULL, NULL, 0, 2, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (269, 267, NULL, 'i18n_xt_mk_jbxx.269.mkmc_n81i', 'i18n_xt_mk_jbxx.269.mkms_n81i', '/detection/detectionSet.do?action=query', NULL, '0', '2013-05-10 14:53:09', NULL, NULL, 0, 2, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (270, 604, NULL, 'i18n_xt_mk_jbxx.270.mkmc_n81i', NULL, '/detection/checkTypeSet.do?action=query', NULL, '0', '2013-05-10 14:54:03', NULL, NULL, 0, 2, 5, 0);
INSERT INTO `xt_mk_jbxx` VALUES (271, 604, NULL, 'i18n_xt_mk_jbxx.271.mkmc_n81i', NULL, '/nmstaskManager/nmsTaskManager.do?action=query', NULL, '0', '2013-05-10 14:54:18', NULL, NULL, 0, 2, 6, 0);
INSERT INTO `xt_mk_jbxx` VALUES (272, 267, NULL, 'i18n_xt_mk_jbxx.272.mkmc_n81i', NULL, '/detection/switchDetection.do?action=toConfigSpecialDevice', NULL, '0', '2013-05-10 14:54:34', NULL, NULL, 0, 2, 11, 0);
INSERT INTO `xt_mk_jbxx` VALUES (273, 267, NULL, 'i18n_xt_mk_jbxx.273.mkmc_n81i', NULL, '/nodePosition/roomManage.do?action=query', NULL, '0', '2013-05-10 14:54:51', NULL, NULL, 0, 2, 12, 0);
INSERT INTO `xt_mk_jbxx` VALUES (274, 267, NULL, 'i18n_xt_mk_jbxx.274.mkmc_n81i', 'i18n_xt_mk_jbxx.274.mkms_n81i', '/nodeGroupManage/nodeGroupManage!execute.do?action=queryNodeGroupInfo', NULL, '0', '2013-05-10 14:55:08', NULL, NULL, 0, 2, 8, 0);
INSERT INTO `xt_mk_jbxx` VALUES (275, 604, NULL, 'i18n_xt_mk_jbxx.275.mkmc_n81i', 'i18n_xt_mk_jbxx.275.mkms_n81i', '/sysManage/systemManage.do?action=query', NULL, '0', '2013-05-10 14:55:22', NULL, NULL, 0, 2, 10, 0);
INSERT INTO `xt_mk_jbxx` VALUES (276, 267, NULL, 'i18n_xt_mk_jbxx.276.mkmc_n81i', 'i18n_xt_mk_jbxx.276.mkms_n81i', '/serverManager/serverManager.do?action=query', NULL, '0', '2013-05-10 14:55:32', NULL, NULL, 0, 2, 9, 0);
INSERT INTO `xt_mk_jbxx` VALUES (278, 267, NULL, 'i18n_xt_mk_jbxx.278.mkmc_n81i', NULL, '/nodePosition/nodePosition.do?action=showMap', NULL, '1', '2013-05-10 14:56:05', NULL, NULL, 0, 2, 14, 0);
INSERT INTO `xt_mk_jbxx` VALUES (279, 0, NULL, 'i18n_xt_mk_jbxx.279.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 14:56:29', NULL, NULL, 0, 1, 10, 0);
INSERT INTO `xt_mk_jbxx` VALUES (280, 279, NULL, 'i18n_xt_mk_jbxx.280.mkmc_n81i', NULL, '/deptManage/deptManage!execute.do?action=queryDeptInfo', NULL, '1', '2013-05-10 14:56:40', NULL, NULL, 0, 2, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (281, 279, NULL, 'i18n_xt_mk_jbxx.281.mkmc_n81i', NULL, '/sysManage/sysPopedomManage!execute.do?action=queryJsInfo', NULL, '0', '2013-05-10 14:56:53', NULL, NULL, 0, 2, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (282, 279, NULL, 'i18n_xt_mk_jbxx.282.mkmc_n81i', NULL, '/sysManage/sysPopedomManage!execute.do?action=queryUserInfo', NULL, '0', '2013-05-10 14:57:07', NULL, NULL, 0, 2, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (283, 279, NULL, 'i18n_xt_mk_jbxx.283.mkmc_n81i', NULL, '/sysManage/sysPopedomManage!execute.do?action=updateSelfInfo', NULL, '0', '2013-05-10 14:57:18', NULL, NULL, 0, 2, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (284, 0, NULL, 'i18n_xt_mk_jbxx.284.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 15:00:41', NULL, NULL, 0, 1, 8, 0);
INSERT INTO `xt_mk_jbxx` VALUES (285, 284, NULL, 'i18n_xt_mk_jbxx.285.mkmc_n81i', 'i18n_xt_mk_jbxx.285.mkms_n81i', '/nodePosition/newTopoShow.do?action=showTopo', NULL, '0', '2013-05-10 16:20:20', NULL, NULL, 0, 2, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (288, 267, NULL, 'i18n_xt_mk_jbxx.288.mkmc_n81i', 'i18n_xt_mk_jbxx.288.mkms_n81i', '/sysManage/userGroupPerssion.do?action=query', NULL, '0', '2013-05-10 16:28:01', NULL, NULL, 0, 2, 13, 0);
INSERT INTO `xt_mk_jbxx` VALUES (289, 288, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.289.mkms_n81i', NULL, NULL, '0', '2013-05-10 16:30:42', NULL, 'addRecord', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (290, 276, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:50:00', NULL, 'openAdd', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (291, 276, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:50:23', NULL, 'openUpdate', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (292, 276, NULL, 'i18n_xt_mk_jbxx.299.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:51:40', NULL, 'startServer', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (293, 276, NULL, 'i18n_xt_mk_jbxx.293.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:52:03', NULL, 'stopServer', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (294, 275, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:52:27', NULL, 'addSystem', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (295, 275, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:54:27', NULL, 'updateSystem', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (296, 275, NULL, 'i18n_xt_mk_jbxx.293.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:54:47', NULL, 'stopSystem', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (297, 275, NULL, 'i18n_xt_mk_jbxx.299.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:56:04', NULL, 'startSystem', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (298, 274, NULL, 'i18n_xt_mk_jbxx.293.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:59:19', NULL, 'stopNodeGroup', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (299, 274, NULL, 'i18n_xt_mk_jbxx.299.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 16:59:42', NULL, 'startNodeGroup', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (300, 273, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:18:46', NULL, 'addRecord', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (301, 273, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:19:09', NULL, 'updRecord', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (302, 273, NULL, 'i18n_xt_mk_jbxx.310.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:19:28', NULL, 'delRecord', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (303, 271, NULL, 'i18n_xt_mk_jbxx.303.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:20:53', NULL, 'addSimilar', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (304, 271, NULL, 'i18n_xt_mk_jbxx.304.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:21:14', NULL, 'addConverse', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (305, 271, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:21:39', NULL, 'add', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (306, 271, NULL, 'i18n_xt_mk_jbxx.306.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:22:31', NULL, 'shutDn', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (307, 271, NULL, 'i18n_xt_mk_jbxx.307.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:22:49', NULL, 'startDn', 1, NULL, 5, 0);
INSERT INTO `xt_mk_jbxx` VALUES (308, 270, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:23:48', NULL, 'addCheckTypeSet', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (309, 270, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:24:12', NULL, 'updCheckTypeSet', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (310, 270, NULL, 'i18n_xt_mk_jbxx.310.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:24:36', NULL, 'delCheckTypeSet', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (311, 269, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:26:15', NULL, 'addDetecSet', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (312, 269, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:26:37', NULL, 'updDetecSet', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (313, 269, NULL, 'i18n_xt_mk_jbxx.313.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:27:03', NULL, 'addPoliceSet', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (314, 269, NULL, 'i18n_xt_mk_jbxx.299.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:27:43', NULL, 'startDSet', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (315, 269, NULL, 'i18n_xt_mk_jbxx.293.mkmc_n81i', NULL, NULL, NULL, '0', '2013-05-10 17:28:08', NULL, 'stopDSet', 1, NULL, 5, 0);
INSERT INTO `xt_mk_jbxx` VALUES (316, 267, NULL, 'i18n_xt_mk_jbxx.316.mkmc_n81i', NULL, '/sysManage/guideManage!execute.do?action=task', NULL, '1', '2013-05-10 17:41:19', NULL, NULL, 0, 2, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (321, 5, NULL, 'i18n_xt_mk_jbxx.321.mkmc_n81i', NULL, '/detection/monitorData.do?action=queryAbnormalSet', NULL, '1', '2013-05-13 09:56:28', NULL, NULL, 0, 2, 8, 0);
INSERT INTO `xt_mk_jbxx` VALUES (341, 277, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.341.mkms_n81i', NULL, NULL, '0', '2013-05-24 17:33:55', NULL, 'addRecord', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (361, 267, NULL, 'i18n_xt_mk_jbxx.361.mkmc_n81i', NULL, '/detection/switchDetection.do?action=toConfigPort', NULL, '0', '2013-06-06 11:18:07', NULL, NULL, 0, 2, 15, 0);
INSERT INTO `xt_mk_jbxx` VALUES (381, 284, NULL, 'i18n_xt_mk_jbxx.381.mkmc_n81i', NULL, '/detection/monitorData.do?action=queryNE', NULL, '0', '2013-06-17 15:42:12', NULL, NULL, 0, 2, 5, 0);
INSERT INTO `xt_mk_jbxx` VALUES (421, 267, NULL, 'i18n_xt_mk_jbxx.421.mkmc_n81i', NULL, '/detection/policeSet.do?action=query', NULL, '0', '2013-06-24 08:43:33', NULL, NULL, 0, 2, 16, 0);
INSERT INTO `xt_mk_jbxx` VALUES (441, 284, NULL, 'i18n_xt_mk_jbxx.441.mkmc_n81i', NULL, '/nodePosition/topoShow.do?action=show3DRoom', NULL, '0', '2013-06-24 17:32:36', NULL, NULL, 0, 2, 11, 0);
INSERT INTO `xt_mk_jbxx` VALUES (461, 267, NULL, 'i18n_xt_mk_jbxx.461.mkmc_n81i', NULL, '/sysManage/deviceBrandManage.do?action=queryDeviceBrandInfo', NULL, '0', '2013-07-11 15:23:52', NULL, NULL, 0, 2, 17, 0);
INSERT INTO `xt_mk_jbxx` VALUES (462, 267, NULL, 'i18n_xt_mk_jbxx.462.mkmc_n81i', NULL, '/sysManage/deviceBrandManage.do?action=queryDeviceTypeInfo', NULL, '0', '2013-07-11 15:24:17', NULL, NULL, 0, 2, 18, 0);
INSERT INTO `xt_mk_jbxx` VALUES (501, 284, NULL, 'i18n_xt_mk_jbxx.501.mkmc_n81i', 'i18n_xt_mk_jbxx.501.mkms_n81i', '/detection/detectionWarning.do?action=queryAllConfigLevel&timeoutDetecFilter=true', NULL, '0', '2013-10-17 16:51:19', NULL, NULL, 0, 2, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (521, 267, NULL, 'i18n_xt_mk_jbxx.521.mkmc_n81i', 'i18n_xt_mk_jbxx.521.mkms_n81i', '/sysManage/dataDictionary.do?action=queryDetectConditionSet', NULL, '0', '2013-12-25 16:24:26', NULL, NULL, 0, 2, 19, 0);
INSERT INTO `xt_mk_jbxx` VALUES (541, 0, NULL, 'i18n_xt_mk_jbxx.541.mkmc_n81i', 'i18n_xt_mk_jbxx.541.mkms_n81i', '/', NULL, '1', '2015-01-27 09:58:01', NULL, NULL, 0, 1, 11, 0);
INSERT INTO `xt_mk_jbxx` VALUES (542, 541, NULL, 'i18n_xt_mk_jbxx.542.mkmc_n81i', 'i18n_xt_mk_jbxx.542.mkms_n81i', '/pluginManage/pluginManage.do?action=queryInfo', NULL, '1', '2015-01-27 10:03:37', NULL, NULL, 0, 2, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (543, 542, NULL, 'i18n_xt_mk_jbxx.10.mkmc_n81i', 'i18n_xt_mk_jbxx.543.mkms_n81i', NULL, NULL, '0', '2015-01-27 10:05:51', NULL, 'addPlugin', 1, NULL, 1, 0);
INSERT INTO `xt_mk_jbxx` VALUES (544, 542, NULL, 'i18n_xt_mk_jbxx.309.mkmc_n81i', 'i18n_xt_mk_jbxx.544.mkms_n81i', NULL, NULL, '0', '2015-01-27 10:06:56', NULL, 'updatePlugin', 1, NULL, 2, 0);
INSERT INTO `xt_mk_jbxx` VALUES (545, 542, NULL, 'i18n_xt_mk_jbxx.310.mkmc_n81i', 'i18n_xt_mk_jbxx.545.mkms_n81i', NULL, NULL, '0', '2015-01-27 10:07:21', NULL, 'delPlugin', 1, NULL, 3, 0);
INSERT INTO `xt_mk_jbxx` VALUES (546, 542, NULL, 'i18n_xt_mk_jbxx.546.mkmc_n81i', 'i18n_xt_mk_jbxx.546.mkms_n81i', NULL, NULL, '0', '2015-01-27 10:07:47', NULL, 'downPlugin', 1, NULL, 4, 0);
INSERT INTO `xt_mk_jbxx` VALUES (602, 267, NULL, 'i18n_xt_mk_jbxx.602.mkmc_n81i', 'i18n_xt_mk_jbxx.602.mkmc_n81i', '/sysManage/configureTheDiffusion.do?action=query', NULL, '0', '2018-08-21 10:25:39', NULL, NULL, 0, 2, 21, 0);
INSERT INTO `xt_mk_jbxx` VALUES (603, 267, NULL, 'i18n_xt_mk_jbxx.603.mkmc_n81i', 'i18n_xt_mk_jbxx.603.mkmc_n81i', '/sysManage/topoManage.do?action=query', NULL, '0', '2018-09-03 13:45:36', NULL, NULL, 0, 2, 22, 0);
INSERT INTO `xt_mk_jbxx` VALUES (604, 0, NULL, 'i18n_xt_mk_jbxx.604.mkmc_n81i', 'i18n_xt_mk_jbxx.604.mkms_n81i', '', NULL, '0', '2018-09-28 18:57:26', NULL, NULL, 0, 1, 12, 0);

-- ----------------------------
-- Table structure for xt_yh_jbxx
-- ----------------------------
DROP TABLE IF EXISTS `xt_yh_jbxx`;
CREATE TABLE `xt_yh_jbxx`  (
  `yhbh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户编号',
  `yhmm` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户密码加密',
  `yhmc` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户名称',
  `gcdbh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `yhbbh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `dh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `fjhm` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `isbz` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `zxbz` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `ctime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `yhid` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户id',
  `rigthmenuitems` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `bgcolor` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '背景颜色',
  `email` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '邮箱',
  `pwdstate` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '密码状态:0密码初始状态不可用;1密码已修改可用',
  `is_receiveemail` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '为0时，接收邮件，为1时不接收',
  `language` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '语言类型，例：en_US,zh_CN,用于邮件发送，登录选择用户默认语言',
  PRIMARY KEY (`yhid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of xt_yh_jbxx
-- ----------------------------
INSERT INTO `xt_yh_jbxx` VALUES ('admin', '202CB962AC59075B964B07152D234B70', 'i18n_xt_yh_jbxx.admin.yhmc_n81i', NULL, NULL, NULL, NULL, NULL, '0', NULL, 1, 'i18n_xt_yh_jbxx.admin.rigthmenuitems_n81i', '_yellow', '', '1', '0', 'zh_CN');
INSERT INTO `xt_yh_jbxx` VALUES ('NCuser', '202CB962AC59075B964B07152D234B70', 'NCuser', NULL, NULL, NULL, NULL, NULL, '0', '2018-10-31 18:22:00', 100000, NULL, NULL, NULL, '1', NULL, 'zh_CN');
INSERT INTO `xt_yh_jbxx` VALUES ('RCuser01', '202CB962AC59075B964B07152D234B70', 'RCuser01', NULL, NULL, NULL, NULL, NULL, '0', '2018-10-31 18:42:07', 100001, NULL, NULL, NULL, '1', NULL, 'zh_CN');

-- ----------------------------
-- Table structure for xt_yh_js_index
-- ----------------------------
DROP TABLE IF EXISTS `xt_yh_js_index`;
CREATE TABLE `xt_yh_js_index`  (
  `id` bigint(20) NOT NULL DEFAULT 0,
  `yhbh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户编号',
  `jsbh` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '角色编号',
  `ctime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `type` decimal(22, 0) NULL DEFAULT NULL COMMENT '类型',
  `yhid` decimal(22, 0) NULL DEFAULT NULL COMMENT '用户id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of xt_yh_js_index
-- ----------------------------
INSERT INTO `xt_yh_js_index` VALUES (1, 'admin', '1', NULL, NULL, NULL);
INSERT INTO `xt_yh_js_index` VALUES (100000, 'NCuser', '224', '2018-10-31 18:22:00', NULL, NULL);
INSERT INTO `xt_yh_js_index` VALUES (100001, 'NCuser', '100000', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100002, 'NCuser', '100001', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100003, 'NCuser', '100003', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100004, 'NCuser', '100005', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100005, 'NCuser', '100007', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100006, 'NCuser', '100009', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100007, 'NCuser', '100011', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100008, 'NCuser', '100013', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100009, 'NCuser', '100015', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100010, 'NCuser', '100017', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100011, 'NCuser', '100019', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100012, 'NCuser', '100021', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100013, 'NCuser', '100023', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100014, 'NCuser', '100025', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100015, 'NCuser', '100027', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100016, 'NCuser', '100029', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100017, 'NCuser', '100031', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100018, 'NCuser', '100033', '2018-10-31 18:22:00', 1, 100000);
INSERT INTO `xt_yh_js_index` VALUES (100019, 'RCuser01', '21', '2018-10-31 18:42:07', NULL, NULL);
INSERT INTO `xt_yh_js_index` VALUES (100020, 'RCuser01', '100001', '2018-10-31 18:42:07', 1, 100001);

-- ----------------------------
-- View structure for pro_deltabspace_temp
-- ----------------------------
DROP VIEW IF EXISTS `pro_deltabspace_temp`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `pro_deltabspace_temp` AS select `t`.`TABLE_NAME` AS `TABLE_NAME`,`t`.`PARTITION_NAME` AS `PARTITION_NAME` from `information_schema`.`partitions` `t` where `t`.`TABLE_SCHEMA` = 'nms' and `t`.`PARTITION_NAME` like 'NMS_PARTITION_%' and `t`.`PARTITION_DESCRIPTION` < 737378;

-- ----------------------------
-- View structure for v_detection_set_info
-- ----------------------------
DROP VIEW IF EXISTS `v_detection_set_info`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_detection_set_info` AS select `dsi`.`ID` AS `ID`,`dsi`.`NODE_IP` AS `NODE_IP`,`dsi`.`CHECK_TYPE_ID` AS `CHECK_TYPE_ID`,`dsi`.`CHECK_GAP` AS `CHECK_GAP`,`dsi`.`CHECK_WAY` AS `CHECK_WAY`,`dsi`.`CHECK_OUT_TIME` AS `CHECK_OUT_TIME`,`dsi`.`CHECK_MAX_TIMES` AS `CHECK_MAX_TIMES`,`dsi`.`PROCESS_IDEN` AS `PROCESS_IDEN`,`dsi`.`DETECTION_SET_STATE` AS `DETECTION_SET_STATE`,`dsi`.`PROCESS_FILE` AS `PROCESS_FILE`,`dsi`.`PROCESS_PATH` AS `PROCESS_PATH`,`dsi`.`OID` AS `OID`,`dsi`.`IS_CONTROL_START` AS `IS_CONTROL_START`,`dsi`.`IS_ISSUE_FILE` AS `IS_ISSUE_FILE`,`dsi`.`IS_ISSUED` AS `IS_ISSUED`,`dsi`.`CONTROL_START_TIME` AS `CONTROL_START_TIME`,`dsi`.`UPLOAD_GAP` AS `UPLOAD_GAP`,`dsi`.`IS_ISSUE` AS `IS_ISSUE`,`dsi`.`PLAN_CHECK_TIME` AS `PLAN_CHECK_TIME`,`dsi`.`GROUP_ID` AS `GROUP_ID`,`dsi`.`VIEW_LEVEL` AS `VIEW_LEVEL`,`dsi`.`CONTACT_USER_IDS` AS `CONTACT_USER_IDS`,`dsi`.`CREATE_USER_ID` AS `CREATE_USER_ID`,`dsi`.`CREATE_USERGROUP_ID` AS `CREATE_USERGROUP_ID`,`dsi`.`SYSTEM_ID` AS `SYSTEM_ID`,`dsi`.`NODE_GROUPS_ID` AS `NODE_GROUPS_ID`,`dsi`.`NODE_IPS_ID` AS `NODE_IPS_ID`,`dsi`.`PROCESS_SEARCH_KEYCODE` AS `process_search_keycode`,`ngt`.`group_id` AS `node_group_id`,`ngt`.`is_valid` AS `is_valid`,`nt`.`node_id` AS `node_id`,`nt`.`node_state` AS `node_state`,`nt`.`seq_id` AS `seq_id` from ((`detection_set_info` `dsi` left join `nodegroup_table` `ngt` on(concat(',',`dsi`.`NODE_GROUPS_ID`,',') like concat('%,',`ngt`.`group_id`,',%'))) left join `node_table` `nt` on(concat(',',`dsi`.`NODE_IPS_ID`,',') like concat('%,',`nt`.`node_id`,',%') and `nt`.`node_group_id` = `ngt`.`group_id`));

-- ----------------------------
-- View structure for v_mission_node_group_1
-- ----------------------------
DROP VIEW IF EXISTS `v_mission_node_group_1`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_mission_node_group_1` AS select `mpt1`.`mission_id` AS `mission_id`,`ngt`.`group_id` AS `node_group_id`,`ngt`.`is_valid` AS `is_valid` from (`mission_parameter_table1` `mpt1` left join `nodegroup_table` `ngt` on(concat(',',`mpt1`.`node_groups_id`,',') like concat('%,',`ngt`.`group_id`,',%')));

-- ----------------------------
-- View structure for v_mission_node_group_4
-- ----------------------------
DROP VIEW IF EXISTS `v_mission_node_group_4`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_mission_node_group_4` AS select `mpt4`.`mission_id` AS `mission_id`,`ngt`.`group_id` AS `node_group_id`,`ngt`.`is_valid` AS `is_valid` from (`mission_parameter_table4` `mpt4` left join `nodegroup_table` `ngt` on(concat(',',`mpt4`.`node_groups_id`,',') like concat('%,',`ngt`.`group_id`,',%')));

-- ----------------------------
-- View structure for v_mission_node_group_6
-- ----------------------------
DROP VIEW IF EXISTS `v_mission_node_group_6`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_mission_node_group_6` AS select `mpt6`.`mission_id` AS `mission_id`,`ngt`.`group_id` AS `node_group_id`,`ngt`.`is_valid` AS `is_valid` from (`mission_parameter_table6` `mpt6` left join `nodegroup_table` `ngt` on(concat(',',`mpt6`.`node_groups_id`,',') like concat('%,',`ngt`.`group_id`,',%')));

-- ----------------------------
-- View structure for v_node_table
-- ----------------------------
DROP VIEW IF EXISTS `v_node_table`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_node_table` AS select distinct `nms-master`.`node_table`.`node_ip` AS `node_ip`,`nms-master`.`node_table`.`seq_id` AS `seq_id` from `node_table`;

-- ----------------------------
-- Function structure for currval
-- ----------------------------
DROP FUNCTION IF EXISTS `currval`;
delimiter ;;
CREATE FUNCTION `currval`(seq_name VARCHAR(50))
 RETURNS bigint(21)
  READS SQL DATA 
BEGIN
    DECLARE VALUE BIGINT; 
    SET VALUE=0; 
    SELECT current_value INTO VALUE 
    FROM sys_sequence  
    WHERE NAME=seq_name; 
    RETURN VALUE; 
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for DELETE_DETECT
-- ----------------------------
DROP PROCEDURE IF EXISTS `DELETE_DETECT`;
delimiter ;;
CREATE PROCEDURE `DELETE_DETECT`()
  COMMENT '  删除监测时间大于7天的监测数据'
BEGIN
	DECLARE done INT DEFAULT 0;
	DECLARE not_exist_flag INT DEFAULT 0;
	DECLARE v_sql varchar(500);
	DECLARE table_name VARCHAR(64);
	DECLARE cur_table_name CURSOR FOR SELECT DISTINCT t.table_name FROM check_type_info t WHERE 1 = 1 AND t.crete_state = 0 AND t.TABLE_NAME IS NOT NULL;
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;
	DECLARE CONTINUE HANDLER FOR 1146 SET not_exist_flag = 1;
	OPEN cur_table_name;
	REPEAT
		FETCH cur_table_name INTO table_name;
		SET not_exist_flag = 0;
		IF NOT done THEN
				set v_sql= concat('DELETE c.*, t.* FROM ',table_name ,' c,detection_info t WHERE c.DETECTION_INFO_ID = t.ID AND DATEDIFF(SYSDATE(),t.DATA_CHECK_TIME)>7');
				set @v_sql=v_sql;
				prepare stmt from @v_sql;
				IF NOT not_exist_flag THEN
					EXECUTE stmt;
					deallocate prepare stmt;
				END IF;
		END IF;
	UNTIL done END REPEAT;
	CLOSE cur_table_name;
	DELETE t.* FROM DETECTION_INFO t where DATEDIFF(SYSDATE(),t.DATA_CHECK_TIME)>7;
	COMMIT;
END
;;
delimiter ;

-- ----------------------------
-- Function structure for getParentList
-- ----------------------------
DROP FUNCTION IF EXISTS `getParentList`;
delimiter ;;
CREATE FUNCTION `getParentList`(groupid INT)
 RETURNS varchar(512) CHARSET utf8
BEGIN 
       DECLARE pTemp VARCHAR(512);  
       DECLARE cTemp VARCHAR(512);  
      
       SET pTemp = '0';  
       SET cTemp =cast(groupid as CHAR);  
      
       WHILE cTemp is not null DO  
         SET pTemp = concat(pTemp,',',cTemp);  
         SELECT group_concat(parent_group_id) INTO cTemp FROM nodegroup_table  
         WHERE FIND_IN_SET(group_id,cTemp)>0; 
                
       END WHILE;  
       RETURN pTemp;  
     END
;;
delimiter ;

-- ----------------------------
-- Function structure for getParentList_bak
-- ----------------------------
DROP FUNCTION IF EXISTS `getParentList_bak`;
delimiter ;;
CREATE FUNCTION `getParentList_bak`(groupid INT)
 RETURNS varchar(512) CHARSET utf8
BEGIN 
       DECLARE pTemp VARCHAR(512);  
       DECLARE cTemp VARCHAR(512);  
      
       SET pTemp = '0';  
       SET cTemp =cast(groupid as CHAR);  
      
       WHILE cTemp is not null DO  
         SET pTemp = concat(pTemp,',',cTemp);  
         SELECT group_concat(parent_group_id) INTO cTemp FROM nodegroup_table  
         WHERE FIND_IN_SET(group_id,cTemp)>0; 
                
       END WHILE;  
       RETURN pTemp;  
     END
;;
delimiter ;

-- ----------------------------
-- Function structure for getPIds
-- ----------------------------
DROP FUNCTION IF EXISTS `getPIds`;
delimiter ;;
CREATE FUNCTION `getPIds`(sid varchar(10))
 RETURNS varchar(512) CHARSET utf8
BEGIN
DECLARE cr_stack_depth INTEGER DEFAULT cr_debug.ENTER_MODULE2('getPIds', 'nms', 8, 100632) ;
  DECLARE pid varchar(10);
  DECLARE pids varchar(512);
  CALL cr_debug.UPDATE_WATCH3('sid', sid, 'varchar(10)', cr_stack_depth) ;
CALL cr_debug.UPDATE_WATCH3('pid', pid, 'varchar(10)', cr_stack_depth) ;
CALL cr_debug.UPDATE_WATCH3('pids', pids, 'varchar(512)', cr_stack_depth) ;
CALL cr_debug.TRACE(3, 3, 0, 5, cr_stack_depth) ;
CALL cr_debug.TRACE(6, 6, 2, 14, cr_stack_depth) ;
set pid:='';
CALL cr_debug.UPDATE_WATCH3('pid', pid, '', cr_stack_depth) ;
  CALL cr_debug.TRACE(7, 16, 2, 12, cr_stack_depth) ;
WHILE pid <>'0' DO
    CALL cr_debug.TRACE(8, 12, 4, 11, cr_stack_depth) ;
if(pid ='') THEN 
      CALL cr_debug.TRACE(9, 9, 6, 20, cr_stack_depth) ;
set pids:=pid;
CALL cr_debug.UPDATE_WATCH3('pids', pids, '', cr_stack_depth) ;
    ELSE 
      CALL cr_debug.TRACE(11, 11, 6, 37, cr_stack_depth) ;
set pids:=CONCAT(pids,',',pid);
CALL cr_debug.UPDATE_WATCH3('pids', pids, '', cr_stack_depth) ;
    END IF;

    CALL cr_debug.TRACE(14, 14, 4, 85, cr_stack_depth) ;
SELECT nt.parent_group_id INTO pid FROM nodegroup_table nt WHERE nt.group_id=sid;
CALL cr_debug.UPDATE_SYSTEM_CALLS(101) ;
CALL cr_debug.UPDATE_WATCH3('pid', pid, '', cr_stack_depth) ;
    CALL cr_debug.TRACE(15, 15, 4, 17, cr_stack_depth) ;
set sid:=pid;
CALL cr_debug.UPDATE_WATCH3('sid', sid, '', cr_stack_depth) ;
  END WHILE;
  CALL cr_debug.TRACE(17, 17, 2, 14, cr_stack_depth) ;
SET @devart_debug_ret = pids ;
CALL cr_debug.LEAVE_MODULE(cr_stack_depth - 1) ;
RETURN @devart_debug_ret;
  CALL cr_debug.TRACE(18, 18, 2, 5, cr_stack_depth) ;
CALL cr_debug.LEAVE_MODULE(cr_stack_depth - 1) ;
END
;;
delimiter ;

-- ----------------------------
-- Function structure for getPIds_bak
-- ----------------------------
DROP FUNCTION IF EXISTS `getPIds_bak`;
delimiter ;;
CREATE FUNCTION `getPIds_bak`(sid varchar(10))
 RETURNS varchar(512) CHARSET utf8
BEGIN
DECLARE cr_stack_depth INTEGER DEFAULT cr_debug.ENTER_MODULE2('getPIds', 'nms', 8, 100632) ;
  DECLARE pid varchar(10);
  DECLARE pids varchar(512);
  CALL cr_debug.UPDATE_WATCH3('sid', sid, 'varchar(10)', cr_stack_depth) ;
CALL cr_debug.UPDATE_WATCH3('pid', pid, 'varchar(10)', cr_stack_depth) ;
CALL cr_debug.UPDATE_WATCH3('pids', pids, 'varchar(512)', cr_stack_depth) ;
CALL cr_debug.TRACE(3, 3, 0, 5, cr_stack_depth) ;
CALL cr_debug.TRACE(6, 6, 2, 14, cr_stack_depth) ;
set pid:='';
CALL cr_debug.UPDATE_WATCH3('pid', pid, '', cr_stack_depth) ;
  CALL cr_debug.TRACE(7, 16, 2, 12, cr_stack_depth) ;
WHILE pid <>'0' DO
    CALL cr_debug.TRACE(8, 12, 4, 11, cr_stack_depth) ;
if(pid ='') THEN 
      CALL cr_debug.TRACE(9, 9, 6, 20, cr_stack_depth) ;
set pids:=pid;
CALL cr_debug.UPDATE_WATCH3('pids', pids, '', cr_stack_depth) ;
    ELSE 
      CALL cr_debug.TRACE(11, 11, 6, 37, cr_stack_depth) ;
set pids:=CONCAT(pids,',',pid);
CALL cr_debug.UPDATE_WATCH3('pids', pids, '', cr_stack_depth) ;
    END IF;

    CALL cr_debug.TRACE(14, 14, 4, 85, cr_stack_depth) ;
SELECT nt.parent_group_id INTO pid FROM nodegroup_table nt WHERE nt.group_id=sid;
CALL cr_debug.UPDATE_SYSTEM_CALLS(101) ;
CALL cr_debug.UPDATE_WATCH3('pid', pid, '', cr_stack_depth) ;
    CALL cr_debug.TRACE(15, 15, 4, 17, cr_stack_depth) ;
set sid:=pid;
CALL cr_debug.UPDATE_WATCH3('sid', sid, '', cr_stack_depth) ;
  END WHILE;
  CALL cr_debug.TRACE(17, 17, 2, 14, cr_stack_depth) ;
SET @devart_debug_ret = pids ;
CALL cr_debug.LEAVE_MODULE(cr_stack_depth - 1) ;
RETURN @devart_debug_ret;
  CALL cr_debug.TRACE(18, 18, 2, 5, cr_stack_depth) ;
CALL cr_debug.LEAVE_MODULE(cr_stack_depth - 1) ;
END
;;
delimiter ;

-- ----------------------------
-- Function structure for nextval
-- ----------------------------
DROP FUNCTION IF EXISTS `nextval`;
delimiter ;;
CREATE FUNCTION `nextval`(seq_name varchar(50))
 RETURNS bigint(21)
  READS SQL DATA 
BEGIN
     UPDATE sys_sequence 
     SET CURRENT_VALUE = CURRENT_VALUE + INCREMENT 
     where  name=seq_name; 
     return currval(seq_name); 
     END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_add_part_one_day
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_add_part_one_day`;
delimiter ;;
CREATE PROCEDURE `pro_add_part_one_day`(v_table_name   VARCHAR(50),v_par_sequence   VARCHAR(50))
  DETERMINISTIC
BEGIN
   declare c_table_name_prefix        VARCHAR(100) ; 
   DECLARE c_log_table_name              VARCHAR(100) ; 
   DECLARE c_cur_pro_name                VARCHAR(100) ; 
   DECLARE v_log_table_sql               VARCHAR(2000);
   DECLARE v_last_tablespace_name_sql    VARCHAR(2000);
   DECLARE v_last_tablespace_name        VARCHAR(200);
   DECLARE v_tablespace_prefix_length    int;
   DECLARE  v_last_tablespace_name_date  int; 
   DECLARE v_next_tablespace_name_date   int; 
   DECLARE v_create_tablespace_sql       VARCHAR(2000); 
   DECLARE v_partition_time_date         int; 
   DECLARE v_add_partition_sql           VARCHAR(2000); 
   DECLARE v_sub_table_name              VARCHAR(200);
   DECLARE v_cur_year                    VARCHAR(4);
   DECLARE v_cur_week                    VARCHAR(4);
   
   set c_cur_pro_name :='pro_add_part_one_day';
   set c_table_name_prefix :='DI_';
   set c_log_table_name:='PRO_EXEC_LOG';
   set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,''',c_cur_pro_name,''',''',v_par_sequence,'1'',''1.判断',v_table_name,'表名长度是否大于21，如果大于，则从后往前截取21个字符 begin'')');
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
    
    set v_sub_table_name := v_table_name;
    if length(v_table_name)>21 then
       set v_sub_table_name := substring(v_table_name,-21);
    end if;
    set @v_log_table_sql :=concat('INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,''',c_cur_pro_name,''',''',v_par_sequence,'2'',''2.截取前表名：',v_table_name,',截取后表名：',v_sub_table_name,' end'')');
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
    
    set @v_log_table_sql :=  concat('INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,''',c_cur_pro_name,''',''',v_par_sequence,'3'',''3.获取',v_table_name,'表最近创建的表空间名 begin'')');
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
  
    set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,''',c_cur_pro_name,''',''',v_par_sequence,'13'',''13.',v_table_name,'表 获取下一天时间分区对应的时间 begin'')');
    PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
    
   
   SET @v_next_tablespace_name_date :=  DATE_FORMAT(DATE_ADD(NOW(),INTERVAL 1 DAY),'%y%m%d');
   SET @v_partition_time_date:=  DATE_FORMAT(DATE_ADD(NOW(),INTERVAL 2 DAY),'%y%m%d');
   set  @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,''',c_cur_pro_name,''',''',v_par_sequence,'14'',''14.',v_table_name,'表 获取下一天时间分区对应的时间 end'')');
  
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
   
   set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,''',c_cur_pro_name,''',''',v_par_sequence,'15'',''15.把表分区增加到',v_table_name,'表 begin'')');
    
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
    
     SET @v_add_partition_sql := CONCAT('ALTER TABLE ',v_table_name,' ADD PARTITION (PARTITION ',v_sub_table_name,'_' , @v_next_tablespace_name_date , ' VALUES LESS THAN ' , '(TO_DAYS(''',@v_partition_time_date,''')));') ;
 
  
	PREPARE  execs FROM @v_add_partition_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
    set @v_log_table_sql :=  'INSERT INTO '||c_log_table_name||'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,'''||c_cur_pro_name||''','''||v_par_sequence||'16'',''16.把表分区'||v_sub_table_name||'_' ||v_next_tablespace_name_date||'增加到'||v_table_name||'表 end'')';
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
 
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_createIndex
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_createIndex`;
delimiter ;;
CREATE PROCEDURE `pro_createIndex`(tabName  VARCHAR(200),fileds  VARCHAR(200))
  DETERMINISTIC
BEGIN
	DECLARE c_log_table_name               VARCHAR(100)  ; 
	DECLARE c_cur_pro_name                 VARCHAR(100)  ; 
	DECLARE sposition1                    INTEGER;
	DECLARE sposition2                    INTEGER;
	DECLARE  mysubstr                      VARCHAR(100);
	DECLARE  starttimes                    INTEGER;
	DECLARE   times                       INTEGER default 1;
	DECLARE  splitStr                      VARCHAR(10);
	DECLARE EXIT HANDLER FOR SQLEXCEPTION 
	BEGIN
		ROLLBACK ;
		SET @v_name=CONCAT('error sql: ',@error_sql);
		set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''-1'',\"',@v_name,'\")');
		PREPARE  execE FROM @v_log_table_sql;
		EXECUTE   execE;
		DEALLOCATE PREPARE execE;
	END ;
	    
	set c_log_table_name:='PRO_EXEC_LOG'; 
	set c_cur_pro_name :='pro_createIndex'; 
	SET starttimes := 1;
	SET sposition1 := 1;
	SET splitStr := ':';
	start transaction;
		c_loop:LOOP 	
			set sposition2 := locate(splitStr,fileds,starttimes );
			IF  sposition2 = 0  THEN
				LEAVE c_loop;
			END IF;
			set mysubstr   := substring(fileds, sposition1, sposition2 - sposition1);
			if mysubstr is null THEN
				LEAVE c_loop;
			end if;
			set @v_sql1:=concat('create index ',tabName,'_',times ,' on ',tabName,'(',mysubstr,') ');
			set @error_sql=@v_sql1;

			prepare  execs from @v_sql1;
			EXECUTE   execs;
			deallocate prepare execs;
			set times=times+1;
			set sposition1 := sposition2 + 1;
			set starttimes := sposition2 + 1;
		end loop;
	commit;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_createTable
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_createTable`;
delimiter ;;
CREATE PROCEDURE `pro_createTable`(in tabName   VARCHAR(500),in filedAndType   VARCHAR(500),in indexfileds   varchar(500))
  DETERMINISTIC
BEGIN
	DECLARE c_log_table_name VARCHAR (100);
	DECLARE c_cur_pro_name VARCHAR (100);
	declare v_sql            VARCHAR(5000);
	DECLARE partition_name    VARCHAR(64);
	DECLARE end_date            VARCHAR(64);
	DECLARE idx  INT DEFAULT 1;
	DECLARE EXIT HANDLER FOR SQLEXCEPTION 
	BEGIN
		ROLLBACK ;
		CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,'-1',CONCAT(tabName,'error'));
	END ;

	SET c_log_table_name ='PRO_EXEC_LOG';
	SET c_cur_pro_name ='pro_createTable';
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(tabName,' begin'));
	SET idx := idx+1;
	
	select MAX(T.PARTITION_DESCRIPTION) INTO end_date from information_schema.`PARTITIONS`  t WHERE t.TABLE_SCHEMA = 'nms' and t.PARTITION_NAME LIKE 'NMS_PARTITION_%';
	select t.PARTITION_NAME INTO partition_name from information_schema.`PARTITIONS`  t WHERE t.TABLE_SCHEMA = 'nms' and t.PARTITION_NAME LIKE 'NMS_PARTITION_%' AND t.PARTITION_DESCRIPTION = end_date LIMIT 1;

	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(tabName,'表创建 begin'));
	SET idx := idx+1;
	set v_sql :=concat('create table ',tabName ,'(`ID` bigint(20) NOT NULL AUTO_INCREMENT ,detection_info_id bigint not null ,',filedAndType,
											',DETECTIONED_STATE varchar(2),SEQ_ID int,DETECTION_SET_INFO_ID bigint,data_check_time DATETIME,data_arrive_time DATETIME,data_check_time_digital bigint,data_arrive_time_digital bigint, 
											PRIMARY KEY(id,data_check_time)) 
											PARTITION BY RANGE (to_days(`DATA_CHECK_TIME`)) 
											(PARTITION `NMS_INIT_PARTITION` VALUES LESS THAN (737060) ,PARTITION ',partition_name,' VALUES LESS THAN ( ' ,end_date ,' ))');
	
	SELECT v_sql;
	PREPARE  execs FROM v_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	commit;
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(tabName,'表创建 end'));
	SET idx := idx+1;

	call pro_createindex(tabName,indexfileds);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(tabName,' end'));
	SET idx := idx+1;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_createTable_RST_FD
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_createTable_RST_FD`;
delimiter ;;
CREATE PROCEDURE `pro_createTable_RST_FD`()
  DETERMINISTIC
BEGIN
	declare c_oracle_data_dir              VARCHAR(200); 
     
     DECLARE c_tablespace_init_size         VARCHAR(10) ; 
    DECLARE c_tablespace_extend_size       VARCHAR(10); 
    DECLARE c_log_table_name               VARCHAR(100); 
    DECLARE c_cur_pro_name                 VARCHAR(100) ; 
    DECLARE v_create_tablespace_sql       VARCHAR(5000);
    DECLARE v_log_table_sql               VARCHAR(5000);
    DECLARE v_sql1                        VARCHAR(5000);
    DECLARE part_time                     VARCHAR(64);
    DECLARE part_time_format              VARCHAR(64);
    DECLARE part_time2                    VARCHAR(64);
    DECLARE part_time2_format             VARCHAR(64);
    DECLARE tabName  VARCHAR(100);
    DECLARE filedAndType  VARCHAR(1000);
    DECLARE indexfileds varchar(1000);
     DECLARE EXIT HANDLER FOR SQLEXCEPTION 
		  BEGIN
		     ROLLBACK;          
			 
			SET @v_name=CONCAT('error:',IFNULL(@error_sql,''));
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,'-1',@v_name);		    
		  END ;
	  
	  
    set c_oracle_data_dir  :='/data/d4/oradata/ict/nmspartition/';
    set c_tablespace_init_size :='10M';
    set c_tablespace_extend_size :='5M';
    set c_log_table_name  :='PRO_EXEC_LOG';
    set c_cur_pro_name :='pro_createTable_RST_FD';
    SET tabName:='DI_RST_FD';
    SET filedAndType:='rst_fd_log Number';
    SET indexfileds:='data_check_time:seq_id:detection_set_info_id:rst_fd_log:';
    
    start transaction;
    
   
 
     set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''3'',''3.查询当前时间 begin'')');
    set  @error_sql=@v_log_table_sql;
        PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
     
     
     select date_format(now(),'%Y') into part_time from dual;
     select DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%s') into part_time_format from dual;
     set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''4'',''4.查询当前时间:',part_time,' end'')');
      SET  @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
     
 
    
 
     set @v_log_table_sql := concat('INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''7'',''7.查询第二天的时间 begin'')');
      SET  @error_sql=@v_log_table_sql;
    PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
     
     
      SELECT DATE_FORMAT(ADDDATE(NOW(),1),'%Y') into part_time2 from dual;
    SELECT DATE_FORMAT(ADDDATE(NOW(),1),'%Y-%m-%d %H:%i:%s')  into part_time2_format from dual;
     set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''8'',''8.查询第二天的时间:',part_time2,' end'')');
      SET  @error_sql=@v_log_table_sql;
    PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
      

  

     set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''11'',''11.建表 begin'')');
      SET  @error_sql=@v_log_table_sql;
     PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
    
     
     set @v_sql1 :=concat('create table ',tabName ,'(id int not null ,detection_info_id int not null ,',filedAndType,',DETECTIONED_STATE varchar(2),SEQ_ID int,DETECTION_SET_INFO_ID int,data_check_time DATETIME,data_arrive_time DATE,data_check_time_digital int,data_arrive_time_digital int, PRIMARY KEY(id,data_check_time),foreign KEY(detection_info_id) REFERENCES detection_info(id))',
              'partition by range(to_days(DATA_CHECK_TIME))','(partition ',tabName,'_',part_time,' values less than( TO_DAYS(''',part_time_format,''')) ',
                                                      'partition ',tabName,'_',part_time2,' values less than( TO_DAYS(''',part_time2_format,'''))) ');
     SET  @error_sql=@v_log_table_sql;
     PREPARE  execs FROM @v_sql1;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	
     set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''12'',''12.建表 end'')');
         SET  @error_sql=@v_log_table_sql;
     PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;

    set   @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''17'',''17.创建索引 begin'')');
    SET  @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
    
     
    call pro_createindex(tabName,indexfileds);
    set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''18'',''18.创建索引 end'')');
     SET  @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
     COMMIT;
    
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_createTrigger
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_createTrigger`;
delimiter ;;
CREATE PROCEDURE `pro_createTrigger`(tabName  VARCHAR(50))
  DETERMINISTIC
BEGIN
    declare c_log_table_name               VARCHAR(100); 
    DECLARE c_cur_pro_name                 VARCHAR(100) ; 
    DECLARE v_log_table_sql               VARCHAR(5000);
    DECLARE v_sql1                        VARCHAR(5000);
     DECLARE EXIT HANDLER FOR SQLEXCEPTION 
		  BEGIN
		    ROLLBACK ;
		    
		     SET  @v_log_table_sql := CONCAT( 'INSERT INTO ',c_log_table_name,'(id,proname,sequence,log_cont) VALUES(SEQ_PRO_EXEC_LOG.nextval,''',c_cur_pro_name,''',''1'',''1.创建触发器的SQL语句:',v_sql1,''')');
		    PREPARE  execE FROM @v_log_table_sql;
		    EXECUTE   execE;
		   DEALLOCATE PREPARE execE;
		  END ;
    
    set c_log_table_name  :='PRO_EXEC_LOG';
    set c_cur_pro_name :='pro_createTrigger';
     
  
     set @v_sql1 :=concat('Create   Trigger B_I_',tabName ,' before insert on ',tabName,' for each row
             
              begin
             
              end ;');
   
  
    PREPARE  execs FROM @v_sql1;
    EXECUTE   execs;
    DEALLOCATE PREPARE execs;
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for PRO_DELETE_SWITCHPORT
-- ----------------------------
DROP PROCEDURE IF EXISTS `PRO_DELETE_SWITCHPORT`;
delimiter ;;
CREATE PROCEDURE `PRO_DELETE_SWITCHPORT`()
BEGIN
  
  DELETE T.* FROM DI_SWITCHPORT T WHERE TIMESTAMPDIFF(HOUR,SYSDATE(),T.DATA_CHECK_TIME) > 6;
  COMMIT;
  DELETE D.* FROM DETECTION_INFO D WHERE TIMESTAMPDIFF(HOUR,SYSDATE(),D.DATA_CHECK_TIME) > 6 AND D.DETECTION_SET_INFO_ID in (select t.id FROM detection_set_info t LEFT JOIN check_type_info c on c.id = t.check_type_id WHERE c.table_name = 'DI_SWITCHPORT');
  COMMIT;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for PRO_DELTABSPACE
-- ----------------------------
DROP PROCEDURE IF EXISTS `PRO_DELTABSPACE`;
delimiter ;;
CREATE PROCEDURE `PRO_DELTABSPACE`(v_par_sequence  VARCHAR(100),v_cur_sql  VARCHAR(200))
  DETERMINISTIC
BEGIN
	
  declare c_log_table_name               VARCHAR(100); 
  DECLARE c_cur_pro_name                 VARCHAR(100); 

  DECLARE v_table_name                  VARCHAR(2000); 
  DECLARE v_partition_name              VARCHAR(2000); 
  declare c_table_name			 VARCHAR(200);
  declare c_partition_name		 VARCHAR(200);
   DECLARE  done  	  		INT DEFAULT 0;
  DECLARE v_sequence_count              int; 
  DECLARE v_full_sequence               VARCHAR(100);
  
  DECLARE  v_log_id                 int;

  DECLARE cur CURSOR FOR 
   SELECT table_name,partition_name FROM   pro_deltabspace_temp;
 
 
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=1; 
   DECLARE EXIT HANDLER FOR SQLEXCEPTION 
		  BEGIN
		     ROLLBACK;          
			SET @v_name=CONCAT('error',IFNULL(@error_sql,''));  			 
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,'-1',@v_name);		    
		  END ;
	  
  set c_log_table_name :='PRO_EXEC_LOG';
  set c_cur_pro_name :='PRO_DELTABSPACE';
  set v_sequence_count :=0;
    START TRANSACTION;
    SET @create_name=CONCAT('create table pro_deltabspace_temp as ',v_cur_sql);
    SELECT @create_name;
    PREPARE  execs FROM @create_name;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	
 OPEN cur;
  cursor_loop:LOOP 	
    FETCH cur INTO c_table_name,c_partition_name;
    IF done=1 THEN	 
			LEAVE cursor_loop;		
		END IF;
     
     set  v_table_name :=c_table_name;
     set     v_partition_name :=c_partition_name;
     
      set  v_full_sequence :=concat( v_par_sequence,v_sequence_count);
        set @v_count=concat(v_sequence_count,'.删除',v_table_name,'表指定的表空间和表分区 begin') ;
       call   PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,v_full_sequence,@v_count);
          
          set @v_full_count=concat(v_full_sequence,'_');
         call pro_del_part_by_day(v_table_name,@v_full_count,v_partition_name);
          set v_sequence_count := v_sequence_count + 1;
          set v_full_sequence := concat(v_par_sequence,v_sequence_count);
         SET @v_count_end=CONCAT(v_sequence_count,'.删除',v_table_name,'表指定的表空间和表分区 end') ;
        call  PRO_RECORD_LOG_INFO(c_log_table_name,v_log_id,c_cur_pro_name,v_full_sequence,@v_count_end);     
    END LOOP cursor_loop;	   
		 
	  CLOSE cur;
	  
	SET @drop_name=CONCAT('drop table temp');
	set @error_sql= @drop_name;
	    SELECT @drop_name;
	     PREPARE  execs FROM @drop_name;
	    EXECUTE   execs;		   
		DEALLOCATE PREPARE execs;
	COMMIT;
  
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for PRO_DELTABSPACE_NAME
-- ----------------------------
DROP PROCEDURE IF EXISTS `PRO_DELTABSPACE_NAME`;
delimiter ;;
CREATE PROCEDURE `PRO_DELTABSPACE_NAME`(tempstr   VARCHAR(50),user_name   VARCHAR(20),tablename  VARCHAR(50))
  DETERMINISTIC
BEGIN
	 
	DECLARE proexecinfoid int;
	  DECLARE EXIT HANDLER FOR SQLEXCEPTION 
		  BEGIN
		    ROLLBACK ;
		    set  @error='execute PRO_DELTABSPACE_NAME  error';
		    select @error;
		  END ;
	
	set @space_sql :=concat('alter table ',user_name,'.',tablename,' drop partition ',tempstr );
	PREPARE  execs FROM @space_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_del_Partition
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_del_Partition`;
delimiter ;;
CREATE PROCEDURE `pro_del_Partition`()
  DETERMINISTIC
BEGIN
	declare	C_DATE            VARCHAR(64);
	DECLARE tempstr           VARCHAR(64);
	DECLARE user_name         VARCHAR(64);
	DECLARE space_sql         VARCHAR(1024);
	DECLARE isExist           INT;
	
 
	SELECT DATE_FORMAT(DATE_ADD(SYSDATE(),INTERVAL 7 DAY), '%Y') INTO C_DATE FROM DUAL;
	
	 
	SELECT WEEKOFYEAR(DATE_ADD(SYSDATE(),INTERVAL 7 DAY)) INTO tempstr  FROM DUAL;
	
	
	if tempstr = 1
		then SELECT DATE_FORMAT (SUBDATE(now(),7),'%Y') INTO C_DATE FROM DUAL;
	
	end if;
	
	set tempstr := cast(tempstr as unsigned int)-3;
	
	set tempstr :=concat( 'NMS_DI_W',C_DATE,'',tempstr);
	
	SELECT SUBSTRING(DEFINER,1,(SELECT LOCATE('@',DEFINER,1)-1   FROM information_schema.routines WHERE routine_schema='nms' AND routine_type='PROCEDURE' AND SPECIFIC_NAME='pro_DRIVER_ADD_Partition'))  into user_name FROM information_schema.routines WHERE routine_schema='nms' AND routine_type='PROCEDURE' AND SPECIFIC_NAME='pro_del_Partition';
	
	
	
	SET @execute_sql=CONCAT('SELECT @isExist:=count(*)  FROM information_schema.PARTITIONS WHERE table_schema=','''nms''',' AND partition_name=''',tempstr,'');
	
	 
	 if @isExist>0 then 
  
  
  call PRO_DEL_WEEK_TABSPACE(tempstr,user_name);
  
  
	SET FOREIGN_KEY_CHECKS=0;
  
  
  set @space_sql :=concat('alter table detection_info drop partition ',tempstr,'   ');
	PREPARE  execs FROM @space_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
  
 
  SET FOREIGN_KEY_CHECKS=1;
  
 
end if;
  
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_del_part_by_day
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_del_part_by_day`;
delimiter ;;
CREATE PROCEDURE `pro_del_part_by_day`(v_table_name   VARCHAR(50),v_par_sequence   VARCHAR(20),v_partition_name   VARCHAR(20))
  DETERMINISTIC
BEGIN
	  declare  c_table_name_prefix       VARCHAR(100); 
	  DECLARE c_log_table_name          VARCHAR(100); 
	  DECLARE c_cur_pro_name            VARCHAR(100);  
	   
	  DECLARE v_del_partition_sql      VARCHAR(2000); 
	  DECLARE v_log_id                 int;
	 DECLARE EXIT HANDLER FOR SQLEXCEPTION 
		  BEGIN
		     ROLLBACK;          
		       SET @v_name=CONCAT('error',IFNULL(@error_sql,''));
			 
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,'-1',@v_name);		    
		  END ;
	  
	  	  
	  set   c_table_name_prefix:='';
	  set   c_log_table_name :='PRO_EXEC_LOG';
	  set  c_cur_pro_name :='pro_del_part_by_day';
	  
	   set @v_sequence=concat(v_par_sequence,'3' );
	   SET @v_name=CONCAT('3.删除',v_table_name,'表分区 begin');	 	   
	   call PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,@v_sequence,@v_name);
   
   set @v_del_partition_sql := concat('alter table ',v_table_name,' drop partition ',v_partition_name);
    SET  @error_sql=@v_del_partition_sql;
	PREPARE  execs FROM @v_del_partition_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	COMMIT;
	
	SET @v_sequence=CONCAT(v_par_sequence,'4' );
	SET @v_name=CONCAT('4.删除',v_table_name,'表分区 end');
        CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,@v_sequence,@v_name);
   
  
   
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for PRO_DEL_WEEK_TABSPACE
-- ----------------------------
DROP PROCEDURE IF EXISTS `PRO_DEL_WEEK_TABSPACE`;
delimiter ;;
CREATE PROCEDURE `PRO_DEL_WEEK_TABSPACE`(tempstr   VARCHAR(20),user_name   VARCHAR(20))
  DETERMINISTIC
BEGIN
    
   declare  space_sql VARCHAR(5000);

   declare proexecinfoid int;
   declare c_segment_name varchar(50);
    DECLARE  done  	  INT DEFAULT 0;
	
   declare cur Cursor  for
	  
	 SELECT DISTINCT table_name FROM information_schema.`PARTITIONS` WHERE table_name  <> 'DETECTION_INFO' AND table_schema='nms' AND partition_name=tempstr;
         
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=1;
	 OPEN cur;
	     start transaction;
	cursor_loop:LOOP 		
	  
	     FETCH cur INTO c_segment_name;
		IF done=1 THEN	 
			LEAVE cursor_loop;		
		END IF;
	  
	set @space_sql :=concat('alter table ',c_segment_name,' drop partition ',tempstr );
	PREPARE  execs FROM @space_sql;
	EXECUTE   execs;		   
	DEALLOCATE PREPARE execs;
	
	 	END LOOP cursor_loop;	   
		COMMIT;
	  CLOSE cur;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_driver_add_day_Partition
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_driver_add_day_Partition`;
delimiter ;;
CREATE PROCEDURE `pro_driver_add_day_Partition`()
  DETERMINISTIC
BEGIN
	
   declare c_log_table_name      VARCHAR(100)  ; 
   DECLARE c_cur_pro_name        VARCHAR(100) ; 
 
  DECLARE v_log_table_sql        VARCHAR(2000);
  DECLARE v_table_name            VARCHAR(2000); 
   DECLARE EXIT HANDLER FOR SQLEXCEPTION 
	  BEGIN
	  ROLLBACK;
		SET @v_name=CONCAT('error:',IFNULL(@error_sql,''));
		 SET @v_log_table_sql= CONCAT('INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES( ''',c_cur_pro_name,''',''-1'',',@v_name,')');
			
		SELECT @insert_pro;
		PREPARE execE FROM @insert_pro;
		EXECUTE execE;
		DEALLOCATE PREPARE execE;
		COMMIT;
		
		
	  END ;
  SET c_log_table_name:='PRO_EXEC_LOG';
  SET c_cur_pro_name:='pro_driver_add_Partition';
  
  
 start transaction;
   SET v_table_name :='DETECTION_INFO';
   SET @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''1'',''1.为',v_table_name,'表创建表空间和表分区 begin'')');
   set @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
	   
   
   call pro_add_part_one_day(v_table_name,'1_');
   set @v_log_table_sql :=concat(  'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''2'',''2.为',v_table_name,'表创建表空间和表分区 end'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
 
   set v_table_name :='DETECTION_INFO_WARNING';
   set @v_log_table_sql :=concat(  'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''3'',''3.为',v_table_name,'表创建表空间和表分区 begin'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
  
   call pro_add_part_one_day(v_table_name,'3_');
   set @v_log_table_sql :=  concat('INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''4'',''4.为',v_table_name,'表创建表空间和表分区 end'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
 
   set v_table_name :='DI_SYSTEMINFO_DISK';
   set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''5'',''5.为',v_table_name,'表创建表空间和表分区 begin'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
   
   call pro_add_part_one_day(v_table_name,'5_');
   set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''6'',''6.为',v_table_name,'表创建表空间和表分区 end'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
   
 
   set v_table_name :='DI_SYSTEMINFO_NET';
   set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''7'',''7.为',v_table_name,'表创建表空间和表分区 begin'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
 
   
   call pro_add_part_one_day(v_table_name,'7_');
   set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''8'',''8.为',v_table_name,'表创建表空间和表分区 end'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
 
 

   set @v_log_table_sql := concat( 'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''9'',''9.为动态表创建表空间及分区 begin'')');
    SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
   
   call pro_extendtabspace('9_','test');
  set  @v_log_table_sql :=concat(  'INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES(''',c_cur_pro_name,''',''10'',''10.为动态表创建表空间及分区 end'')');
   SET @error_sql=@v_log_table_sql;
	PREPARE  execs FROM @v_log_table_sql;
	EXECUTE   execs;
	DEALLOCATE PREPARE execs;
   COMMIT;
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_driver_add_Partition
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_driver_add_Partition`;
delimiter ;;
CREATE PROCEDURE `pro_driver_add_Partition`()
  DETERMINISTIC
BEGIN
	DECLARE c_log_table_name VARCHAR (100);
	DECLARE c_cur_pro_name VARCHAR (100);
	DECLARE v_log_table_sql VARCHAR (2000);
	DECLARE v_table_name VARCHAR (2000);
	DECLARE v_cur_year VARCHAR (20);
	DECLARE v_cur_week VARCHAR (20);
	DECLARE end_date VARCHAR (20);
	DECLARE tempstr VARCHAR (100);
	DECLARE space_path VARCHAR (500);
	DECLARE space_sql VARCHAR (500);
	DECLARE c_oracle_data_dir VARCHAR (500);
	DECLARE execute_sql VARCHAR (500);
	DECLARE isExist INT;
	DECLARE idx INT;
	DECLARE _interval INT DEFAULT 1;
	SET idx := 1;
	SET c_log_table_name := 'PRO_EXEC_LOG';
	SET c_cur_pro_name := 'pro_driver_add_Partition';
	
	SELECT DATE_FORMAT(ADDDATE(SYSDATE(),INTERVAL 1 DAY), '%Y%m%d') INTO v_cur_year FROM DUAL;
	SELECT SUBDATE( CURDATE(),  - (_interval+1) ) INTO end_date FROM DUAL;
	SET tempstr := concat( 'NMS_PARTITION_', v_cur_year );

	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(c_cur_pro_name,'--> 表分区 begin',',partition_name: ',tempstr,' ,end_date : ',end_date) );
	SET idx := idx+1;	

	SET @end_date_f = CONCAT(end_date, ' 00:00:00');
	SELECT DATE_FORMAT( @end_date_f, '%Y-%m-%d %H:%i:%s' ) INTO @temp_time_end;
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,'动态表分区 begin');
	SET idx := idx+1;
	CALL pro_extendtabspace (tempstr ,@temp_time_end);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,'动态表分区 end');
	SET idx := idx+1;

	SET v_table_name := 'DETECTION_INFO';
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 begin'));
	SET idx := idx+1;
	CALL pro_extenddefaulttabspace (tempstr ,@temp_time_end,v_table_name);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 end'));
	SET idx := idx+1;

	SET v_table_name := 'DETECTION_INFO_WARNING';
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 begin'));
	SET idx := idx+1;
	CALL pro_extenddefaulttabspace (tempstr ,@temp_time_end,v_table_name);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 end'));
	SET idx := idx+1;

	SET v_table_name := 'DI_SYSTEMINFO_DISK';
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 begin'));
	SET idx := idx+1;
	CALL pro_extenddefaulttabspace (tempstr ,@temp_time_end,v_table_name);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 end'));
	SET idx := idx+1;

	SET v_table_name := 'DI_SYSTEMINFO_NET';
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 begin'));
	SET idx := idx+1;
	CALL pro_extenddefaulttabspace (tempstr ,@temp_time_end,v_table_name);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 end'));


	SET v_table_name := 'nms_error_info';
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 begin'));
	SET idx := idx+1;
	CALL pro_extenddefaulttabspace (tempstr ,@temp_time_end,v_table_name);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 end'));

	SET v_table_name := 'email_table';
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 begin'));
	SET idx := idx+1;
	CALL pro_extenddefaulttabspace (tempstr ,@temp_time_end,v_table_name);
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(v_table_name,'表创建表空间和表分区 end'));
	SET idx := idx+1;	

	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT(c_cur_pro_name,'表分区 end') );

END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_driver_add_week_Partition
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_driver_add_week_Partition`;
delimiter ;;
CREATE PROCEDURE `pro_driver_add_week_Partition`()
  DETERMINISTIC
BEGIN

 
  declare  c_log_table_name  VARCHAR(100) ; 
  DECLARE c_cur_pro_name     VARCHAR(100) ; 
 
   
  DECLARE c_oracle_data_dir  VARCHAR(200) ; 
 
  DECLARE v_log_table_sql    VARCHAR(2000);
   
  DECLARE  C_DATE            VARCHAR(64);
  DECLARE  tempstr           VARCHAR(64);
  DECLARE  space_path        varchar(1000); 
  DECLARE  end_date          VARCHAR(32);
  
   DECLARE EXIT HANDLER FOR SQLEXCEPTION 
	  BEGIN
	  ROLLBACK;
		SET @v_name=CONCAT('error:',IFNULL(@error_sql,''));
		 SET @v_log_table_sql= CONCAT('INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES( ''',c_cur_pro_name,''',''-1'',',@v_name,')');
		SELECT @insert_pro;
		PREPARE execE FROM @insert_pro;
		EXECUTE execE;
		DEALLOCATE PREPARE execE;
		COMMIT;
		
		
	  END ;
  
  set c_log_table_name :='PRO_EXEC_LOG';
  set c_cur_pro_name :='pro_driver_add_week_Partition';
  set c_oracle_data_dir:='/data/d4/oradata/ict/nmspartition/';
  
  

select DATE_FORMAT(now(), '%Y') into C_DATE from dual;

 SELECT WEEKOFYEAR(SYSDATE())  into tempstr from dual;

 SELECT SUBDATE(CURDATE(),DATE_FORMAT(CURDATE(),'%w')-7) into end_date from dual;
 start TRANSACTION;
    
    
    
     set tempstr :=concat( 'DI_W',C_DATE,'',tempstr);
     set space_path := CONCAT(c_oracle_data_dir,tempstr,'.dbf');
    
   

    
    
    set @end_date_f=concat(end_date,' 00:00:00');
    select date_format(@end_date_f ,'%Y-%m-%d %H:%i:%s') into  @temp_time_end;
   
  
  select  @end_date_f;
    select @temp_time_end;
    select tempstr;
    select space_path;
    
   call  pro_week_extendtabspace(tempstr, @temp_time_end);
    
   CALL pro_extenddefaulttabspace(tempstr, @temp_time_end ,'detection_info');
     
   CALL pro_extenddefaulttabspace(tempstr, @temp_time_end,'detection_info_warning');
   CALL pro_extenddefaulttabspace(tempstr, @temp_time_end,'di_systeminfo_disk');
   CALL pro_extenddefaulttabspace(tempstr, @temp_time_end,'di_systeminfo_net');
   
   commit;
   
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_driver_del_Partition
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_driver_del_Partition`;
delimiter ;;
CREATE PROCEDURE `pro_driver_del_Partition`()
  DETERMINISTIC
BEGIN

	declare c_log_table_name          VARCHAR(100) ; 
	DECLARE c_cur_pro_name            VARCHAR(100); 
	DECLARE c_day                     int default 7; 
	DECLARE v_del_date               VARCHAR(200);
 
  declare c_table_name			 VARCHAR(200);
  declare c_partition_name		 VARCHAR(200);
	DECLARE  done  	  		INT DEFAULT 0;
	DECLARE v_cur_sql                VARCHAR(2000);
	DECLARE idx INT;

	
	DECLARE cur CURSOR FOR SELECT table_name,partition_name FROM   pro_deltabspace_temp;
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=1; 
	DECLARE EXIT HANDLER FOR SQLEXCEPTION 
	BEGIN
		ROLLBACK;          
		SET @v_name=CONCAT('error',IFNULL(@error_sql,''));  			 
		CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,'-1',@v_name);		    
	END ;

	SET idx := 1;
	set c_log_table_name :='PRO_EXEC_LOG';
	set c_cur_pro_name := 'pro_driver_del_Partition';
		
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,'begin');	
	SET idx := idx +1;


	
	select TO_DAYS(SUBDATE(CURDATE(),INTERVAL c_day DAY)) INTO @v_del_date  from dual;
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT('分区删除时间： ',@v_del_date,' ',FROM_DAYS(@v_del_date)));	
	SET idx := idx +1;
	
	DROP VIEW IF EXISTS  nms.pro_deltabspace_temp;
	SET v_cur_sql = CONCAT('create view `nms`.`pro_deltabspace_temp` as SELECT TABLE_NAME,PARTITION_NAME FROM information_schema.`PARTITIONS` t WHERE t.TABLE_SCHEMA = ''nms'' and PARTITION_NAME LIKE ''NMS_PARTITION_%'' AND PARTITION_DESCRIPTION < ',@v_del_date);
	PREPARE stmt1 from v_cur_sql;
	EXECUTE stmt1;
	DEALLOCATE PREPARE stmt1;

	OPEN cur;
		cursor_loop:LOOP 	
			FETCH cur INTO c_table_name,c_partition_name;
			IF done=1 THEN	 
				LEAVE cursor_loop;		
			END IF;

			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT('删除分区： ',c_partition_name,',表 ： ',c_table_name,' begin'));	
			SET idx := idx +1;
			SET v_cur_sql = CONCAT('ALTER TABLE ',c_table_name,' DROP PARTITION ',c_partition_name);
			SET @error_sql = v_cur_sql;
			PREPARE stmt from v_cur_sql;
			EXECUTE  stmt;		   
			DEALLOCATE PREPARE stmt;
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,CONCAT('删除分区： ',c_partition_name,',表 ： ',c_table_name,' end'));	
			SET idx := idx +1;		

		END LOOP cursor_loop;	   
	CLOSE cur;
	CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,'end');	

END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_extenddefaulttabspace
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_extenddefaulttabspace`;
delimiter ;;
CREATE PROCEDURE `pro_extenddefaulttabspace`(spaceName   VARCHAR(100),partstr   VARCHAR(100),tableName   VARCHAR(100))
  DETERMINISTIC
BEGIN
		declare space_sql VARCHAR(5000);
		DECLARE execParm int;
		DECLARE proexecinfoid int;
		declare newday  datetime;
		DECLARE c_log_table_name               VARCHAR(100); 
		DECLARE c_cur_pro_name                 VARCHAR(100) ;
		DECLARE idx INT;
		

		DECLARE EXIT HANDLER FOR SQLEXCEPTION
		BEGIN
			ROLLBACK;
			SET @v_name=CONCAT(' error sql: ' ,ifnull(@error_sql,''));
			SET @v_log_table_sql= CONCAT('INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES( ''',c_cur_pro_name,''',''-1'',''', @v_name, ''')');    
			PREPARE execE FROM @v_log_table_sql;
			EXECUTE execE;
			DEALLOCATE PREPARE execE;
			COMMIT;
		END;


		SET idx := 1;
		set c_log_table_name   :='PRO_EXEC_LOG';
		set c_cur_pro_name :='pro_extenddefaulttabspace';
		set  execParm := 0;
	 
		SET @execute_sql = concat( 'SELECT count(*) into @isExist FROM information_schema.PARTITIONS WHERE table_schema=', '''nms''', ' AND partition_name=''', spaceName, '''',' AND table_name=''', tableName, '''');
		PREPARE execs
		FROM @execute_sql;
		EXECUTE execs;
		DEALLOCATE PREPARE execs;
		IF @isExist = 0 THEN
			START TRANSACTION;
				SELECT DATE_FORMAT(NOW(),'%Y%-%m-%d %H:%i:%s') INTO newday;
				set @space_sql :=CONCAT('alter table ',tableName,' add partition (PARTITION  ',spaceName,  ' values less than ( TO_DAYS(''',partstr,''')));');
				set @error_sql := @space_sql;
				PREPARE  execs FROM @space_sql;
				EXECUTE   execs;
				DEALLOCATE PREPARE execs;
			COMMIT;
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,concat(spaceName,'-',tableName ,'创建成功'));
			SET idx := idx+1;
		ELSE
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,concat(spaceName,'-',tableName ,'已创建'));
			SET idx := idx+1;
		END IF;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for PRO_EXTENDTABSPACE
-- ----------------------------
DROP PROCEDURE IF EXISTS `PRO_EXTENDTABSPACE`;
delimiter ;;
CREATE PROCEDURE `PRO_EXTENDTABSPACE`(spaceName   VARCHAR(100),partstr   VARCHAR(100))
  DETERMINISTIC
BEGIN
	declare	space_sql VARCHAR(5000);
	DECLARE	execParm int;
	DECLARE	v_log_table_sql               VARCHAR(2000);
	DECLARE c_log_table_name               VARCHAR(100); 
	DECLARE c_cur_pro_name                 VARCHAR(100) ; 
	declare c_table_name			varchar(30);
	DECLARE  done INT DEFAULT 0 ;
	DECLARE idx INT;
	
	DECLARE cur Cursor  for select cti.table_name  extendtabName from check_type_info cti where cti.crete_state = 0; 
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1 ;	
	DECLARE EXIT HANDLER FOR SQLEXCEPTION 
	BEGIN
		ROLLBACK;
		SET @v_name=CONCAT(' error sql: ' ,ifnull(@error_sql,'') );
		select @v_name;
		SET @v_log_table_sql= CONCAT('INSERT INTO ',c_log_table_name,'(proname,sequence,log_cont) VALUES( ''',c_cur_pro_name,''',''-1'',\"',execParm, @v_name, '\")');    
		SELECT @v_log_table_sql;
		PREPARE execE FROM @v_log_table_sql;
		EXECUTE execE;
		DEALLOCATE PREPARE execE;
		COMMIT;
	END ;
	set c_log_table_name   :='PRO_EXEC_LOG';
	set c_cur_pro_name :='PRO_EXTENDTABSPACE';    
	SET execParm := 0;
	SET idx := 1;

	OPEN cur ;  
		START TRANSACTION;
		cursor_loop:LOOP 
		FETCH cur      INTO c_table_name;
		IF done = 1    THEN 
			LEAVE cursor_loop ;
		END IF ;
		SET @execute_sql = concat( 'SELECT count(*) into @isExist FROM information_schema.PARTITIONS WHERE table_schema=', '''nms''', ' AND partition_name=''', spaceName, '''',' AND table_name=''', c_table_name, '''');
		PREPARE execs
		FROM @execute_sql;
		EXECUTE execs;
		DEALLOCATE PREPARE execs;
		IF @isExist = 0 THEN
			CALL pro_extenddefaulttabspace (spaceName ,partstr,c_table_name);
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,concat(spaceName,'-',c_table_name,'创建成功'));
			SET idx := idx+1;
		ELSE
			CALL PRO_RECORD_LOG_INFO(c_log_table_name,c_cur_pro_name,idx,concat(spaceName,'-',c_table_name,'已创建'));
			SET idx := idx+1;
		END IF;
		SET execParm := 3;
		END LOOP cursor_loop ;
		COMMIT;
	CLOSE cur;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_init_table_sync_info
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_init_table_sync_info`;
delimiter ;;
CREATE PROCEDURE `pro_init_table_sync_info`()
BEGIN
	DECLARE done INT DEFAULT 0;
	DECLARE v_db_id BIGINT(20);
	DECLARE cur_db_id CURSOR FOR SELECT `id` FROM `sync_db_info`;
	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;
	
	OPEN cur_db_id;
	read_loop:LOOP
	FETCH cur_db_id INTO v_db_id;
		IF done =1 THEN
			LEAVE read_loop;
		END IF;
		
		INSERT INTO `table_sync_info` (
		`table_name`,
		`event`,
		`id_name`,
		`id_names`,
		`columns`,
		`where`,
		`last_id`,
		`last_date`,
		`db_id`,
		`mode`,
		`batch_size`,
		`interceptor`
		) SELECT
		`table_name`,
		`event`,
		`id_name`,
		`id_names`,
		`columns`,
		`where`,
		`last_id`,
		`last_date`,
		v_db_id ,
		`mode`,
		`batch_size`,
		`interceptor`
		FROM
		`table_sync_info`
		WHERE
		db_id = 0;
		
	END LOOP read_loop;
	CLOSE cur_db_id;
	delete from `table_sync_info` where db_id=0;
	update table_sync_info set last_id=(select `CURRENT_VALUE` from sys_sequence where `NAME`='SEQ_METADATA')where table_name='metadata' and event=1 ;
	UPDATE table_sync_info set last_id=(select max(id) from check_type_info) where table_name='check_type_info' and event=1;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for PRO_RECORD_LOG_INFO
-- ----------------------------
DROP PROCEDURE IF EXISTS `PRO_RECORD_LOG_INFO`;
delimiter ;;
CREATE PROCEDURE `PRO_RECORD_LOG_INFO`(log_table_name  VARCHAR(100), proname  VARCHAR(100), sequence  VARCHAR(100),log_cont  VARCHAR(100))
  DETERMINISTIC
BEGIN
	declare v_log_table_sql          VARCHAR(2000);
	set @v_log_table_sql :=  concat('INSERT INTO ',log_table_name,'(proname,sequence,log_cont) VALUES(''',proname,''',''',sequence,''',''',log_cont,''')');
    PREPARE  execs FROM @v_log_table_sql;
    EXECUTE   execs;
    DEALLOCATE PREPARE execs;
    COMMIT;
END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for pro_updatedetectiontable
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_updatedetectiontable`;
delimiter ;;
CREATE PROCEDURE `pro_updatedetectiontable`()
  DETERMINISTIC
BEGIN
	  declare tablename VARCHAR(100);
	  DECLARE hasPk     int         ;
	  DECLARE hasId     int         ;
	  DECLARE dsiId     int         ;
	   DECLARE  done    INT DEFAULT 0;
	   declare c_table_name varchar(100);
	  
	  declare tableName_cursor CURSOR  for
	  select TABLE_NAME from check_type_info cti WHERE 1=1 AND cti.crete_state=0 ;
	  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done=1;	
	               
	               
	   DECLARE EXIT HANDLER FOR SQLEXCEPTION 
		  BEGIN
		    ROLLBACK ;
		 
		    set @error=concat(c_table_name,'表修改失败');
		    select @error;
		  END ;
	  set hasPk=0;
	  set hasId=0;
	  set dsiId=0;
	
	 OPEN tableName_cursor;  
	 start transaction;
	 loopLable:LOOP
		FETCH tableName_cursor INTO c_table_name;    
		IF done=1 THEN
			LEAVE loopLable;
		END IF;
		
	      set tablename := c_table_name;
	      set @truncate_table= CONCAT('truncate table ',tablename);
	      
	       PREPARE  execs FROM @truncate_table;
	       EXECUTE   execs;
	       DEALLOCATE PREPARE execs;
	     
	      SELECT IFNULL(COUNT(*),0)  INTO hasPk FROM information_schema.`TABLE_CONSTRAINTS` WHERE   TABLE_NAME=tablename AND constraint_type='PRIMARY KEY';
	      select IFNULL(count(*),0) INTO hasId from information_schema.`COLUMNS` utc where utc.TABLE_NAME = tablename AND utc.column_name='ID';
	      select IFNULL(count(*),0) INTO dsiId from information_schema.`COLUMNS` utc where utc.TABLE_NAME = tablename AND utc.column_name='DETECTION_SET_INFO_ID';
	      IF(dsiId =0)
	      THEN
		  set @exe_alter_add= CONCAT('alter table ',tablename , ' add (DETECTION_SET_INFO_ID int) ;');
		   PREPARE  execs FROM   @exe_alter_add;
		 
		   EXECUTE   execs;
	           DEALLOCATE PREPARE execs;
	      END IF;
	      IF(hasPk =1)
	      THEN
		    SET @exe_alter_drop=CONCAT('alter table ', tablename , ' drop Primary key ;');
		   PREPARE  execs FROM  @exe_alter_drop;
		   
		   EXECUTE   execs;
	           DEALLOCATE PREPARE execs;
	      END IF;
	      IF(hasId =0)
	      THEN
		    SET @exe_alter_apk= CONCAT('alter table ', tablename , ' add (ID int  Primary key) ;');
		   PREPARE  execs FROM  @exe_alter_apk;		 
		   EXECUTE   execs;
	           DEALLOCATE PREPARE execs;
	      ELSE
	       SET @exe_alter_apki=CONCAT('alter table ', tablename , ' add Primary key(ID) ;');
		  PREPARE  execs FROM @exe_alter_apki;
		   EXECUTE   execs;
	           DEALLOCATE PREPARE execs;
	      END IF;
	      
	     
	    
	 
	 END LOOP loopLable;
	 commit;
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for PRO_WEEK_EXTENDTABSPACE
-- ----------------------------
DROP PROCEDURE IF EXISTS `PRO_WEEK_EXTENDTABSPACE`;
delimiter ;;
CREATE PROCEDURE `PRO_WEEK_EXTENDTABSPACE`(spaceName   VARCHAR(100),partstr   VARCHAR(100))
  DETERMINISTIC
BEGIN
	declare space_sql VARCHAR(5000);
	DECLARE execParm int;
	DECLARE proexecinfoid int;
	DECLARE c_table_name VARCHAR(50);
	declare newday      datetime;
	DECLARE done        INT DEFAULT 0 ;
	
	
	  
	DECLARE  cur Cursor  for
	
		 select cti.table_name  extendtabName
		 from check_type_info cti where cti.crete_state = 0;
	 DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1 ;	
	 DECLARE EXIT HANDLER FOR SQLEXCEPTION 
		  BEGIN
		  ROLLBACK;
			 set @insert_pro= CONCAT('insert into PROEXECINFO(proname,param,prodesc) values(','''PRO_EXTENDTABSPACE'',''',execParm,''',''',newday,' tablename:',c_table_name,' partitionName:' ,spaceName,' partContent:',partstr,''')');
			 select @insert_pro;
			PREPARE execE from @insert_pro;
			EXECUTE execE;
			DEALLOCATE PREPARE execE;
			COMMIT;
			
			
		  END ;
	   
	 select DATE_FORMAT(NOW(),'%Y%-%m-%d %H:%i:%s') into newday;	 
        set execParm := 0;
	  OPEN cur ;
	  
	   START TRANSACTION;
	  cursor_loop:LOOP 
	    FETCH cur      INTO c_table_name;
	     IF done = 1    THEN 
		    LEAVE cursor_loop ;
	     END IF ;
	    set execParm := 1;
	    set @space_sql :=concat('alter table ',c_table_name,' add partition (PARTITION  ',spaceName,  ' values less than ( TO_DAYS(''',partstr,''')));');
 
	      
	    select @space_sql;
	    set execParm := 2;
	    PREPARE  execs FROM @space_sql;
	    EXECUTE   execs;
	    DEALLOCATE PREPARE execs;
	   
	    set execParm := 3;
	  
	   END LOOP cursor_loop ;
	    COMMIT;
	  CLOSE cur;
    
	  
    END
;;
delimiter ;

-- ----------------------------
-- Procedure structure for setDetectInfoDateTime
-- ----------------------------
DROP PROCEDURE IF EXISTS `setDetectInfoDateTime`;
delimiter ;;
CREATE PROCEDURE `setDetectInfoDateTime`(IN `addHour` smallint)
BEGIN

	

update detection_info t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.INSERT_DB_TIME=ADDDATE(t.INSERT_DB_TIME,INTERVAL addHour HOUR),

					t.NEXT_CHECK_TIME=ADDDATE(t.NEXT_CHECK_TIME,INTERVAL addHour HOUR),

					t.STATUS_CHANGE_TIME=ADDDATE(t.STATUS_CHANGE_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

  update detection_info_new t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.NEXT_CHECK_TIME=ADDDATE(t.NEXT_CHECK_TIME,INTERVAL addHour HOUR),

					t.STATUS_CHANGE_TIME=ADDDATE(t.STATUS_CHANGE_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

 update delect_info_nmsc t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_cpu t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_disk t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_memory t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_netdata t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_ping t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_port t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;



update detect_info_process t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_snmp_trap t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update detect_info_system_date t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;





update di_switchport t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;

update di_system t set t.DATA_ARRIVE_TIME=ADDDATE(t.DATA_ARRIVE_TIME,INTERVAL addHour HOUR),

					t.DATA_CHECK_TIME=ADDDATE(t.DATA_CHECK_TIME,INTERVAL addHour HOUR),

					t.DATA_ARRIVE_TIME_DIGITAL=t.DATA_ARRIVE_TIME_DIGITAL+60*60*1000*addHour,

					t.DATA_CHECK_TIME_DIGITAL=t.DATA_CHECK_TIME_DIGITAL+60*60*1000*addHour;



END
;;
delimiter ;

-- ----------------------------
-- Event structure for add_partition_everyday
-- ----------------------------
DROP EVENT IF EXISTS `add_partition_everyday`;
delimiter ;;
CREATE EVENT `add_partition_everyday`
ON SCHEDULE
EVERY '1' DAY STARTS '2018-05-18 23:30:00'
ON COMPLETION PRESERVE
DO CALL pro_driver_add_Partition()
;;
delimiter ;

-- ----------------------------
-- Event structure for del_partition_everyday
-- ----------------------------
DROP EVENT IF EXISTS `del_partition_everyday`;
delimiter ;;
CREATE EVENT `del_partition_everyday`
ON SCHEDULE
EVERY '1' DAY STARTS '2018-05-17 01:00:00'
ON COMPLETION PRESERVE
DO CALL pro_driver_del_Partition()
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table check_type_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_cti_index`;
delimiter ;;
CREATE TRIGGER `after_update_cti_index` AFTER UPDATE ON `check_type_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='check_type_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table check_type_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_cti_index`;
delimiter ;;
CREATE TRIGGER `after_delete_cti_index` AFTER DELETE ON `check_type_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='check_type_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table data_police_relation
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_dpr_index`;
delimiter ;;
CREATE TRIGGER `after_update_dpr_index` AFTER UPDATE ON `data_police_relation` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='data_police_relation';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table data_police_relation
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_dpr_index`;
delimiter ;;
CREATE TRIGGER `after_delete_dpr_index` AFTER DELETE ON `data_police_relation` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='data_police_relation';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table detection_info_new
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_din_index`;
delimiter ;;
CREATE TRIGGER `after_update_din_index` AFTER UPDATE ON `detection_info_new` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='detection_info_new';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table detection_set_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_dsi_index`;
delimiter ;;
CREATE TRIGGER `after_update_dsi_index` AFTER UPDATE ON `detection_set_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.ID,table_name='detection_set_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table detection_set_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_dsi_index`;
delimiter ;;
CREATE TRIGGER `after_delete_dsi_index` AFTER DELETE ON `detection_set_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.ID,table_name='detection_set_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_boardsolt_board
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_dbb_index`;
delimiter ;;
CREATE TRIGGER `after_update_dbb_index` AFTER UPDATE ON `device_boardsolt_board` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='device_boardsolt_board';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_boardsolt_board
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_dbb_index`;
delimiter ;;
CREATE TRIGGER `after_delete_dbb_index` AFTER DELETE ON `device_boardsolt_board` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='device_boardsolt_board';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_brand_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_dbi_index`;
delimiter ;;
CREATE TRIGGER `after_update_dbi_index` AFTER UPDATE ON `device_brand_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='device_brand_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_brand_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_dbi_index`;
delimiter ;;
CREATE TRIGGER `after_delete_dbi_index` AFTER DELETE ON `device_brand_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='device_brand_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_brand_type
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_dbt_index`;
delimiter ;;
CREATE TRIGGER `after_update_dbt_index` AFTER UPDATE ON `device_brand_type` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='device_brand_type';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_brand_type
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_dbt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_dbt_index` AFTER DELETE ON `device_brand_type` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='device_brand_type';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_di_index`;
delimiter ;;
CREATE TRIGGER `after_update_di_index` AFTER UPDATE ON `device_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.device_id,table_name='device_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_di_index`;
delimiter ;;
CREATE TRIGGER `after_delete_di_index` AFTER DELETE ON `device_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.device_id,table_name='device_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_type_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_dti_index`;
delimiter ;;
CREATE TRIGGER `after_update_dti_index` AFTER UPDATE ON `device_type_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='device_type_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table device_type_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_dti_index`;
delimiter ;;
CREATE TRIGGER `after_delete_dti_index` AFTER DELETE ON `device_type_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='device_type_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table dictionary_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_dt_index`;
delimiter ;;
CREATE TRIGGER `after_update_dt_index` AFTER UPDATE ON `dictionary_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='dictionary_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table dictionary_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_dt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_dt_index` AFTER DELETE ON `dictionary_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='dictionary_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table email_table
-- ----------------------------
DROP TRIGGER IF EXISTS `BEFORE_INSERT_EMAIL_TABLE`;
delimiter ;;
CREATE TRIGGER `BEFORE_INSERT_EMAIL_TABLE` BEFORE INSERT ON `email_table` FOR EACH ROW BEGIN
IF NEW.id is NULL or NEW.id = 0 THEN
     SET  NEW.id =( select nextval('SEQ_EMAIL_TABLE'));
END IF;
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table email_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_et_index`;
delimiter ;;
CREATE TRIGGER `after_update_et_index` AFTER UPDATE ON `email_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='email_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table email_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_et_index`;
delimiter ;;
CREATE TRIGGER `after_delete_et_index` AFTER DELETE ON `email_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='email_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table event_record_library
-- ----------------------------
DROP TRIGGER IF EXISTS `before_insert_event_record`;
delimiter ;;
CREATE TRIGGER `before_insert_event_record` BEFORE INSERT ON `event_record_library` FOR EACH ROW BEGIN
IF NEW.id IS NULL or NEW.id = 0 THEN
     SET  NEW.id =( select nextval('SEQ_EVENT_RECORD_LIBRARY'));
END IF;
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table event_record_library
-- ----------------------------
DROP TRIGGER IF EXISTS `afterinsert_event_record_library`;
delimiter ;;
CREATE TRIGGER `afterinsert_event_record_library` AFTER INSERT ON `event_record_library` FOR EACH ROW BEGIN
	insert into table_event_log set event=1,target_id=new.id,table_name='event_record_library';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table event_record_library
-- ----------------------------
DROP TRIGGER IF EXISTS `afterupdate_event_record_library`;
delimiter ;;
CREATE TRIGGER `afterupdate_event_record_library` AFTER UPDATE ON `event_record_library` FOR EACH ROW BEGIN
	     insert into table_event_log set event=2,target_id=old.id,table_name='event_record_library';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table event_record_library
-- ----------------------------
DROP TRIGGER IF EXISTS `afterdelete_event_record_library`;
delimiter ;;
CREATE TRIGGER `afterdelete_event_record_library` AFTER DELETE ON `event_record_library` FOR EACH ROW BEGIN
	     insert into table_event_log set event=3,target_id=old.id,table_name='event_record_library';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table flow_audit_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_far_index`;
delimiter ;;
CREATE TRIGGER `after_update_far_index` AFTER UPDATE ON `flow_audit_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.seq,table_name='flow_audit_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table flow_audit_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_far_index`;
delimiter ;;
CREATE TRIGGER `after_delete_far_index` AFTER DELETE ON `flow_audit_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.seq,table_name='flow_audit_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table gorup_system_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_gst_index`;
delimiter ;;
CREATE TRIGGER `after_update_gst_index` AFTER UPDATE ON `gorup_system_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='gorup_system_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table gorup_system_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_gst_index`;
delimiter ;;
CREATE TRIGGER `after_delete_gst_index` AFTER DELETE ON `gorup_system_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='gorup_system_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table img_url
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_iu_index`;
delimiter ;;
CREATE TRIGGER `after_update_iu_index` AFTER UPDATE ON `img_url` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='img_url';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table img_url
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_iu_index`;
delimiter ;;
CREATE TRIGGER `after_delete_iu_index` AFTER DELETE ON `img_url` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='img_url';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table loopmission_state_table
-- ----------------------------
DROP TRIGGER IF EXISTS `before_insert_loopmission_state_table`;
delimiter ;;
CREATE TRIGGER `before_insert_loopmission_state_table` BEFORE INSERT ON `loopmission_state_table` FOR EACH ROW BEGIN
    
    set new.cur_mission_id := CONCAT(new.mission_id,UNIX_TIMESTAMP(new.start_time));

END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table metadata
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_metadata_index`;
delimiter ;;
CREATE TRIGGER `after_update_metadata_index` AFTER UPDATE ON `metadata` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='metadata';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table metadata
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_metadata_index`;
delimiter ;;
CREATE TRIGGER `after_delete_metadata_index` AFTER DELETE ON `metadata` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='metadata';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table mission_file_information
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_mfi_index`;
delimiter ;;
CREATE TRIGGER `after_update_mfi_index` AFTER UPDATE ON `mission_file_information` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='mission_file_information';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table mission_file_information
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_mfi_index`;
delimiter ;;
CREATE TRIGGER `after_delete_mfi_index` AFTER DELETE ON `mission_file_information` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='mission_file_information';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table mission_state_table
-- ----------------------------
DROP TRIGGER IF EXISTS `BEFORE_UPDATE_MISSION_STATE_T`;
delimiter ;;
CREATE TRIGGER `BEFORE_UPDATE_MISSION_STATE_T` BEFORE UPDATE ON `mission_state_table` FOR EACH ROW BEGIN
	 if new.AUTO_DESC<> old.AUTO_DESC then
        SET new.AUTO_DESC := CONCAT(IFNULL(old.AUTO_DESC,''),chAr(10),IFNULL(new.AUTO_DESC,''));
     end if;
    END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table mission_state_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_mst_index`;
delimiter ;;
CREATE TRIGGER `after_update_mst_index` AFTER UPDATE ON `mission_state_table` FOR EACH ROW BEGIN 
        if new.mission_state=5 or new.mission_state=1 or new.mission_name!=old.mission_name or new.view_level!=old.view_level then
            insert into table_event_log set event=2,target_id=old.id,table_name='mission_state_table';
        end if;
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nms_error_code
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nec_index`;
delimiter ;;
CREATE TRIGGER `after_update_nec_index` AFTER UPDATE ON `nms_error_code` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='nms_error_code';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nms_error_code
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nec_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nec_index` AFTER DELETE ON `nms_error_code` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='nms_error_code';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nms_error_info
-- ----------------------------
DROP TRIGGER IF EXISTS `BEFORE_NMS_ERROE_INFO`;
delimiter ;;
CREATE TRIGGER `BEFORE_NMS_ERROE_INFO` BEFORE INSERT ON `nms_error_info` FOR EACH ROW BEGIN
	IF(new.state_update_time IS NULL)
	THEN
		set new.state_update_time = new.error_time;
	END IF;
IF NEW.id is NULL or NEW.id = 0 THEN
     SET  NEW.id =( select nextval('SEQ_NMS_ERROR_INFO'));
END IF;
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nms_error_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nei_index`;
delimiter ;;
CREATE TRIGGER `after_update_nei_index` AFTER UPDATE ON `nms_error_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='nms_error_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nms_error_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nei_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nei_index` AFTER DELETE ON `nms_error_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='nms_error_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_box_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nbt_index`;
delimiter ;;
CREATE TRIGGER `after_update_nbt_index` AFTER UPDATE ON `node_box_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.box_id,table_name='node_box_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_box_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nbt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nbt_index` AFTER DELETE ON `node_box_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.box_id,table_name='node_box_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_figure_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nfi_index`;
delimiter ;;
CREATE TRIGGER `after_update_nfi_index` AFTER UPDATE ON `node_figure_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='node_figure_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_figure_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nfi_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nfi_index` AFTER DELETE ON `node_figure_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='node_figure_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_lattice_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nlt_index`;
delimiter ;;
CREATE TRIGGER `after_update_nlt_index` AFTER UPDATE ON `node_lattice_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='node_lattice_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_lattice_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nlt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nlt_index` AFTER DELETE ON `node_lattice_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='node_lattice_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_np_index`;
delimiter ;;
CREATE TRIGGER `after_update_np_index` AFTER UPDATE ON `node_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='node_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_np_index`;
delimiter ;;
CREATE TRIGGER `after_delete_np_index` AFTER DELETE ON `node_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='node_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_room_lattice_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nrlt_index`;
delimiter ;;
CREATE TRIGGER `after_update_nrlt_index` AFTER UPDATE ON `node_room_lattice_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='node_room_lattice_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_room_lattice_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nrlt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nrlt_index` AFTER DELETE ON `node_room_lattice_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='node_room_lattice_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_room_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nrt_index`;
delimiter ;;
CREATE TRIGGER `after_update_nrt_index` AFTER UPDATE ON `node_room_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.room_id,table_name='node_room_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_room_table
-- ----------------------------
DROP TRIGGER IF EXISTS `adter_delete_nrt_index`;
delimiter ;;
CREATE TRIGGER `adter_delete_nrt_index` AFTER DELETE ON `node_room_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.room_id,table_name='node_room_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_table
-- ----------------------------
DROP TRIGGER IF EXISTS `before_insert_node_table`;
delimiter ;;
CREATE TRIGGER `before_insert_node_table` BEFORE INSERT ON `node_table` FOR EACH ROW begin
IF NEW.node_id is NULL or NEW.node_id = 0 THEN
     SET  NEW.node_id =( select nextval('SEQ_NODE_TABLE'));
END IF;
end
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nt_index`;
delimiter ;;
CREATE TRIGGER `after_update_nt_index` AFTER UPDATE ON `node_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.node_id,table_name='node_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_table
-- ----------------------------
DROP TRIGGER IF EXISTS `AFTER_DELETE_NODE_TABLE`;
delimiter ;;
CREATE TRIGGER `AFTER_DELETE_NODE_TABLE` AFTER DELETE ON `node_table` FOR EACH ROW begin
   declare  v_cnt INT;
   select count(*) into v_cnt from node_table n where n.seq_id=OLD.seq_id;
   if v_cnt=0 then
         update node_lattice_table t set t.node_seq=null where t.node_seq=OLD.seq_id;
    end if;
end
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table node_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nt_index` AFTER DELETE ON `node_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.node_id,table_name='node_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_arrow_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nap_index`;
delimiter ;;
CREATE TRIGGER `after_update_nap_index` AFTER UPDATE ON `nodegroup_arrow_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='nodegroup_arrow_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_arrow_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nap_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nap_index` AFTER DELETE ON `nodegroup_arrow_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='nodegroup_arrow_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_bgimg_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_nbp_index`;
delimiter ;;
CREATE TRIGGER `after_update_nbp_index` AFTER UPDATE ON `nodegroup_bgimg_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='nodegroup_bgimg_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_bgimg_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_nbp_index`;
delimiter ;;
CREATE TRIGGER `after_delete_nbp_index` AFTER DELETE ON `nodegroup_bgimg_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='nodegroup_bgimg_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_ngp_index`;
delimiter ;;
CREATE TRIGGER `after_update_ngp_index` AFTER UPDATE ON `nodegroup_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='nodegroup_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_position
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_ngp_index`;
delimiter ;;
CREATE TRIGGER `after_delete_ngp_index` AFTER DELETE ON `nodegroup_position` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='nodegroup_position';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_table
-- ----------------------------
DROP TRIGGER IF EXISTS `node_group_table_tri`;
delimiter ;;
CREATE TRIGGER `node_group_table_tri` BEFORE INSERT ON `nodegroup_table` FOR EACH ROW begin 
	declare parent_group_ids_temp varchar(512);
	select parent_group_ids into parent_group_ids_temp from nodegroup_table where group_id=new.parent_group_id;
	if(parent_group_ids_temp is null or parent_group_ids_temp ='') then 
	set	new.parent_group_ids := concat('0',',');
	else 
	set new.parent_group_ids := concat(parent_group_ids_temp,new.parent_group_id,',');
	end if;
IF NEW.group_id is NULL or NEW.group_id = 0 THEN
     SET  NEW.group_id  =( select nextval('SEQ_NODEGROUP_TABLE'));
END IF;
end
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_ngt_index`;
delimiter ;;
CREATE TRIGGER `after_update_ngt_index` AFTER UPDATE ON `nodegroup_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.group_id,table_name='nodegroup_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table nodegroup_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_ngt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_ngt_index` AFTER DELETE ON `nodegroup_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.group_id,table_name='nodegroup_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table oid_dictionary
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_od_index`;
delimiter ;;
CREATE TRIGGER `after_update_od_index` AFTER UPDATE ON `oid_dictionary` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='oid_dictionary';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table oid_dictionary
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_od_index`;
delimiter ;;
CREATE TRIGGER `after_delete_od_index` AFTER DELETE ON `oid_dictionary` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='oid_dictionary';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table operate_audit_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_oar_index`;
delimiter ;;
CREATE TRIGGER `after_update_oar_index` AFTER UPDATE ON `operate_audit_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.seq,table_name='operate_audit_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table operate_audit_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_oar_index`;
delimiter ;;
CREATE TRIGGER `after_delete_oar_index` AFTER DELETE ON `operate_audit_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.seq,table_name='operate_audit_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table option_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_opt_index`;
delimiter ;;
CREATE TRIGGER `after_update_opt_index` AFTER UPDATE ON `option_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='option_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table option_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_opt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_opt_index` AFTER DELETE ON `option_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='option_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table order_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_ot_index`;
delimiter ;;
CREATE TRIGGER `after_update_ot_index` AFTER UPDATE ON `order_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.command_id,table_name='order_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table order_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_ot_index`;
delimiter ;;
CREATE TRIGGER `after_delete_ot_index` AFTER DELETE ON `order_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.command_id,table_name='order_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table plugin_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_pi_index`;
delimiter ;;
CREATE TRIGGER `after_update_pi_index` AFTER UPDATE ON `plugin_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='plugin_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table plugin_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_pi_index`;
delimiter ;;
CREATE TRIGGER `after_delete_pi_index` AFTER DELETE ON `plugin_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='plugin_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table pro_exec_log
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_pel_index`;
delimiter ;;
CREATE TRIGGER `after_update_pel_index` AFTER UPDATE ON `pro_exec_log` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='pro_exec_log';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table pro_exec_log
-- ----------------------------
DROP TRIGGER IF EXISTS `after_detele_pel_index`;
delimiter ;;
CREATE TRIGGER `after_detele_pel_index` AFTER DELETE ON `pro_exec_log` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='pro_exec_log';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table procedure_log
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_pl_index`;
delimiter ;;
CREATE TRIGGER `after_update_pl_index` AFTER UPDATE ON `procedure_log` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='procedure_log';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table procedure_log
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_pl_index`;
delimiter ;;
CREATE TRIGGER `after_delete_pl_index` AFTER DELETE ON `procedure_log` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='procedure_log';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table proexecinfo
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_proexecinfo_index`;
delimiter ;;
CREATE TRIGGER `after_update_proexecinfo_index` AFTER UPDATE ON `proexecinfo` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='proexecinfo';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table proexecinfo
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_proexecinfo_index`;
delimiter ;;
CREATE TRIGGER `after_delete_proexecinfo_index` AFTER DELETE ON `proexecinfo` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='proexecinfo';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table server_ip_segment
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_sis_index`;
delimiter ;;
CREATE TRIGGER `after_update_sis_index` AFTER UPDATE ON `server_ip_segment` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='server_ip_segment';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table server_ip_segment
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_sis_index`;
delimiter ;;
CREATE TRIGGER `after_delete_sis_index` AFTER DELETE ON `server_ip_segment` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='server_ip_segment';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table server_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_st_index`;
delimiter ;;
CREATE TRIGGER `after_update_st_index` AFTER UPDATE ON `server_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='server_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table server_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_st_index`;
delimiter ;;
CREATE TRIGGER `after_delete_st_index` AFTER DELETE ON `server_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='server_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table set_det_data_con
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_sddc_index`;
delimiter ;;
CREATE TRIGGER `after_update_sddc_index` AFTER UPDATE ON `set_det_data_con` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='set_det_data_con';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table set_det_data_con
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_sddc_index`;
delimiter ;;
CREATE TRIGGER `after_delete_sddc_index` AFTER DELETE ON `set_det_data_con` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='set_det_data_con';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table sort_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_si_index`;
delimiter ;;
CREATE TRIGGER `after_update_si_index` AFTER UPDATE ON `sort_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='sort_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table sort_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_si_index`;
delimiter ;;
CREATE TRIGGER `after_delete_si_index` AFTER DELETE ON `sort_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='sort_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table sys_data_dictionary_item
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_sddi_index`;
delimiter ;;
CREATE TRIGGER `after_update_sddi_index` AFTER UPDATE ON `sys_data_dictionary_item` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='sys_data_dictionary_item';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table sys_data_dictionary_item
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_sddi_index`;
delimiter ;;
CREATE TRIGGER `after_delete_sddi_index` AFTER DELETE ON `sys_data_dictionary_item` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='sys_data_dictionary_item';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table sys_data_dictionary_name
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_sddn_index`;
delimiter ;;
CREATE TRIGGER `after_update_sddn_index` AFTER UPDATE ON `sys_data_dictionary_name` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='sys_data_dictionary_name';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table sys_data_dictionary_name
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_sddn_index`;
delimiter ;;
CREATE TRIGGER `after_delete_sddn_index` AFTER DELETE ON `sys_data_dictionary_name` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='sys_data_dictionary_name';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_company_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_scc_index`;
delimiter ;;
CREATE TRIGGER `after_update_scc_index` AFTER UPDATE ON `system_company_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.config_id,table_name='system_company_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_company_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_scc_index`;
delimiter ;;
CREATE TRIGGER `after_delete_scc_index` AFTER DELETE ON `system_company_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.config_id,table_name='system_company_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_gateway_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_sgc_index`;
delimiter ;;
CREATE TRIGGER `after_update_sgc_index` AFTER UPDATE ON `system_gateway_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.config_id,table_name='system_gateway_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_gateway_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_sgc_index`;
delimiter ;;
CREATE TRIGGER `after_delete_sgc_index` AFTER DELETE ON `system_gateway_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.config_id,table_name='system_gateway_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_ip_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_sic_index`;
delimiter ;;
CREATE TRIGGER `after_update_sic_index` AFTER UPDATE ON `system_ip_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.config_id,table_name='system_ip_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_ip_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_sic_index`;
delimiter ;;
CREATE TRIGGER `after_delete_sic_index` AFTER DELETE ON `system_ip_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.config_id,table_name='system_ip_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_proxy_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_spc_index`;
delimiter ;;
CREATE TRIGGER `after_update_spc_index` AFTER UPDATE ON `system_proxy_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.config_id,table_name='system_proxy_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_proxy_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_spc_index`;
delimiter ;;
CREATE TRIGGER `after_delete_spc_index` AFTER DELETE ON `system_proxy_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.config_id,table_name='system_proxy_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_route_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_src_index`;
delimiter ;;
CREATE TRIGGER `after_update_src_index` AFTER UPDATE ON `system_route_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.config_id,table_name='system_route_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_route_config
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_src_index`;
delimiter ;;
CREATE TRIGGER `after_delete_src_index` AFTER DELETE ON `system_route_config` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.config_id,table_name='system_route_config';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_syst_index`;
delimiter ;;
CREATE TRIGGER `after_update_syst_index` AFTER UPDATE ON `system_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.system_id,table_name='system_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table system_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_syst_index`;
delimiter ;;
CREATE TRIGGER `after_delete_syst_index` AFTER DELETE ON `system_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.system_id,table_name='system_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table table_guide
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tg_index`;
delimiter ;;
CREATE TRIGGER `after_update_tg_index` AFTER UPDATE ON `table_guide` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='table_guide';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table table_guide
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tg_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tg_index` AFTER DELETE ON `table_guide` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='table_guide';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tabledboperationrpt
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tbrpt_index`;
delimiter ;;
CREATE TRIGGER `after_update_tbrpt_index` AFTER UPDATE ON `tabledboperationrpt` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.logid,table_name='tabledboperationrpt';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tabledboperationrpt
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tbrpt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tbrpt_index` AFTER DELETE ON `tabledboperationrpt` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.logid,table_name='tabledboperationrpt';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tabledepartment
-- ----------------------------
DROP TRIGGER IF EXISTS `tabledepartment_before_insert`;
delimiter ;;
CREATE TRIGGER `tabledepartment_before_insert` BEFORE INSERT ON `tabledepartment` FOR EACH ROW BEGIN
IF NEW.upperlayer is NULL  or NEW.upperlayer = 0 THEN
     SET  NEW.pids = '0,';
     SET  NEW.upperlayer = 0;
ELSE
     set NEW.pids = (select concat(t.pids,t.deptid,',') from tabledepartment t where t.deptid = NEW.upperlayer);
END IF;
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tabledepartment
-- ----------------------------
DROP TRIGGER IF EXISTS `tabledepartment_before_update`;
delimiter ;;
CREATE TRIGGER `tabledepartment_before_update` BEFORE UPDATE ON `tabledepartment` FOR EACH ROW BEGIN
IF NEW.upperlayer is NULL  or NEW.upperlayer = 0 THEN
     SET  NEW.pids = '0,';
     SET  NEW.upperlayer = 0;
ELSE
     set NEW.pids = (select concat(t.pids,t.deptid,',') from tabledepartment t where t.deptid = NEW.upperlayer);
END IF;
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tabledepartment
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_td_index`;
delimiter ;;
CREATE TRIGGER `after_update_td_index` AFTER UPDATE ON `tabledepartment` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.deptid,table_name='tabledepartment';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tabledepartment
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_td_index`;
delimiter ;;
CREATE TRIGGER `after_delete_td_index` AFTER DELETE ON `tabledepartment` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.deptid,table_name='tabledepartment';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tableloginrpt
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tlrpt_index`;
delimiter ;;
CREATE TRIGGER `after_update_tlrpt_index` AFTER UPDATE ON `tableloginrpt` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.logid,table_name='tableloginrpt';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tableloginrpt
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tlrpt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tlrpt_index` AFTER DELETE ON `tableloginrpt` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.logid,table_name='tableloginrpt';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tableuserdepartment
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tud_index`;
delimiter ;;
CREATE TRIGGER `after_update_tud_index` AFTER UPDATE ON `tableuserdepartment` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='tableuserdepartment';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table tableuserdepartment
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tud_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tud_index` AFTER DELETE ON `tableuserdepartment` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='tableuserdepartment';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_con_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tci_index`;
delimiter ;;
CREATE TRIGGER `after_update_tci_index` AFTER UPDATE ON `topo_con_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='topo_con_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_con_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tci_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tci_index` AFTER DELETE ON `topo_con_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='topo_con_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_img
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_ti_index`;
delimiter ;;
CREATE TRIGGER `after_update_ti_index` AFTER UPDATE ON `topo_img` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='topo_img';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_img
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_ti_index`;
delimiter ;;
CREATE TRIGGER `after_delete_ti_index` AFTER DELETE ON `topo_img` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='topo_img';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tin_index`;
delimiter ;;
CREATE TRIGGER `after_update_tin_index` AFTER UPDATE ON `topo_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='topo_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tin_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tin_index` AFTER DELETE ON `topo_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='topo_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_line_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tli_index`;
delimiter ;;
CREATE TRIGGER `after_update_tli_index` AFTER UPDATE ON `topo_line_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='topo_line_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_line_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tli_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tli_index` AFTER DELETE ON `topo_line_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='topo_line_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_node_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tni_index`;
delimiter ;;
CREATE TRIGGER `after_update_tni_index` AFTER UPDATE ON `topo_node_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='topo_node_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table topo_node_info
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tni_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tni_index` AFTER DELETE ON `topo_node_info` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='topo_node_info';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table trouble_state
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_ts_index`;
delimiter ;;
CREATE TRIGGER `after_update_ts_index` AFTER UPDATE ON `trouble_state` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='trouble_state';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table trouble_state
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_ts_index`;
delimiter ;;
CREATE TRIGGER `after_delete_ts_index` AFTER DELETE ON `trouble_state` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='trouble_state';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table type_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_tt_index`;
delimiter ;;
CREATE TRIGGER `after_update_tt_index` AFTER UPDATE ON `type_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='type_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table type_table
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_tt_index`;
delimiter ;;
CREATE TRIGGER `after_delete_tt_index` AFTER DELETE ON `type_table` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='type_table';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table update_model_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_umr_index`;
delimiter ;;
CREATE TRIGGER `after_update_umr_index` AFTER UPDATE ON `update_model_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.update_id,table_name='update_model_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table update_model_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_umr_index`;
delimiter ;;
CREATE TRIGGER `after_delete_umr_index` AFTER DELETE ON `update_model_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.update_id,table_name='update_model_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table upload_file_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_ufr_index`;
delimiter ;;
CREATE TRIGGER `after_update_ufr_index` AFTER UPDATE ON `upload_file_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.unique_seq,table_name='upload_file_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table upload_file_rz
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_ufr_index`;
delimiter ;;
CREATE TRIGGER `after_delete_ufr_index` AFTER DELETE ON `upload_file_rz` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.unique_seq,table_name='upload_file_rz';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_js_jbxx
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_xjj_index`;
delimiter ;;
CREATE TRIGGER `after_update_xjj_index` AFTER UPDATE ON `xt_js_jbxx` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.jsbh,table_name='xt_js_jbxx';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_js_jbxx
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_xjj_index`;
delimiter ;;
CREATE TRIGGER `after_delete_xjj_index` AFTER DELETE ON `xt_js_jbxx` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.jsbh,table_name='xt_js_jbxx';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_js_mk_index
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_xjmi_index`;
delimiter ;;
CREATE TRIGGER `after_update_xjmi_index` AFTER UPDATE ON `xt_js_mk_index` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='xt_js_mk_index';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_js_mk_index
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_xjmi_index`;
delimiter ;;
CREATE TRIGGER `after_delete_xjmi_index` AFTER DELETE ON `xt_js_mk_index` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='xt_js_mk_index';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_mk_jbxx
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_xmj_index`;
delimiter ;;
CREATE TRIGGER `after_update_xmj_index` AFTER UPDATE ON `xt_mk_jbxx` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='xt_mk_jbxx';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_mk_jbxx
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_xmj_index`;
delimiter ;;
CREATE TRIGGER `after_delete_xmj_index` AFTER DELETE ON `xt_mk_jbxx` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='xt_mk_jbxx';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_yh_jbxx
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_xyj_index`;
delimiter ;;
CREATE TRIGGER `after_update_xyj_index` AFTER UPDATE ON `xt_yh_jbxx` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.yhid,table_name='xt_yh_jbxx';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_yh_jbxx
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_xyj_index`;
delimiter ;;
CREATE TRIGGER `after_delete_xyj_index` AFTER DELETE ON `xt_yh_jbxx` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.yhid,table_name='xt_yh_jbxx';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_yh_js_index
-- ----------------------------
DROP TRIGGER IF EXISTS `after_update_xyji_index`;
delimiter ;;
CREATE TRIGGER `after_update_xyji_index` AFTER UPDATE ON `xt_yh_js_index` FOR EACH ROW BEGIN 
        insert into table_event_log set event=2,target_id=old.id,table_name='xt_yh_js_index';
END
;;
delimiter ;

-- ----------------------------
-- Triggers structure for table xt_yh_js_index
-- ----------------------------
DROP TRIGGER IF EXISTS `after_delete_xyji_index`;
delimiter ;;
CREATE TRIGGER `after_delete_xyji_index` AFTER DELETE ON `xt_yh_js_index` FOR EACH ROW BEGIN 
        insert into table_event_log set event=3,target_id=old.id,table_name='xt_yh_js_index';
END
;;
delimiter ;

SET FOREIGN_KEY_CHECKS = 1;
