1 -- ------------------------------------------
2 -- Friendica 3.5-dev (Asparagus)
3 -- DB_UPDATE_VERSION 1192
4 -- ------------------------------------------
10 CREATE TABLE IF NOT EXISTS `addon` (
11 `id` int(11) NOT NULL auto_increment,
12 `name` varchar(255) NOT NULL DEFAULT '',
13 `version` varchar(255) NOT NULL DEFAULT '',
14 `installed` tinyint(1) NOT NULL DEFAULT 0,
15 `hidden` tinyint(1) NOT NULL DEFAULT 0,
16 `timestamp` bigint(20) NOT NULL DEFAULT 0,
17 `plugin_admin` tinyint(1) NOT NULL DEFAULT 0,
19 ) DEFAULT CHARSET=utf8;
24 CREATE TABLE IF NOT EXISTS `attach` (
25 `id` int(11) NOT NULL auto_increment,
26 `uid` int(11) NOT NULL DEFAULT 0,
27 `hash` varchar(64) NOT NULL DEFAULT '',
28 `filename` varchar(255) NOT NULL DEFAULT '',
29 `filetype` varchar(64) NOT NULL DEFAULT '',
30 `filesize` int(11) NOT NULL DEFAULT 0,
31 `data` longblob NOT NULL,
32 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
33 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
34 `allow_cid` mediumtext NOT NULL,
35 `allow_gid` mediumtext NOT NULL,
36 `deny_cid` mediumtext NOT NULL,
37 `deny_gid` mediumtext NOT NULL,
39 ) DEFAULT CHARSET=utf8;
44 CREATE TABLE IF NOT EXISTS `auth_codes` (
45 `id` varchar(40) NOT NULL,
46 `client_id` varchar(20) NOT NULL DEFAULT '',
47 `redirect_uri` varchar(200) NOT NULL DEFAULT '',
48 `expires` int(11) NOT NULL DEFAULT 0,
49 `scope` varchar(250) NOT NULL DEFAULT '',
51 ) DEFAULT CHARSET=utf8;
56 CREATE TABLE IF NOT EXISTS `cache` (
57 `k` varchar(255) NOT NULL,
59 `expire_mode` int(11) NOT NULL DEFAULT 0,
60 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
62 INDEX `updated` (`updated`)
63 ) DEFAULT CHARSET=utf8;
68 CREATE TABLE IF NOT EXISTS `challenge` (
69 `id` int(10) unsigned NOT NULL auto_increment,
70 `challenge` varchar(255) NOT NULL DEFAULT '',
71 `dfrn-id` varchar(255) NOT NULL DEFAULT '',
72 `expire` int(11) NOT NULL DEFAULT 0,
73 `type` varchar(255) NOT NULL DEFAULT '',
74 `last_update` varchar(255) NOT NULL DEFAULT '',
76 ) DEFAULT CHARSET=utf8;
81 CREATE TABLE IF NOT EXISTS `clients` (
82 `client_id` varchar(20) NOT NULL,
83 `pw` varchar(20) NOT NULL DEFAULT '',
84 `redirect_uri` varchar(200) NOT NULL DEFAULT '',
87 `uid` int(11) NOT NULL DEFAULT 0,
88 PRIMARY KEY(`client_id`)
89 ) DEFAULT CHARSET=utf8;
94 CREATE TABLE IF NOT EXISTS `config` (
95 `id` int(10) unsigned NOT NULL auto_increment,
96 `cat` varchar(255) NOT NULL DEFAULT '',
97 `k` varchar(255) NOT NULL DEFAULT '',
100 INDEX `cat_k` (`cat`(30),`k`(30))
101 ) DEFAULT CHARSET=utf8;
106 CREATE TABLE IF NOT EXISTS `contact` (
107 `id` int(11) NOT NULL auto_increment,
108 `uid` int(11) NOT NULL DEFAULT 0,
109 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
110 `self` tinyint(1) NOT NULL DEFAULT 0,
111 `remote_self` tinyint(1) NOT NULL DEFAULT 0,
112 `rel` tinyint(1) NOT NULL DEFAULT 0,
113 `duplex` tinyint(1) NOT NULL DEFAULT 0,
114 `network` varchar(255) NOT NULL DEFAULT '',
115 `name` varchar(255) NOT NULL DEFAULT '',
116 `nick` varchar(255) NOT NULL DEFAULT '',
117 `location` varchar(255) NOT NULL DEFAULT '',
118 `about` text NOT NULL,
119 `keywords` text NOT NULL,
120 `gender` varchar(32) NOT NULL DEFAULT '',
121 `attag` varchar(255) NOT NULL DEFAULT '',
122 `photo` text NOT NULL,
123 `thumb` text NOT NULL,
124 `micro` text NOT NULL,
125 `site-pubkey` text NOT NULL,
126 `issued-id` varchar(255) NOT NULL DEFAULT '',
127 `dfrn-id` varchar(255) NOT NULL DEFAULT '',
128 `url` varchar(255) NOT NULL DEFAULT '',
129 `nurl` varchar(255) NOT NULL DEFAULT '',
130 `addr` varchar(255) NOT NULL DEFAULT '',
131 `alias` varchar(255) NOT NULL DEFAULT '',
132 `pubkey` text NOT NULL,
133 `prvkey` text NOT NULL,
134 `batch` varchar(255) NOT NULL DEFAULT '',
135 `request` text NOT NULL,
136 `notify` text NOT NULL,
137 `poll` text NOT NULL,
138 `confirm` text NOT NULL,
139 `poco` text NOT NULL,
140 `aes_allow` tinyint(1) NOT NULL DEFAULT 0,
141 `ret-aes` tinyint(1) NOT NULL DEFAULT 0,
142 `usehub` tinyint(1) NOT NULL DEFAULT 0,
143 `subhub` tinyint(1) NOT NULL DEFAULT 0,
144 `hub-verify` varchar(255) NOT NULL DEFAULT '',
145 `last-update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
146 `success_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
147 `failure_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
148 `name-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
149 `uri-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
150 `avatar-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
151 `term-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
152 `last-item` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
153 `priority` tinyint(3) NOT NULL DEFAULT 0,
154 `blocked` tinyint(1) NOT NULL DEFAULT 1,
155 `readonly` tinyint(1) NOT NULL DEFAULT 0,
156 `writable` tinyint(1) NOT NULL DEFAULT 0,
157 `forum` tinyint(1) NOT NULL DEFAULT 0,
158 `prv` tinyint(1) NOT NULL DEFAULT 0,
159 `hidden` tinyint(1) NOT NULL DEFAULT 0,
160 `archive` tinyint(1) NOT NULL DEFAULT 0,
161 `pending` tinyint(1) NOT NULL DEFAULT 1,
162 `rating` tinyint(1) NOT NULL DEFAULT 0,
163 `reason` text NOT NULL,
164 `closeness` tinyint(2) NOT NULL DEFAULT 99,
165 `info` mediumtext NOT NULL,
166 `profile-id` int(11) NOT NULL DEFAULT 0,
167 `bdyear` varchar(4) NOT NULL DEFAULT '',
168 `bd` date NOT NULL DEFAULT '0000-00-00',
169 `notify_new_posts` tinyint(1) NOT NULL DEFAULT 0,
170 `fetch_further_information` tinyint(1) NOT NULL DEFAULT 0,
171 `ffi_keyword_blacklist` mediumtext NOT NULL,
174 ) DEFAULT CHARSET=utf8;
179 CREATE TABLE IF NOT EXISTS `conv` (
180 `id` int(10) unsigned NOT NULL auto_increment,
181 `guid` varchar(64) NOT NULL DEFAULT '',
182 `recips` mediumtext NOT NULL,
183 `uid` int(11) NOT NULL DEFAULT 0,
184 `creator` varchar(255) NOT NULL DEFAULT '',
185 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
186 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
187 `subject` mediumtext NOT NULL,
190 ) DEFAULT CHARSET=utf8;
195 CREATE TABLE IF NOT EXISTS `deliverq` (
196 `id` int(10) unsigned NOT NULL auto_increment,
197 `cmd` varchar(32) NOT NULL DEFAULT '',
198 `item` int(11) NOT NULL DEFAULT 0,
199 `contact` int(11) NOT NULL DEFAULT 0,
201 ) DEFAULT CHARSET=utf8;
206 CREATE TABLE IF NOT EXISTS `dsprphotoq` (
207 `id` int(10) unsigned NOT NULL auto_increment,
208 `uid` int(11) NOT NULL DEFAULT 0,
209 `msg` mediumtext NOT NULL,
210 `attempt` tinyint(4) NOT NULL DEFAULT 0,
212 ) DEFAULT CHARSET=utf8;
217 CREATE TABLE IF NOT EXISTS `event` (
218 `id` int(11) NOT NULL auto_increment,
219 `uid` int(11) NOT NULL DEFAULT 0,
220 `cid` int(11) NOT NULL DEFAULT 0,
221 `uri` varchar(255) NOT NULL DEFAULT '',
222 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
223 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
224 `start` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
225 `finish` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
226 `summary` text NOT NULL,
227 `desc` text NOT NULL,
228 `location` text NOT NULL,
229 `type` varchar(255) NOT NULL DEFAULT '',
230 `nofinish` tinyint(1) NOT NULL DEFAULT 0,
231 `adjust` tinyint(1) NOT NULL DEFAULT 1,
232 `ignore` tinyint(1) unsigned NOT NULL DEFAULT 0,
233 `allow_cid` mediumtext NOT NULL,
234 `allow_gid` mediumtext NOT NULL,
235 `deny_cid` mediumtext NOT NULL,
236 `deny_gid` mediumtext NOT NULL,
239 ) DEFAULT CHARSET=utf8;
244 CREATE TABLE IF NOT EXISTS `fcontact` (
245 `id` int(10) unsigned NOT NULL auto_increment,
246 `url` varchar(255) NOT NULL DEFAULT '',
247 `name` varchar(255) NOT NULL DEFAULT '',
248 `photo` varchar(255) NOT NULL DEFAULT '',
249 `request` varchar(255) NOT NULL DEFAULT '',
250 `nick` varchar(255) NOT NULL DEFAULT '',
251 `addr` varchar(255) NOT NULL DEFAULT '',
252 `batch` varchar(255) NOT NULL DEFAULT '',
253 `notify` varchar(255) NOT NULL DEFAULT '',
254 `poll` varchar(255) NOT NULL DEFAULT '',
255 `confirm` varchar(255) NOT NULL DEFAULT '',
256 `priority` tinyint(1) NOT NULL DEFAULT 0,
257 `network` varchar(32) NOT NULL DEFAULT '',
258 `alias` varchar(255) NOT NULL DEFAULT '',
259 `pubkey` text NOT NULL,
260 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
262 INDEX `addr` (`addr`)
263 ) DEFAULT CHARSET=utf8;
268 CREATE TABLE IF NOT EXISTS `ffinder` (
269 `id` int(10) unsigned NOT NULL auto_increment,
270 `uid` int(10) unsigned NOT NULL DEFAULT 0,
271 `cid` int(10) unsigned NOT NULL DEFAULT 0,
272 `fid` int(10) unsigned NOT NULL DEFAULT 0,
274 ) DEFAULT CHARSET=utf8;
279 CREATE TABLE IF NOT EXISTS `fserver` (
280 `id` int(11) NOT NULL auto_increment,
281 `server` varchar(255) NOT NULL DEFAULT '',
282 `posturl` varchar(255) NOT NULL DEFAULT '',
285 INDEX `server` (`server`)
286 ) DEFAULT CHARSET=utf8;
291 CREATE TABLE IF NOT EXISTS `fsuggest` (
292 `id` int(11) NOT NULL auto_increment,
293 `uid` int(11) NOT NULL DEFAULT 0,
294 `cid` int(11) NOT NULL DEFAULT 0,
295 `name` varchar(255) NOT NULL DEFAULT '',
296 `url` varchar(255) NOT NULL DEFAULT '',
297 `request` varchar(255) NOT NULL DEFAULT '',
298 `photo` varchar(255) NOT NULL DEFAULT '',
299 `note` text NOT NULL,
300 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
302 ) DEFAULT CHARSET=utf8;
307 CREATE TABLE IF NOT EXISTS `gcign` (
308 `id` int(11) NOT NULL auto_increment,
309 `uid` int(11) NOT NULL DEFAULT 0,
310 `gcid` int(11) NOT NULL DEFAULT 0,
313 INDEX `gcid` (`gcid`)
314 ) DEFAULT CHARSET=utf8;
319 CREATE TABLE IF NOT EXISTS `gcontact` (
320 `id` int(10) unsigned NOT NULL auto_increment,
321 `name` varchar(255) NOT NULL DEFAULT '',
322 `nick` varchar(255) NOT NULL DEFAULT '',
323 `url` varchar(255) NOT NULL DEFAULT '',
324 `nurl` varchar(255) NOT NULL DEFAULT '',
325 `photo` varchar(255) NOT NULL DEFAULT '',
326 `connect` varchar(255) NOT NULL DEFAULT '',
327 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
328 `updated` datetime DEFAULT '0000-00-00 00:00:00',
329 `last_contact` datetime DEFAULT '0000-00-00 00:00:00',
330 `last_failure` datetime DEFAULT '0000-00-00 00:00:00',
331 `location` varchar(255) NOT NULL DEFAULT '',
332 `about` text NOT NULL,
333 `keywords` text NOT NULL,
334 `gender` varchar(32) NOT NULL DEFAULT '',
335 `birthday` varchar(32) NOT NULL DEFAULT '0000-00-00',
336 `community` tinyint(1) NOT NULL DEFAULT 0,
337 `hide` tinyint(1) NOT NULL DEFAULT 0,
338 `nsfw` tinyint(1) NOT NULL DEFAULT 0,
339 `network` varchar(255) NOT NULL DEFAULT '',
340 `addr` varchar(255) NOT NULL DEFAULT '',
341 `generation` tinyint(3) NOT NULL DEFAULT 0,
342 `server_url` varchar(255) NOT NULL DEFAULT '',
344 INDEX `nurl` (`nurl`),
345 INDEX `updated` (`updated`)
346 ) DEFAULT CHARSET=utf8;
351 CREATE TABLE IF NOT EXISTS `glink` (
352 `id` int(10) unsigned NOT NULL auto_increment,
353 `cid` int(11) NOT NULL DEFAULT 0,
354 `uid` int(11) NOT NULL DEFAULT 0,
355 `gcid` int(11) NOT NULL DEFAULT 0,
356 `zcid` int(11) NOT NULL DEFAULT 0,
357 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
359 INDEX `cid_uid_gcid_zcid` (`cid`,`uid`,`gcid`,`zcid`),
360 INDEX `gcid` (`gcid`),
361 INDEX `zcid` (`zcid`)
362 ) DEFAULT CHARSET=utf8;
367 CREATE TABLE IF NOT EXISTS `group` (
368 `id` int(10) unsigned NOT NULL auto_increment,
369 `uid` int(10) unsigned NOT NULL DEFAULT 0,
370 `visible` tinyint(1) NOT NULL DEFAULT 0,
371 `deleted` tinyint(1) NOT NULL DEFAULT 0,
372 `name` varchar(255) NOT NULL DEFAULT '',
375 ) DEFAULT CHARSET=utf8;
378 -- TABLE group_member
380 CREATE TABLE IF NOT EXISTS `group_member` (
381 `id` int(10) unsigned NOT NULL auto_increment,
382 `uid` int(10) unsigned NOT NULL DEFAULT 0,
383 `gid` int(10) unsigned NOT NULL DEFAULT 0,
384 `contact-id` int(10) unsigned NOT NULL DEFAULT 0,
386 INDEX `uid_gid_contactid` (`uid`,`gid`,`contact-id`)
387 ) DEFAULT CHARSET=utf8;
392 CREATE TABLE IF NOT EXISTS `gserver` (
393 `id` int(10) unsigned NOT NULL auto_increment,
394 `url` varchar(255) NOT NULL DEFAULT '',
395 `nurl` varchar(255) NOT NULL DEFAULT '',
396 `version` varchar(255) NOT NULL DEFAULT '',
397 `site_name` varchar(255) NOT NULL DEFAULT '',
398 `info` text NOT NULL,
399 `register_policy` tinyint(1) NOT NULL DEFAULT 0,
400 `poco` varchar(255) NOT NULL DEFAULT '',
401 `noscrape` varchar(255) NOT NULL DEFAULT '',
402 `network` varchar(32) NOT NULL DEFAULT '',
403 `platform` varchar(255) NOT NULL DEFAULT '',
404 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
405 `last_poco_query` datetime DEFAULT '0000-00-00 00:00:00',
406 `last_contact` datetime DEFAULT '0000-00-00 00:00:00',
407 `last_failure` datetime DEFAULT '0000-00-00 00:00:00',
409 INDEX `nurl` (`nurl`)
410 ) DEFAULT CHARSET=utf8;
415 CREATE TABLE IF NOT EXISTS `guid` (
416 `id` int(10) unsigned NOT NULL auto_increment,
417 `guid` varchar(255) NOT NULL DEFAULT '',
418 `plink` varchar(255) NOT NULL DEFAULT '',
419 `uri` varchar(255) NOT NULL DEFAULT '',
420 `network` varchar(32) NOT NULL DEFAULT '',
422 INDEX `guid` (`guid`),
423 INDEX `plink` (`plink`),
425 ) DEFAULT CHARSET=utf8;
430 CREATE TABLE IF NOT EXISTS `hook` (
431 `id` int(11) NOT NULL auto_increment,
432 `hook` varchar(255) NOT NULL DEFAULT '',
433 `file` varchar(255) NOT NULL DEFAULT '',
434 `function` varchar(255) NOT NULL DEFAULT '',
435 `priority` int(11) unsigned NOT NULL DEFAULT 0,
437 INDEX `hook_file_function` (`hook`(30),`file`(60),`function`(30))
438 ) DEFAULT CHARSET=utf8;
443 CREATE TABLE IF NOT EXISTS `intro` (
444 `id` int(10) unsigned NOT NULL auto_increment,
445 `uid` int(10) unsigned NOT NULL DEFAULT 0,
446 `fid` int(11) NOT NULL DEFAULT 0,
447 `contact-id` int(11) NOT NULL DEFAULT 0,
448 `knowyou` tinyint(1) NOT NULL DEFAULT 0,
449 `duplex` tinyint(1) NOT NULL DEFAULT 0,
450 `note` text NOT NULL,
451 `hash` varchar(255) NOT NULL DEFAULT '',
452 `datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
453 `blocked` tinyint(1) NOT NULL DEFAULT 1,
454 `ignore` tinyint(1) NOT NULL DEFAULT 0,
456 ) DEFAULT CHARSET=utf8;
461 CREATE TABLE IF NOT EXISTS `item` (
462 `id` int(10) unsigned NOT NULL auto_increment,
463 `guid` varchar(255) NOT NULL DEFAULT '',
464 `uri` varchar(255) NOT NULL DEFAULT '',
465 `uid` int(10) unsigned NOT NULL DEFAULT 0,
466 `contact-id` int(11) NOT NULL DEFAULT 0,
467 `gcontact-id` int(11) unsigned NOT NULL DEFAULT 0,
468 `type` varchar(255) NOT NULL DEFAULT '',
469 `wall` tinyint(1) NOT NULL DEFAULT 0,
470 `gravity` tinyint(1) NOT NULL DEFAULT 0,
471 `parent` int(10) unsigned NOT NULL DEFAULT 0,
472 `parent-uri` varchar(255) NOT NULL DEFAULT '',
473 `extid` varchar(255) NOT NULL DEFAULT '',
474 `thr-parent` varchar(255) NOT NULL DEFAULT '',
475 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
476 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
477 `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
478 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
479 `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
480 `owner-name` varchar(255) NOT NULL DEFAULT '',
481 `owner-link` varchar(255) NOT NULL DEFAULT '',
482 `owner-avatar` varchar(255) NOT NULL DEFAULT '',
483 `author-name` varchar(255) NOT NULL DEFAULT '',
484 `author-link` varchar(255) NOT NULL DEFAULT '',
485 `author-avatar` varchar(255) NOT NULL DEFAULT '',
486 `title` varchar(255) NOT NULL DEFAULT '',
487 `body` mediumtext NOT NULL,
488 `app` varchar(255) NOT NULL DEFAULT '',
489 `verb` varchar(255) NOT NULL DEFAULT '',
490 `object-type` varchar(255) NOT NULL DEFAULT '',
491 `object` text NOT NULL,
492 `target-type` varchar(255) NOT NULL DEFAULT '',
493 `target` text NOT NULL,
494 `postopts` text NOT NULL,
495 `plink` varchar(255) NOT NULL DEFAULT '',
496 `resource-id` varchar(255) NOT NULL DEFAULT '',
497 `event-id` int(11) NOT NULL DEFAULT 0,
498 `tag` mediumtext NOT NULL,
499 `attach` mediumtext NOT NULL,
500 `inform` mediumtext NOT NULL,
501 `file` mediumtext NOT NULL,
502 `location` varchar(255) NOT NULL DEFAULT '',
503 `coord` varchar(255) NOT NULL DEFAULT '',
504 `allow_cid` mediumtext NOT NULL,
505 `allow_gid` mediumtext NOT NULL,
506 `deny_cid` mediumtext NOT NULL,
507 `deny_gid` mediumtext NOT NULL,
508 `private` tinyint(1) NOT NULL DEFAULT 0,
509 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
510 `moderated` tinyint(1) NOT NULL DEFAULT 0,
511 `visible` tinyint(1) NOT NULL DEFAULT 0,
512 `spam` tinyint(1) NOT NULL DEFAULT 0,
513 `starred` tinyint(1) NOT NULL DEFAULT 0,
514 `bookmark` tinyint(1) NOT NULL DEFAULT 0,
515 `unseen` tinyint(1) NOT NULL DEFAULT 1,
516 `deleted` tinyint(1) NOT NULL DEFAULT 0,
517 `origin` tinyint(1) NOT NULL DEFAULT 0,
518 `forum_mode` tinyint(1) NOT NULL DEFAULT 0,
519 `last-child` tinyint(1) unsigned NOT NULL DEFAULT 1,
520 `mention` tinyint(1) NOT NULL DEFAULT 0,
521 `network` varchar(32) NOT NULL DEFAULT '',
522 `rendered-hash` varchar(32) NOT NULL DEFAULT '',
523 `rendered-html` mediumtext NOT NULL,
524 `global` tinyint(1) NOT NULL DEFAULT 0,
526 INDEX `guid` (`guid`),
528 INDEX `parent` (`parent`),
529 INDEX `parent-uri` (`parent-uri`),
530 INDEX `extid` (`extid`),
531 INDEX `uid_id` (`uid`,`id`),
532 INDEX `uid_created` (`uid`,`created`),
533 INDEX `uid_unseen` (`uid`,`unseen`),
534 INDEX `uid_network_received` (`uid`,`network`,`received`),
535 INDEX `uid_received` (`uid`,`received`),
536 INDEX `uid_network_commented` (`uid`,`network`,`commented`),
537 INDEX `uid_commented` (`uid`,`commented`),
538 INDEX `uid_title` (`uid`,`title`),
539 INDEX `uid_thrparent` (`uid`,`thr-parent`),
540 INDEX `uid_parenturi` (`uid`,`parent-uri`),
541 INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
542 INDEX `uid_gcontactid_created` (`uid`,`gcontact-id`,`created`),
543 INDEX `wall_body` (`wall`,`body`(6)),
544 INDEX `uid_visible_moderated_created` (`uid`,`visible`,`moderated`,`created`),
545 INDEX `uid_uri` (`uid`,`uri`),
546 INDEX `uid_wall_created` (`uid`,`wall`,`created`),
547 INDEX `resource-id` (`resource-id`),
548 INDEX `uid_type` (`uid`,`type`),
549 INDEX `uid_starred` (`uid`,`starred`),
550 INDEX `contactid_allowcid_allowpid_denycid_denygid` (`contact-id`,`allow_cid`(10),`allow_gid`(10),`deny_cid`(10),`deny_gid`(10)),
551 INDEX `uid_wall_parent_created` (`uid`,`wall`,`parent`,`created`),
552 INDEX `uid_type_changed` (`uid`,`type`,`changed`),
553 INDEX `contactid_verb` (`contact-id`,`verb`),
554 INDEX `deleted_changed` (`deleted`,`changed`),
555 INDEX `uid_wall_changed` (`uid`,`wall`,`changed`),
556 INDEX `uid_eventid` (`uid`,`event-id`),
557 INDEX `uid_authorlink` (`uid`,`author-link`),
558 INDEX `uid_ownerlink` (`uid`,`owner-link`)
559 ) DEFAULT CHARSET=utf8;
564 CREATE TABLE IF NOT EXISTS `item_id` (
565 `id` int(11) NOT NULL auto_increment,
566 `iid` int(11) NOT NULL DEFAULT 0,
567 `uid` int(11) NOT NULL DEFAULT 0,
568 `sid` varchar(255) NOT NULL DEFAULT '',
569 `service` varchar(255) NOT NULL DEFAULT '',
573 INDEX `service` (`service`),
575 ) DEFAULT CHARSET=utf8;
580 CREATE TABLE IF NOT EXISTS `locks` (
581 `id` int(11) NOT NULL auto_increment,
582 `name` varchar(128) NOT NULL DEFAULT '',
583 `locked` tinyint(1) NOT NULL DEFAULT 0,
584 `created` datetime DEFAULT '0000-00-00 00:00:00',
586 ) DEFAULT CHARSET=utf8;
591 CREATE TABLE IF NOT EXISTS `mail` (
592 `id` int(10) unsigned NOT NULL auto_increment,
593 `uid` int(10) unsigned NOT NULL DEFAULT 0,
594 `guid` varchar(64) NOT NULL DEFAULT '',
595 `from-name` varchar(255) NOT NULL DEFAULT '',
596 `from-photo` varchar(255) NOT NULL DEFAULT '',
597 `from-url` varchar(255) NOT NULL DEFAULT '',
598 `contact-id` varchar(255) NOT NULL DEFAULT '',
599 `convid` int(11) unsigned NOT NULL DEFAULT 0,
600 `title` varchar(255) NOT NULL DEFAULT '',
601 `body` mediumtext NOT NULL,
602 `seen` tinyint(1) NOT NULL DEFAULT 0,
603 `reply` tinyint(1) NOT NULL DEFAULT 0,
604 `replied` tinyint(1) NOT NULL DEFAULT 0,
605 `unknown` tinyint(1) NOT NULL DEFAULT 0,
606 `uri` varchar(255) NOT NULL DEFAULT '',
607 `parent-uri` varchar(255) NOT NULL DEFAULT '',
608 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
611 INDEX `guid` (`guid`),
612 INDEX `convid` (`convid`),
613 INDEX `reply` (`reply`),
615 INDEX `parent-uri` (`parent-uri`)
616 ) DEFAULT CHARSET=utf8;
621 CREATE TABLE IF NOT EXISTS `mailacct` (
622 `id` int(11) NOT NULL auto_increment,
623 `uid` int(11) NOT NULL DEFAULT 0,
624 `server` varchar(255) NOT NULL DEFAULT '',
625 `port` int(11) NOT NULL DEFAULT 0,
626 `ssltype` varchar(16) NOT NULL DEFAULT '',
627 `mailbox` varchar(255) NOT NULL DEFAULT '',
628 `user` varchar(255) NOT NULL DEFAULT '',
629 `pass` text NOT NULL,
630 `reply_to` varchar(255) NOT NULL DEFAULT '',
631 `action` int(11) NOT NULL DEFAULT 0,
632 `movetofolder` varchar(255) NOT NULL DEFAULT '',
633 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
634 `last_check` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
636 ) DEFAULT CHARSET=utf8;
641 CREATE TABLE IF NOT EXISTS `manage` (
642 `id` int(11) NOT NULL auto_increment,
643 `uid` int(11) NOT NULL DEFAULT 0,
644 `mid` int(11) NOT NULL DEFAULT 0,
646 INDEX `uid_mid` (`uid`,`mid`)
647 ) DEFAULT CHARSET=utf8;
652 CREATE TABLE IF NOT EXISTS `notify` (
653 `id` int(11) NOT NULL auto_increment,
654 `hash` varchar(64) NOT NULL DEFAULT '',
655 `type` int(11) NOT NULL DEFAULT 0,
656 `name` varchar(255) NOT NULL DEFAULT '',
657 `url` varchar(255) NOT NULL DEFAULT '',
658 `photo` varchar(255) NOT NULL DEFAULT '',
659 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
660 `msg` mediumtext NOT NULL,
661 `uid` int(11) NOT NULL DEFAULT 0,
662 `link` varchar(255) NOT NULL DEFAULT '',
663 `iid` int(11) NOT NULL DEFAULT 0,
664 `parent` int(11) NOT NULL DEFAULT 0,
665 `seen` tinyint(1) NOT NULL DEFAULT 0,
666 `verb` varchar(255) NOT NULL DEFAULT '',
667 `otype` varchar(16) NOT NULL DEFAULT '',
670 ) DEFAULT CHARSET=utf8;
673 -- TABLE notify-threads
675 CREATE TABLE IF NOT EXISTS `notify-threads` (
676 `id` int(11) NOT NULL auto_increment,
677 `notify-id` int(11) NOT NULL DEFAULT 0,
678 `master-parent-item` int(10) unsigned NOT NULL DEFAULT 0,
679 `parent-item` int(10) unsigned NOT NULL DEFAULT 0,
680 `receiver-uid` int(11) NOT NULL DEFAULT 0,
682 INDEX `master-parent-item` (`master-parent-item`),
683 INDEX `receiver-uid` (`receiver-uid`)
684 ) DEFAULT CHARSET=utf8;
689 CREATE TABLE IF NOT EXISTS `pconfig` (
690 `id` int(11) NOT NULL auto_increment,
691 `uid` int(11) NOT NULL DEFAULT 0,
692 `cat` varchar(255) NOT NULL DEFAULT '',
693 `k` varchar(255) NOT NULL DEFAULT '',
694 `v` mediumtext NOT NULL,
696 INDEX `uid_cat_k` (`uid`,`cat`(30),`k`(30))
697 ) DEFAULT CHARSET=utf8;
702 CREATE TABLE IF NOT EXISTS `photo` (
703 `id` int(10) unsigned NOT NULL auto_increment,
704 `uid` int(10) unsigned NOT NULL DEFAULT 0,
705 `contact-id` int(10) unsigned NOT NULL DEFAULT 0,
706 `guid` varchar(64) NOT NULL DEFAULT '',
707 `resource-id` varchar(255) NOT NULL DEFAULT '',
708 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
709 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
710 `title` varchar(255) NOT NULL DEFAULT '',
711 `desc` text NOT NULL,
712 `album` varchar(255) NOT NULL DEFAULT '',
713 `filename` varchar(255) NOT NULL DEFAULT '',
714 `type` varchar(128) NOT NULL DEFAULT 'image/jpeg',
715 `height` smallint(6) NOT NULL DEFAULT 0,
716 `width` smallint(6) NOT NULL DEFAULT 0,
717 `datasize` int(10) unsigned NOT NULL DEFAULT 0,
718 `data` mediumblob NOT NULL,
719 `scale` tinyint(3) NOT NULL DEFAULT 0,
720 `profile` tinyint(1) NOT NULL DEFAULT 0,
721 `allow_cid` mediumtext NOT NULL,
722 `allow_gid` mediumtext NOT NULL,
723 `deny_cid` mediumtext NOT NULL,
724 `deny_gid` mediumtext NOT NULL,
727 INDEX `resource-id` (`resource-id`),
728 INDEX `guid` (`guid`)
729 ) DEFAULT CHARSET=utf8;
734 CREATE TABLE IF NOT EXISTS `poll` (
735 `id` int(11) NOT NULL auto_increment,
736 `uid` int(11) NOT NULL DEFAULT 0,
737 `q0` mediumtext NOT NULL,
738 `q1` mediumtext NOT NULL,
739 `q2` mediumtext NOT NULL,
740 `q3` mediumtext NOT NULL,
741 `q4` mediumtext NOT NULL,
742 `q5` mediumtext NOT NULL,
743 `q6` mediumtext NOT NULL,
744 `q7` mediumtext NOT NULL,
745 `q8` mediumtext NOT NULL,
746 `q9` mediumtext NOT NULL,
749 ) DEFAULT CHARSET=utf8;
754 CREATE TABLE IF NOT EXISTS `poll_result` (
755 `id` int(11) NOT NULL auto_increment,
756 `poll_id` int(11) NOT NULL DEFAULT 0,
757 `choice` int(11) NOT NULL DEFAULT 0,
759 INDEX `poll_id` (`poll_id`),
760 INDEX `choice` (`choice`)
761 ) DEFAULT CHARSET=utf8;
766 CREATE TABLE IF NOT EXISTS `profile` (
767 `id` int(11) NOT NULL auto_increment,
768 `uid` int(11) NOT NULL DEFAULT 0,
769 `profile-name` varchar(255) NOT NULL DEFAULT '',
770 `is-default` tinyint(1) NOT NULL DEFAULT 0,
771 `hide-friends` tinyint(1) NOT NULL DEFAULT 0,
772 `name` varchar(255) NOT NULL DEFAULT '',
773 `pdesc` varchar(255) NOT NULL DEFAULT '',
774 `dob` varchar(32) NOT NULL DEFAULT '0000-00-00',
775 `address` varchar(255) NOT NULL DEFAULT '',
776 `locality` varchar(255) NOT NULL DEFAULT '',
777 `region` varchar(255) NOT NULL DEFAULT '',
778 `postal-code` varchar(32) NOT NULL DEFAULT '',
779 `country-name` varchar(255) NOT NULL DEFAULT '',
780 `hometown` varchar(255) NOT NULL DEFAULT '',
781 `gender` varchar(32) NOT NULL DEFAULT '',
782 `marital` varchar(255) NOT NULL DEFAULT '',
783 `with` text NOT NULL,
784 `howlong` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
785 `sexual` varchar(255) NOT NULL DEFAULT '',
786 `politic` varchar(255) NOT NULL DEFAULT '',
787 `religion` varchar(255) NOT NULL DEFAULT '',
788 `pub_keywords` text NOT NULL,
789 `prv_keywords` text NOT NULL,
790 `likes` text NOT NULL,
791 `dislikes` text NOT NULL,
792 `about` text NOT NULL,
793 `summary` varchar(255) NOT NULL DEFAULT '',
794 `music` text NOT NULL,
795 `book` text NOT NULL,
797 `film` text NOT NULL,
798 `interest` text NOT NULL,
799 `romance` text NOT NULL,
800 `work` text NOT NULL,
801 `education` text NOT NULL,
802 `contact` text NOT NULL,
803 `homepage` varchar(255) NOT NULL DEFAULT '',
804 `photo` varchar(255) NOT NULL DEFAULT '',
805 `thumb` varchar(255) NOT NULL DEFAULT '',
806 `publish` tinyint(1) NOT NULL DEFAULT 0,
807 `net-publish` tinyint(1) NOT NULL DEFAULT 0,
809 INDEX `hometown` (`hometown`)
810 ) DEFAULT CHARSET=utf8;
813 -- TABLE profile_check
815 CREATE TABLE IF NOT EXISTS `profile_check` (
816 `id` int(10) unsigned NOT NULL auto_increment,
817 `uid` int(10) unsigned NOT NULL DEFAULT 0,
818 `cid` int(10) unsigned NOT NULL DEFAULT 0,
819 `dfrn_id` varchar(255) NOT NULL DEFAULT '',
820 `sec` varchar(255) NOT NULL DEFAULT '',
821 `expire` int(11) NOT NULL DEFAULT 0,
823 ) DEFAULT CHARSET=utf8;
826 -- TABLE push_subscriber
828 CREATE TABLE IF NOT EXISTS `push_subscriber` (
829 `id` int(11) NOT NULL auto_increment,
830 `uid` int(11) NOT NULL DEFAULT 0,
831 `callback_url` varchar(255) NOT NULL DEFAULT '',
832 `topic` varchar(255) NOT NULL DEFAULT '',
833 `nickname` varchar(255) NOT NULL DEFAULT '',
834 `push` int(11) NOT NULL DEFAULT 0,
835 `last_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
836 `secret` varchar(255) NOT NULL DEFAULT '',
838 ) DEFAULT CHARSET=utf8;
843 CREATE TABLE IF NOT EXISTS `queue` (
844 `id` int(11) NOT NULL auto_increment,
845 `cid` int(11) NOT NULL DEFAULT 0,
846 `network` varchar(32) NOT NULL DEFAULT '',
847 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
848 `last` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
849 `content` mediumtext NOT NULL,
850 `batch` tinyint(1) NOT NULL DEFAULT 0,
853 INDEX `created` (`created`),
854 INDEX `last` (`last`),
855 INDEX `network` (`network`),
856 INDEX `batch` (`batch`)
857 ) DEFAULT CHARSET=utf8;
862 CREATE TABLE IF NOT EXISTS `register` (
863 `id` int(11) unsigned NOT NULL auto_increment,
864 `hash` varchar(255) NOT NULL DEFAULT '',
865 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
866 `uid` int(11) unsigned NOT NULL DEFAULT 0,
867 `password` varchar(255) NOT NULL DEFAULT '',
868 `language` varchar(16) NOT NULL DEFAULT '',
870 ) DEFAULT CHARSET=utf8;
875 CREATE TABLE IF NOT EXISTS `search` (
876 `id` int(11) NOT NULL auto_increment,
877 `uid` int(11) NOT NULL DEFAULT 0,
878 `term` varchar(255) NOT NULL DEFAULT '',
881 INDEX `term` (`term`)
882 ) DEFAULT CHARSET=utf8;
887 CREATE TABLE IF NOT EXISTS `session` (
888 `id` bigint(20) unsigned NOT NULL auto_increment,
889 `sid` varchar(255) NOT NULL DEFAULT '',
890 `data` text NOT NULL,
891 `expire` int(10) unsigned NOT NULL DEFAULT 0,
894 INDEX `expire` (`expire`)
895 ) DEFAULT CHARSET=utf8;
900 CREATE TABLE IF NOT EXISTS `sign` (
901 `id` int(10) unsigned NOT NULL auto_increment,
902 `iid` int(10) unsigned NOT NULL DEFAULT 0,
903 `retract_iid` int(10) unsigned NOT NULL DEFAULT 0,
904 `signed_text` mediumtext NOT NULL,
905 `signature` text NOT NULL,
906 `signer` varchar(255) NOT NULL DEFAULT '',
909 INDEX `retract_iid` (`retract_iid`)
910 ) DEFAULT CHARSET=utf8;
915 CREATE TABLE IF NOT EXISTS `spam` (
916 `id` int(11) NOT NULL auto_increment,
917 `uid` int(11) NOT NULL DEFAULT 0,
918 `spam` int(11) NOT NULL DEFAULT 0,
919 `ham` int(11) NOT NULL DEFAULT 0,
920 `term` varchar(255) NOT NULL DEFAULT '',
921 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
924 INDEX `spam` (`spam`),
926 INDEX `term` (`term`)
927 ) DEFAULT CHARSET=utf8;
932 CREATE TABLE IF NOT EXISTS `term` (
933 `tid` int(10) unsigned NOT NULL auto_increment,
934 `oid` int(10) unsigned NOT NULL DEFAULT 0,
935 `otype` tinyint(3) unsigned NOT NULL DEFAULT 0,
936 `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
937 `term` varchar(255) NOT NULL DEFAULT '',
938 `url` varchar(255) NOT NULL DEFAULT '',
939 `guid` varchar(255) NOT NULL DEFAULT '',
940 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
941 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
942 `global` tinyint(1) NOT NULL DEFAULT 0,
943 `aid` int(10) unsigned NOT NULL DEFAULT 0,
944 `uid` int(10) unsigned NOT NULL DEFAULT 0,
946 INDEX `oid_otype_type_term` (`oid`,`otype`,`type`,`term`),
947 INDEX `uid_term_tid` (`uid`,`term`,`tid`),
948 INDEX `type_term` (`type`,`term`),
949 INDEX `uid_otype_type_term_global_created` (`uid`,`otype`,`type`,`term`,`global`,`created`),
950 INDEX `otype_type_term_tid` (`otype`,`type`,`term`,`tid`),
951 INDEX `guid` (`guid`)
952 ) DEFAULT CHARSET=utf8;
957 CREATE TABLE IF NOT EXISTS `thread` (
958 `iid` int(10) unsigned NOT NULL DEFAULT 0,
959 `uid` int(10) unsigned NOT NULL DEFAULT 0,
960 `contact-id` int(11) unsigned NOT NULL DEFAULT 0,
961 `gcontact-id` int(11) unsigned NOT NULL DEFAULT 0,
962 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
963 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
964 `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
965 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
966 `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
967 `wall` tinyint(1) NOT NULL DEFAULT 0,
968 `private` tinyint(1) NOT NULL DEFAULT 0,
969 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
970 `moderated` tinyint(1) NOT NULL DEFAULT 0,
971 `visible` tinyint(1) NOT NULL DEFAULT 0,
972 `spam` tinyint(1) NOT NULL DEFAULT 0,
973 `starred` tinyint(1) NOT NULL DEFAULT 0,
974 `ignored` tinyint(1) NOT NULL DEFAULT 0,
975 `bookmark` tinyint(1) NOT NULL DEFAULT 0,
976 `unseen` tinyint(1) NOT NULL DEFAULT 1,
977 `deleted` tinyint(1) NOT NULL DEFAULT 0,
978 `origin` tinyint(1) NOT NULL DEFAULT 0,
979 `forum_mode` tinyint(1) NOT NULL DEFAULT 0,
980 `mention` tinyint(1) NOT NULL DEFAULT 0,
981 `network` varchar(32) NOT NULL DEFAULT '',
983 INDEX `created` (`created`),
984 INDEX `commented` (`commented`),
985 INDEX `uid_network_commented` (`uid`,`network`,`commented`),
986 INDEX `uid_network_created` (`uid`,`network`,`created`),
987 INDEX `uid_contactid_commented` (`uid`,`contact-id`,`commented`),
988 INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
989 INDEX `wall_private_received` (`wall`,`private`,`received`),
990 INDEX `uid_created` (`uid`,`created`),
991 INDEX `uid_commented` (`uid`,`commented`)
992 ) DEFAULT CHARSET=utf8;
997 CREATE TABLE IF NOT EXISTS `tokens` (
998 `id` varchar(40) NOT NULL,
999 `secret` text NOT NULL,
1000 `client_id` varchar(20) NOT NULL DEFAULT '',
1001 `expires` int(11) NOT NULL DEFAULT 0,
1002 `scope` varchar(200) NOT NULL DEFAULT '',
1003 `uid` int(11) NOT NULL DEFAULT 0,
1005 ) DEFAULT CHARSET=utf8;
1010 CREATE TABLE IF NOT EXISTS `user` (
1011 `uid` int(11) NOT NULL auto_increment,
1012 `guid` varchar(64) NOT NULL DEFAULT '',
1013 `username` varchar(255) NOT NULL DEFAULT '',
1014 `password` varchar(255) NOT NULL DEFAULT '',
1015 `nickname` varchar(255) NOT NULL DEFAULT '',
1016 `email` varchar(255) NOT NULL DEFAULT '',
1017 `openid` varchar(255) NOT NULL DEFAULT '',
1018 `timezone` varchar(128) NOT NULL DEFAULT '',
1019 `language` varchar(32) NOT NULL DEFAULT 'en',
1020 `register_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1021 `login_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1022 `default-location` varchar(255) NOT NULL DEFAULT '',
1023 `allow_location` tinyint(1) NOT NULL DEFAULT 0,
1024 `theme` varchar(255) NOT NULL DEFAULT '',
1025 `pubkey` text NOT NULL,
1026 `prvkey` text NOT NULL,
1027 `spubkey` text NOT NULL,
1028 `sprvkey` text NOT NULL,
1029 `verified` tinyint(1) unsigned NOT NULL DEFAULT 0,
1030 `blocked` tinyint(1) unsigned NOT NULL DEFAULT 0,
1031 `blockwall` tinyint(1) unsigned NOT NULL DEFAULT 0,
1032 `hidewall` tinyint(1) unsigned NOT NULL DEFAULT 0,
1033 `blocktags` tinyint(1) unsigned NOT NULL DEFAULT 0,
1034 `unkmail` tinyint(1) NOT NULL DEFAULT 0,
1035 `cntunkmail` int(11) NOT NULL DEFAULT 10,
1036 `notify-flags` int(11) unsigned NOT NULL DEFAULT 65535,
1037 `page-flags` int(11) unsigned NOT NULL DEFAULT 0,
1038 `prvnets` tinyint(1) NOT NULL DEFAULT 0,
1039 `pwdreset` varchar(255) NOT NULL DEFAULT '',
1040 `maxreq` int(11) NOT NULL DEFAULT 10,
1041 `expire` int(11) unsigned NOT NULL DEFAULT 0,
1042 `account_removed` tinyint(1) NOT NULL DEFAULT 0,
1043 `account_expired` tinyint(1) NOT NULL DEFAULT 0,
1044 `account_expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1045 `expire_notification_sent` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1046 `service_class` varchar(32) NOT NULL DEFAULT '',
1047 `def_gid` int(11) NOT NULL DEFAULT 0,
1048 `allow_cid` mediumtext NOT NULL,
1049 `allow_gid` mediumtext NOT NULL,
1050 `deny_cid` mediumtext NOT NULL,
1051 `deny_gid` mediumtext NOT NULL,
1052 `openidserver` text NOT NULL,
1054 INDEX `nickname` (`nickname`)
1055 ) DEFAULT CHARSET=utf8;
1060 CREATE TABLE IF NOT EXISTS `userd` (
1061 `id` int(11) NOT NULL auto_increment,
1062 `username` varchar(255) NOT NULL,
1064 INDEX `username` (`username`)
1065 ) DEFAULT CHARSET=utf8;
1068 -- TABLE workerqueue
1070 CREATE TABLE IF NOT EXISTS `workerqueue` (
1071 `id` int(11) NOT NULL auto_increment,
1072 `parameter` text NOT NULL,
1073 `priority` tinyint(3) unsigned NOT NULL DEFAULT 0,
1074 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1075 `pid` int(11) NOT NULL DEFAULT 0,
1076 `executed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1078 INDEX `created` (`created`)
1079 ) DEFAULT CHARSET=utf8;