added ratelimit

This commit is contained in:
Go Johansson 2022-12-25 15:58:49 +01:00
parent 2438394225
commit 751a97eda9
2 changed files with 15 additions and 0 deletions

View File

@ -24,3 +24,12 @@ CREATE TABLE `blacklist` (
`time` int(15) DEFAULT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE `ratelimit`
(
`id` int(20) unsigned NOT NULL auto_increment,
`iphash` char(40) DEFAULT NULL,
`files` int(15) default NULL,
`time` int(15) DEFAULT NULL,
PRIMARY KEY (`id`)
);

View File

@ -28,4 +28,10 @@ CREATE TABLE `ratelimit` (
, `time` integer default NULL
, `files` integer default NULL
);
CREATE TABLE `ratelimit`(
`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT
, `iphash` char(40) default NULL
, `files` integer default NULL
, `time` integer default NULL
);
END TRANSACTION;