Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
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.

549 lines
16 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
  1. -- phpMyAdmin SQL Dump
  2. -- version 2.11.9.4
  3. -- http://www.phpmyadmin.net
  4. --
  5. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. --
  11. --
  12. -- --------------------------------------------------------
  13. --
  14. -- Table structure for table `challenge`
  15. --
  16. CREATE TABLE IF NOT EXISTS `challenge` (
  17. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  18. `challenge` char(255) NOT NULL,
  19. `dfrn-id` char(255) NOT NULL,
  20. `expire` int(11) NOT NULL,
  21. `type` char(255) NOT NULL,
  22. `last_update` char(255) NOT NULL,
  23. PRIMARY KEY (`id`)
  24. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  25. -- --------------------------------------------------------
  26. CREATE TABLE IF NOT EXISTS `config` (
  27. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  28. `cat` char(255) NOT NULL,
  29. `k` char(255) NOT NULL,
  30. `v` text NOT NULL,
  31. PRIMARY KEY (`id`)
  32. ) ENGINE=MYISAM DEFAULT CHARSET=utf8;
  33. --
  34. -- Table structure for table `contact`
  35. --
  36. CREATE TABLE IF NOT EXISTS `contact` (
  37. `id` int(11) NOT NULL AUTO_INCREMENT,
  38. `uid` int(11) NOT NULL COMMENT 'owner uid',
  39. `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  40. `self` tinyint(1) NOT NULL DEFAULT '0',
  41. `rel` tinyint(1) NOT NULL DEFAULT '0',
  42. `duplex` tinyint(1) NOT NULL DEFAULT '0',
  43. `network` char(255) NOT NULL,
  44. `name` char(255) NOT NULL,
  45. `nick` char(255) NOT NULL,
  46. `photo` text NOT NULL,
  47. `thumb` text NOT NULL,
  48. `micro` text NOT NULL,
  49. `site-pubkey` text NOT NULL,
  50. `issued-id` char(255) NOT NULL,
  51. `dfrn-id` char(255) NOT NULL,
  52. `url` char(255) NOT NULL,
  53. `addr` char(255) NOT NULL,
  54. `alias` char(255) NOT NULL,
  55. `pubkey` text NOT NULL,
  56. `prvkey` text NOT NULL,
  57. `request` text NOT NULL,
  58. `notify` text NOT NULL,
  59. `poll` text NOT NULL,
  60. `confirm` text NOT NULL,
  61. `aes_allow` tinyint(1) NOT NULL DEFAULT '0',
  62. `ret-aes` tinyint(1) NOT NULL DEFAULT '0',
  63. `usehub` tinyint(1) NOT NULL DEFAULT '0',
  64. `subhub` tinyint(1) NOT NULL DEFAULT '0',
  65. `hub-verify` char(255) NOT NULL,
  66. `last-update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  67. `success_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  68. `name-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  69. `uri-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  70. `avatar-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  71. `term-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  72. `priority` tinyint(3) NOT NULL,
  73. `blocked` tinyint(1) NOT NULL DEFAULT '1',
  74. `readonly` tinyint(1) NOT NULL DEFAULT '0',
  75. `writable` tinyint(1) NOT NULL DEFAULT '0',
  76. `pending` tinyint(1) NOT NULL DEFAULT '1',
  77. `rating` tinyint(1) NOT NULL DEFAULT '0',
  78. `reason` text NOT NULL,
  79. `info` mediumtext NOT NULL,
  80. `profile-id` int(11) NOT NULL DEFAULT '0',
  81. `bdyear` CHAR( 4 ) NOT NULL COMMENT 'birthday notify flag',
  82. PRIMARY KEY (`id`),
  83. KEY `uid` (`uid`),
  84. KEY `self` (`self`),
  85. KEY `issued-id` (`issued-id`),
  86. KEY `dfrn-id` (`dfrn-id`),
  87. KEY `blocked` (`blocked`),
  88. KEY `readonly` (`readonly`)
  89. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  90. -- --------------------------------------------------------
  91. --
  92. -- Table structure for table `group`
  93. --
  94. CREATE TABLE IF NOT EXISTS `group` (
  95. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  96. `uid` int(10) unsigned NOT NULL,
  97. `deleted` tinyint(1) NOT NULL DEFAULT '0',
  98. `name` char(255) NOT NULL,
  99. PRIMARY KEY (`id`)
  100. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  101. -- --------------------------------------------------------
  102. --
  103. -- Table structure for table `group_member`
  104. --
  105. CREATE TABLE IF NOT EXISTS `group_member` (
  106. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  107. `uid` int(10) unsigned NOT NULL,
  108. `gid` int(10) unsigned NOT NULL,
  109. `contact-id` int(10) unsigned NOT NULL,
  110. PRIMARY KEY (`id`)
  111. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  112. -- --------------------------------------------------------
  113. --
  114. -- Table structure for table `intro`
  115. --
  116. CREATE TABLE IF NOT EXISTS `intro` (
  117. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  118. `uid` int(10) unsigned NOT NULL,
  119. `contact-id` int(11) NOT NULL,
  120. `knowyou` tinyint(1) NOT NULL,
  121. `duplex` tinyint(1) NOT NULL DEFAULT '0',
  122. `note` text NOT NULL,
  123. `hash` char(255) NOT NULL,
  124. `datetime` datetime NOT NULL,
  125. `blocked` tinyint(1) NOT NULL DEFAULT '1',
  126. `ignore` tinyint(1) NOT NULL DEFAULT '0',
  127. PRIMARY KEY (`id`)
  128. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  129. -- --------------------------------------------------------
  130. --
  131. -- Table structure for table `item`
  132. --
  133. CREATE TABLE IF NOT EXISTS `item` (
  134. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  135. `uri` char(255) NOT NULL,
  136. `uid` int(10) unsigned NOT NULL DEFAULT '0',
  137. `contact-id` int(10) unsigned NOT NULL DEFAULT '0',
  138. `type` char(255) NOT NULL,
  139. `wall` tinyint(1) NOT NULL DEFAULT '0',
  140. `gravity` tinyint(1) NOT NULL DEFAULT '0',
  141. `parent` int(10) unsigned NOT NULL DEFAULT '0',
  142. `parent-uri` char(255) NOT NULL,
  143. `extid` char(255) NOT NULL,
  144. `thr-parent` char(255) NOT NULL,
  145. `created` datetime NOT NULL,
  146. `edited` datetime NOT NULL,
  147. `changed` datetime NOT NULL,
  148. `owner-name` char(255) NOT NULL,
  149. `owner-link` char(255) NOT NULL,
  150. `owner-avatar` char(255) NOT NULL,
  151. `author-name` char(255) NOT NULL,
  152. `author-link` char(255) NOT NULL,
  153. `author-avatar` char(255) NOT NULL,
  154. `title` char(255) NOT NULL,
  155. `body` mediumtext NOT NULL,
  156. `app` char(255) NOT NULL,
  157. `verb` char(255) NOT NULL,
  158. `object-type` char(255) NOT NULL,
  159. `object` text NOT NULL,
  160. `target-type` char(255) NOT NULL,
  161. `target` text NOT NULL,
  162. `plink` char(255) NOT NULL,
  163. `resource-id` char(255) NOT NULL,
  164. `event-id` int(10) unsigned NOT NULL,
  165. `tag` mediumtext NOT NULL,
  166. `attach` mediumtext NOT NULL,
  167. `inform` mediumtext NOT NULL,
  168. `location` char(255) NOT NULL,
  169. `coord` char(255) NOT NULL,
  170. `allow_cid` mediumtext NOT NULL,
  171. `allow_gid` mediumtext NOT NULL,
  172. `deny_cid` mediumtext NOT NULL,
  173. `deny_gid` mediumtext NOT NULL,
  174. `private` tinyint(1) NOT NULL DEFAULT '0',
  175. `pubmail` tinyint(1) NOT NULL DEFAULT '0',
  176. `visible` tinyint(1) NOT NULL DEFAULT '0',
  177. `unseen` tinyint(1) NOT NULL DEFAULT '1',
  178. `deleted` tinyint(1) NOT NULL DEFAULT '0',
  179. `last-child` tinyint(1) unsigned NOT NULL DEFAULT '1',
  180. PRIMARY KEY (`id`),
  181. KEY `uri` (`uri`),
  182. KEY `uid` (`uid`),
  183. KEY `contact-id` (`contact-id`),
  184. KEY `type` (`type`),
  185. KEY `wall` (`wall`),
  186. KEY `parent` (`parent`),
  187. KEY `parent-uri` (`parent-uri`),
  188. KEY `extid` (`extid`),
  189. KEY `created` (`created`),
  190. KEY `edited` (`edited`),
  191. KEY `visible` (`visible`),
  192. KEY `deleted` (`deleted`),
  193. KEY `last-child` (`last-child`),
  194. KEY `unseen` (`unseen`),
  195. FULLTEXT KEY `title` (`title`),
  196. FULLTEXT KEY `body` (`body`),
  197. FULLTEXT KEY `allow_cid` (`allow_cid`),
  198. FULLTEXT KEY `allow_gid` (`allow_gid`),
  199. FULLTEXT KEY `deny_cid` (`deny_cid`),
  200. FULLTEXT KEY `deny_gid` (`deny_gid`)
  201. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  202. -- --------------------------------------------------------
  203. --
  204. -- Table structure for table `mail`
  205. --
  206. CREATE TABLE IF NOT EXISTS `mail` (
  207. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  208. `uid` int(10) unsigned NOT NULL,
  209. `from-name` char(255) NOT NULL,
  210. `from-photo` char(255) NOT NULL,
  211. `from-url` char(255) NOT NULL,
  212. `contact-id` char(255) NOT NULL,
  213. `title` char(255) NOT NULL,
  214. `body` text NOT NULL,
  215. `seen` tinyint(1) NOT NULL,
  216. `replied` tinyint(1) NOT NULL,
  217. `uri` char(255) NOT NULL,
  218. `parent-uri` char(255) NOT NULL,
  219. `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  220. PRIMARY KEY (`id`)
  221. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  222. -- --------------------------------------------------------
  223. --
  224. -- Table structure for table `photo`
  225. --
  226. CREATE TABLE IF NOT EXISTS `photo` (
  227. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  228. `uid` int(10) unsigned NOT NULL,
  229. `contact-id` int(10) unsigned NOT NULL,
  230. `resource-id` char(255) NOT NULL,
  231. `created` datetime NOT NULL,
  232. `edited` datetime NOT NULL,
  233. `title` char(255) NOT NULL,
  234. `desc` text NOT NULL,
  235. `album` char(255) NOT NULL,
  236. `filename` char(255) NOT NULL,
  237. `height` smallint(6) NOT NULL,
  238. `width` smallint(6) NOT NULL,
  239. `data` mediumblob NOT NULL,
  240. `scale` tinyint(3) NOT NULL,
  241. `profile` tinyint(1) NOT NULL DEFAULT '0',
  242. `allow_cid` mediumtext NOT NULL,
  243. `allow_gid` mediumtext NOT NULL,
  244. `deny_cid` mediumtext NOT NULL,
  245. `deny_gid` mediumtext NOT NULL,
  246. PRIMARY KEY (`id`)
  247. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  248. -- --------------------------------------------------------
  249. --
  250. -- Table structure for table `profile`
  251. --
  252. CREATE TABLE IF NOT EXISTS `profile` (
  253. `id` int(11) NOT NULL AUTO_INCREMENT,
  254. `uid` int(11) NOT NULL,
  255. `profile-name` char(255) NOT NULL,
  256. `is-default` tinyint(1) NOT NULL DEFAULT '0',
  257. `hide-friends` tinyint(1) NOT NULL DEFAULT '0',
  258. `hidewall` tinyint(1) NOT NULL DEFAULT '0',
  259. `name` char(255) NOT NULL,
  260. `pdesc` char(255) NOT NULL,
  261. `dob` char(32) NOT NULL DEFAULT '0000-00-00',
  262. `address` char(255) NOT NULL,
  263. `locality` char(255) NOT NULL,
  264. `region` char(255) NOT NULL,
  265. `postal-code` char(32) NOT NULL,
  266. `country-name` char(255) NOT NULL,
  267. `gender` char(32) NOT NULL,
  268. `marital` char(255) NOT NULL,
  269. `showwith` tinyint(1) NOT NULL DEFAULT '0',
  270. `with` text NOT NULL,
  271. `sexual` char(255) NOT NULL,
  272. `politic` char(255) NOT NULL,
  273. `religion` char(255) NOT NULL,
  274. `pub_keywords` text NOT NULL,
  275. `prv_keywords` text NOT NULL,
  276. `about` text NOT NULL,
  277. `summary` char(255) NOT NULL,
  278. `music` text NOT NULL,
  279. `book` text NOT NULL,
  280. `tv` text NOT NULL,
  281. `film` text NOT NULL,
  282. `interest` text NOT NULL,
  283. `romance` text NOT NULL,
  284. `work` text NOT NULL,
  285. `education` text NOT NULL,
  286. `contact` text NOT NULL,
  287. `homepage` char(255) NOT NULL,
  288. `photo` char(255) NOT NULL,
  289. `thumb` char(255) NOT NULL,
  290. `publish` tinyint(1) NOT NULL DEFAULT '0',
  291. `net-publish` tinyint(1) NOT NULL DEFAULT '0',
  292. PRIMARY KEY (`id`),
  293. FULLTEXT KEY `pub_keywords` (`pub_keywords`),
  294. FULLTEXT KEY `prv_keywords` (`prv_keywords`)
  295. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  296. -- --------------------------------------------------------
  297. --
  298. -- Table structure for table `profile_check`
  299. --
  300. CREATE TABLE IF NOT EXISTS `profile_check` (
  301. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  302. `uid` int(10) unsigned NOT NULL,
  303. `cid` int(10) unsigned NOT NULL,
  304. `dfrn_id` char(255) NOT NULL,
  305. `sec` char(255) NOT NULL,
  306. `expire` int(11) NOT NULL,
  307. PRIMARY KEY (`id`)
  308. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  309. -- --------------------------------------------------------
  310. --
  311. -- Table structure for table `session`
  312. --
  313. CREATE TABLE IF NOT EXISTS `session` (
  314. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  315. `sid` char(255) NOT NULL,
  316. `data` text NOT NULL,
  317. `expire` int(10) unsigned NOT NULL,
  318. PRIMARY KEY (`id`),
  319. KEY `sid` (`sid`),
  320. KEY `expire` (`expire`)
  321. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  322. -- --------------------------------------------------------
  323. --
  324. -- Table structure for table `user`
  325. --
  326. CREATE TABLE IF NOT EXISTS `user` (
  327. `uid` int(11) NOT NULL AUTO_INCREMENT,
  328. `username` char(255) NOT NULL,
  329. `password` char(255) NOT NULL,
  330. `nickname` char(255) NOT NULL,
  331. `email` char(255) NOT NULL,
  332. `openid` char(255) NOT NULL,
  333. `timezone` char(128) NOT NULL,
  334. `language` char(32) NOT NULL DEFAULT 'en',
  335. `register_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  336. `login_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  337. `default-location` char(255) NOT NULL,
  338. `allow_location` tinyint(1) NOT NULL DEFAULT '0',
  339. `theme` char(255) NOT NULL,
  340. `pubkey` text NOT NULL,
  341. `prvkey` text NOT NULL,
  342. `spubkey` text NOT NULL,
  343. `sprvkey` text NOT NULL,
  344. `verified` tinyint(1) unsigned NOT NULL DEFAULT '0',
  345. `blocked` tinyint(1) unsigned NOT NULL DEFAULT '0',
  346. `blockwall` tinyint(1) unsigned NOT NULL DEFAULT '0',
  347. `notify-flags` int(11) unsigned NOT NULL DEFAULT '65535',
  348. `page-flags` int(11) unsigned NOT NULL DEFAULT '0',
  349. `prvnets` tinyint(1) NOT NULL DEFAULT '0',
  350. `pwdreset` char(255) NOT NULL,
  351. `maxreq` int(11) NOT NULL DEFAULT '10',
  352. `expire` int(11) unsigned NOT NULL DEFAULT '0',
  353. `allow_cid` mediumtext NOT NULL,
  354. `allow_gid` mediumtext NOT NULL,
  355. `deny_cid` mediumtext NOT NULL,
  356. `deny_gid` mediumtext NOT NULL,
  357. `openidserver` text NOT NULL,
  358. PRIMARY KEY (`uid`),
  359. KEY `nickname` (`nickname`)
  360. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  361. CREATE TABLE IF NOT EXISTS `register` (
  362. `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  363. `hash` CHAR( 255 ) NOT NULL ,
  364. `created` DATETIME NOT NULL ,
  365. `uid` INT(11) UNSIGNED NOT NULL,
  366. `password` CHAR(255) NOT NULL,
  367. `language` CHAR(16) NOT NULL,
  368. PRIMARY KEY (`id`)
  369. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  370. CREATE TABLE IF NOT EXISTS `clients` (
  371. `client_id` VARCHAR( 20 ) NOT NULL ,
  372. `pw` VARCHAR( 20 ) NOT NULL ,
  373. `redirect_uri` VARCHAR( 200 ) NOT NULL ,
  374. PRIMARY KEY ( `client_id` )
  375. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  376. CREATE TABLE IF NOT EXISTS `tokens` (
  377. `id` VARCHAR( 40 ) NOT NULL ,
  378. `client_id` VARCHAR( 20 ) NOT NULL ,
  379. `expires` INT NOT NULL ,
  380. `scope` VARCHAR( 200 ) NOT NULL ,
  381. PRIMARY KEY ( `id` )
  382. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  383. CREATE TABLE IF NOT EXISTS `auth_codes` (
  384. `id` VARCHAR( 40 ) NOT NULL ,
  385. `client_id` VARCHAR( 20 ) NOT NULL ,
  386. `redirect_uri` VARCHAR( 200 ) NOT NULL ,
  387. `expires` INT NOT NULL ,
  388. `scope` VARCHAR( 250 ) NOT NULL ,
  389. PRIMARY KEY ( `id` )
  390. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  391. CREATE TABLE IF NOT EXISTS `queue` (
  392. `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  393. `cid` INT NOT NULL ,
  394. `network` CHAR( 32 ) NOT NULL,
  395. `created` DATETIME NOT NULL ,
  396. `last` DATETIME NOT NULL ,
  397. `content` MEDIUMTEXT NOT NULL
  398. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  399. CREATE TABLE IF NOT EXISTS `pconfig` (
  400. `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  401. `uid` INT NOT NULL DEFAULT '0',
  402. `cat` CHAR( 255 ) NOT NULL ,
  403. `k` CHAR( 255 ) NOT NULL ,
  404. `v` MEDIUMTEXT NOT NULL
  405. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  406. CREATE TABLE IF NOT EXISTS `hook` (
  407. `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  408. `hook` CHAR( 255 ) NOT NULL ,
  409. `file` CHAR( 255 ) NOT NULL ,
  410. `function` CHAR( 255 ) NOT NULL
  411. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  412. CREATE TABLE IF NOT EXISTS `addon` (
  413. `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  414. `name` CHAR( 255 ) NOT NULL ,
  415. `version` CHAR( 255 ) NOT NULL ,
  416. `installed` TINYINT( 1 ) NOT NULL DEFAULT '0' ,
  417. `timestamp` BIGINT NOT NULL DEFAULT '0' ,
  418. `plugin_admin` TINYINT( 1 ) NOT NULL DEFAULT '0'
  419. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  420. CREATE TABLE IF NOT EXISTS `event` (
  421. `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  422. `uid` INT NOT NULL ,
  423. `cid` INT NOT NULL ,
  424. `uri` CHAR( 255 ) NOT NULL,
  425. `created` DATETIME NOT NULL ,
  426. `edited` DATETIME NOT NULL ,
  427. `start` DATETIME NOT NULL ,
  428. `finish` DATETIME NOT NULL ,
  429. `desc` TEXT NOT NULL ,
  430. `location` TEXT NOT NULL ,
  431. `type` CHAR( 255 ) NOT NULL ,
  432. `nofinish` TINYINT( 1 ) NOT NULL DEFAULT '0',
  433. `adjust` TINYINT( 1 ) NOT NULL DEFAULT '1',
  434. `allow_cid` MEDIUMTEXT NOT NULL ,
  435. `allow_gid` MEDIUMTEXT NOT NULL ,
  436. `deny_cid` MEDIUMTEXT NOT NULL ,
  437. `deny_gid` MEDIUMTEXT NOT NULL
  438. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  439. CREATE TABLE IF NOT EXISTS `cache` (
  440. `k` CHAR( 255 ) NOT NULL PRIMARY KEY ,
  441. `v` TEXT NOT NULL,
  442. `updated` DATETIME NOT NULL
  443. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  444. CREATE TABLE IF NOT EXISTS `fcontact` (
  445. `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  446. `url` CHAR( 255 ) NOT NULL ,
  447. `name` CHAR( 255 ) NOT NULL ,
  448. `photo` CHAR( 255 ) NOT NULL
  449. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  450. CREATE TABLE IF NOT EXISTS `ffinder` (
  451. `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  452. `uid` INT UNSIGNED NOT NULL ,
  453. `cid` INT UNSIGNED NOT NULL ,
  454. `fid` INT UNSIGNED NOT NULL
  455. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  456. CREATE TABLE IF NOT EXISTS `mailacct` (
  457. `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  458. `uid` INT NOT NULL,
  459. `server` CHAR( 255 ) NOT NULL ,
  460. `port` INT NOT NULL,
  461. `ssltype` CHAR( 16 ) NOT NULL,
  462. `mailbox` CHAR( 255 ) NOT NULL,
  463. `user` CHAR( 255 ) NOT NULL ,
  464. `pass` TEXT NOT NULL ,
  465. `reply_to` CHAR( 255 ) NOT NULL ,
  466. `pubmail` TINYINT(1) NOT NULL DEFAULT '0',
  467. `last_check` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00'
  468. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;
  469. CREATE TABLE IF NOT EXISTS `attach` (
  470. `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  471. `uid` INT NOT NULL ,
  472. `hash` CHAR(64) NOT NULL,
  473. `filename` CHAR(255) NOT NULL,
  474. `filetype` CHAR( 64 ) NOT NULL ,
  475. `filesize` INT NOT NULL ,
  476. `data` LONGBLOB NOT NULL ,
  477. `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  478. `edited` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  479. `allow_cid` MEDIUMTEXT NOT NULL ,
  480. `allow_gid` MEDIUMTEXT NOT NULL ,
  481. `deny_cid` MEDIUMTEXT NOT NULL ,
  482. `deny_gid` MEDIUMTEXT NOT NULL
  483. ) ENGINE = MYISAM DEFAULT CHARSET=utf8;