The easy to use and full featured Irc Bot everyone is talking about!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CreateTable.sql 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  2. SET time_zone = "+00:00";
  3. --
  4. -- Table structure for table `servers`
  5. --
  6. CREATE TABLE IF NOT EXISTS `servers` (
  7. `id` int(11) NOT NULL AUTO_INCREMENT,
  8. `Name` varchar(50) NOT NULL,
  9. PRIMARY KEY (`id`)
  10. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  11. --
  12. -- Table structure for table `channels`
  13. --
  14. CREATE TABLE IF NOT EXISTS `channels` (
  15. `id` int(11) NOT NULL AUTO_INCREMENT,
  16. `server_id` int(11) NOT NULL,
  17. `requester_id` varchar(50) NOT NULL,
  18. PRIMARY KEY (`id`)
  19. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  20. --
  21. -- Table structure for table `nicks`
  22. --
  23. CREATE TABLE IF NOT EXISTS `nicks` (
  24. `id` int(11) NOT NULL AUTO_INCREMENT,
  25. `server_id` int(11) NOT NULL,
  26. `nickname` varchar(50) NOT NULL,
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  29. --
  30. -- Table structure for table `nickinfo`
  31. --
  32. CREATE TABLE IF NOT EXISTS `nickinfo` (
  33. `id` int(11) NOT NULL AUTO_INCREMENT,
  34. `nick_id` int(11) NOT NULL,
  35. `username` varchar(50) NULL,
  36. `realname` varchar(50) NULL,
  37. `host` varchar(100) NULL,
  38. `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  39. PRIMARY KEY (`id`)
  40. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;