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