diff --git a/monitor.sql b/monitor.sql new file mode 100644 index 0000000..0f20a5f --- /dev/null +++ b/monitor.sql @@ -0,0 +1,81 @@ +/* + Navicat Premium Data Transfer + + Source Server : 本地数据库 + Source Server Type : MySQL + Source Server Version : 80200 (8.2.0) + Source Host : localhost:3306 + Source Schema : monitor + + Target Server Type : MySQL + Target Server Version : 80200 (8.2.0) + File Encoding : 65001 + + Date: 05/12/2023 16:27:48 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for db_account +-- ---------------------------- +DROP TABLE IF EXISTS `db_account`; +CREATE TABLE `db_account` ( + `id` int NOT NULL AUTO_INCREMENT, + `username` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + `role` varchar(255) DEFAULT NULL, + `register_time` datetime DEFAULT NULL, + `clients` json DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `unique_email` (`email`), + UNIQUE KEY `unique_username` (`username`) +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Table structure for db_client +-- ---------------------------- +DROP TABLE IF EXISTS `db_client`; +CREATE TABLE `db_client` ( + `id` int NOT NULL, + `name` varchar(255) DEFAULT NULL, + `token` varchar(255) DEFAULT NULL, + `node` varchar(255) DEFAULT NULL, + `location` varchar(255) DEFAULT NULL, + `register_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Table structure for db_client_detail +-- ---------------------------- +DROP TABLE IF EXISTS `db_client_detail`; +CREATE TABLE `db_client_detail` ( + `id` int NOT NULL, + `os_arch` varchar(255) DEFAULT NULL, + `os_name` varchar(255) DEFAULT NULL, + `os_version` varchar(255) DEFAULT NULL, + `os_bit` int DEFAULT NULL, + `cpu_name` varchar(255) DEFAULT NULL, + `cpu_core` int DEFAULT NULL, + `memory` double DEFAULT NULL, + `disk` double DEFAULT NULL, + `ip` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Table structure for db_client_ssh +-- ---------------------------- +DROP TABLE IF EXISTS `db_client_ssh`; +CREATE TABLE `db_client_ssh` ( + `id` int NOT NULL, + `port` int DEFAULT NULL, + `username` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +SET FOREIGN_KEY_CHECKS = 1;