From b47c143b79740baad4e08a742f34537e60e33151 Mon Sep 17 00:00:00 2001 From: Annika <56906084+AnnikaCodes@users.noreply.github.com> Date: Sun, 19 Jul 2020 15:38:12 -0700 Subject: [PATCH] Add database schema for loginthrottle table (#1561) Co-authored-by: Kirk Scheibelhut Co-authored-by: Kirk Scheibelhut --- lib/ntbb-loginthrottle.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/ntbb-loginthrottle.sql diff --git a/lib/ntbb-loginthrottle.sql b/lib/ntbb-loginthrottle.sql new file mode 100644 index 000000000..657925176 --- /dev/null +++ b/lib/ntbb-loginthrottle.sql @@ -0,0 +1,9 @@ +CREATE TABLE `ntbb_loginthrottle` ( + `ip` varchar(63) COLLATE utf8mb4_bin NOT NULL, + `count` int(11) NOT NULL, + `lastuserid` varchar(63) COLLATE utf8mb4_bin NOT NULL, + `time` int(11) NOT NULL, + PRIMARY KEY (`ip`), + KEY `count` (`count`), + KEY `time` (`time`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;