ban.sql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --
  2. -- Table structure for table `blacklist`
  3. --
  4. DROP TABLE IF EXISTS `blacklist`;
  5. CREATE TABLE `blacklist` (
  6. `ip` int(4) unsigned NOT NULL,
  7. PRIMARY KEY (`ip`)
  8. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  9. --
  10. -- Table structure for table `blocklist`
  11. --
  12. DROP TABLE IF EXISTS `blocklist`;
  13. CREATE TABLE `blocklist` (
  14. `ip` int(4) unsigned NOT NULL,
  15. `count` int(10) unsigned NOT NULL DEFAULT 1,
  16. PRIMARY KEY (`ip`)
  17. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  18. --
  19. -- Table structure for table `clients`
  20. --
  21. DROP TABLE IF EXISTS `clients`;
  22. CREATE TABLE `clients` (
  23. `token` varchar(255) NOT NULL DEFAULT '',
  24. `role` varchar(255) DEFAULT '',
  25. `description` varchar(255) DEFAULT NULL,
  26. PRIMARY KEY (`token`)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  28. --
  29. -- Table structure for table `delist`
  30. --
  31. DROP TABLE IF EXISTS `delist`;
  32. CREATE TABLE `delist` (
  33. `ip` int(4) unsigned NOT NULL,
  34. `count` int(10) unsigned NOT NULL DEFAULT 1,
  35. PRIMARY KEY (`ip`)
  36. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  37. --
  38. -- Table structure for table `list`
  39. --
  40. DROP TABLE IF EXISTS `list`;
  41. CREATE TABLE `list` (
  42. `ip` int(4) unsigned NOT NULL,
  43. PRIMARY KEY (`ip`)
  44. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  45. --
  46. -- Table structure for table `stats`
  47. --
  48. DROP TABLE IF EXISTS `stats`;
  49. CREATE TABLE `stats` (
  50. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  51. `time` datetime DEFAULT current_timestamp(),
  52. `clientip` int(4) unsigned NOT NULL,
  53. `ip` int(4) unsigned NOT NULL,
  54. `action` varchar(16) DEFAULT 'set',
  55. `token` varchar(255) NOT NULL,
  56. PRIMARY KEY (`id`),
  57. KEY `ip` (`ip`)
  58. ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4;
  59. --
  60. -- Table structure for table `whitelist`
  61. --
  62. DROP TABLE IF EXISTS `whitelist`;
  63. CREATE TABLE `whitelist` (
  64. `ip` int(4) unsigned NOT NULL,
  65. PRIMARY KEY (`ip`)
  66. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;