Created new config/dbstructure.json file
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 4 Aug 2018 11:23:39 +0000 (13:23 +0200)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 4 Aug 2018 11:23:39 +0000 (13:23 +0200)
config/dbstructure.json [new file with mode: 0644]

diff --git a/config/dbstructure.json b/config/dbstructure.json
new file mode 100644 (file)
index 0000000..62f710c
--- /dev/null
@@ -0,0 +1,1250 @@
+{\r
+       "addon": {\r
+               "comment": "registered addons",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},\r
+                       "name": {"type": "varchar(50)", "not null": "1", "default": "", "comment": "addon base (file)name"},\r
+                       "version": {"type": "varchar(50)", "not null": "1", "default": "", "comment": "currently unused"},\r
+                       "installed": {"type": "boolean", "not null": "1", "default": "0", "comment": "currently always 1"},\r
+                       "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": "currently unused"},\r
+                       "timestamp": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "file timestamp to check for reloads"},\r
+                       "plugin_admin": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = has admin config, 0 = has no admin config"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "name": ["UNIQUE", "name"]\r
+               }\r
+       },\r
+       "attach": {\r
+               "comment": "file attachments",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "generated index"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "hash"},\r
+                       "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "filename of original"},\r
+                       "filetype": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "mimetype"},\r
+                       "filesize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "size in bytes"},\r
+                       "data": {"type": "longblob", "not null": "1", "comment": "file data"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},\r
+                       "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},\r
+                       "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>"},\r
+                       "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},\r
+                       "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},\r
+                       "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "auth_codes": {\r
+               "comment": "OAuth usage",\r
+               "fields": {\r
+                       "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},\r
+                       "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}, "comment": ""},\r
+                       "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},\r
+                       "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},\r
+                       "scope": {"type": "varchar(250)", "not null": "1", "default": "", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "cache": {\r
+               "comment": "Stores temporary data",\r
+               "fields": {\r
+                       "k": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "cache key"},\r
+                       "v": {"type": "mediumtext", "comment": "cached serialized value"},\r
+                       "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"},\r
+                       "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache insertion"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["k"],\r
+                       "k_expires": ["k", "expires"]\r
+               }\r
+       },\r
+       "challenge": {\r
+               "comment": "",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "challenge": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "type": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "last_update": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "clients": {\r
+               "comment": "OAuth usage",\r
+               "fields": {\r
+                       "client_id": {"type": "varchar(20)", "not null": "1", "primary": "1", "comment": ""},\r
+                       "pw": {"type": "varchar(20)", "not null": "1", "default": "", "comment": ""},\r
+                       "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},\r
+                       "name": {"type": "text", "comment": ""},\r
+                       "icon": {"type": "text", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["client_id"]\r
+               }\r
+       },\r
+       "config": {\r
+               "comment": "main configuration storage",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},\r
+                       "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},\r
+                       "k": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},\r
+                       "v": {"type": "mediumtext", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "cat_k": ["UNIQUE", "cat", "k"]\r
+               }\r
+       },\r
+       "contact": {\r
+               "comment": "contact table",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "self": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if the contact is the user him/her self"},\r
+                       "remote_self": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "rel": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "The kind of the relation between the user and the contact"},\r
+                       "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network protocol of the contact"},\r
+                       "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},\r
+                       "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},\r
+                       "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "about": {"type": "text", "comment": ""},\r
+                       "keywords": {"type": "text", "comment": "public keywords (interests) of the contact"},\r
+                       "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},\r
+                       "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "attag": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "avatar": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "photo": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo of the contact"},\r
+                       "thumb": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (thumb size)"},\r
+                       "micro": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (micro size)"},\r
+                       "site-pubkey": {"type": "text", "comment": ""},\r
+                       "issued-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},\r
+                       "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},\r
+                       "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "request": {"type": "varchar(255)", "comment": ""},\r
+                       "notify": {"type": "varchar(255)", "comment": ""},\r
+                       "poll": {"type": "varchar(255)", "comment": ""},\r
+                       "confirm": {"type": "varchar(255)", "comment": ""},\r
+                       "poco": {"type": "varchar(255)", "comment": ""},\r
+                       "aes_allow": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "ret-aes": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "usehub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "subhub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "hub-verify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "last-update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last try to update the contact info"},\r
+                       "success_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last successful contact update"},\r
+                       "failure_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last failed update"},\r
+                       "name-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "uri-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "avatar-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "term-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "last-item": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "date of the last post"},\r
+                       "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},\r
+                       "readonly": {"type": "boolean", "not null": "1", "default": "0", "comment": "posts of the contact are readonly"},\r
+                       "writable": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "forum": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a forum"},\r
+                       "prv": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a private group"},\r
+                       "contact-type": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},\r
+                       "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "archive": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "pending": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},\r
+                       "rating": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},\r
+                       "reason": {"type": "text", "comment": ""},\r
+                       "closeness": {"type": "tinyint unsigned", "not null": "1", "default": "99", "comment": ""},\r
+                       "info": {"type": "mediumtext", "comment": ""},\r
+                       "profile-id": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "bdyear": {"type": "varchar(4)", "not null": "1", "default": "", "comment": ""},\r
+                       "bd": {"type": "date", "not null": "1", "default": "0001-01-01", "comment": ""},\r
+                       "notify_new_posts": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "fetch_further_information": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "ffi_keyword_blacklist": {"type": "text", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid_name": ["uid", "name(190)"],\r
+                       "self_uid": ["self", "uid"],\r
+                       "alias_uid": ["alias(32)", "uid"],\r
+                       "pending_uid": ["pending", "uid"],\r
+                       "blocked_uid": ["blocked", "uid"],\r
+                       "uid_rel_network_poll": ["uid", "rel", "network", "poll(64)", "archive"],\r
+                       "uid_network_batch": ["uid", "network", "batch(64)"],\r
+                       "addr_uid": ["addr(32)", "uid"],\r
+                       "nurl_uid": ["nurl(32)", "uid"],\r
+                       "nick_uid": ["nick(32)", "uid"],\r
+                       "dfrn-id": ["dfrn-id(64)"],\r
+                       "issued-id": ["issued-id(64)"]\r
+               }\r
+       },\r
+       "conv": {\r
+               "comment": "private messages",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this conversation"},\r
+                       "recips": {"type": "text", "comment": "sender_handle;recipient_handle"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "creator": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "handle of creator"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation timestamp"},\r
+                       "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "edited timestamp"},\r
+                       "subject": {"type": "text", "comment": "subject of initial message"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid": ["uid"]\r
+               }\r
+       },\r
+       "conversation": {\r
+               "comment": "Raw data and structure information for messages",\r
+               "fields": {\r
+                       "item-uri": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "URI of the item"},\r
+                       "reply-to-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "URI to which this item is a reply"},\r
+                       "conversation-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation URI"},\r
+                       "conversation-href": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation link"},\r
+                       "protocol": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "The protocol of the item"},\r
+                       "source": {"type": "mediumtext", "comment": "Original source"},\r
+                       "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Receiving date"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["item-uri"],\r
+                       "conversation-uri": ["conversation-uri"],\r
+                       "received": ["received"]\r
+               }\r
+       },\r
+       "event": {\r
+               "comment": "Events",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact_id (ID of the contact in contact table)"},\r
+                       "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},\r
+                       "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},\r
+                       "start": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event start time"},\r
+                       "finish": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event end time"},\r
+                       "summary": {"type": "text", "comment": "short description or title of the event"},\r
+                       "desc": {"type": "text", "comment": "event description"},\r
+                       "location": {"type": "text", "comment": "event location"},\r
+                       "type": {"type": "varchar(20)", "not null": "1", "default": "", "comment": "event or birthday"},\r
+                       "nofinish": {"type": "boolean", "not null": "1", "default": "0", "comment": "if event does have no end this is 1"},\r
+                       "adjust": {"type": "boolean", "not null": "1", "default": "1", "comment": "adjust to timezone of the recipient (0 or 1)"},\r
+                       "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": "0 or 1"},\r
+                       "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},\r
+                       "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},\r
+                       "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},\r
+                       "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid_start": ["uid", "start"]\r
+               }\r
+       },\r
+       "fcontact": {\r
+               "comment": "Diaspora compatible contacts - used in the Diaspora implementation",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "unique id"},\r
+                       "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "notify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "poll": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "confirm": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},\r
+                       "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "pubkey": {"type": "text", "comment": ""},\r
+                       "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "addr": ["addr(32)"],\r
+                       "url": ["UNIQUE", "url(190)"]\r
+               }\r
+       },\r
+       "fsuggest": {\r
+               "comment": "friend suggestion stuff",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},\r
+                       "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "note": {"type": "text", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "gcign": {\r
+               "comment": "contacts ignored by friend suggestions",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Local User id"},\r
+                       "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": "gcontact.id of ignored contact"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid": ["uid"],\r
+                       "gcid": ["gcid"]\r
+               }\r
+       },\r
+       "gcontact": {\r
+               "comment": "global contacts",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},\r
+                       "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},\r
+                       "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the contacts profile page"},\r
+                       "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the profile photo"},\r
+                       "connect": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "updated": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "about": {"type": "text", "comment": ""},\r
+                       "keywords": {"type": "text", "comment": "puplic keywords (interests)"},\r
+                       "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},\r
+                       "birthday": {"type": "varchar(32)", "not null": "1", "default": "0001-01-01", "comment": ""},\r
+                       "community": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if contact is forum account"},\r
+                       "contact-type": {"type": "tinyint", "not null": "1", "default": "-1", "comment": ""},\r
+                       "hide": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = should be hidden from search"},\r
+                       "nsfw": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = contact posts nsfw content"},\r
+                       "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "social network protocol"},\r
+                       "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "notify": {"type": "varchar(255)", "comment": ""},\r
+                       "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "generation": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "server_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "baseurl of the contacts server"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "nurl": ["UNIQUE", "nurl(190)"],\r
+                       "name": ["name(64)"],\r
+                       "nick": ["nick(32)"],\r
+                       "addr": ["addr(64)"],\r
+                       "hide_network_updated": ["hide", "network", "updated"],\r
+                       "updated": ["updated"]\r
+               }\r
+       },\r
+       "glink": {\r
+               "comment": "'friends of friends' linkages derived from poco",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},\r
+                       "zcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},\r
+                       "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "cid_uid_gcid_zcid": ["UNIQUE", "cid", "uid", "gcid", "zcid"],\r
+                       "gcid": ["gcid"]\r
+               }\r
+       },\r
+       "group": {\r
+               "comment": "privacy groups, group info",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the member list is not private"},\r
+                       "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the group has been deleted"},\r
+                       "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "human readable name of group"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid": ["uid"]\r
+               }\r
+       },\r
+       "group_member": {\r
+               "comment": "privacy groups, member info",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "gid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"group": "id"}, "comment": "groups.id of the associated group"},\r
+                       "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id of the member assigned to the associated group"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "contactid": ["contact-id"],\r
+                       "gid_contactid": ["UNIQUE", "gid", "contact-id"]\r
+               }\r
+       },\r
+       "gserver": {\r
+               "comment": "Global servers",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "version": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "site_name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "info": {"type": "text", "comment": ""},\r
+                       "register_policy": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},\r
+                       "registered-users": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Number of registered users"},\r
+                       "poco": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "noscrape": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},\r
+                       "platform": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "relay-subscribe": {"type": "boolean", "not null": "1", "default": "0", "comment": "Has the server subscribed to the relay system"},\r
+                       "relay-scope": {"type": "varchar(10)", "not null": "1", "default": "", "comment": "The scope of messages that the server wants to get"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "last_poco_query": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "nurl": ["UNIQUE", "nurl(190)"]\r
+               }\r
+       },\r
+       "gserver-tag": {\r
+               "comment": "Tags that the server has subscribed",\r
+               "fields": {\r
+                       "gserver-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gserver": "id"}, "primary": "1", "comment": "The id of the gserver"},\r
+                       "tag": {"type": "varchar(100)", "not null": "1", "default": "", "primary": "1", "comment": "Tag that the server has subscribed"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["gserver-id", "tag"],\r
+                       "tag": ["tag"]\r
+               }\r
+       },\r
+       "hook": {\r
+               "comment": "addon hook registry",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "hook": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": "name of hook"},\r
+                       "file": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "relative filename of hook handler"},\r
+                       "function": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "function name of hook handler"},\r
+                       "priority": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": "not yet implemented - can be used to sort conflicts in hook handling by calling handlers in priority order"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "hook_file_function": ["UNIQUE", "hook", "file", "function"]\r
+               }\r
+       },\r
+       "intro": {\r
+               "comment": "",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "fid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"fcontact": "id"}, "comment": ""},\r
+                       "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},\r
+                       "knowyou": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "note": {"type": "text", "comment": ""},\r
+                       "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "datetime": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},\r
+                       "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "item": {\r
+               "comment": "Structure for all posts",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},\r
+                       "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this item"},\r
+                       "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},\r
+                       "parent": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id of the parent to this item if it is a reply of some form; otherwise this must be set to the id of this item"},\r
+                       "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "uri of the parent to this item"},\r
+                       "thr-parent": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "If the parent of this item is not the top-level item in the conversation, the uri of the immediate parent; otherwise set to parent-uri"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation timestamp."},\r
+                       "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last edit (default is created)"},\r
+                       "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last comment/reply to this item"},\r
+                       "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime"},\r
+                       "changed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date that something in the conversation changed, indicating clients should fetch the conversation again"},\r
+                       "gravity": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network from where the item comes from"},\r
+                       "owner-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Link to the contact table with uid=0 of the owner of this item"},\r
+                       "author-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Link to the contact table with uid=0 of the author of this item"},\r
+                       "icid": {"type": "int unsigned", "relation": {"item-content": "id"}, "comment": "Id of the item-content table entry that contains the whole item content"},\r
+                       "iaid": {"type": "int unsigned", "relation": {"item-activity": "id"}, "comment": "Id of the item-activity table entry that contains the activity data"},\r
+                       "extid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},\r
+                       "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "private": {"type": "boolean", "not null": "1", "default": "0", "comment": "distribution is restricted"},\r
+                       "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been deleted"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id which owns this copy of the item"},\r
+                       "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},\r
+                       "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": "This item was posted to the wall of uid"},\r
+                       "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": "item originated at this site"},\r
+                       "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been favourited"},\r
+                       "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": "item has not been seen"},\r
+                       "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": "The owner of this item was mentioned in it"},\r
+                       "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "psid": {"type": "int unsigned", "relation": {"permissionset": "id"}, "comment": "ID of the permission set of this post"},\r
+                       "resource-id": {"type": "varchar(32)", "not null": "1", "default": "", "comment": "Used to link other tables to items, it identifies the linked resource (e.g. photo) and if set must also set resource_type"},\r
+                       "event-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"event": "id"}, "comment": "Used to link to the event.id"},\r
+                       "attach": {"type": "mediumtext", "comment": "JSON structure representing attachments to this item"},\r
+                       "allow_cid": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "allow_gid": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "deny_cid": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "deny_gid": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "postopts": {"type": "text", "comment": "Deprecated"},\r
+                       "inform": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "type": {"type": "varchar(20)", "comment": "Deprecated"},\r
+                       "bookmark": {"type": "boolean", "comment": "Deprecated"},\r
+                       "file": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "location": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "coord": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "tag": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "plink": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "title": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "content-warning": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "body": {"type": "mediumtext", "comment": "Deprecated"},\r
+                       "app": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "verb": {"type": "varchar(100)", "comment": "Deprecated"},\r
+                       "object-type": {"type": "varchar(100)", "comment": "Deprecated"},\r
+                       "object": {"type": "text", "comment": "Deprecated"},\r
+                       "target-type": {"type": "varchar(100)", "comment": "Deprecated"},\r
+                       "target": {"type": "text", "comment": "Deprecated"},\r
+                       "author-name": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "author-link": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "author-avatar": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "owner-name": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "owner-link": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "owner-avatar": {"type": "varchar(255)", "comment": "Deprecated"},\r
+                       "rendered-hash": {"type": "varchar(32)", "comment": "Deprecated"},\r
+                       "rendered-html": {"type": "mediumtext", "comment": "Deprecated"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "guid": ["guid(191)"],\r
+                       "uri": ["uri(191)"],\r
+                       "parent": ["parent"],\r
+                       "parent-uri": ["parent-uri(191)"],\r
+                       "extid": ["extid(191)"],\r
+                       "uid_id": ["uid", "id"],\r
+                       "uid_contactid_id": ["uid", "contact-id", "id"],\r
+                       "uid_created": ["uid", "created"],\r
+                       "uid_commented": ["uid", "commented"],\r
+                       "uid_unseen_contactid": ["uid", "unseen", "contact-id"],\r
+                       "uid_network_received": ["uid", "network", "received"],\r
+                       "uid_network_commented": ["uid", "network", "commented"],\r
+                       "uid_thrparent": ["uid", "thr-parent(190)"],\r
+                       "uid_parenturi": ["uid", "parent-uri(190)"],\r
+                       "uid_contactid_created": ["uid", "contact-id", "created"],\r
+                       "authorid_created": ["author-id", "created"],\r
+                       "ownerid": ["owner-id"],\r
+                       "uid_uri": ["uid", "uri(190)"],\r
+                       "resource-id": ["resource-id"],\r
+                       "deleted_changed": ["deleted", "changed"],\r
+                       "uid_wall_changed": ["uid", "wall", "changed"],\r
+                       "uid_eventid": ["uid", "event-id"],\r
+                       "icid": ["icid"],\r
+                       "iaid": ["iaid"],\r
+                       "psid_wall": ["psid", "wall"]\r
+               }\r
+       },\r
+       "item-activity": {\r
+               "comment": "Activities for items",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},\r
+                       "uri": {"type": "varchar(255)", "comment": ""},\r
+                       "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},\r
+                       "activity": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uri-hash": ["UNIQUE", "uri-hash"],\r
+                       "uri": ["uri(191)"]\r
+               }\r
+       },\r
+       "item-content": {\r
+               "comment": "Content for all posts",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},\r
+                       "uri": {"type": "varchar(255)", "comment": ""},\r
+                       "uri-plink-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},\r
+                       "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "item title"},\r
+                       "content-warning": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "body": {"type": "mediumtext", "comment": "item body content"},\r
+                       "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "text location where this item originated"},\r
+                       "coord": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "longitude/latitude pair representing location where this item originated"},\r
+                       "language": {"type": "text", "comment": "Language information about this post"},\r
+                       "app": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "application which generated this item"},\r
+                       "rendered-hash": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},\r
+                       "rendered-html": {"type": "mediumtext", "comment": "item.body converted to html"},\r
+                       "object-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams object type"},\r
+                       "object": {"type": "text", "comment": "JSON encoded object structure unless it is an implied object (normal post)"},\r
+                       "target-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams target type if applicable (URI)"},\r
+                       "target": {"type": "text", "comment": "JSON encoded target structure if used"},\r
+                       "plink": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "permalink or URL to a displayable copy of the message at its source"},\r
+                       "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams verb"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uri-plink-hash": ["UNIQUE", "uri-plink-hash"],\r
+                       "uri": ["uri(191)"]\r
+               }\r
+       },\r
+       "item-delivery-data": {\r
+               "comment": "Delivery data for items",\r
+               "fields": {\r
+                       "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},\r
+                       "postopts": {"type": "text", "comment": "External post connectors add their network name to this comma-separated string to identify that they should be delivered to these networks during delivery"},\r
+                       "inform": {"type": "mediumtext", "comment": "Additional receivers of the linked item"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["iid"]\r
+               }\r
+       },\r
+       "locks": {\r
+               "comment": "",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "name": {"type": "varchar(128)", "not null": "1", "default": "", "comment": ""},\r
+                       "locked": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process ID"},\r
+                       "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "name_expires": ["name", "expires"]\r
+               }\r
+       },\r
+       "mail": {\r
+               "comment": "private messages",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this private message"},\r
+                       "from-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "name of the sender"},\r
+                       "from-photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "contact photo link of the sender"},\r
+                       "from-url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "profile linke of the sender"},\r
+                       "contact-id": {"type": "varchar(255)", "not null": "1", "default": "", "relation": {"contact": "id"}, "comment": "contact.id"},\r
+                       "convid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"conv": "id"}, "comment": "conv.id"},\r
+                       "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "body": {"type": "mediumtext", "comment": ""},\r
+                       "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": "if message visited it is 1"},\r
+                       "reply": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "replied": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "unknown": {"type": "boolean", "not null": "1", "default": "0", "comment": "if sender not in the contact table this is 1"},\r
+                       "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time of the private message"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid_seen": ["uid", "seen"],\r
+                       "convid": ["convid"],\r
+                       "uri": ["uri(64)"],\r
+                       "parent-uri": ["parent-uri(64)"],\r
+                       "contactid": ["contact-id(32)"]\r
+               }\r
+       },\r
+       "mailacct": {\r
+               "comment": "Mail account data for fetching mails",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "server": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "port": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "ssltype": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},\r
+                       "mailbox": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "user": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "pass": {"type": "text", "comment": ""},\r
+                       "reply_to": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "action": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "movetofolder": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "last_check": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "manage": {\r
+               "comment": "table of accounts that can manage each other",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "mid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid_mid": ["UNIQUE", "uid", "mid"]\r
+               }\r
+       },\r
+       "notify": {\r
+               "comment": "notifications",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": ""},\r
+                       "type": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "msg": {"type": "mediumtext", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "link": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},\r
+                       "parent": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},\r
+                       "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": ""},\r
+                       "otype": {"type": "varchar(10)", "not null": "1", "default": "", "comment": ""},\r
+                       "name_cache": {"type": "tinytext", "comment": "Cached bbcode parsing of name"},\r
+                       "msg_cache": {"type": "mediumtext", "comment": "Cached bbcode parsing of msg"}\r
+                       },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "hash_uid": ["hash", "uid"],\r
+                       "seen_uid_date": ["seen", "uid", "date"],\r
+                       "uid_date": ["uid", "date"],\r
+                       "uid_type_link": ["uid", "type", "link(190)"]\r
+               }\r
+       },\r
+       "notify-threads": {\r
+               "comment": "",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "notify-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"notify": "id"}, "comment": ""},\r
+                       "master-parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},\r
+                       "parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "receiver-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "oembed": {\r
+               "comment": "cache for OEmbed queries",\r
+               "fields": {\r
+                       "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},\r
+                       "maxwidth": {"type": "mediumint unsigned", "not null": "1", "primary": "1", "comment": "Maximum width passed to Oembed"},\r
+                       "content": {"type": "mediumtext", "comment": "OEmbed data of the page"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["url", "maxwidth"],\r
+                       "created": ["created"]\r
+               }\r
+       },\r
+       "openwebauth-token": {\r
+               "comment": "Store OpenWebAuth token to verify contacts",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "type": {"type": "varchar(32)", "not null": "1", "default": "", "comment": "Verify type"},\r
+                       "token": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A generated token"},\r
+                       "meta": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "parsed_url": {\r
+               "comment": "cache for 'parse_url' queries",\r
+               "fields": {\r
+                       "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},\r
+                       "guessing": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the 'guessing' mode active?"},\r
+                       "oembed": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the data the result of oembed?"},\r
+                       "content": {"type": "mediumtext", "comment": "page data"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["url", "guessing", "oembed"],\r
+                       "created": ["created"]\r
+               }\r
+       },\r
+       "participation": {\r
+               "comment": "Storage for participation messages from Diaspora",\r
+               "fields": {\r
+                       "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": ""},\r
+                       "server": {"type": "varchar(60)", "not null": "1", "primary": "1", "comment": ""},\r
+                       "cid": {"type": "int unsigned", "not null": "1", "relation": {"contact": "id"}, "comment": ""},\r
+                       "fid": {"type": "int unsigned", "not null": "1", "relation": {"fcontact": "id"}, "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["iid", "server"]\r
+                       }\r
+               },\r
+       "pconfig": {\r
+               "comment": "personal (per user) configuration storage",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},\r
+                       "k": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": ""},\r
+                       "v": {"type": "mediumtext", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid_cat_k": ["UNIQUE", "uid", "cat", "k"]\r
+               }\r
+       },\r
+       "permissionset": {\r
+               "comment": "",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id of this permission set"},\r
+                       "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},\r
+                       "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},\r
+                       "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},\r
+                       "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid_allow_cid_allow_gid_deny_cid_deny_gid": ["allow_cid(50)", "allow_gid(30)", "deny_cid(50)", "deny_gid(30)"]\r
+               }\r
+       },\r
+       "photo": {\r
+               "comment": "photo storage",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},\r
+                       "guid": {"type": "char(16)", "not null": "1", "default": "", "comment": "A unique identifier for this photo"},\r
+                       "resource-id": {"type": "char(32)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation date"},\r
+                       "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edited date"},\r
+                       "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "desc": {"type": "text", "comment": ""},\r
+                       "album": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "The name of the album to which the photo belongs"},\r
+                       "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "type": {"type": "varchar(30)", "not null": "1", "default": "image/jpeg"},\r
+                       "height": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "width": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "datasize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "data": {"type": "mediumblob", "not null": "1", "comment": ""},\r
+                       "scale": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "profile": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},\r
+                       "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},\r
+                       "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},\r
+                       "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "contactid": ["contact-id"],\r
+                       "uid_contactid": ["uid", "contact-id"],\r
+                       "uid_profile": ["uid", "profile"],\r
+                       "uid_album_scale_created": ["uid", "album(32)", "scale", "created"],\r
+                       "uid_album_resource-id_created": ["uid", "album(32)", "resource-id", "created"],\r
+                       "resource-id": ["resource-id"]\r
+               }\r
+       },\r
+       "poll": {\r
+               "comment": "Currently unused table for storing poll results",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "q0": {"type": "text", "comment": ""},\r
+                       "q1": {"type": "text", "comment": ""},\r
+                       "q2": {"type": "text", "comment": ""},\r
+                       "q3": {"type": "text", "comment": ""},\r
+                       "q4": {"type": "text", "comment": ""},\r
+                       "q5": {"type": "text", "comment": ""},\r
+                       "q6": {"type": "text", "comment": ""},\r
+                       "q7": {"type": "text", "comment": ""},\r
+                       "q8": {"type": "text", "comment": ""},\r
+                       "q9": {"type": "text", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid": ["uid"]\r
+               }\r
+       },\r
+       "poll_result": {\r
+               "comment": "data for polls - currently unused",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "poll_id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"poll": "id"}},\r
+                       "choice": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "poll_id": ["poll_id"]\r
+               }\r
+       },\r
+       "process": {\r
+               "comment": "Currently running system processes",\r
+               "fields": {\r
+                       "pid": {"type": "int unsigned", "not null": "1", "primary": "1", "comment": ""},\r
+                       "command": {"type": "varbinary(32)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["pid"],\r
+                       "command": ["command"]\r
+               }\r
+       },\r
+       "profile": {\r
+               "comment": "user profiles data",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},\r
+                       "profile-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name of the profile"},\r
+                       "is-default": {"type": "boolean", "not null": "1", "default": "0", "comment": "Mark this profile as default profile"},\r
+                       "hide-friends": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide friend list from viewers of this profile"},\r
+                       "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "pdesc": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Title or description"},\r
+                       "dob": {"type": "varchar(32)", "not null": "1", "default": "0000-00-00", "comment": "Day of birth"},\r
+                       "address": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "locality": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "region": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "postal-code": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},\r
+                       "country-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "hometown": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},\r
+                       "marital": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "with": {"type": "text", "comment": ""},\r
+                       "howlong": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "sexual": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "politic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "religion": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "pub_keywords": {"type": "text", "comment": ""},\r
+                       "prv_keywords": {"type": "text", "comment": ""},\r
+                       "likes": {"type": "text", "comment": ""},\r
+                       "dislikes": {"type": "text", "comment": ""},\r
+                       "about": {"type": "text", "comment": ""},\r
+                       "summary": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "music": {"type": "text", "comment": ""},\r
+                       "book": {"type": "text", "comment": ""},\r
+                       "tv": {"type": "text", "comment": ""},\r
+                       "film": {"type": "text", "comment": ""},\r
+                       "interest": {"type": "text", "comment": ""},\r
+                       "romance": {"type": "text", "comment": ""},\r
+                       "work": {"type": "text", "comment": ""},\r
+                       "education": {"type": "text", "comment": ""},\r
+                       "contact": {"type": "text", "comment": ""},\r
+                       "homepage": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "thumb": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish default profile in local directory"},\r
+                       "net-publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish profile in global directory"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid_is-default": ["uid", "is-default"]\r
+               }\r
+       },\r
+       "profile_check": {\r
+               "comment": "DFRN remote auth use",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},\r
+                       "dfrn_id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "sec": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "push_subscriber": {\r
+               "comment": "Used for OStatus: Contains feed subscribers",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "callback_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "topic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "push": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},\r
+                       "last_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last successful trial"},\r
+                       "next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},\r
+                       "renewed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last subscription renewal"},\r
+                       "secret": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "next_try": ["next_try"]\r
+               }\r
+       },\r
+       "queue": {\r
+               "comment": "Queue for messages that couldn't be delivered",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Message receiver"},\r
+                       "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Receiver's network"},\r
+                       "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Unique GUID of the message"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date, when the message was created"},\r
+                       "last": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last trial"},\r
+                       "next": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},\r
+                       "retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},\r
+                       "content": {"type": "mediumtext", "comment": ""},\r
+                       "batch": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "last": ["last"],\r
+                       "next": ["next"]\r
+               }\r
+       },\r
+       "register": {\r
+               "comment": "registrations requiring admin approval",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "language": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},\r
+                       "note": {"type": "text", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "search": {\r
+               "comment": "",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "uid": ["uid"]\r
+               }\r
+       },\r
+       "session": {\r
+               "comment": "web session storage",\r
+               "fields": {\r
+                       "id": {"type": "bigint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "sid": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "data": {"type": "text", "comment": ""},\r
+                       "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "sid": ["sid(64)"],\r
+                       "expire": ["expire"]\r
+               }\r
+       },\r
+       "sign": {\r
+               "comment": "Diaspora signatures",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},\r
+                       "signed_text": {"type": "mediumtext", "comment": ""},\r
+                       "signature": {"type": "text", "comment": ""},\r
+                       "signer": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "iid": ["UNIQUE", "iid"]\r
+               }\r
+       },\r
+       "term": {\r
+               "comment": "item taxonomy (categories, tags, etc.) table",\r
+               "fields": {\r
+                       "tid": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},\r
+                       "oid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},\r
+                       "otype": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["tid"],\r
+                       "oid_otype_type_term": ["oid", "otype", "type", "term(32)"],\r
+                       "uid_otype_type_term_global_created": ["uid", "otype", "type", "term(32)", "global", "created"],\r
+                       "uid_otype_type_url": ["uid", "otype", "type", "url(64)"],\r
+                       "guid": ["guid(64)"]\r
+               }\r
+       },\r
+       "thread": {\r
+               "comment": "Thread related data",\r
+               "fields": {\r
+                       "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "sequential ID"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},\r
+                       "owner-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item owner"},\r
+                       "author-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item author"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "changed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},\r
+                       "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "private": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "ignored": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},\r
+                       "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},\r
+                       "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},\r
+                       "bookmark": {"type": "boolean", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["iid"],\r
+                       "uid_network_commented": ["uid", "network", "commented"],\r
+                       "uid_network_created": ["uid", "network", "created"],\r
+                       "uid_contactid_commented": ["uid", "contact-id", "commented"],\r
+                       "uid_contactid_created": ["uid", "contact-id", "created"],\r
+                       "contactid": ["contact-id"],\r
+                       "ownerid": ["owner-id"],\r
+                       "authorid": ["author-id"],\r
+                       "uid_created": ["uid", "created"],\r
+                       "uid_commented": ["uid", "commented"],\r
+                       "uid_wall_created": ["uid", "wall", "created"],\r
+                       "private_wall_origin_commented": ["private", "wall", "origin", "commented"]\r
+               }\r
+       },\r
+       "tokens": {\r
+               "comment": "OAuth usage",\r
+               "fields": {\r
+                       "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},\r
+                       "secret": {"type": "text", "comment": ""},\r
+                       "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}},\r
+                       "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},\r
+                       "scope": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"]\r
+               }\r
+       },\r
+       "user": {\r
+               "comment": "The local users",\r
+               "fields": {\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "parent-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "The parent user that has full control about this user"},\r
+                       "guid": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "A unique identifier for this user"},\r
+                       "username": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this user is known by"},\r
+                       "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "encrypted password"},\r
+                       "legacy_password": {"type": "boolean", "not null": "1", "default": "0", "comment": "Is the password hash double-hashed?"},\r
+                       "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "nick- and user name"},\r
+                       "email": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "the users email address"},\r
+                       "openid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},\r
+                       "timezone": {"type": "varchar(128)", "not null": "1", "default": "", "comment": "PHP-legal timezone"},\r
+                       "language": {"type": "varchar(32)", "not null": "1", "default": "en", "comment": "default language"},\r
+                       "register_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of registration"},\r
+                       "login_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last login"},\r
+                       "default-location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Default for item.location"},\r
+                       "allow_location": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 allows to display the location"},\r
+                       "theme": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "user theme preference"},\r
+                       "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},\r
+                       "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},\r
+                       "spubkey": {"type": "text", "comment": ""},\r
+                       "sprvkey": {"type": "text", "comment": ""},\r
+                       "verified": {"type": "boolean", "not null": "1", "default": "0", "comment": "user is verified through email"},\r
+                       "blocked": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 for user is blocked"},\r
+                       "blockwall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to post to the profile page of the user"},\r
+                       "hidewall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide profile details from unkown viewers"},\r
+                       "blocktags": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to tag the post of this user"},\r
+                       "unkmail": {"type": "boolean", "not null": "1", "default": "0", "comment": "Permit unknown people to send private mails to this user"},\r
+                       "cntunkmail": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},\r
+                       "notify-flags": {"type": "smallint unsigned", "not null": "1", "default": "65535", "comment": "email notification options"},\r
+                       "page-flags": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "page/profile type"},\r
+                       "account-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "prvnets": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "pwdreset": {"type": "varchar(255)", "comment": "Password reset request token"},\r
+                       "pwdreset_time": {"type": "datetime", "comment": "Timestamp of the last password reset request"},\r
+                       "maxreq": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},\r
+                       "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "account_removed": {"type": "boolean", "not null": "1", "default": "0", "comment": "if 1 the account is removed"},\r
+                       "account_expired": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},\r
+                       "account_expires_on": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp when account expires and will be deleted"},\r
+                       "expire_notification_sent": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last warning of account expiration"},\r
+                       "def_gid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},\r
+                       "allow_cid": {"type": "mediumtext", "comment": "default permission for this user"},\r
+                       "allow_gid": {"type": "mediumtext", "comment": "default permission for this user"},\r
+                       "deny_cid": {"type": "mediumtext", "comment": "default permission for this user"},\r
+                       "deny_gid": {"type": "mediumtext", "comment": "default permission for this user"},\r
+                       "openidserver": {"type": "text", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["uid"],\r
+                       "nickname": ["nickname(32)"]\r
+               }\r
+       },\r
+       "userd": {\r
+               "comment": "Deleted usernames",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},\r
+                       "username": {"type": "varchar(255)", "not null": "1", "comment": ""}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "username": ["username(32)"]\r
+               }\r
+       },\r
+       "user-item": {\r
+               "comment": "User specific item data",\r
+               "fields": {\r
+                       "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},\r
+                       "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"user": "uid"}, "comment": "User id"},\r
+                       "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marker to hide an item from the user"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["uid", "iid"]\r
+               }\r
+       },\r
+       "worker-ipc": {\r
+               "comment": "Inter process communication between the frontend and the worker",\r
+               "fields": {\r
+                       "key": {"type": "int", "not null": "1", "primary": "1", "comment": ""},\r
+                       "jobs": {"type": "boolean", "comment": "Flag for outstanding jobs"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["key"]\r
+               },\r
+               "engine": "MEMORY"\r
+       },\r
+       "workerqueue": {\r
+               "comment": "Background tasks queue entries",\r
+               "fields": {\r
+                       "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "Auto incremented worker task id"},\r
+                       "parameter": {"type": "mediumblob", "comment": "Task command"},\r
+                       "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Task priority"},\r
+                       "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation date"},\r
+                       "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process id of the worker"},\r
+                       "executed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Execution date"},\r
+                       "done": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marked 1 when the task was done - will be deleted later"}\r
+               },\r
+               "indexes": {\r
+                       "PRIMARY": ["id"],\r
+                       "pid": ["pid"],\r
+                       "parameter": ["parameter(64)"],\r
+                       "priority_created": ["priority", "created"],\r
+                       "done_executed": ["done", "executed"]\r
+               }\r
+       }\r
+}
\ No newline at end of file