From 004a59a7983f482b9f0307578f7910b1e7641dd5 Mon Sep 17 00:00:00 2001 From: Hankin Date: Thu, 15 Aug 2024 14:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B0=81=E7=A6=81=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1723701212_create_banlist_table.up.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 1723701212_create_banlist_table.up.sql diff --git a/1723701212_create_banlist_table.up.sql b/1723701212_create_banlist_table.up.sql new file mode 100644 index 0000000..4003675 --- /dev/null +++ b/1723701212_create_banlist_table.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE `ufutx_banlist` ( + `id` bigint(20) PRIMARY KEY NOT NULL AUTO_INCREMENT, + `type` ENUM('user', 'ip', 'device') NOT NULL COMMENT "类型", + `value` varchar(255) NOT NULL COMMENT '对应值', + `expired_at` timestamp NULL DEFAULT NULL COMMENT "过期时间", + `remark` text NULL DEFAULT NULL COMMENT '备注', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT=' 封禁记录'; \ No newline at end of file