From 639d7d1707a87f2e57fd1bb998c4736bf0f9a522 Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Wed, 23 Nov 2022 10:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=94=A8=E6=88=B7=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E8=AE=B0=E5=BD=95=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dal/entity/UserConnectRecordDO.java | 84 ------------------- .../src/main/resources/sql/init-structure.sql | 19 ----- 2 files changed, 103 deletions(-) delete mode 100644 neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/dal/entity/UserConnectRecordDO.java diff --git a/neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/dal/entity/UserConnectRecordDO.java b/neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/dal/entity/UserConnectRecordDO.java deleted file mode 100644 index 70435504..00000000 --- a/neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/dal/entity/UserConnectRecordDO.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * Copyright (c) 2022 aoshiguchen - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package fun.asgc.neutrino.proxy.server.dal.entity; - -import fun.asgc.neutrino.core.db.annotation.Table; -import lombok.Data; -import lombok.ToString; - -import java.util.Date; - -/** - * - * @author: aoshiguchen - * @date: 2022/8/31 - */ -@ToString -@Data -@Table("user_connect_record") -public class UserConnectRecordDO { - private Integer id; - /** - * 服务端端口号 - */ - private Integer serverPort; - /** - * userIp - */ - private String userIp; - /** - * 客户端IP - */ - private String clientIp; - /** - * 客户端信息 - */ - private String clientLanInfo; - /** - * 用户ID - */ - private String userId; - /** - * licenseId - */ - private Integer licenseId; - /** - * licenseKey - */ - private String licenseKey; - /** - * writeBytes - */ - private Integer writeBytes; - /** - * readBytes - */ - private Integer readBytes; - /** - * type - */ - private Integer type; - /** - * 创建时间 - */ - private Date createTime; -} diff --git a/neutrino-proxy-server/src/main/resources/sql/init-structure.sql b/neutrino-proxy-server/src/main/resources/sql/init-structure.sql index 9a07b05e..424fc281 100644 --- a/neutrino-proxy-server/src/main/resources/sql/init-structure.sql +++ b/neutrino-proxy-server/src/main/resources/sql/init-structure.sql @@ -79,28 +79,9 @@ CREATE TABLE IF NOT EXISTS `client_connect_record` ( `ip` VARCHAR(50) NOT NULL, `license_id` INTEGER(20) NOT NULL, `license_key` VARCHAR(100) NOT NULL, - `write_bytes` INTEGER(20) DEFAULT NULL, - `read_bytes` INTEGER(20) DEFAULT NULL, `type` INTEGER(2) NOT NULL, `create_time` INTEGER(20) NOT NULL ); - -#用户连接记录表 -CREATE TABLE IF NOT EXISTS `user_connect_record` ( - `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - `server_port` INTEGER NOT NULL, - `user_ip` VARCHAR(50) NOT NULL, - `client_ip` VARCHAR(50) NOT NULL, - `client_lan_info` VARCHAR(50) NOT NULL, - `user_id` INTEGER NOT NULL, - `license_id` INTEGER(20) NOT NULL, - `license_key` VARCHAR(100) NOT NULL, - `write_bytes` INTEGER(20) DEFAULT NULL, - `read_bytes` INTEGER(20) DEFAULT NULL, - `type` INTEGER(2) NOT NULL, - `create_time` INTEGER(20) NOT NULL - ); - #############################调度管理相关表############################# #触发器信息表 CREATE TABLE IF NOT EXISTS `job_info` (