ban.sql 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 `clients`
  11. --
  12. DROP TABLE IF EXISTS `clients`;
  13. CREATE TABLE `clients` (
  14. `token` varchar(255) NOT NULL DEFAULT '',
  15. `role` varchar(255) DEFAULT '',
  16. `description` varchar(255) DEFAULT NULL,
  17. PRIMARY KEY (`token`)
  18. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  19. --
  20. -- Table structure for table `delist`
  21. --
  22. DROP TABLE IF EXISTS `delist`;
  23. CREATE TABLE `delist` (
  24. `ip` int(4) unsigned NOT NULL,
  25. `count` int(10) unsigned NOT NULL DEFAULT 1,
  26. PRIMARY KEY (`ip`)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  28. --
  29. -- Table structure for table `list`
  30. --
  31. DROP TABLE IF EXISTS `list`;
  32. CREATE TABLE `list` (
  33. `ip` int(4) unsigned NOT NULL,
  34. PRIMARY KEY (`ip`)
  35. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  36. --
  37. -- Table structure for table `stats`
  38. --
  39. DROP TABLE IF EXISTS `stats`;
  40. CREATE TABLE `stats` (
  41. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  42. `time` datetime DEFAULT current_timestamp(),
  43. `ip` int(4) unsigned NOT NULL,
  44. `action` varchar(16) DEFAULT 'set',
  45. `token` varchar(255) NOT NULL,
  46. PRIMARY KEY (`id`),
  47. KEY `ip` (`ip`)
  48. ) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8mb4;
  49. --
  50. -- Table structure for table `whitelist`
  51. --
  52. DROP TABLE IF EXISTS `whitelist`;
  53. CREATE TABLE `whitelist` (
  54. `ip` int(4) unsigned NOT NULL,
  55. PRIMARY KEY (`ip`)
  56. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;