3 "comment": "registered addons",
5 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
6 "name": {"type": "varchar(50)", "not null": "1", "default": "", "comment": "addon base (file)name"},
7 "version": {"type": "varchar(50)", "not null": "1", "default": "", "comment": "currently unused"},
8 "installed": {"type": "boolean", "not null": "1", "default": "0", "comment": "currently always 1"},
9 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": "currently unused"},
10 "timestamp": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "file timestamp to check for reloads"},
11 "plugin_admin": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = has admin config, 0 = has no admin config"}
15 "name": ["UNIQUE", "name"]
19 "comment": "file attachments",
21 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "generated index"},
22 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
23 "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "hash"},
24 "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "filename of original"},
25 "filetype": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "mimetype"},
26 "filesize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "size in bytes"},
27 "data": {"type": "longblob", "not null": "1", "comment": "file data"},
28 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},
29 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},
30 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>"},
31 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
32 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
33 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
40 "comment": "OAuth usage",
42 "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},
43 "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}, "comment": ""},
44 "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
45 "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},
46 "scope": {"type": "varchar(250)", "not null": "1", "default": "", "comment": ""}
53 "comment": "Stores temporary data",
55 "k": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "cache key"},
56 "v": {"type": "mediumtext", "comment": "cached serialized value"},
57 "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"},
58 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache insertion"}
62 "k_expires": ["k", "expires"]
68 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
69 "challenge": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
70 "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
71 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
72 "type": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
73 "last_update": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
80 "comment": "OAuth usage",
82 "client_id": {"type": "varchar(20)", "not null": "1", "primary": "1", "comment": ""},
83 "pw": {"type": "varchar(20)", "not null": "1", "default": "", "comment": ""},
84 "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
85 "name": {"type": "text", "comment": ""},
86 "icon": {"type": "text", "comment": ""},
87 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
90 "PRIMARY": ["client_id"]
94 "comment": "main configuration storage",
96 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
97 "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
98 "k": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
99 "v": {"type": "mediumtext", "comment": ""}
103 "cat_k": ["UNIQUE", "cat", "k"]
107 "comment": "contact table",
109 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
110 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
111 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
112 "self": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if the contact is the user him/her self"},
113 "remote_self": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
114 "rel": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "The kind of the relation between the user and the contact"},
115 "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
116 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network protocol of the contact"},
117 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},
118 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},
119 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
120 "about": {"type": "text", "comment": ""},
121 "keywords": {"type": "text", "comment": "public keywords (interests) of the contact"},
122 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
123 "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
124 "attag": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
125 "avatar": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
126 "photo": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo of the contact"},
127 "thumb": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (thumb size)"},
128 "micro": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (micro size)"},
129 "site-pubkey": {"type": "text", "comment": ""},
130 "issued-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
131 "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
132 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
133 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
134 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
135 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
136 "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},
137 "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},
138 "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
139 "request": {"type": "varchar(255)", "comment": ""},
140 "notify": {"type": "varchar(255)", "comment": ""},
141 "poll": {"type": "varchar(255)", "comment": ""},
142 "confirm": {"type": "varchar(255)", "comment": ""},
143 "poco": {"type": "varchar(255)", "comment": ""},
144 "aes_allow": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
145 "ret-aes": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
146 "usehub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
147 "subhub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
148 "hub-verify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
149 "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"},
150 "success_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last successful contact update"},
151 "failure_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last failed update"},
152 "name-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
153 "uri-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
154 "avatar-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
155 "term-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
156 "last-item": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "date of the last post"},
157 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
158 "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
159 "readonly": {"type": "boolean", "not null": "1", "default": "0", "comment": "posts of the contact are readonly"},
160 "writable": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
161 "forum": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a forum"},
162 "prv": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a private group"},
163 "contact-type": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
164 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
165 "archive": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
166 "pending": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
167 "rating": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
168 "reason": {"type": "text", "comment": ""},
169 "closeness": {"type": "tinyint unsigned", "not null": "1", "default": "99", "comment": ""},
170 "info": {"type": "mediumtext", "comment": ""},
171 "profile-id": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
172 "bdyear": {"type": "varchar(4)", "not null": "1", "default": "", "comment": ""},
173 "bd": {"type": "date", "not null": "1", "default": "0001-01-01", "comment": ""},
174 "notify_new_posts": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
175 "fetch_further_information": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
176 "ffi_keyword_blacklist": {"type": "text", "comment": ""}
180 "uid_name": ["uid", "name(190)"],
181 "self_uid": ["self", "uid"],
182 "alias_uid": ["alias(32)", "uid"],
183 "pending_uid": ["pending", "uid"],
184 "blocked_uid": ["blocked", "uid"],
185 "uid_rel_network_poll": ["uid", "rel", "network", "poll(64)", "archive"],
186 "uid_network_batch": ["uid", "network", "batch(64)"],
187 "addr_uid": ["addr(32)", "uid"],
188 "nurl_uid": ["nurl(32)", "uid"],
189 "nick_uid": ["nick(32)", "uid"],
190 "dfrn-id": ["dfrn-id(64)"],
191 "issued-id": ["issued-id(64)"]
195 "comment": "private messages",
197 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
198 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this conversation"},
199 "recips": {"type": "text", "comment": "sender_handle;recipient_handle"},
200 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
201 "creator": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "handle of creator"},
202 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation timestamp"},
203 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "edited timestamp"},
204 "subject": {"type": "text", "comment": "subject of initial message"}
212 "comment": "Raw data and structure information for messages",
214 "item-uri": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "URI of the item"},
215 "reply-to-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "URI to which this item is a reply"},
216 "conversation-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation URI"},
217 "conversation-href": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation link"},
218 "protocol": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "The protocol of the item"},
219 "source": {"type": "mediumtext", "comment": "Original source"},
220 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Receiving date"}
223 "PRIMARY": ["item-uri"],
224 "conversation-uri": ["conversation-uri"],
225 "received": ["received"]
231 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
232 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
233 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
234 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact_id (ID of the contact in contact table)"},
235 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
236 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},
237 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},
238 "start": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event start time"},
239 "finish": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event end time"},
240 "summary": {"type": "text", "comment": "short description or title of the event"},
241 "desc": {"type": "text", "comment": "event description"},
242 "location": {"type": "text", "comment": "event location"},
243 "type": {"type": "varchar(20)", "not null": "1", "default": "", "comment": "event or birthday"},
244 "nofinish": {"type": "boolean", "not null": "1", "default": "0", "comment": "if event does have no end this is 1"},
245 "adjust": {"type": "boolean", "not null": "1", "default": "1", "comment": "adjust to timezone of the recipient (0 or 1)"},
246 "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": "0 or 1"},
247 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
248 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
249 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
250 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
254 "uid_start": ["uid", "start"]
258 "comment": "Diaspora compatible contacts - used in the Diaspora implementation",
260 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
261 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "unique id"},
262 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
263 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
264 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
265 "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
266 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
267 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
268 "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
269 "notify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
270 "poll": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
271 "confirm": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
272 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
273 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
274 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
275 "pubkey": {"type": "text", "comment": ""},
276 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
280 "addr": ["addr(32)"],
281 "url": ["UNIQUE", "url(190)"]
285 "comment": "friend suggestion stuff",
287 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
288 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
289 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
290 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
291 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
292 "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
293 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
294 "note": {"type": "text", "comment": ""},
295 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
302 "comment": "contacts ignored by friend suggestions",
304 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
305 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Local User id"},
306 "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": "gcontact.id of ignored contact"}
315 "comment": "global contacts",
317 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
318 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},
319 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},
320 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the contacts profile page"},
321 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
322 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the profile photo"},
323 "connect": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
324 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
325 "updated": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
326 "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
327 "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
328 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
329 "about": {"type": "text", "comment": ""},
330 "keywords": {"type": "text", "comment": "puplic keywords (interests)"},
331 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
332 "birthday": {"type": "varchar(32)", "not null": "1", "default": "0001-01-01", "comment": ""},
333 "community": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if contact is forum account"},
334 "contact-type": {"type": "tinyint", "not null": "1", "default": "-1", "comment": ""},
335 "hide": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = should be hidden from search"},
336 "nsfw": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = contact posts nsfw content"},
337 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "social network protocol"},
338 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
339 "notify": {"type": "varchar(255)", "comment": ""},
340 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
341 "generation": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
342 "server_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "baseurl of the contacts server"}
346 "nurl": ["UNIQUE", "nurl(190)"],
347 "name": ["name(64)"],
348 "nick": ["nick(32)"],
349 "addr": ["addr(64)"],
350 "hide_network_updated": ["hide", "network", "updated"],
351 "updated": ["updated"]
355 "comment": "'friends of friends' linkages derived from poco",
357 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
358 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
359 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
360 "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},
361 "zcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},
362 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
366 "cid_uid_gcid_zcid": ["UNIQUE", "cid", "uid", "gcid", "zcid"],
371 "comment": "privacy groups, group info",
373 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
374 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
375 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the member list is not private"},
376 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the group has been deleted"},
377 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "human readable name of group"}
385 "comment": "privacy groups, member info",
387 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
388 "gid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"group": "id"}, "comment": "groups.id of the associated group"},
389 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id of the member assigned to the associated group"}
393 "contactid": ["contact-id"],
394 "gid_contactid": ["UNIQUE", "gid", "contact-id"]
398 "comment": "Global servers",
400 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
401 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
402 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
403 "version": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
404 "site_name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
405 "info": {"type": "text", "comment": ""},
406 "register_policy": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
407 "registered-users": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Number of registered users"},
408 "poco": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
409 "noscrape": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
410 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
411 "platform": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
412 "relay-subscribe": {"type": "boolean", "not null": "1", "default": "0", "comment": "Has the server subscribed to the relay system"},
413 "relay-scope": {"type": "varchar(10)", "not null": "1", "default": "", "comment": "The scope of messages that the server wants to get"},
414 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
415 "last_poco_query": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
416 "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
417 "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""}
421 "nurl": ["UNIQUE", "nurl(190)"]
425 "comment": "Tags that the server has subscribed",
427 "gserver-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gserver": "id"}, "primary": "1", "comment": "The id of the gserver"},
428 "tag": {"type": "varchar(100)", "not null": "1", "default": "", "primary": "1", "comment": "Tag that the server has subscribed"}
431 "PRIMARY": ["gserver-id", "tag"],
436 "comment": "addon hook registry",
438 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
439 "hook": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": "name of hook"},
440 "file": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "relative filename of hook handler"},
441 "function": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "function name of hook handler"},
442 "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"}
446 "hook_file_function": ["UNIQUE", "hook", "file", "function"]
452 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
453 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
454 "fid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"fcontact": "id"}, "comment": ""},
455 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
456 "knowyou": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
457 "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
458 "note": {"type": "text", "comment": ""},
459 "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
460 "datetime": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
461 "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
462 "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}
469 "comment": "Structure for all posts",
471 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
472 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this item"},
473 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
474 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
475 "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"},
476 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "uri of the parent to this item"},
477 "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"},
478 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation timestamp."},
479 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last edit (default is created)"},
480 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last comment/reply to this item"},
481 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime"},
482 "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"},
483 "gravity": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
484 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network from where the item comes from"},
485 "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"},
486 "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"},
487 "icid": {"type": "int unsigned", "relation": {"item-content": "id"}, "comment": "Id of the item-content table entry that contains the whole item content"},
488 "iaid": {"type": "int unsigned", "relation": {"item-activity": "id"}, "comment": "Id of the item-activity table entry that contains the activity data"},
489 "extid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
490 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
491 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
492 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": "distribution is restricted"},
493 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
494 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
495 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been deleted"},
496 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id which owns this copy of the item"},
497 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
498 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": "This item was posted to the wall of uid"},
499 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": "item originated at this site"},
500 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
501 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been favourited"},
502 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": "item has not been seen"},
503 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": "The owner of this item was mentioned in it"},
504 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
505 "psid": {"type": "int unsigned", "relation": {"permissionset": "id"}, "comment": "ID of the permission set of this post"},
506 "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"},
507 "event-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"event": "id"}, "comment": "Used to link to the event.id"},
508 "attach": {"type": "mediumtext", "comment": "JSON structure representing attachments to this item"},
509 "allow_cid": {"type": "mediumtext", "comment": "Deprecated"},
510 "allow_gid": {"type": "mediumtext", "comment": "Deprecated"},
511 "deny_cid": {"type": "mediumtext", "comment": "Deprecated"},
512 "deny_gid": {"type": "mediumtext", "comment": "Deprecated"},
513 "postopts": {"type": "text", "comment": "Deprecated"},
514 "inform": {"type": "mediumtext", "comment": "Deprecated"},
515 "type": {"type": "varchar(20)", "comment": "Deprecated"},
516 "bookmark": {"type": "boolean", "comment": "Deprecated"},
517 "file": {"type": "mediumtext", "comment": "Deprecated"},
518 "location": {"type": "varchar(255)", "comment": "Deprecated"},
519 "coord": {"type": "varchar(255)", "comment": "Deprecated"},
520 "tag": {"type": "mediumtext", "comment": "Deprecated"},
521 "plink": {"type": "varchar(255)", "comment": "Deprecated"},
522 "title": {"type": "varchar(255)", "comment": "Deprecated"},
523 "content-warning": {"type": "varchar(255)", "comment": "Deprecated"},
524 "body": {"type": "mediumtext", "comment": "Deprecated"},
525 "app": {"type": "varchar(255)", "comment": "Deprecated"},
526 "verb": {"type": "varchar(100)", "comment": "Deprecated"},
527 "object-type": {"type": "varchar(100)", "comment": "Deprecated"},
528 "object": {"type": "text", "comment": "Deprecated"},
529 "target-type": {"type": "varchar(100)", "comment": "Deprecated"},
530 "target": {"type": "text", "comment": "Deprecated"},
531 "author-name": {"type": "varchar(255)", "comment": "Deprecated"},
532 "author-link": {"type": "varchar(255)", "comment": "Deprecated"},
533 "author-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
534 "owner-name": {"type": "varchar(255)", "comment": "Deprecated"},
535 "owner-link": {"type": "varchar(255)", "comment": "Deprecated"},
536 "owner-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
537 "rendered-hash": {"type": "varchar(32)", "comment": "Deprecated"},
538 "rendered-html": {"type": "mediumtext", "comment": "Deprecated"}
542 "guid": ["guid(191)"],
544 "parent": ["parent"],
545 "parent-uri": ["parent-uri(191)"],
546 "extid": ["extid(191)"],
547 "uid_id": ["uid", "id"],
548 "uid_contactid_id": ["uid", "contact-id", "id"],
549 "uid_created": ["uid", "created"],
550 "uid_commented": ["uid", "commented"],
551 "uid_unseen_contactid": ["uid", "unseen", "contact-id"],
552 "uid_network_received": ["uid", "network", "received"],
553 "uid_network_commented": ["uid", "network", "commented"],
554 "uid_thrparent": ["uid", "thr-parent(190)"],
555 "uid_parenturi": ["uid", "parent-uri(190)"],
556 "uid_contactid_created": ["uid", "contact-id", "created"],
557 "authorid_created": ["author-id", "created"],
558 "ownerid": ["owner-id"],
559 "uid_uri": ["uid", "uri(190)"],
560 "resource-id": ["resource-id"],
561 "deleted_changed": ["deleted", "changed"],
562 "uid_wall_changed": ["uid", "wall", "changed"],
563 "uid_eventid": ["uid", "event-id"],
566 "psid_wall": ["psid", "wall"]
570 "comment": "Activities for items",
572 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
573 "uri": {"type": "varchar(255)", "comment": ""},
574 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
575 "activity": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""}
579 "uri-hash": ["UNIQUE", "uri-hash"],
584 "comment": "Content for all posts",
586 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
587 "uri": {"type": "varchar(255)", "comment": ""},
588 "uri-plink-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
589 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "item title"},
590 "content-warning": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
591 "body": {"type": "mediumtext", "comment": "item body content"},
592 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "text location where this item originated"},
593 "coord": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "longitude/latitude pair representing location where this item originated"},
594 "language": {"type": "text", "comment": "Language information about this post"},
595 "app": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "application which generated this item"},
596 "rendered-hash": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
597 "rendered-html": {"type": "mediumtext", "comment": "item.body converted to html"},
598 "object-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams object type"},
599 "object": {"type": "text", "comment": "JSON encoded object structure unless it is an implied object (normal post)"},
600 "target-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams target type if applicable (URI)"},
601 "target": {"type": "text", "comment": "JSON encoded target structure if used"},
602 "plink": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "permalink or URL to a displayable copy of the message at its source"},
603 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams verb"}
607 "uri-plink-hash": ["UNIQUE", "uri-plink-hash"],
611 "item-delivery-data": {
612 "comment": "Delivery data for items",
614 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
615 "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"},
616 "inform": {"type": "mediumtext", "comment": "Additional receivers of the linked item"}
625 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
626 "name": {"type": "varchar(128)", "not null": "1", "default": "", "comment": ""},
627 "locked": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
628 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process ID"},
629 "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"}
633 "name_expires": ["name", "expires"]
637 "comment": "private messages",
639 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
640 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
641 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this private message"},
642 "from-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "name of the sender"},
643 "from-photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "contact photo link of the sender"},
644 "from-url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "profile linke of the sender"},
645 "contact-id": {"type": "varchar(255)", "not null": "1", "default": "", "relation": {"contact": "id"}, "comment": "contact.id"},
646 "convid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"conv": "id"}, "comment": "conv.id"},
647 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
648 "body": {"type": "mediumtext", "comment": ""},
649 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": "if message visited it is 1"},
650 "reply": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
651 "replied": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
652 "unknown": {"type": "boolean", "not null": "1", "default": "0", "comment": "if sender not in the contact table this is 1"},
653 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
654 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
655 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time of the private message"}
659 "uid_seen": ["uid", "seen"],
660 "convid": ["convid"],
662 "parent-uri": ["parent-uri(64)"],
663 "contactid": ["contact-id(32)"]
667 "comment": "Mail account data for fetching mails",
669 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
670 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
671 "server": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
672 "port": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
673 "ssltype": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
674 "mailbox": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
675 "user": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
676 "pass": {"type": "text", "comment": ""},
677 "reply_to": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
678 "action": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
679 "movetofolder": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
680 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
681 "last_check": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
688 "comment": "table of accounts that can manage each other",
690 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
691 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
692 "mid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
696 "uid_mid": ["UNIQUE", "uid", "mid"]
700 "comment": "notifications",
702 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
703 "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": ""},
704 "type": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
705 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
706 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
707 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
708 "date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
709 "msg": {"type": "mediumtext", "comment": ""},
710 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
711 "link": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
712 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
713 "parent": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
714 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
715 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": ""},
716 "otype": {"type": "varchar(10)", "not null": "1", "default": "", "comment": ""},
717 "name_cache": {"type": "tinytext", "comment": "Cached bbcode parsing of name"},
718 "msg_cache": {"type": "mediumtext", "comment": "Cached bbcode parsing of msg"}
722 "hash_uid": ["hash", "uid"],
723 "seen_uid_date": ["seen", "uid", "date"],
724 "uid_date": ["uid", "date"],
725 "uid_type_link": ["uid", "type", "link(190)"]
731 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
732 "notify-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"notify": "id"}, "comment": ""},
733 "master-parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
734 "parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
735 "receiver-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
742 "comment": "cache for OEmbed queries",
744 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
745 "maxwidth": {"type": "mediumint unsigned", "not null": "1", "primary": "1", "comment": "Maximum width passed to Oembed"},
746 "content": {"type": "mediumtext", "comment": "OEmbed data of the page"},
747 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
750 "PRIMARY": ["url", "maxwidth"],
751 "created": ["created"]
754 "openwebauth-token": {
755 "comment": "Store OpenWebAuth token to verify contacts",
757 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
758 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
759 "type": {"type": "varchar(32)", "not null": "1", "default": "", "comment": "Verify type"},
760 "token": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A generated token"},
761 "meta": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
762 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
769 "comment": "cache for 'parse_url' queries",
771 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
772 "guessing": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the 'guessing' mode active?"},
773 "oembed": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the data the result of oembed?"},
774 "content": {"type": "mediumtext", "comment": "page data"},
775 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
778 "PRIMARY": ["url", "guessing", "oembed"],
779 "created": ["created"]
783 "comment": "Storage for participation messages from Diaspora",
785 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": ""},
786 "server": {"type": "varchar(60)", "not null": "1", "primary": "1", "comment": ""},
787 "cid": {"type": "int unsigned", "not null": "1", "relation": {"contact": "id"}, "comment": ""},
788 "fid": {"type": "int unsigned", "not null": "1", "relation": {"fcontact": "id"}, "comment": ""}
791 "PRIMARY": ["iid", "server"]
795 "comment": "personal (per user) configuration storage",
797 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
798 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
799 "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
800 "k": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": ""},
801 "v": {"type": "mediumtext", "comment": ""}
805 "uid_cat_k": ["UNIQUE", "uid", "cat", "k"]
811 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
812 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id of this permission set"},
813 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
814 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
815 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
816 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
820 "uid_allow_cid_allow_gid_deny_cid_deny_gid": ["allow_cid(50)", "allow_gid(30)", "deny_cid(50)", "deny_gid(30)"]
824 "comment": "photo storage",
826 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
827 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
828 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
829 "guid": {"type": "char(16)", "not null": "1", "default": "", "comment": "A unique identifier for this photo"},
830 "resource-id": {"type": "char(32)", "not null": "1", "default": "", "comment": ""},
831 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation date"},
832 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edited date"},
833 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
834 "desc": {"type": "text", "comment": ""},
835 "album": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "The name of the album to which the photo belongs"},
836 "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
837 "type": {"type": "varchar(30)", "not null": "1", "default": "image/jpeg"},
838 "height": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
839 "width": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
840 "datasize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
841 "data": {"type": "mediumblob", "not null": "1", "comment": ""},
842 "scale": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
843 "profile": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
844 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
845 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
846 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
847 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
851 "contactid": ["contact-id"],
852 "uid_contactid": ["uid", "contact-id"],
853 "uid_profile": ["uid", "profile"],
854 "uid_album_scale_created": ["uid", "album(32)", "scale", "created"],
855 "uid_album_resource-id_created": ["uid", "album(32)", "resource-id", "created"],
856 "resource-id": ["resource-id"]
860 "comment": "Currently unused table for storing poll results",
862 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
863 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
864 "q0": {"type": "text", "comment": ""},
865 "q1": {"type": "text", "comment": ""},
866 "q2": {"type": "text", "comment": ""},
867 "q3": {"type": "text", "comment": ""},
868 "q4": {"type": "text", "comment": ""},
869 "q5": {"type": "text", "comment": ""},
870 "q6": {"type": "text", "comment": ""},
871 "q7": {"type": "text", "comment": ""},
872 "q8": {"type": "text", "comment": ""},
873 "q9": {"type": "text", "comment": ""}
881 "comment": "data for polls - currently unused",
883 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
884 "poll_id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"poll": "id"}},
885 "choice": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""}
889 "poll_id": ["poll_id"]
893 "comment": "Currently running system processes",
895 "pid": {"type": "int unsigned", "not null": "1", "primary": "1", "comment": ""},
896 "command": {"type": "varbinary(32)", "not null": "1", "default": "", "comment": ""},
897 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
901 "command": ["command"]
905 "comment": "user profiles data",
907 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
908 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
909 "profile-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name of the profile"},
910 "is-default": {"type": "boolean", "not null": "1", "default": "0", "comment": "Mark this profile as default profile"},
911 "hide-friends": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide friend list from viewers of this profile"},
912 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
913 "pdesc": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Title or description"},
914 "dob": {"type": "varchar(32)", "not null": "1", "default": "0000-00-00", "comment": "Day of birth"},
915 "address": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
916 "locality": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
917 "region": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
918 "postal-code": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
919 "country-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
920 "hometown": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
921 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
922 "marital": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
923 "with": {"type": "text", "comment": ""},
924 "howlong": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
925 "sexual": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
926 "politic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
927 "religion": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
928 "pub_keywords": {"type": "text", "comment": ""},
929 "prv_keywords": {"type": "text", "comment": ""},
930 "likes": {"type": "text", "comment": ""},
931 "dislikes": {"type": "text", "comment": ""},
932 "about": {"type": "text", "comment": ""},
933 "summary": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
934 "music": {"type": "text", "comment": ""},
935 "book": {"type": "text", "comment": ""},
936 "tv": {"type": "text", "comment": ""},
937 "film": {"type": "text", "comment": ""},
938 "interest": {"type": "text", "comment": ""},
939 "romance": {"type": "text", "comment": ""},
940 "work": {"type": "text", "comment": ""},
941 "education": {"type": "text", "comment": ""},
942 "contact": {"type": "text", "comment": ""},
943 "homepage": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
944 "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
945 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
946 "thumb": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
947 "publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish default profile in local directory"},
948 "net-publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish profile in global directory"}
952 "uid_is-default": ["uid", "is-default"]
956 "comment": "DFRN remote auth use",
958 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
959 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
960 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
961 "dfrn_id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
962 "sec": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
963 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
970 "comment": "Used for OStatus: Contains feed subscribers",
972 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
973 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
974 "callback_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
975 "topic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
976 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
977 "push": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
978 "last_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last successful trial"},
979 "next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
980 "renewed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last subscription renewal"},
981 "secret": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
985 "next_try": ["next_try"]
989 "comment": "Queue for messages that couldn't be delivered",
991 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
992 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Message receiver"},
993 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Receiver's network"},
994 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Unique GUID of the message"},
995 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date, when the message was created"},
996 "last": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last trial"},
997 "next": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
998 "retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
999 "content": {"type": "mediumtext", "comment": ""},
1000 "batch": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}
1009 "comment": "registrations requiring admin approval",
1011 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1012 "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1013 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1014 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1015 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1016 "language": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
1017 "note": {"type": "text", "comment": ""}
1026 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1027 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1028 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1036 "comment": "web session storage",
1038 "id": {"type": "bigint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1039 "sid": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": ""},
1040 "data": {"type": "text", "comment": ""},
1041 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
1046 "expire": ["expire"]
1050 "comment": "Diaspora signatures",
1052 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1053 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
1054 "signed_text": {"type": "mediumtext", "comment": ""},
1055 "signature": {"type": "text", "comment": ""},
1056 "signer": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1060 "iid": ["UNIQUE", "iid"]
1064 "comment": "item taxonomy (categories, tags, etc.) table",
1066 "tid": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
1067 "oid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
1068 "otype": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1069 "type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1070 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1071 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1072 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1073 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1074 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1075 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1076 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1080 "oid_otype_type_term": ["oid", "otype", "type", "term(32)"],
1081 "uid_otype_type_term_global_created": ["uid", "otype", "type", "term(32)", "global", "created"],
1082 "uid_otype_type_url": ["uid", "otype", "type", "url(64)"],
1083 "guid": ["guid(64)"]
1087 "comment": "Thread related data",
1089 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "sequential ID"},
1090 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1091 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
1092 "owner-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item owner"},
1093 "author-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item author"},
1094 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1095 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1096 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1097 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1098 "changed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1099 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1100 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1101 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1102 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1103 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1104 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1105 "ignored": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1106 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
1107 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
1108 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1109 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1110 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1111 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1112 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
1113 "bookmark": {"type": "boolean", "comment": ""}
1117 "uid_network_commented": ["uid", "network", "commented"],
1118 "uid_network_created": ["uid", "network", "created"],
1119 "uid_contactid_commented": ["uid", "contact-id", "commented"],
1120 "uid_contactid_created": ["uid", "contact-id", "created"],
1121 "contactid": ["contact-id"],
1122 "ownerid": ["owner-id"],
1123 "authorid": ["author-id"],
1124 "uid_created": ["uid", "created"],
1125 "uid_commented": ["uid", "commented"],
1126 "uid_wall_created": ["uid", "wall", "created"],
1127 "private_wall_origin_commented": ["private", "wall", "origin", "commented"]
1131 "comment": "OAuth usage",
1133 "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},
1134 "secret": {"type": "text", "comment": ""},
1135 "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}},
1136 "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},
1137 "scope": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
1138 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1145 "comment": "The local users",
1147 "uid": {"type": "mediumint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1148 "parent-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "The parent user that has full control about this user"},
1149 "guid": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "A unique identifier for this user"},
1150 "username": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this user is known by"},
1151 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "encrypted password"},
1152 "legacy_password": {"type": "boolean", "not null": "1", "default": "0", "comment": "Is the password hash double-hashed?"},
1153 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "nick- and user name"},
1154 "email": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "the users email address"},
1155 "openid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1156 "timezone": {"type": "varchar(128)", "not null": "1", "default": "", "comment": "PHP-legal timezone"},
1157 "language": {"type": "varchar(32)", "not null": "1", "default": "en", "comment": "default language"},
1158 "register_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of registration"},
1159 "login_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last login"},
1160 "default-location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Default for item.location"},
1161 "allow_location": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 allows to display the location"},
1162 "theme": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "user theme preference"},
1163 "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},
1164 "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},
1165 "spubkey": {"type": "text", "comment": ""},
1166 "sprvkey": {"type": "text", "comment": ""},
1167 "verified": {"type": "boolean", "not null": "1", "default": "0", "comment": "user is verified through email"},
1168 "blocked": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 for user is blocked"},
1169 "blockwall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to post to the profile page of the user"},
1170 "hidewall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide profile details from unkown viewers"},
1171 "blocktags": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to tag the post of this user"},
1172 "unkmail": {"type": "boolean", "not null": "1", "default": "0", "comment": "Permit unknown people to send private mails to this user"},
1173 "cntunkmail": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1174 "notify-flags": {"type": "smallint unsigned", "not null": "1", "default": "65535", "comment": "email notification options"},
1175 "page-flags": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "page/profile type"},
1176 "account-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1177 "prvnets": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1178 "pwdreset": {"type": "varchar(255)", "comment": "Password reset request token"},
1179 "pwdreset_time": {"type": "datetime", "comment": "Timestamp of the last password reset request"},
1180 "maxreq": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1181 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1182 "account_removed": {"type": "boolean", "not null": "1", "default": "0", "comment": "if 1 the account is removed"},
1183 "account_expired": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1184 "account_expires_on": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp when account expires and will be deleted"},
1185 "expire_notification_sent": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last warning of account expiration"},
1186 "def_gid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1187 "allow_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1188 "allow_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1189 "deny_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1190 "deny_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1191 "openidserver": {"type": "text", "comment": ""}
1195 "nickname": ["nickname(32)"]
1199 "comment": "Deleted usernames",
1201 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1202 "username": {"type": "varchar(255)", "not null": "1", "comment": ""}
1206 "username": ["username(32)"]
1210 "comment": "User specific item data",
1212 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
1213 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"user": "uid"}, "comment": "User id"},
1214 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marker to hide an item from the user"}
1217 "PRIMARY": ["uid", "iid"]
1221 "comment": "Inter process communication between the frontend and the worker",
1223 "key": {"type": "int", "not null": "1", "primary": "1", "comment": ""},
1224 "jobs": {"type": "boolean", "comment": "Flag for outstanding jobs"}
1232 "comment": "Background tasks queue entries",
1234 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "Auto incremented worker task id"},
1235 "parameter": {"type": "mediumblob", "comment": "Task command"},
1236 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Task priority"},
1237 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation date"},
1238 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process id of the worker"},
1239 "executed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Execution date"},
1240 "done": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marked 1 when the task was done - will be deleted later"}
1245 "parameter": ["parameter(64)"],
1246 "priority_created": ["priority", "created"],
1247 "done_executed": ["done", "executed"]