--
-- Table structure for table `ne_state`
--
DROP TABLE IF EXISTS `ne_state`;
CREATE TABLE `ne_state` (
  `id` int NOT NULL AUTO_INCREMENT,
  `core_uid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '核心网唯一标识',
  `ne_uid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '网元唯一标识',
  `ne_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '网元类型',
  `version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '版本',
  `capability` bigint DEFAULT '0' COMMENT '用户容量',
  `serial_num` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '序列号',
  `expiry_date` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '许可证到期日期',
  `sys_cpu_usage` float DEFAULT '0' COMMENT 'cpu使用率-sys',
  `sys_mem_usage` float DEFAULT '0' COMMENT '内存使用率-sys',
  `sys_disk_usage` float DEFAULT '0' COMMENT '磁盘使用率-sys',
  `nf_cpu_usage` float DEFAULT '0' COMMENT 'cpu使用率-nf',
  `nf_mem_used` bigint DEFAULT '0' COMMENT '内存使用KB-nf',
  `create_time` bigint DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_state_uid_type` (`core_uid`,`ne_uid`,`ne_type`) USING BTREE COMMENT '索引-核心网_资源标识_类型'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='网元_状态记录内存/CPU/磁盘';
