SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

--
-- Table structure for table `ne_info`
--
DROP TABLE IF EXISTS `ne_info`;
CREATE TABLE `ne_info` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '网元类型',
  `ne_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '网元ID',
  `rm_uid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '网元资源唯一标识',
  `ne_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '网元名称',
  `ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '网元服务IP',
  `port` int DEFAULT '0' COMMENT '端口',
  `pv_flag` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'PNF' COMMENT '网元虚拟化标识 物理PNF 虚拟VNF',
  `province` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'AreaNet' COMMENT '省份地域',
  `vendor_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '-' COMMENT '厂商名称',
  `dn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '-' COMMENT '网络标识',
  `ne_address` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'MAC地址',
  `host_ids` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '网元主机ID组 数据格式(ssh,telnet) UDM(ssh,telnet,redis) UPF(ssh,telnet,telnet)',
  `status` int DEFAULT '0' COMMENT '网元状态 0离线 1在线 2配置待下发 3备用模式',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '备注',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` bigint DEFAULT '0' COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` bigint DEFAULT '0' COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `ux_netype_neid` (`ne_type`,`ne_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='网元_基础信息表 关联对应版本、授权、主机';

	-- 初始数据对应网元
INSERT INTO `ne_info` VALUES (1, 'OMC', '001', '4400HXOMC001', 'OMC_001', '127.0.0.10', 33080, 'PNF', 'AreaNet', '-', '-', '-', '1,2', 0, '', 'system', 1713928436971, '', 0);
INSERT INTO `ne_info` VALUES (2, 'IMS', '001', '4400HXIMS001', 'IMS_001', '127.0.0.1', 33030, 'PNF', 'AreaNet', '-', '-', '-', '3,4', 0, '', 'system', 1713928436971, '', 0);
INSERT INTO `ne_info` VALUES (3, 'AMF', '001', '4400HXAMF001', 'AMF_001', '127.0.0.9', 33030, 'PNF', 'AreaNet', '-', '-', '', '5,6', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (4, 'AUSF', '001', '4400HXAUSF001', 'AUSF_001', '127.0.0.4', 33030, 'PNF', 'AreaNet', '-', '-', '', '7,8', 0, '', 'system', 1713928436971, '', 0);
INSERT INTO `ne_info` VALUES (5, 'UDM', '001', '4400HXUDM001', 'UDM_001', '127.0.0.5', 33030, 'PNF', 'AreaNet', '-', '-', '-', '9,10,11', 0, '', 'system', 1713928436971, '', 0);
INSERT INTO `ne_info` VALUES (6, 'SMF', '001', '4400HXSMF001', 'SMF_001', '127.0.0.6', 33030, 'PNF', 'AreaNet', '-', '-', '-', '12,13', 0, '', 'system', 1713928436971, '', 0);
INSERT INTO `ne_info` VALUES (7, 'PCF', '001', '4400HXPCF001', 'PCF_001', '127.0.0.7', 33030, 'PNF', 'AreaNet', '-', '-', '-', '14,15', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (8, 'NSSF', '001', '4400HXNSSF001', 'NSSF_001', '127.0.0.170', 33030, 'PNF', 'AreaNet', '-', '-', '-', '16,17', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (9, 'NRF', '001', '4400HXNRF001', 'NRF_001', '127.0.0.180', 33030, 'PNF', 'AreaNet', '-', '-', '-', '18,19', 0, '', 'system', 1713928436971, '', 0);
INSERT INTO `ne_info` VALUES (10, 'UPF', '001', '4400HXUPF001', 'UPF_001', '127.0.0.8', 33030, 'PNF', 'AreaNet', '-', '-', '', '20,21,22', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (11, 'LMF', '001', '4400HXLMF001', 'LMF_001', '127.0.0.200', 33030, 'PNF', 'AreaNet', '-', '-', '-', '23,24', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (12, 'NEF', '001', '4400HXNEF001', 'NEF_001', '127.0.0.210', 33030, 'PNF', 'AreaNet', '-', '-', '-', '25,26', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (13, 'MME', '001', '4400HXMME001', 'MME_001', '127.0.0.220', 33030, 'PNF', 'AreaNet', '-', '-', '', '27,28', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (14, 'N3IWF', '001', '4400HXN3IWF001', 'N3IWF_001', '127.0.0.230', 33030, 'PNF', 'AreaNet', '-', '-', '', '29,30', 0, '', 'system', 1713928436971, '', 0);
-- INSERT INTO `ne_info` VALUES (15, 'SMSC', '001', '4400HXSMSC001', 'SMSC_001', '127.0.0.240', 33030, 'PNF', 'AreaNet', '-', '-', '', '31,32', 0, '', 'system', 1713928436971, '', 0);

SET FOREIGN_KEY_CHECKS=1;

-- Dump completed on 2025-02-14 15:26:56
