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 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  2. SET time_zone = "+00:00";
  3. --
  4. -- Table structure for table `channelinvites`
  5. --
  6. CREATE TABLE IF NOT EXISTS `channelinvites` (
  7. `id` int(11) NOT NULL AUTO_INCREMENT,
  8. `server_id` int(11) NOT NULL,
  9. `channel_id` int(11) NOT NULL,
  10. `requester_id` int(11) NOT NULL,
  11. `recipient_id` int(11) NOT NULL,
  12. `date_invited` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  13. PRIMARY KEY (`id`)
  14. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  15. --
  16. -- Table structure for table `channeljoins`
  17. --
  18. CREATE TABLE IF NOT EXISTS `channeljoins` (
  19. `id` int(11) NOT NULL AUTO_INCREMENT,
  20. `server_id` int(11) NOT NULL,
  21. `channel_id` int(11) NOT NULL,
  22. `nick_id` int(11) NOT NULL,
  23. `date_added` datetime NOT NULL,
  24. PRIMARY KEY (`id`)
  25. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  26. --
  27. -- Table structure for table `channelkicks`
  28. --
  29. CREATE TABLE IF NOT EXISTS `channelkicks` (
  30. `id` int(11) NOT NULL AUTO_INCREMENT,
  31. `server_id` int(11) NOT NULL,
  32. `channel_id` int(11) NOT NULL,
  33. `nick_id` int(11) NOT NULL,
  34. `kicked_nick_id` int(11) NOT NULL,
  35. `reason` varchar(500) NOT NULL,
  36. `date_added` datetime NOT NULL,
  37. PRIMARY KEY (`id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  39. --
  40. -- Table structure for table `channelparts`
  41. --
  42. CREATE TABLE IF NOT EXISTS `channelparts` (
  43. `id` int(11) NOT NULL AUTO_INCREMENT,
  44. `server_id` int(11) NOT NULL,
  45. `channel_id` int(11) NOT NULL,
  46. `nick_id` int(11) NOT NULL,
  47. `date_added` datetime NOT NULL,
  48. PRIMARY KEY (`id`)
  49. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  50. --
  51. -- Table structure for table `channelparts`
  52. --
  53. CREATE TABLE IF NOT EXISTS `quits` (
  54. `id` int(11) NOT NULL AUTO_INCREMENT,
  55. `server_id` int(11) NOT NULL,
  56. `nick_id` int(11) NOT NULL,
  57. `message` text NOT NULL,
  58. `date_added` datetime NOT NULL,
  59. PRIMARY KEY (`id`)
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  61. --
  62. -- Table structure for table `channelmessages`
  63. --
  64. CREATE TABLE IF NOT EXISTS `channelmessages` (
  65. `id` int(11) NOT NULL AUTO_INCREMENT,
  66. `server_id` int(11) NOT NULL,
  67. `channel_id` int(11) NOT NULL,
  68. `nick_id` int(11) NOT NULL,
  69. `message` text NOT NULL,
  70. `date_added` datetime NOT NULL,
  71. PRIMARY KEY (`id`)
  72. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;
  73. --
  74. -- Table structure for table `privatemessages`
  75. --
  76. CREATE TABLE IF NOT EXISTS `privatemessages` (
  77. `id` int(11) NOT NULL AUTO_INCREMENT,
  78. `server_id` int(11) NOT NULL,
  79. `nick_id` int(11) NOT NULL,
  80. `message` text NOT NULL,
  81. `date_added` datetime NOT NULL,
  82. PRIMARY KEY (`id`)
  83. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=0 ;