JuanDeLemos

Configuring CNC

Oct 4th, 2016
22,980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. CREATE DATABASE mirai;
  2.  
  3. CREATE TABLE `history` (
  4. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  5. `user_id` int(10) unsigned NOT NULL,
  6. `time_sent` int(10) unsigned NOT NULL,
  7. `duration` int(10) unsigned NOT NULL,
  8. `command` text NOT NULL,
  9. `max_bots` int(11) DEFAULT '-1',
  10. PRIMARY KEY (`id`),
  11. KEY `user_id` (`user_id`)
  12. );
  13.  
  14. CREATE TABLE `users` (
  15. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  16. `username` varchar(32) NOT NULL,
  17. `password` varchar(32) NOT NULL,
  18. `duration_limit` int(10) unsigned DEFAULT NULL,
  19. `cooldown` int(10) unsigned NOT NULL,
  20. `wrc` int(10) unsigned DEFAULT NULL,
  21. `last_paid` int(10) unsigned NOT NULL,
  22. `max_bots` int(11) DEFAULT '-1',
  23. `admin` int(10) unsigned DEFAULT '0',
  24. `intvl` int(10) unsigned DEFAULT '30',
  25. `api_key` text,
  26. PRIMARY KEY (`id`),
  27. KEY `username` (`username`)
  28. );
  29.  
  30. CREATE TABLE `whitelist` (
  31. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  32. `prefix` varchar(16) DEFAULT NULL,
  33. `netmask` tinyint(3) unsigned DEFAULT NULL,
  34. PRIMARY KEY (`id`),
  35. KEY `prefix` (`prefix`)
  36. );
Add Comment
Please, Sign In to add comment