From 52f1d017fdf627deb64b47e45b70d39694dfd5f1 Mon Sep 17 00:00:00 2001 From: FGHRSH Date: Sat, 29 Oct 2022 15:29:58 +0800 Subject: [PATCH] update blacklist table --- tools/wxwclub.sql | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/wxwclub.sql b/tools/wxwclub.sql index ddf8141..82da304 100644 --- a/tools/wxwclub.sql +++ b/tools/wxwclub.sql @@ -100,7 +100,14 @@ CREATE TABLE `queues` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; CREATE TABLE `blacklist` ( + `id` int NOT NULL AUTO_INCREMENT, `target` varchar(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, - `timestamp` int DEFAULT NULL, - PRIMARY KEY (`target`) + `create` int DEFAULT NULL, + `timestamp` int NOT NULL DEFAULT '0', + `inuse` tinyint NOT NULL DEFAULT '0', + `retry` smallint NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + UNIQUE KEY `target` (`target`), + KEY `timestamp` (`timestamp`), + KEY `inuse` (`inuse`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; \ No newline at end of file