From 2e459113cbd86740cf6b0f363689d7c4b2bc333c Mon Sep 17 00:00:00 2001 From: nagocoler Date: Tue, 5 Dec 2023 16:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitor.sql | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 monitor.sql 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;