This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/db/init/galaxy_stru_ui_mysql.sql

387 lines
21 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*Table structure for table ui -from ntc ui */
drop table if exists ui_asn_ip_cfg;
drop table if exists ui_sys_dict_info;
drop table if exists ui_code_app_dic;
drop table if exists ui_request_num_statistics;
drop table if exists ui_sys_data_dictionary_item;
drop table if exists ui_code_behavior_type_dic;
drop table if exists ui_code_browser_type_dic;
drop table if exists ui_code_os_type_dic;
drop table if exists ui_code_protocol_type_dic;
drop table if exists ui_code_service_type_dic;
drop table if exists ui_code_web_service_dic;
drop table if exists ui_service_dict_info;
drop table if exists ui_request_info;
drop table if exists ui_task_info;
drop table if exists ui_config_group_info;
drop table if exists ui_website_domain_topic;
drop table if exists ui_http_url_cfg;
CREATE TABLE `ui_asn_ip_cfg` (
`cfg_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增',
`cfg_desc` varchar(128) DEFAULT NULL,
`ip_type` int(11) NOT NULL COMMENT 'IPV4=4,IPV6=6',
`direction` int(11) NOT NULL COMMENT '0双向1单向默认缺省为双向。',
`protocol` int(11) NOT NULL COMMENT '6表示tcp,17表示udp0表示任意',
`protocol_id` int(11) NOT NULL COMMENT '非0时maat规范需写入通用IP配置表与通用协议类型配置表 此表固定写0',
`action` int(11) NOT NULL COMMENT '1:阻断2监测 5 FD 白名单6监测白名单7: FD 监测都白名单应与业务ID所代表的逻辑相匹配8-灰名单',
`is_valid` int(11) NOT NULL COMMENT '0无效1有效-1删除;1 未审核时配置可删除;2 审核通过此字段置1;3 取消审核通过此字段置0',
`is_audit` int(11) NOT NULL COMMENT '0未审核1审核通过2审核未通过3取消审核通过;1 审核未通过,配置可修改;2 审核通过,配置不可删除,只能取消审核通过',
`creator_id` int(11) NOT NULL COMMENT '取自sys_user.id',
`create_time` datetime NOT NULL,
`editor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
`edit_time` datetime DEFAULT NULL,
`auditor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
`audit_time` datetime DEFAULT NULL,
`service_id` int(11) NOT NULL COMMENT '参考系统业务类型管理表',
`request_id` int(11) NOT NULL COMMENT '取自request_info.id',
`region_id` int(11) NOT NULL COMMENT '取自服务接口返回的maat配置的域id配置初始入库时获取',
`is_area_effective` int(11) NOT NULL COMMENT '0否1是',
`classify` varchar(128) DEFAULT NULL COMMENT '分类id多个用英文逗号分隔',
`attribute` varchar(128) DEFAULT NULL COMMENT '性质id多个用英文逗号分隔',
`lable` varchar(128) DEFAULT NULL COMMENT '标签id,多个用英文逗号分隔',
`area_effective_ids` varchar(1024) DEFAULT NULL COMMENT '多个英文逗号分隔',
`function_id` int(11) DEFAULT NULL,
`cfg_region_code` int(11) DEFAULT NULL,
`cfg_type` varchar(64) DEFAULT NULL,
`ip_pattern` int(11) NOT NULL,
`src_ip_address` varchar(128) NOT NULL,
`port_pattern` int(11) NOT NULL,
`src_port` varchar(16) NOT NULL,
`dest_ip_address` varchar(128) DEFAULT NULL,
`dest_port` varchar(16) DEFAULT NULL,
`ratelimit` varchar(10) DEFAULT NULL,
`asn_ip_group` int(11) DEFAULT NULL,
`user_region1` varchar(1024) DEFAULT '' COMMENT '预留自定义域1',
`user_region2` varchar(1024) DEFAULT '' COMMENT '预留自定义域2',
`user_region3` varchar(1024) DEFAULT '' COMMENT '预留自定义域3',
`user_region4` varchar(1024) DEFAULT '' COMMENT '预留自定义域4',
`user_region5` varchar(1024) DEFAULT '' COMMENT '预留自定义域5',
PRIMARY KEY (`cfg_id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/asn_ip_cfg';
CREATE TABLE `ui_sys_dict_info` (
`sys_dict_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '字典ID',
`item_type` int(11) DEFAULT NULL COMMENT '数据类型\r\n1地域\r\n2运营商\r\n3app强特征作用域item_code为service_iditem_value为作用域描述\r\n',
`item_code` varchar(64) DEFAULT NULL COMMENT '编码',
`item_value` varchar(64) DEFAULT NULL COMMENT '英文用于界面国际化配置文件的code',
`item_desc` varchar(128) DEFAULT NULL COMMENT '描述信息',
`parent_id` int(11) DEFAULT NULL COMMENT '父ID 无父属性默认填0',
`is_leaf` int(11) DEFAULT NULL COMMENT '是否叶子节点0-否 1-是只有一级填0',
`level_no` int(11) DEFAULT NULL,
`is_valid` int(11) DEFAULT NULL COMMENT '有效标志 1-有效 0-无效',
`creator_id` int(11) DEFAULT NULL COMMENT '创建人员 取自sys_user.id',
`create_time` datetime DEFAULT NULL COMMENT '配置时间',
`editor_id` int(11) DEFAULT NULL COMMENT '修改人员取自sys_user.id',
`edit_time` datetime DEFAULT NULL COMMENT '修改时间',
`is_initianlize` int(11) NOT NULL DEFAULT 0 COMMENT '是否是初始化数据1是0否',
PRIMARY KEY (`sys_dict_id`)
) ENGINE=FEDERATED AUTO_INCREMENT=448 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/sys_dict_info';
CREATE TABLE `ui_code_app_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_name` varchar(255) CHARACTER SET utf8mb4 DEFAULT '',
`app_name_zh` varchar(255) CHARACTER SET utf8mb4 DEFAULT '',
`view_code` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '应用编码',
`icon` varchar(255) DEFAULT '',
`behavior` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '行为细分',
`core_app` int(11) DEFAULT NULL COMMENT '是否是核心应用10',
`app_service_id` int(10) unsigned zerofill DEFAULT NULL COMMENT '业务类型编号',
`app_service` varchar(255) CHARACTER SET utf8mb4 DEFAULT '',
`lib` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT 'lib类别',
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_app_dic';
drop table if exists ui_cfg_num_statistics;
CREATE TABLE `ui_cfg_num_statistics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`function_id` int(11) NOT NULL,
`service_id` int(11) NOT NULL,
`action` int(11) NOT NULL,
`cfg_state` int(11) NOT NULL COMMENT '0未审核1已审核2审核未通过3审核取消-1删除',
`compile_id` int(11) DEFAULT 0,
`statistic_time` datetime DEFAULT NULL COMMENT '统计时间',
`audit_time` datetime DEFAULT null COMMENT '审核时间',
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/cfg_num_statistics';
CREATE TABLE `ui_request_num_statistics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`function_id` int(11) NOT NULL,
`service_id` int(11) NOT NULL,
`request_id` int(11) NOT NULL COMMENT '来函信息',
`statistic_time` datetime DEFAULT NULL COMMENT '统计时间',
`compile_id` int(11) DEFAULT 0,
PRIMARY KEY (`id`)
)ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/request_num_statistics';
CREATE TABLE `ui_sys_data_dictionary_item` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`item_code` varchar(128) NOT NULL COMMENT '编码数据表中存储的值如0、1、2、3',
`item_value` varchar(256) NOT NULL COMMENT '编码对应的值(页面上展现的具体意义)',
`item_desc` varchar(256) DEFAULT NULL COMMENT '编码描述信息',
`item_sort` int(2) NOT NULL COMMENT '排序序号',
`status` int(11) DEFAULT 1 COMMENT '该条数据是否可用1可用 0禁用',
`type` int(11) DEFAULT 1 COMMENT '该条记录页面是否可维护1可维护 0不可维护',
`dictionary_id` int(11) DEFAULT NULL COMMENT '关联数据字典外键',
PRIMARY KEY (`id`)
)ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/sys_data_dictionary_item';
CREATE TABLE `ui_code_behavior_type_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`behavior_type` varchar(255) DEFAULT NULL,
`view_code` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_behavior_type_dic';
CREATE TABLE `ui_code_browser_type_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`browser_type` varchar(255) DEFAULT NULL,
`view_code` varchar(255) DEFAULT NULL,
`icon` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_browser_type_dic';
CREATE TABLE `ui_code_os_type_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`os_type` varchar(255) DEFAULT NULL,
`view_code` varchar(255) DEFAULT NULL,
`icon` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_os_type_dic';
CREATE TABLE `ui_code_protocol_type_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`protocol_type` varchar(255) DEFAULT '',
`view_code` varchar(255) DEFAULT NULL,
`service_id` int(11) DEFAULT NULL,
`remarks` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_protocol_type_dic';
CREATE TABLE `ui_code_service_type_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`service_type` varchar(255) DEFAULT '' COMMENT '业务类型',
`view_code` varchar(255) DEFAULT NULL COMMENT '界面编码',
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_service_type_dic';
CREATE TABLE `ui_code_web_service_dic` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序号',
`website` varchar(255) DEFAULT '',
`domain_name` varchar(255) DEFAULT '' COMMENT '域名',
`view_code` varchar(255) DEFAULT '',
`icon` varchar(255) DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/code_web_service_dic';
CREATE TABLE `ui_service_dict_info` (
`service_dict_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '字典ID',
`item_type` int(11) DEFAULT NULL COMMENT '数据类型\r\n1分类\r\n2性质\r\n3标签\r\n',
`item_code` varchar(64) DEFAULT NULL COMMENT '编码',
`item_value` varchar(64) DEFAULT NULL COMMENT '编码对应值',
`item_desc` varchar(128) DEFAULT NULL COMMENT '描述信息',
`parent_id` int(11) DEFAULT NULL COMMENT '父ID无父属性默认填0',
`is_leaf` int(11) DEFAULT NULL COMMENT '是否叶子节点0-否 1-是只有一级填0',
`level_no` int(11) DEFAULT NULL,
`is_valid` int(11) DEFAULT NULL COMMENT '有效标志1-有效 0-无效',
`creator_id` int(11) DEFAULT NULL COMMENT '创建人员取自sys_user.id',
`create_time` datetime DEFAULT NULL COMMENT '配置时间',
`editor_id` int(11) DEFAULT NULL COMMENT '修改人员取自sys_user.id',
`edit_time` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`service_dict_id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/service_dict_info';
CREATE TABLE `ui_request_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '配置ID',
`request_number` varchar(512) DEFAULT NULL COMMENT 'request_number字段与request_title互换使用request_number当来函标题使用',
`request_org` varchar(128) NOT NULL COMMENT '来函单位',
`request_time` date NOT NULL COMMENT '来函时间',
`request_title` varchar(512) NOT NULL COMMENT 'request_number字段与request_title互换使用request_title当来函函号使用',
`request_content` varchar(4000) NOT NULL COMMENT '来函内容',
`is_valid` int(11) NOT NULL COMMENT '0无效1有效-1删除',
`is_audit` int(11) NOT NULL COMMENT '是否审核',
`creator_id` int(11) NOT NULL COMMENT '创建人员',
`create_time` date NOT NULL COMMENT '配置时间',
`editor_id` int(11) DEFAULT NULL COMMENT '修改人员',
`edit_time` date DEFAULT NULL COMMENT '修改时间',
`auditor_id` int(11) DEFAULT NULL COMMENT '审核人员',
`audit_time` date DEFAULT NULL COMMENT '审核时间',
`task_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `request_info_request_number` (`request_number`) USING BTREE
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/request_info';
CREATE TABLE `ui_task_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '配置ID',
`task_name` varchar(64) NOT NULL,
`task_org` varchar(128) NOT NULL,
`task_time` date NOT NULL,
`task_desc` varchar(512) DEFAULT NULL,
`is_valid` int(11) NOT NULL,
`is_audit` int(11) NOT NULL,
`creator_id` int(11) NOT NULL,
`create_time` date NOT NULL,
`editor_id` int(11) DEFAULT NULL,
`edit_time` date DEFAULT NULL,
`auditor_id` int(11) DEFAULT NULL,
`audit_time` date DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `task_info_task_name` (`task_name`) USING BTREE
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/task_info';
CREATE TABLE `ui_config_group_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`group_id` bigint(20) NOT NULL,
`group_name` varchar(128) NOT NULL,
`is_issued` int(11) NOT NULL COMMENT '0否1是',
`insert_time` datetime NOT NULL,
`update_time` datetime DEFAULT NULL,
`group_type` int(11) DEFAULT NULL COMMENT '1:协议2内容3区域 ,4 asn',
`compile_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/config_group_info';
CREATE TABLE `ui_website_domain_topic` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`website_service_id` bigint(20) DEFAULT NULL COMMENT '网站服务Id',
`domain` varchar(200) DEFAULT NULL COMMENT '域名',
`topic_id` bigint(20) DEFAULT NULL COMMENT '主题Id',
`create_time` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(),
`is_valid` int(1) DEFAULT 1,
`icon` varchar(200) DEFAULT NULL COMMENT '图标',
`desc` varchar(400) DEFAULT NULL COMMENT '描述信息',
`creator_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/website_domain_topic';
/*Table structure for table `ui_http_url_cfg` ,for keyword to url from url whitelist */
CREATE TABLE `ui_http_url_cfg` (
`cfg_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增',
`cfg_desc` varchar(128) DEFAULT NULL,
`cfg_keywords` varchar(2048) NOT NULL,
`action` int(11) NOT NULL COMMENT '1:阻断2监测 5 FD 白名单6监测白名单7: FD 监测都白名单应与业务ID所代表的逻辑相匹配8-灰名单',
`is_valid` int(11) NOT NULL COMMENT '0无效1有效-1删除;1 未审核时配置可删除;2 审核通过此字段置1;3 取消审核通过此字段置0',
`is_audit` int(11) NOT NULL COMMENT '0未审核1审核通过2审核未通过3取消审核通过;1 审核未通过,配置可修改;2 审核通过,配置不可删除,只能取消审核通过',
`creator_id` int(11) NOT NULL COMMENT '取自sys_user.id',
`create_time` datetime NOT NULL,
`editor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
`edit_time` datetime DEFAULT NULL,
`auditor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
`audit_time` datetime DEFAULT NULL,
`service_id` int(11) NOT NULL COMMENT '参考系统业务类型管理表',
`request_id` int(11) NOT NULL COMMENT '取自request_info.id',
`compile_id` int(11) NOT NULL COMMENT '取自服务接口返回的maat配置的编译id配置初始入库时获取。',
`is_area_effective` int(11) NOT NULL COMMENT '0否1是',
`classify` varchar(128) DEFAULT NULL COMMENT '分类id多个用英文逗号分隔',
`attribute` varchar(128) DEFAULT NULL COMMENT '性质id多个用英文逗号分隔',
`lable` varchar(128) DEFAULT NULL COMMENT '标签id,多个用英文逗号分隔',
`expr_type` int(11) NOT NULL COMMENT '0无表达式1与表达式',
`match_method` int(11) NOT NULL COMMENT 'expr_type:0时有意义其它情况必须置0。0子串匹配1右匹配2左匹配3完全匹配',
`is_hexbin` int(11) NOT NULL COMMENT '默认为0:大小写不敏感且非HEX;1:HEX格式二进制;2:大小写敏感且非HEX',
`area_effective_ids` varchar(1024) DEFAULT NULL COMMENT '多个英文逗号分隔',
`function_id` int(11) NOT NULL,
`cfg_region_code` int(11) DEFAULT NULL,
`cfg_type` varchar(64) DEFAULT NULL,
`ratelimit` varchar(10) DEFAULT NULL COMMENT '限速比例,0到1之间',
`user_region1` varchar(1024) DEFAULT '' COMMENT '预留自定义域1',
`user_region2` varchar(1024) DEFAULT '' COMMENT '预留自定义域2',
`user_region3` varchar(1024) DEFAULT '' COMMENT '预留自定义域3',
`user_region4` varchar(1024) DEFAULT '' COMMENT '预留自定义域4',
`user_region5` varchar(1024) DEFAULT '' COMMENT '预留自定义域5',
PRIMARY KEY (`cfg_id`)
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/http_url_cfg';
DROP TABLE IF EXISTS `remote_nms_di_rule`;
CREATE TABLE `di_rule` (
`ID` bigint(20) NOT NULL AUTO_INCREMENT,
`dete `ServiceIndex` bigint(20) NULL DEFAULT NULL,
ction_info_id` bigint(20) NOT NULL,
`ServiceCode` bigint(20) NULL DEFAULT NULL,
`ServiceDesc` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`agedTime` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`ClientNum` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`RefluxPort` varchar(1024) 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(128) 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,
INDEX `index_DI_RULE_DETECTION_INFO_ID`(`detection_info_id`) USING BTREE
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.223:3306/nms/di_rule';
DROP TABLE IF EXISTS `ui_sys_device_info`;
CREATE TABLE `ui_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相同设备可对应多个运营商',
`link_id` int(11) NOT NULL COMMENT '链路号索引',
`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 COMMENT '0-未接入 1-接入 2-部分接入',
`create_time` datetime(0) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/sys_device_info';
;
DROP TABLE IF EXISTS `ui_sys_isp_info`;
CREATE TABLE `ui_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 '通信运营商编码',
`business_type_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务类型名称',
`business_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=FEDERATED AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 CONNECTION='mysql://root:111111@10.0.4.6:3306/ntc_db/sys_isp_info';
;