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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. `name` 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. `registered` boolean NOT NULL DEFAULT false,
  39. `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  40. PRIMARY KEY (`id`)
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;