style: 数据库脚本变更

This commit is contained in:
TsMask
2024-05-11 15:58:19 +08:00
parent a54e357bd5
commit d547914ab5
41 changed files with 758 additions and 1348 deletions

View File

@@ -23,18 +23,18 @@ DROP TABLE IF EXISTS `monitor_base`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_base` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
`cpu` float DEFAULT 0 COMMENT 'cpu使用率',
`load_usage` float DEFAULT 0 COMMENT 'cpu平均使用率',
`cpu_load1` float DEFAULT 0 COMMENT 'cpu使用1分钟',
`cpu_load5` float DEFAULT 0 COMMENT 'cpu使用5分钟',
`cpu_load15` float DEFAULT 0 COMMENT 'cpu使用15分钟',
`memory` float DEFAULT 0 COMMENT '内存使用率',
`ne_type` varchar(32) DEFAULT NULL COMMENT '网元类型',
`ne_id` varchar(32) DEFAULT NULL COMMENT '网元ID',
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`create_time` bigint DEFAULT '0' COMMENT '创建时间',
`cpu` float DEFAULT '0' COMMENT 'cpu使用率',
`load_usage` float DEFAULT '0' COMMENT 'cpu平均使用率',
`cpu_load1` float DEFAULT '0' COMMENT 'cpu使用1分钟',
`cpu_load5` float DEFAULT '0' COMMENT 'cpu使用5分钟',
`cpu_load15` float DEFAULT '0' COMMENT 'cpu使用15分钟',
`memory` float DEFAULT '0' COMMENT '内存使用率',
`ne_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '网元类型',
`ne_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '网元ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=108643 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='监控_基本信息';
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='监控_基本信息';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;