From 01ce06b4dd86939c8408f2836bede9a05416ae9a Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Wed, 26 Jul 2023 09:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.0.0=E3=80=91=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E4=B8=BB=E9=A1=B9=E7=9B=AE=E7=9A=84=E4=B8=9A=E5=8A=A1sql?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...V8.0.0_20230721_1921__add_business_log.sql | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/main/resources/db/migration/mysql/V8.0.0_20230721_1921__add_business_log.sql diff --git a/src/main/resources/db/migration/mysql/V8.0.0_20230721_1921__add_business_log.sql b/src/main/resources/db/migration/mysql/V8.0.0_20230721_1921__add_business_log.sql deleted file mode 100644 index 2de24081..00000000 --- a/src/main/resources/db/migration/mysql/V8.0.0_20230721_1921__add_business_log.sql +++ /dev/null @@ -1,47 +0,0 @@ -CREATE TABLE `sys_log_api` ( - `log_id` bigint NOT NULL COMMENT '主键', - `log_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '日志记录的内容', - `app_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '服务名称,一般为spring.application.name', - `request_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '当前用户请求的url', - `request_params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT 'http或方法的请求参数体', - `request_result` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT 'http或方法的请求结果', - `server_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '当前服务器的ip', - `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '客户端的ip', - `user_id` bigint NULL DEFAULT NULL COMMENT '用户id', - `http_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '请求http方法', - `client_browser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '客户浏览器标识', - `client_os` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '客户操作系统', - `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', - `create_user` bigint NULL DEFAULT NULL COMMENT '创建人', - `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', - `update_user` bigint NULL DEFAULT NULL COMMENT '修改人', - PRIMARY KEY (`log_id`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'API接口日志记录' ROW_FORMAT = Dynamic; - -CREATE TABLE `sys_log_business` ( - `business_log_id` bigint NOT NULL COMMENT '主键', - `log_type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '日志的业务分类的编码', - `log_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志的标题,摘要信息', - `request_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '当前用户请求的url', - `http_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '请求http方法', - `client_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '客户端的ip', - `user_id` bigint NULL DEFAULT NULL COMMENT '业务操作的用户id', - `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', - `create_user` bigint NULL DEFAULT NULL COMMENT '创建人', - `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', - `update_user` bigint NULL DEFAULT NULL COMMENT '修改人', - PRIMARY KEY (`business_log_id`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '业务日志记录' ROW_FORMAT = Dynamic; - -CREATE TABLE `sys_log_business_content` ( - `content_id` bigint NOT NULL COMMENT '主键', - `business_log_id` bigint NULL DEFAULT NULL COMMENT '对应主表主键id', - `log_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '日志记录的内容', - `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', - `create_user` bigint NULL DEFAULT NULL COMMENT '创建人', - `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', - `update_user` bigint NULL DEFAULT NULL COMMENT '修改人', - PRIMARY KEY (`content_id`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '业务日志记录' ROW_FORMAT = Dynamic; - -DROP TABLE `sys_log`;