1 -- ------------------------------------------
2 -- Friendica 3.5.1-dev (Asparagus)
3 -- DB_UPDATE_VERSION 1205
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=utf8mb4;
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,
35 `allow_gid` mediumtext,
36 `deny_cid` mediumtext,
37 `deny_gid` mediumtext,
39 ) DEFAULT CHARSET=utf8mb4;
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=utf8mb4;
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',
61 PRIMARY KEY(`k`(191)),
62 INDEX `updated` (`updated`)
63 ) DEFAULT CHARSET=utf8mb4;
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=utf8mb4;
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=utf8mb4;
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 UNIQUE INDEX `cat_k` (`cat`(30),`k`(30))
101 ) DEFAULT CHARSET=utf8mb4;
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 '',
120 `gender` varchar(32) NOT NULL DEFAULT '',
121 `xmpp` varchar(255) NOT NULL DEFAULT '',
122 `attag` varchar(255) NOT NULL DEFAULT '',
123 `avatar` varchar(255) NOT NULL DEFAULT '',
128 `issued-id` varchar(255) NOT NULL DEFAULT '',
129 `dfrn-id` varchar(255) NOT NULL DEFAULT '',
130 `url` varchar(255) NOT NULL DEFAULT '',
131 `nurl` varchar(255) NOT NULL DEFAULT '',
132 `addr` varchar(255) NOT NULL DEFAULT '',
133 `alias` varchar(255) NOT NULL DEFAULT '',
136 `batch` varchar(255) NOT NULL DEFAULT '',
142 `aes_allow` tinyint(1) NOT NULL DEFAULT 0,
143 `ret-aes` tinyint(1) NOT NULL DEFAULT 0,
144 `usehub` tinyint(1) NOT NULL DEFAULT 0,
145 `subhub` tinyint(1) NOT NULL DEFAULT 0,
146 `hub-verify` varchar(255) NOT NULL DEFAULT '',
147 `last-update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
148 `success_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
149 `failure_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
150 `name-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
151 `uri-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
152 `avatar-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
153 `term-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
154 `last-item` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
155 `priority` tinyint(3) NOT NULL DEFAULT 0,
156 `blocked` tinyint(1) NOT NULL DEFAULT 1,
157 `readonly` tinyint(1) NOT NULL DEFAULT 0,
158 `writable` tinyint(1) NOT NULL DEFAULT 0,
159 `forum` tinyint(1) NOT NULL DEFAULT 0,
160 `prv` tinyint(1) NOT NULL DEFAULT 0,
161 `contact-type` int(11) unsigned NOT NULL DEFAULT 0,
162 `hidden` tinyint(1) NOT NULL DEFAULT 0,
163 `archive` tinyint(1) NOT NULL DEFAULT 0,
164 `pending` tinyint(1) NOT NULL DEFAULT 1,
165 `rating` tinyint(1) NOT NULL DEFAULT 0,
167 `closeness` tinyint(2) NOT NULL DEFAULT 99,
169 `profile-id` int(11) NOT NULL DEFAULT 0,
170 `bdyear` varchar(4) NOT NULL DEFAULT '',
171 `bd` date NOT NULL DEFAULT '0000-00-00',
172 `notify_new_posts` tinyint(1) NOT NULL DEFAULT 0,
173 `fetch_further_information` tinyint(1) NOT NULL DEFAULT 0,
174 `ffi_keyword_blacklist` mediumtext,
177 INDEX `nurl` (`nurl`)
178 ) DEFAULT CHARSET=utf8mb4;
183 CREATE TABLE IF NOT EXISTS `conv` (
184 `id` int(10) unsigned NOT NULL auto_increment,
185 `guid` varchar(64) NOT NULL DEFAULT '',
187 `uid` int(11) NOT NULL DEFAULT 0,
188 `creator` varchar(255) NOT NULL DEFAULT '',
189 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
190 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
191 `subject` mediumtext,
194 ) DEFAULT CHARSET=utf8mb4;
199 CREATE TABLE IF NOT EXISTS `deliverq` (
200 `id` int(10) unsigned NOT NULL auto_increment,
201 `cmd` varchar(32) NOT NULL DEFAULT '',
202 `item` int(11) NOT NULL DEFAULT 0,
203 `contact` int(11) NOT NULL DEFAULT 0,
205 ) DEFAULT CHARSET=utf8mb4;
210 CREATE TABLE IF NOT EXISTS `event` (
211 `id` int(11) NOT NULL auto_increment,
212 `uid` int(11) NOT NULL DEFAULT 0,
213 `cid` int(11) NOT NULL DEFAULT 0,
214 `uri` varchar(255) NOT NULL DEFAULT '',
215 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
216 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
217 `start` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
218 `finish` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
222 `type` varchar(255) NOT NULL DEFAULT '',
223 `nofinish` tinyint(1) NOT NULL DEFAULT 0,
224 `adjust` tinyint(1) NOT NULL DEFAULT 1,
225 `ignore` tinyint(1) unsigned NOT NULL DEFAULT 0,
226 `allow_cid` mediumtext,
227 `allow_gid` mediumtext,
228 `deny_cid` mediumtext,
229 `deny_gid` mediumtext,
232 ) DEFAULT CHARSET=utf8mb4;
237 CREATE TABLE IF NOT EXISTS `fcontact` (
238 `id` int(10) unsigned NOT NULL auto_increment,
239 `guid` varchar(255) NOT NULL DEFAULT '',
240 `url` varchar(255) NOT NULL DEFAULT '',
241 `name` varchar(255) NOT NULL DEFAULT '',
242 `photo` varchar(255) NOT NULL DEFAULT '',
243 `request` varchar(255) NOT NULL DEFAULT '',
244 `nick` varchar(255) NOT NULL DEFAULT '',
245 `addr` varchar(255) NOT NULL DEFAULT '',
246 `batch` varchar(255) NOT NULL DEFAULT '',
247 `notify` varchar(255) NOT NULL DEFAULT '',
248 `poll` varchar(255) NOT NULL DEFAULT '',
249 `confirm` varchar(255) NOT NULL DEFAULT '',
250 `priority` tinyint(1) NOT NULL DEFAULT 0,
251 `network` varchar(32) NOT NULL DEFAULT '',
252 `alias` varchar(255) NOT NULL DEFAULT '',
254 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
256 INDEX `addr` (`addr`)
257 ) DEFAULT CHARSET=utf8mb4;
262 CREATE TABLE IF NOT EXISTS `ffinder` (
263 `id` int(10) unsigned NOT NULL auto_increment,
264 `uid` int(10) unsigned NOT NULL DEFAULT 0,
265 `cid` int(10) unsigned NOT NULL DEFAULT 0,
266 `fid` int(10) unsigned NOT NULL DEFAULT 0,
268 ) DEFAULT CHARSET=utf8mb4;
273 CREATE TABLE IF NOT EXISTS `fserver` (
274 `id` int(11) NOT NULL auto_increment,
275 `server` varchar(255) NOT NULL DEFAULT '',
276 `posturl` varchar(255) NOT NULL DEFAULT '',
279 INDEX `server` (`server`)
280 ) DEFAULT CHARSET=utf8mb4;
285 CREATE TABLE IF NOT EXISTS `fsuggest` (
286 `id` int(11) NOT NULL auto_increment,
287 `uid` int(11) NOT NULL DEFAULT 0,
288 `cid` int(11) NOT NULL DEFAULT 0,
289 `name` varchar(255) NOT NULL DEFAULT '',
290 `url` varchar(255) NOT NULL DEFAULT '',
291 `request` varchar(255) NOT NULL DEFAULT '',
292 `photo` varchar(255) NOT NULL DEFAULT '',
294 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
296 ) DEFAULT CHARSET=utf8mb4;
301 CREATE TABLE IF NOT EXISTS `gcign` (
302 `id` int(11) NOT NULL auto_increment,
303 `uid` int(11) NOT NULL DEFAULT 0,
304 `gcid` int(11) NOT NULL DEFAULT 0,
307 INDEX `gcid` (`gcid`)
308 ) DEFAULT CHARSET=utf8mb4;
313 CREATE TABLE IF NOT EXISTS `gcontact` (
314 `id` int(10) unsigned NOT NULL auto_increment,
315 `name` varchar(255) NOT NULL DEFAULT '',
316 `nick` varchar(255) NOT NULL DEFAULT '',
317 `url` varchar(255) NOT NULL DEFAULT '',
318 `nurl` varchar(255) NOT NULL DEFAULT '',
319 `photo` varchar(255) NOT NULL DEFAULT '',
320 `connect` varchar(255) NOT NULL DEFAULT '',
321 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
322 `updated` datetime DEFAULT '0000-00-00 00:00:00',
323 `last_contact` datetime DEFAULT '0000-00-00 00:00:00',
324 `last_failure` datetime DEFAULT '0000-00-00 00:00:00',
325 `location` varchar(255) NOT NULL DEFAULT '',
328 `gender` varchar(32) NOT NULL DEFAULT '',
329 `birthday` varchar(32) NOT NULL DEFAULT '0000-00-00',
330 `community` tinyint(1) NOT NULL DEFAULT 0,
331 `contact-type` tinyint(1) NOT NULL DEFAULT -1,
332 `hide` tinyint(1) NOT NULL DEFAULT 0,
333 `nsfw` tinyint(1) NOT NULL DEFAULT 0,
334 `network` varchar(255) NOT NULL DEFAULT '',
335 `addr` varchar(255) NOT NULL DEFAULT '',
337 `alias` varchar(255) NOT NULL DEFAULT '',
338 `generation` tinyint(3) NOT NULL DEFAULT 0,
339 `server_url` varchar(255) NOT NULL DEFAULT '',
341 INDEX `nurl` (`nurl`),
342 INDEX `name` (`name`),
343 INDEX `nick` (`nick`),
344 INDEX `addr` (`addr`),
345 INDEX `updated` (`updated`)
346 ) DEFAULT CHARSET=utf8mb4;
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=utf8mb4;
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=utf8mb4;
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=utf8mb4;
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 '',
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=utf8mb4;
415 CREATE TABLE IF NOT EXISTS `hook` (
416 `id` int(11) NOT NULL auto_increment,
417 `hook` varchar(255) NOT NULL DEFAULT '',
418 `file` varchar(255) NOT NULL DEFAULT '',
419 `function` varchar(255) NOT NULL DEFAULT '',
420 `priority` int(11) unsigned NOT NULL DEFAULT 0,
422 INDEX `hook_file_function` (`hook`(30),`file`(60),`function`(30))
423 ) DEFAULT CHARSET=utf8mb4;
428 CREATE TABLE IF NOT EXISTS `intro` (
429 `id` int(10) unsigned NOT NULL auto_increment,
430 `uid` int(10) unsigned NOT NULL DEFAULT 0,
431 `fid` int(11) NOT NULL DEFAULT 0,
432 `contact-id` int(11) NOT NULL DEFAULT 0,
433 `knowyou` tinyint(1) NOT NULL DEFAULT 0,
434 `duplex` tinyint(1) NOT NULL DEFAULT 0,
436 `hash` varchar(255) NOT NULL DEFAULT '',
437 `datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
438 `blocked` tinyint(1) NOT NULL DEFAULT 1,
439 `ignore` tinyint(1) NOT NULL DEFAULT 0,
441 ) DEFAULT CHARSET=utf8mb4;
446 CREATE TABLE IF NOT EXISTS `item` (
447 `id` int(10) unsigned NOT NULL auto_increment,
448 `guid` varchar(255) NOT NULL DEFAULT '',
449 `uri` varchar(255) NOT NULL DEFAULT '',
450 `uid` int(10) unsigned NOT NULL DEFAULT 0,
451 `contact-id` int(11) NOT NULL DEFAULT 0,
452 `gcontact-id` int(11) unsigned NOT NULL DEFAULT 0,
453 `type` varchar(255) NOT NULL DEFAULT '',
454 `wall` tinyint(1) NOT NULL DEFAULT 0,
455 `gravity` tinyint(1) NOT NULL DEFAULT 0,
456 `parent` int(10) unsigned NOT NULL DEFAULT 0,
457 `parent-uri` varchar(255) NOT NULL DEFAULT '',
458 `extid` varchar(255) NOT NULL DEFAULT '',
459 `thr-parent` varchar(255) NOT NULL DEFAULT '',
460 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
461 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
462 `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
463 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
464 `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
465 `owner-id` int(11) NOT NULL DEFAULT 0,
466 `owner-name` varchar(255) NOT NULL DEFAULT '',
467 `owner-link` varchar(255) NOT NULL DEFAULT '',
468 `owner-avatar` varchar(255) NOT NULL DEFAULT '',
469 `author-id` int(11) NOT NULL DEFAULT 0,
470 `author-name` varchar(255) NOT NULL DEFAULT '',
471 `author-link` varchar(255) NOT NULL DEFAULT '',
472 `author-avatar` varchar(255) NOT NULL DEFAULT '',
473 `title` varchar(255) NOT NULL DEFAULT '',
475 `app` varchar(255) NOT NULL DEFAULT '',
476 `verb` varchar(255) NOT NULL DEFAULT '',
477 `object-type` varchar(255) NOT NULL DEFAULT '',
479 `target-type` varchar(255) NOT NULL DEFAULT '',
482 `plink` varchar(255) NOT NULL DEFAULT '',
483 `resource-id` varchar(255) NOT NULL DEFAULT '',
484 `event-id` int(11) NOT NULL DEFAULT 0,
489 `location` varchar(255) NOT NULL DEFAULT '',
490 `coord` varchar(255) NOT NULL DEFAULT '',
491 `allow_cid` mediumtext,
492 `allow_gid` mediumtext,
493 `deny_cid` mediumtext,
494 `deny_gid` mediumtext,
495 `private` tinyint(1) NOT NULL DEFAULT 0,
496 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
497 `moderated` tinyint(1) NOT NULL DEFAULT 0,
498 `visible` tinyint(1) NOT NULL DEFAULT 0,
499 `spam` tinyint(1) NOT NULL DEFAULT 0,
500 `starred` tinyint(1) NOT NULL DEFAULT 0,
501 `bookmark` tinyint(1) NOT NULL DEFAULT 0,
502 `unseen` tinyint(1) NOT NULL DEFAULT 1,
503 `deleted` tinyint(1) NOT NULL DEFAULT 0,
504 `origin` tinyint(1) NOT NULL DEFAULT 0,
505 `forum_mode` tinyint(1) NOT NULL DEFAULT 0,
506 `last-child` tinyint(1) unsigned NOT NULL DEFAULT 1,
507 `mention` tinyint(1) NOT NULL DEFAULT 0,
508 `network` varchar(32) NOT NULL DEFAULT '',
509 `rendered-hash` varchar(32) NOT NULL DEFAULT '',
510 `rendered-html` mediumtext,
511 `global` tinyint(1) NOT NULL DEFAULT 0,
513 INDEX `guid` (`guid`),
515 INDEX `parent` (`parent`),
516 INDEX `parent-uri` (`parent-uri`),
517 INDEX `extid` (`extid`),
518 INDEX `uid_id` (`uid`,`id`),
519 INDEX `uid_created` (`uid`,`created`),
520 INDEX `uid_unseen_contactid` (`uid`,`unseen`,`contact-id`),
521 INDEX `uid_network_received` (`uid`,`network`,`received`),
522 INDEX `uid_received` (`uid`,`received`),
523 INDEX `uid_network_commented` (`uid`,`network`,`commented`),
524 INDEX `uid_commented` (`uid`,`commented`),
525 INDEX `uid_title` (`uid`,`title`),
526 INDEX `uid_thrparent` (`uid`,`thr-parent`),
527 INDEX `uid_parenturi` (`uid`,`parent-uri`),
528 INDEX `uid_contactid_id` (`uid`,`contact-id`,`id`),
529 INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
530 INDEX `gcontactid_uid_created` (`gcontact-id`,`uid`,`created`),
531 INDEX `authorid_created` (`author-id`,`created`),
532 INDEX `ownerid_created` (`owner-id`,`created`),
533 INDEX `wall_body` (`wall`,`body`(6)),
534 INDEX `uid_visible_moderated_created` (`uid`,`visible`,`moderated`,`created`),
535 INDEX `uid_uri` (`uid`,`uri`),
536 INDEX `uid_wall_created` (`uid`,`wall`,`created`),
537 INDEX `resource-id` (`resource-id`),
538 INDEX `uid_type` (`uid`,`type`),
539 INDEX `uid_starred_id` (`uid`,`starred`,`id`),
540 INDEX `contactid_allowcid_allowpid_denycid_denygid` (`contact-id`,`allow_cid`(10),`allow_gid`(10),`deny_cid`(10),`deny_gid`(10)),
541 INDEX `uid_wall_parent_created` (`uid`,`wall`,`parent`,`created`),
542 INDEX `uid_type_changed` (`uid`,`type`,`changed`),
543 INDEX `contactid_verb` (`contact-id`,`verb`),
544 INDEX `deleted_changed` (`deleted`,`changed`),
545 INDEX `uid_wall_changed` (`uid`,`wall`,`changed`),
546 INDEX `uid_eventid` (`uid`,`event-id`),
547 INDEX `uid_authorlink` (`uid`,`author-link`),
548 INDEX `uid_ownerlink` (`uid`,`owner-link`)
549 ) DEFAULT CHARSET=utf8mb4;
554 CREATE TABLE IF NOT EXISTS `item_id` (
555 `id` int(11) NOT NULL auto_increment,
556 `iid` int(11) NOT NULL DEFAULT 0,
557 `uid` int(11) NOT NULL DEFAULT 0,
558 `sid` varchar(255) NOT NULL DEFAULT '',
559 `service` varchar(255) NOT NULL DEFAULT '',
563 INDEX `service` (`service`),
565 ) DEFAULT CHARSET=utf8mb4;
570 CREATE TABLE IF NOT EXISTS `locks` (
571 `id` int(11) NOT NULL auto_increment,
572 `name` varchar(128) NOT NULL DEFAULT '',
573 `locked` tinyint(1) NOT NULL DEFAULT 0,
574 `created` datetime DEFAULT '0000-00-00 00:00:00',
576 ) DEFAULT CHARSET=utf8mb4;
581 CREATE TABLE IF NOT EXISTS `mail` (
582 `id` int(10) unsigned NOT NULL auto_increment,
583 `uid` int(10) unsigned NOT NULL DEFAULT 0,
584 `guid` varchar(64) NOT NULL DEFAULT '',
585 `from-name` varchar(255) NOT NULL DEFAULT '',
586 `from-photo` varchar(255) NOT NULL DEFAULT '',
587 `from-url` varchar(255) NOT NULL DEFAULT '',
588 `contact-id` varchar(255) NOT NULL DEFAULT '',
589 `convid` int(11) unsigned NOT NULL DEFAULT 0,
590 `title` varchar(255) NOT NULL DEFAULT '',
592 `seen` tinyint(1) NOT NULL DEFAULT 0,
593 `reply` tinyint(1) NOT NULL DEFAULT 0,
594 `replied` tinyint(1) NOT NULL DEFAULT 0,
595 `unknown` tinyint(1) NOT NULL DEFAULT 0,
596 `uri` varchar(255) NOT NULL DEFAULT '',
597 `parent-uri` varchar(255) NOT NULL DEFAULT '',
598 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
601 INDEX `guid` (`guid`),
602 INDEX `convid` (`convid`),
603 INDEX `reply` (`reply`),
605 INDEX `parent-uri` (`parent-uri`)
606 ) DEFAULT CHARSET=utf8mb4;
611 CREATE TABLE IF NOT EXISTS `mailacct` (
612 `id` int(11) NOT NULL auto_increment,
613 `uid` int(11) NOT NULL DEFAULT 0,
614 `server` varchar(255) NOT NULL DEFAULT '',
615 `port` int(11) NOT NULL DEFAULT 0,
616 `ssltype` varchar(16) NOT NULL DEFAULT '',
617 `mailbox` varchar(255) NOT NULL DEFAULT '',
618 `user` varchar(255) NOT NULL DEFAULT '',
620 `reply_to` varchar(255) NOT NULL DEFAULT '',
621 `action` int(11) NOT NULL DEFAULT 0,
622 `movetofolder` varchar(255) NOT NULL DEFAULT '',
623 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
624 `last_check` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
626 ) DEFAULT CHARSET=utf8mb4;
631 CREATE TABLE IF NOT EXISTS `manage` (
632 `id` int(11) NOT NULL auto_increment,
633 `uid` int(11) NOT NULL DEFAULT 0,
634 `mid` int(11) NOT NULL DEFAULT 0,
636 INDEX `uid_mid` (`uid`,`mid`)
637 ) DEFAULT CHARSET=utf8mb4;
642 CREATE TABLE IF NOT EXISTS `notify` (
643 `id` int(11) NOT NULL auto_increment,
644 `hash` varchar(64) NOT NULL DEFAULT '',
645 `type` int(11) NOT NULL DEFAULT 0,
646 `name` varchar(255) NOT NULL DEFAULT '',
647 `url` varchar(255) NOT NULL DEFAULT '',
648 `photo` varchar(255) NOT NULL DEFAULT '',
649 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
651 `uid` int(11) NOT NULL DEFAULT 0,
652 `link` varchar(255) NOT NULL DEFAULT '',
653 `iid` int(11) NOT NULL DEFAULT 0,
654 `parent` int(11) NOT NULL DEFAULT 0,
655 `seen` tinyint(1) NOT NULL DEFAULT 0,
656 `verb` varchar(255) NOT NULL DEFAULT '',
657 `otype` varchar(16) NOT NULL DEFAULT '',
658 `name_cache` tinytext,
659 `msg_name` mediumtext,
662 ) DEFAULT CHARSET=utf8mb4;
665 -- TABLE notify-threads
667 CREATE TABLE IF NOT EXISTS `notify-threads` (
668 `id` int(11) NOT NULL auto_increment,
669 `notify-id` int(11) NOT NULL DEFAULT 0,
670 `master-parent-item` int(10) unsigned NOT NULL DEFAULT 0,
671 `parent-item` int(10) unsigned NOT NULL DEFAULT 0,
672 `receiver-uid` int(11) NOT NULL DEFAULT 0,
674 INDEX `master-parent-item` (`master-parent-item`),
675 INDEX `receiver-uid` (`receiver-uid`)
676 ) DEFAULT CHARSET=utf8mb4;
681 CREATE TABLE IF NOT EXISTS `oembed` (
682 `url` varchar(255) NOT NULL,
684 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
685 PRIMARY KEY(`url`(191)),
686 INDEX `created` (`created`)
687 ) DEFAULT CHARSET=utf8mb4;
692 CREATE TABLE IF NOT EXISTS `parsed_url` (
693 `url` varchar(255) NOT NULL,
694 `guessing` tinyint(1) NOT NULL DEFAULT 0,
695 `oembed` tinyint(1) NOT NULL DEFAULT 0,
697 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
698 PRIMARY KEY(`url`(191),`guessing`,`oembed`),
699 INDEX `created` (`created`)
700 ) DEFAULT CHARSET=utf8mb4;
705 CREATE TABLE IF NOT EXISTS `pconfig` (
706 `id` int(11) NOT NULL auto_increment,
707 `uid` int(11) NOT NULL DEFAULT 0,
708 `cat` varchar(255) NOT NULL DEFAULT '',
709 `k` varchar(255) NOT NULL DEFAULT '',
712 UNIQUE INDEX `uid_cat_k` (`uid`,`cat`(30),`k`(30))
713 ) DEFAULT CHARSET=utf8mb4;
718 CREATE TABLE IF NOT EXISTS `photo` (
719 `id` int(10) unsigned NOT NULL auto_increment,
720 `uid` int(10) unsigned NOT NULL DEFAULT 0,
721 `contact-id` int(10) unsigned NOT NULL DEFAULT 0,
722 `guid` varchar(64) NOT NULL DEFAULT '',
723 `resource-id` varchar(255) NOT NULL DEFAULT '',
724 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
725 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
726 `title` varchar(255) NOT NULL DEFAULT '',
728 `album` varchar(255) NOT NULL DEFAULT '',
729 `filename` varchar(255) NOT NULL DEFAULT '',
730 `type` varchar(128) NOT NULL DEFAULT 'image/jpeg',
731 `height` smallint(6) NOT NULL DEFAULT 0,
732 `width` smallint(6) NOT NULL DEFAULT 0,
733 `datasize` int(10) unsigned NOT NULL DEFAULT 0,
734 `data` mediumblob NOT NULL,
735 `scale` tinyint(3) NOT NULL DEFAULT 0,
736 `profile` tinyint(1) NOT NULL DEFAULT 0,
737 `allow_cid` mediumtext,
738 `allow_gid` mediumtext,
739 `deny_cid` mediumtext,
740 `deny_gid` mediumtext,
743 INDEX `resource-id` (`resource-id`),
744 INDEX `guid` (`guid`)
745 ) DEFAULT CHARSET=utf8mb4;
750 CREATE TABLE IF NOT EXISTS `poll` (
751 `id` int(11) NOT NULL auto_increment,
752 `uid` int(11) NOT NULL DEFAULT 0,
765 ) DEFAULT CHARSET=utf8mb4;
770 CREATE TABLE IF NOT EXISTS `poll_result` (
771 `id` int(11) NOT NULL auto_increment,
772 `poll_id` int(11) NOT NULL DEFAULT 0,
773 `choice` int(11) NOT NULL DEFAULT 0,
775 INDEX `poll_id` (`poll_id`),
776 INDEX `choice` (`choice`)
777 ) DEFAULT CHARSET=utf8mb4;
782 CREATE TABLE IF NOT EXISTS `process` (
783 `pid` int(10) unsigned NOT NULL,
784 `command` varchar(32) NOT NULL DEFAULT '',
785 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
787 INDEX `command` (`command`)
788 ) DEFAULT CHARSET=utf8mb4;
793 CREATE TABLE IF NOT EXISTS `profile` (
794 `id` int(11) NOT NULL auto_increment,
795 `uid` int(11) NOT NULL DEFAULT 0,
796 `profile-name` varchar(255) NOT NULL DEFAULT '',
797 `is-default` tinyint(1) NOT NULL DEFAULT 0,
798 `hide-friends` tinyint(1) NOT NULL DEFAULT 0,
799 `name` varchar(255) NOT NULL DEFAULT '',
800 `pdesc` varchar(255) NOT NULL DEFAULT '',
801 `dob` varchar(32) NOT NULL DEFAULT '0000-00-00',
802 `address` varchar(255) NOT NULL DEFAULT '',
803 `locality` varchar(255) NOT NULL DEFAULT '',
804 `region` varchar(255) NOT NULL DEFAULT '',
805 `postal-code` varchar(32) NOT NULL DEFAULT '',
806 `country-name` varchar(255) NOT NULL DEFAULT '',
807 `hometown` varchar(255) NOT NULL DEFAULT '',
808 `gender` varchar(32) NOT NULL DEFAULT '',
809 `marital` varchar(255) NOT NULL DEFAULT '',
811 `howlong` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
812 `sexual` varchar(255) NOT NULL DEFAULT '',
813 `politic` varchar(255) NOT NULL DEFAULT '',
814 `religion` varchar(255) NOT NULL DEFAULT '',
820 `summary` varchar(255) NOT NULL DEFAULT '',
830 `homepage` varchar(255) NOT NULL DEFAULT '',
831 `xmpp` varchar(255) NOT NULL DEFAULT '',
832 `photo` varchar(255) NOT NULL DEFAULT '',
833 `thumb` varchar(255) NOT NULL DEFAULT '',
834 `publish` tinyint(1) NOT NULL DEFAULT 0,
835 `net-publish` tinyint(1) NOT NULL DEFAULT 0,
837 INDEX `hometown` (`hometown`)
838 ) DEFAULT CHARSET=utf8mb4;
841 -- TABLE profile_check
843 CREATE TABLE IF NOT EXISTS `profile_check` (
844 `id` int(10) unsigned NOT NULL auto_increment,
845 `uid` int(10) unsigned NOT NULL DEFAULT 0,
846 `cid` int(10) unsigned NOT NULL DEFAULT 0,
847 `dfrn_id` varchar(255) NOT NULL DEFAULT '',
848 `sec` varchar(255) NOT NULL DEFAULT '',
849 `expire` int(11) NOT NULL DEFAULT 0,
851 ) DEFAULT CHARSET=utf8mb4;
854 -- TABLE push_subscriber
856 CREATE TABLE IF NOT EXISTS `push_subscriber` (
857 `id` int(11) NOT NULL auto_increment,
858 `uid` int(11) NOT NULL DEFAULT 0,
859 `callback_url` varchar(255) NOT NULL DEFAULT '',
860 `topic` varchar(255) NOT NULL DEFAULT '',
861 `nickname` varchar(255) NOT NULL DEFAULT '',
862 `push` int(11) NOT NULL DEFAULT 0,
863 `last_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
864 `secret` varchar(255) NOT NULL DEFAULT '',
866 ) DEFAULT CHARSET=utf8mb4;
871 CREATE TABLE IF NOT EXISTS `queue` (
872 `id` int(11) NOT NULL auto_increment,
873 `cid` int(11) NOT NULL DEFAULT 0,
874 `network` varchar(32) NOT NULL DEFAULT '',
875 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
876 `last` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
877 `content` mediumtext,
878 `batch` tinyint(1) NOT NULL DEFAULT 0,
881 INDEX `created` (`created`),
882 INDEX `last` (`last`),
883 INDEX `network` (`network`),
884 INDEX `batch` (`batch`)
885 ) DEFAULT CHARSET=utf8mb4;
890 CREATE TABLE IF NOT EXISTS `register` (
891 `id` int(11) unsigned NOT NULL auto_increment,
892 `hash` varchar(255) NOT NULL DEFAULT '',
893 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
894 `uid` int(11) unsigned NOT NULL DEFAULT 0,
895 `password` varchar(255) NOT NULL DEFAULT '',
896 `language` varchar(16) NOT NULL DEFAULT '',
898 ) DEFAULT CHARSET=utf8mb4;
903 CREATE TABLE IF NOT EXISTS `search` (
904 `id` int(11) NOT NULL auto_increment,
905 `uid` int(11) NOT NULL DEFAULT 0,
906 `term` varchar(255) NOT NULL DEFAULT '',
909 INDEX `term` (`term`)
910 ) DEFAULT CHARSET=utf8mb4;
915 CREATE TABLE IF NOT EXISTS `session` (
916 `id` bigint(20) unsigned NOT NULL auto_increment,
917 `sid` varchar(255) NOT NULL DEFAULT '',
919 `expire` int(10) unsigned NOT NULL DEFAULT 0,
922 INDEX `expire` (`expire`)
923 ) DEFAULT CHARSET=utf8mb4;
928 CREATE TABLE IF NOT EXISTS `sign` (
929 `id` int(10) unsigned NOT NULL auto_increment,
930 `iid` int(10) unsigned NOT NULL DEFAULT 0,
931 `signed_text` mediumtext,
933 `signer` varchar(255) NOT NULL DEFAULT '',
936 ) DEFAULT CHARSET=utf8mb4;
941 CREATE TABLE IF NOT EXISTS `spam` (
942 `id` int(11) NOT NULL auto_increment,
943 `uid` int(11) NOT NULL DEFAULT 0,
944 `spam` int(11) NOT NULL DEFAULT 0,
945 `ham` int(11) NOT NULL DEFAULT 0,
946 `term` varchar(255) NOT NULL DEFAULT '',
947 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
950 INDEX `spam` (`spam`),
952 INDEX `term` (`term`)
953 ) DEFAULT CHARSET=utf8mb4;
958 CREATE TABLE IF NOT EXISTS `term` (
959 `tid` int(10) unsigned NOT NULL auto_increment,
960 `oid` int(10) unsigned NOT NULL DEFAULT 0,
961 `otype` tinyint(3) unsigned NOT NULL DEFAULT 0,
962 `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
963 `term` varchar(255) NOT NULL DEFAULT '',
964 `url` varchar(255) NOT NULL DEFAULT '',
965 `guid` varchar(255) NOT NULL DEFAULT '',
966 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
967 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
968 `global` tinyint(1) NOT NULL DEFAULT 0,
969 `aid` int(10) unsigned NOT NULL DEFAULT 0,
970 `uid` int(10) unsigned NOT NULL DEFAULT 0,
972 INDEX `oid_otype_type_term` (`oid`,`otype`,`type`,`term`),
973 INDEX `uid_term_tid` (`uid`,`term`,`tid`),
974 INDEX `type_term` (`type`,`term`),
975 INDEX `uid_otype_type_term_global_created` (`uid`,`otype`,`type`,`term`,`global`,`created`),
976 INDEX `otype_type_term_tid` (`otype`,`type`,`term`,`tid`),
977 INDEX `guid` (`guid`)
978 ) DEFAULT CHARSET=utf8mb4;
983 CREATE TABLE IF NOT EXISTS `thread` (
984 `iid` int(10) unsigned NOT NULL DEFAULT 0,
985 `uid` int(10) unsigned NOT NULL DEFAULT 0,
986 `contact-id` int(11) unsigned NOT NULL DEFAULT 0,
987 `gcontact-id` int(11) unsigned NOT NULL DEFAULT 0,
988 `owner-id` int(11) unsigned NOT NULL DEFAULT 0,
989 `author-id` int(11) unsigned NOT NULL DEFAULT 0,
990 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
991 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
992 `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
993 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
994 `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
995 `wall` tinyint(1) NOT NULL DEFAULT 0,
996 `private` tinyint(1) NOT NULL DEFAULT 0,
997 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
998 `moderated` tinyint(1) NOT NULL DEFAULT 0,
999 `visible` tinyint(1) NOT NULL DEFAULT 0,
1000 `spam` tinyint(1) NOT NULL DEFAULT 0,
1001 `starred` tinyint(1) NOT NULL DEFAULT 0,
1002 `ignored` tinyint(1) NOT NULL DEFAULT 0,
1003 `bookmark` tinyint(1) NOT NULL DEFAULT 0,
1004 `unseen` tinyint(1) NOT NULL DEFAULT 1,
1005 `deleted` tinyint(1) NOT NULL DEFAULT 0,
1006 `origin` tinyint(1) NOT NULL DEFAULT 0,
1007 `forum_mode` tinyint(1) NOT NULL DEFAULT 0,
1008 `mention` tinyint(1) NOT NULL DEFAULT 0,
1009 `network` varchar(32) NOT NULL DEFAULT '',
1011 INDEX `created` (`created`),
1012 INDEX `commented` (`commented`),
1013 INDEX `uid_network_commented` (`uid`,`network`,`commented`),
1014 INDEX `uid_network_created` (`uid`,`network`,`created`),
1015 INDEX `uid_contactid_commented` (`uid`,`contact-id`,`commented`),
1016 INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
1017 INDEX `uid_gcontactid_commented` (`uid`,`gcontact-id`,`commented`),
1018 INDEX `uid_gcontactid_created` (`uid`,`gcontact-id`,`created`),
1019 INDEX `wall_private_received` (`wall`,`private`,`received`),
1020 INDEX `uid_created` (`uid`,`created`),
1021 INDEX `uid_commented` (`uid`,`commented`)
1022 ) DEFAULT CHARSET=utf8mb4;
1027 CREATE TABLE IF NOT EXISTS `tokens` (
1028 `id` varchar(40) NOT NULL,
1030 `client_id` varchar(20) NOT NULL DEFAULT '',
1031 `expires` int(11) NOT NULL DEFAULT 0,
1032 `scope` varchar(200) NOT NULL DEFAULT '',
1033 `uid` int(11) NOT NULL DEFAULT 0,
1035 ) DEFAULT CHARSET=utf8mb4;
1040 CREATE TABLE IF NOT EXISTS `user` (
1041 `uid` int(11) NOT NULL auto_increment,
1042 `guid` varchar(64) NOT NULL DEFAULT '',
1043 `username` varchar(255) NOT NULL DEFAULT '',
1044 `password` varchar(255) NOT NULL DEFAULT '',
1045 `nickname` varchar(255) NOT NULL DEFAULT '',
1046 `email` varchar(255) NOT NULL DEFAULT '',
1047 `openid` varchar(255) NOT NULL DEFAULT '',
1048 `timezone` varchar(128) NOT NULL DEFAULT '',
1049 `language` varchar(32) NOT NULL DEFAULT 'en',
1050 `register_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1051 `login_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1052 `default-location` varchar(255) NOT NULL DEFAULT '',
1053 `allow_location` tinyint(1) NOT NULL DEFAULT 0,
1054 `theme` varchar(255) NOT NULL DEFAULT '',
1059 `verified` tinyint(1) unsigned NOT NULL DEFAULT 0,
1060 `blocked` tinyint(1) unsigned NOT NULL DEFAULT 0,
1061 `blockwall` tinyint(1) unsigned NOT NULL DEFAULT 0,
1062 `hidewall` tinyint(1) unsigned NOT NULL DEFAULT 0,
1063 `blocktags` tinyint(1) unsigned NOT NULL DEFAULT 0,
1064 `unkmail` tinyint(1) NOT NULL DEFAULT 0,
1065 `cntunkmail` int(11) NOT NULL DEFAULT 10,
1066 `notify-flags` int(11) unsigned NOT NULL DEFAULT 65535,
1067 `page-flags` int(11) unsigned NOT NULL DEFAULT 0,
1068 `account-type` int(11) unsigned NOT NULL DEFAULT 0,
1069 `prvnets` tinyint(1) NOT NULL DEFAULT 0,
1070 `pwdreset` varchar(255) NOT NULL DEFAULT '',
1071 `maxreq` int(11) NOT NULL DEFAULT 10,
1072 `expire` int(11) unsigned NOT NULL DEFAULT 0,
1073 `account_removed` tinyint(1) NOT NULL DEFAULT 0,
1074 `account_expired` tinyint(1) NOT NULL DEFAULT 0,
1075 `account_expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1076 `expire_notification_sent` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1077 `service_class` varchar(32) NOT NULL DEFAULT '',
1078 `def_gid` int(11) NOT NULL DEFAULT 0,
1079 `allow_cid` mediumtext,
1080 `allow_gid` mediumtext,
1081 `deny_cid` mediumtext,
1082 `deny_gid` mediumtext,
1083 `openidserver` text,
1085 INDEX `nickname` (`nickname`)
1086 ) DEFAULT CHARSET=utf8mb4;
1091 CREATE TABLE IF NOT EXISTS `userd` (
1092 `id` int(11) NOT NULL auto_increment,
1093 `username` varchar(255) NOT NULL,
1095 INDEX `username` (`username`)
1096 ) DEFAULT CHARSET=utf8mb4;
1099 -- TABLE workerqueue
1101 CREATE TABLE IF NOT EXISTS `workerqueue` (
1102 `id` int(11) NOT NULL auto_increment,
1104 `priority` tinyint(3) unsigned NOT NULL DEFAULT 0,
1105 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1106 `pid` int(11) NOT NULL DEFAULT 0,
1107 `executed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1109 INDEX `created` (`created`)
1110 ) DEFAULT CHARSET=utf8mb4;