The version of vichan running on lainchan.org
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.

348 lines
9.2KB

  1. -- phpMyAdmin SQL Dump
  2. -- version 4.0.4.1
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Jul 30, 2013 at 09:45 PM
  7. -- Server version: 5.6.10
  8. -- PHP Version: 5.3.15
  9. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  10. SET time_zone = "+00:00";
  11. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  12. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  13. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  14. /*!40101 SET NAMES utf8 */;
  15. -- --------------------------------------------------------
  16. --
  17. -- Table structure for table `antispam`
  18. --
  19. CREATE TABLE IF NOT EXISTS `antispam` (
  20. `board` varchar(58) CHARACTER SET utf8 NOT NULL,
  21. `thread` int(11) DEFAULT NULL,
  22. `hash` char(40) COLLATE ascii_bin NOT NULL,
  23. `created` int(11) NOT NULL,
  24. `expires` int(11) DEFAULT NULL,
  25. `passed` smallint(6) NOT NULL,
  26. PRIMARY KEY (`hash`),
  27. KEY `board` (`board`,`thread`),
  28. KEY `expires` (`expires`)
  29. ) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin;
  30. -- --------------------------------------------------------
  31. --
  32. -- Table structure for table `bans`
  33. --
  34. CREATE TABLE IF NOT EXISTS `bans` (
  35. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  36. `ipstart` varbinary(16) NOT NULL,
  37. `ipend` varbinary(16) DEFAULT NULL,
  38. `created` int(10) unsigned NOT NULL,
  39. `expires` int(10) unsigned DEFAULT NULL,
  40. `board` varchar(58) DEFAULT NULL,
  41. `creator` int(10) NOT NULL,
  42. `reason` text,
  43. `seen` tinyint(1) NOT NULL,
  44. `post` blob,
  45. PRIMARY KEY (`id`),
  46. KEY `expires` (`expires`),
  47. KEY `ipstart` (`ipstart`,`ipend`)
  48. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  49. -- --------------------------------------------------------
  50. --
  51. -- Table structure for table `boards`
  52. --
  53. CREATE TABLE IF NOT EXISTS `boards` (
  54. `uri` varchar(58) CHARACTER SET utf8 NOT NULL,
  55. `title` tinytext NOT NULL,
  56. `subtitle` tinytext,
  57. -- `indexed` boolean default true,
  58. PRIMARY KEY (`uri`)
  59. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  60. --
  61. -- Dumping data for table `boards`
  62. --
  63. INSERT INTO `boards` VALUES
  64. ('b', 'Random', NULL);
  65. -- --------------------------------------------------------
  66. --
  67. -- Table structure for table `cites`
  68. --
  69. CREATE TABLE IF NOT EXISTS `cites` (
  70. `board` varchar(58) NOT NULL,
  71. `post` int(11) NOT NULL,
  72. `target_board` varchar(58) NOT NULL,
  73. `target` int(11) NOT NULL,
  74. KEY `target` (`target_board`,`target`),
  75. KEY `post` (`board`,`post`)
  76. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  77. -- --------------------------------------------------------
  78. --
  79. -- Table structure for table `ip_notes`
  80. --
  81. CREATE TABLE IF NOT EXISTS `ip_notes` (
  82. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  83. `ip` varchar(39) CHARACTER SET ascii NOT NULL,
  84. `mod` int(11) DEFAULT NULL,
  85. `time` int(11) NOT NULL,
  86. `body` text NOT NULL,
  87. UNIQUE KEY `id` (`id`),
  88. KEY `ip_lookup` (`ip`, `time`)
  89. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  90. -- --------------------------------------------------------
  91. --
  92. -- Table structure for table `modlogs`
  93. --
  94. CREATE TABLE IF NOT EXISTS `modlogs` (
  95. `mod` int(11) NOT NULL,
  96. `ip` varchar(39) CHARACTER SET ascii NOT NULL,
  97. `board` varchar(58) CHARACTER SET utf8 DEFAULT NULL,
  98. `time` int(11) NOT NULL,
  99. `text` text NOT NULL,
  100. KEY `time` (`time`),
  101. KEY `mod`(`mod`)
  102. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  103. -- --------------------------------------------------------
  104. --
  105. -- Table structure for table `mods`
  106. --
  107. CREATE TABLE IF NOT EXISTS `mods` (
  108. `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  109. `username` varchar(30) NOT NULL,
  110. `password` varchar(256) CHARACTER SET ascii NOT NULL COMMENT 'SHA256',
  111. `version` varchar(64) CHARACTER SET ascii NOT NULL,
  112. `type` smallint(2) NOT NULL,
  113. `boards` text CHARACTER SET utf8 NOT NULL,
  114. PRIMARY KEY (`id`),
  115. UNIQUE KEY `id` (`id`,`username`)
  116. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  117. --
  118. -- Dumping data for table `mods`
  119. --
  120. INSERT INTO `mods` VALUES
  121. (1, 'admin', 'cedad442efeef7112fed0f50b011b2b9bf83f6898082f995f69dd7865ca19fb7', '4a44c6c55df862ae901b413feecb0d49', 30, '*');
  122. -- --------------------------------------------------------
  123. --
  124. -- Table structure for table `mutes`
  125. --
  126. CREATE TABLE IF NOT EXISTS `mutes` (
  127. `ip` varchar(39) NOT NULL,
  128. `time` int(11) NOT NULL,
  129. KEY `ip` (`ip`)
  130. ) ENGINE=MyISAM DEFAULT CHARSET=ascii;
  131. -- --------------------------------------------------------
  132. --
  133. -- Table structure for table `news`
  134. --
  135. CREATE TABLE IF NOT EXISTS `news` (
  136. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  137. `name` text NOT NULL,
  138. `time` int(11) NOT NULL,
  139. `subject` text NOT NULL,
  140. `body` text NOT NULL,
  141. UNIQUE KEY `id` (`id`),
  142. KEY `time` (`time`)
  143. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  144. -- --------------------------------------------------------
  145. --
  146. -- Table structure for table `noticeboard`
  147. --
  148. CREATE TABLE IF NOT EXISTS `noticeboard` (
  149. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  150. `mod` int(11) NOT NULL,
  151. `time` int(11) NOT NULL,
  152. `subject` text NOT NULL,
  153. `body` text NOT NULL,
  154. UNIQUE KEY `id` (`id`),
  155. KEY `time` (`time`)
  156. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  157. -- --------------------------------------------------------
  158. --
  159. -- Table structure for table `pms`
  160. --
  161. CREATE TABLE IF NOT EXISTS `pms` (
  162. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  163. `sender` int(11) NOT NULL,
  164. `to` int(11) NOT NULL,
  165. `message` text NOT NULL,
  166. `time` int(11) NOT NULL,
  167. `unread` tinyint(1) NOT NULL,
  168. PRIMARY KEY (`id`),
  169. KEY `to` (`to`, `unread`)
  170. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  171. -- --------------------------------------------------------
  172. --
  173. -- Table structure for table `reports`
  174. --
  175. CREATE TABLE IF NOT EXISTS `reports` (
  176. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  177. `time` int(11) NOT NULL,
  178. `ip` varchar(39) CHARACTER SET ascii NOT NULL,
  179. `board` varchar(58) CHARACTER SET utf8 DEFAULT NULL,
  180. `post` int(11) NOT NULL,
  181. `reason` text NOT NULL,
  182. PRIMARY KEY (`id`)
  183. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  184. -- --------------------------------------------------------
  185. --
  186. -- Table structure for table `robot`
  187. --
  188. CREATE TABLE IF NOT EXISTS `robot` (
  189. `hash` varchar(40) COLLATE ascii_bin NOT NULL COMMENT 'SHA1',
  190. PRIMARY KEY (`hash`)
  191. ) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin;
  192. -- --------------------------------------------------------
  193. --
  194. -- Table structure for table `search_queries`
  195. --
  196. CREATE TABLE IF NOT EXISTS `search_queries` (
  197. `ip` varchar(39) NOT NULL,
  198. `time` int(11) NOT NULL,
  199. `query` text NOT NULL
  200. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  201. -- --------------------------------------------------------
  202. --
  203. -- Table structure for table `theme_settings`
  204. --
  205. CREATE TABLE IF NOT EXISTS `theme_settings` (
  206. `theme` varchar(40) NOT NULL,
  207. `name` varchar(40) DEFAULT NULL,
  208. `value` text,
  209. KEY `theme` (`theme`)
  210. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  211. -- --------------------------------------------------------
  212. --
  213. -- Table structure for table `flood`
  214. --
  215. CREATE TABLE IF NOT EXISTS `flood` (
  216. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  217. `ip` varchar(39) NOT NULL,
  218. `board` varchar(58) CHARACTER SET utf8 NOT NULL,
  219. `time` int(11) NOT NULL,
  220. `posthash` char(32) NOT NULL,
  221. `filehash` char(32) DEFAULT NULL,
  222. `isreply` tinyint(1) NOT NULL,
  223. PRIMARY KEY (`id`),
  224. KEY `ip` (`ip`),
  225. KEY `posthash` (`posthash`),
  226. KEY `filehash` (`filehash`),
  227. KEY `time` (`time`)
  228. ) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin AUTO_INCREMENT=1 ;
  229. -- --------------------------------------------------------
  230. --
  231. -- Table structure for table `ban_appeals`
  232. --
  233. CREATE TABLE IF NOT EXISTS `ban_appeals` (
  234. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  235. `ban_id` int(10) unsigned NOT NULL,
  236. `time` int(10) unsigned NOT NULL,
  237. `message` text NOT NULL,
  238. `denied` tinyint(1) NOT NULL,
  239. PRIMARY KEY (`id`),
  240. KEY `ban_id` (`ban_id`)
  241. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  242. -- --------------------------------------------------------
  243. --
  244. -- Table structure for table `pages`
  245. --
  246. CREATE TABLE `pages` (
  247. `id` int(11) NOT NULL AUTO_INCREMENT,
  248. `board` varchar(125) DEFAULT NULL,
  249. `name` varchar(125) NOT NULL,
  250. `title` varchar(255) DEFAULT NULL,
  251. `type` varchar(255) DEFAULT NULL,
  252. `content` text,
  253. PRIMARY KEY (`id`),
  254. UNIQUE KEY `u_pages` (`name`,`board`)
  255. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  256. -- --------------------------------------------------------
  257. --
  258. -- Table structure for table `nntp_references`
  259. --
  260. CREATE TABLE `nntp_references` (
  261. `board` varchar(60) NOT NULL,
  262. `id` int(11) unsigned NOT NULL,
  263. `message_id` varchar(255) CHARACTER SET ascii NOT NULL,
  264. `message_id_digest` varchar(40) CHARACTER SET ascii NOT NULL,
  265. `own` tinyint(1) NOT NULL,
  266. `headers` text,
  267. PRIMARY KEY (`message_id_digest`),
  268. UNIQUE KEY `message_id` (`message_id`),
  269. UNIQUE KEY `u_board_id` (`board`, `id`)
  270. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  271. CREATE TABLE IF NOT EXISTS `calendar_events` (
  272. `id` int(11) NOT NULL AUTO_INCREMENT,
  273. `title` varchar(255) NOT NULL,
  274. `description` text NOT NULL,
  275. `start` datetime NOT NULL,
  276. `end` datetime NOT NULL,
  277. PRIMARY KEY (`id`)
  278. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  279. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  280. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  281. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;