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.

302 lines
7.9KB

  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. PRIMARY KEY (`uri`)
  58. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  59. --
  60. -- Dumping data for table `boards`
  61. --
  62. INSERT INTO `boards` VALUES
  63. ('b', 'Random', NULL);
  64. -- --------------------------------------------------------
  65. --
  66. -- Table structure for table `cites`
  67. --
  68. CREATE TABLE IF NOT EXISTS `cites` (
  69. `board` varchar(58) NOT NULL,
  70. `post` int(11) NOT NULL,
  71. `target_board` varchar(58) NOT NULL,
  72. `target` int(11) NOT NULL,
  73. KEY `target` (`target_board`,`target`),
  74. KEY `post` (`board`,`post`)
  75. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  76. -- --------------------------------------------------------
  77. --
  78. -- Table structure for table `ip_notes`
  79. --
  80. CREATE TABLE IF NOT EXISTS `ip_notes` (
  81. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  82. `ip` varchar(39) CHARACTER SET ascii NOT NULL,
  83. `mod` int(11) DEFAULT NULL,
  84. `time` int(11) NOT NULL,
  85. `body` text NOT NULL,
  86. UNIQUE KEY `id` (`id`),
  87. KEY `ip_lookup` (`ip`, `time`)
  88. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  89. -- --------------------------------------------------------
  90. --
  91. -- Table structure for table `modlogs`
  92. --
  93. CREATE TABLE IF NOT EXISTS `modlogs` (
  94. `mod` int(11) NOT NULL,
  95. `ip` varchar(39) CHARACTER SET ascii NOT NULL,
  96. `board` varchar(58) CHARACTER SET utf8 DEFAULT NULL,
  97. `time` int(11) NOT NULL,
  98. `text` text NOT NULL,
  99. KEY `time` (`time`),
  100. KEY `mod`(`mod`)
  101. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  102. -- --------------------------------------------------------
  103. --
  104. -- Table structure for table `mods`
  105. --
  106. CREATE TABLE IF NOT EXISTS `mods` (
  107. `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  108. `username` varchar(30) NOT NULL,
  109. `password` varchar(256) CHARACTER SET ascii NOT NULL COMMENT 'SHA256',
  110. `version` varchar(64) CHARACTER SET ascii NOT NULL,
  111. `type` smallint(2) NOT NULL,
  112. `boards` text CHARACTER SET utf8 NOT NULL,
  113. PRIMARY KEY (`id`),
  114. UNIQUE KEY `id` (`id`,`username`)
  115. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  116. --
  117. -- Dumping data for table `mods`
  118. --
  119. INSERT INTO `mods` VALUES
  120. (1, 'admin', 'cedad442efeef7112fed0f50b011b2b9bf83f6898082f995f69dd7865ca19fb7', '4a44c6c55df862ae901b413feecb0d49', 30, '*');
  121. -- --------------------------------------------------------
  122. --
  123. -- Table structure for table `mutes`
  124. --
  125. CREATE TABLE IF NOT EXISTS `mutes` (
  126. `ip` varchar(39) NOT NULL,
  127. `time` int(11) NOT NULL,
  128. KEY `ip` (`ip`)
  129. ) ENGINE=MyISAM DEFAULT CHARSET=ascii;
  130. -- --------------------------------------------------------
  131. --
  132. -- Table structure for table `news`
  133. --
  134. CREATE TABLE IF NOT EXISTS `news` (
  135. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  136. `name` text NOT NULL,
  137. `time` int(11) NOT NULL,
  138. `subject` text NOT NULL,
  139. `body` text NOT NULL,
  140. UNIQUE KEY `id` (`id`),
  141. KEY `time` (`time`)
  142. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  143. -- --------------------------------------------------------
  144. --
  145. -- Table structure for table `noticeboard`
  146. --
  147. CREATE TABLE IF NOT EXISTS `noticeboard` (
  148. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  149. `mod` int(11) NOT NULL,
  150. `time` int(11) NOT NULL,
  151. `subject` text NOT NULL,
  152. `body` text NOT NULL,
  153. UNIQUE KEY `id` (`id`),
  154. KEY `time` (`time`)
  155. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  156. -- --------------------------------------------------------
  157. --
  158. -- Table structure for table `pms`
  159. --
  160. CREATE TABLE IF NOT EXISTS `pms` (
  161. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  162. `sender` int(11) NOT NULL,
  163. `to` int(11) NOT NULL,
  164. `message` text NOT NULL,
  165. `time` int(11) NOT NULL,
  166. `unread` tinyint(1) NOT NULL,
  167. PRIMARY KEY (`id`),
  168. KEY `to` (`to`, `unread`)
  169. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  170. -- --------------------------------------------------------
  171. --
  172. -- Table structure for table `reports`
  173. --
  174. CREATE TABLE IF NOT EXISTS `reports` (
  175. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  176. `time` int(11) NOT NULL,
  177. `ip` varchar(39) CHARACTER SET ascii NOT NULL,
  178. `board` varchar(58) CHARACTER SET utf8 DEFAULT NULL,
  179. `post` int(11) NOT NULL,
  180. `reason` text NOT NULL,
  181. PRIMARY KEY (`id`)
  182. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  183. -- --------------------------------------------------------
  184. --
  185. -- Table structure for table `robot`
  186. --
  187. CREATE TABLE IF NOT EXISTS `robot` (
  188. `hash` varchar(40) COLLATE ascii_bin NOT NULL COMMENT 'SHA1',
  189. PRIMARY KEY (`hash`)
  190. ) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin;
  191. -- --------------------------------------------------------
  192. --
  193. -- Table structure for table `search_queries`
  194. --
  195. CREATE TABLE IF NOT EXISTS `search_queries` (
  196. `ip` varchar(39) NOT NULL,
  197. `time` int(11) NOT NULL,
  198. `query` text NOT NULL
  199. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  200. -- --------------------------------------------------------
  201. --
  202. -- Table structure for table `theme_settings`
  203. --
  204. CREATE TABLE IF NOT EXISTS `theme_settings` (
  205. `theme` varchar(40) NOT NULL,
  206. `name` varchar(40) DEFAULT NULL,
  207. `value` text,
  208. KEY `theme` (`theme`)
  209. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
  210. -- --------------------------------------------------------
  211. --
  212. -- Table structure for table `flood`
  213. --
  214. CREATE TABLE IF NOT EXISTS `flood` (
  215. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  216. `ip` varchar(39) NOT NULL,
  217. `board` varchar(58) CHARACTER SET utf8 NOT NULL,
  218. `time` int(11) NOT NULL,
  219. `posthash` char(32) NOT NULL,
  220. `filehash` char(32) DEFAULT NULL,
  221. `isreply` tinyint(1) NOT NULL,
  222. PRIMARY KEY (`id`),
  223. KEY `ip` (`ip`),
  224. KEY `posthash` (`posthash`),
  225. KEY `filehash` (`filehash`),
  226. KEY `time` (`time`)
  227. ) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin AUTO_INCREMENT=1 ;
  228. -- --------------------------------------------------------
  229. --
  230. -- Table structure for table `ban_appeals`
  231. --
  232. CREATE TABLE IF NOT EXISTS `ban_appeals` (
  233. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  234. `ban_id` int(10) unsigned NOT NULL,
  235. `time` int(10) unsigned NOT NULL,
  236. `message` text NOT NULL,
  237. `denied` tinyint(1) NOT NULL,
  238. PRIMARY KEY (`id`),
  239. KEY `ban_id` (`ban_id`)
  240. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
  241. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  242. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  243. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;