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": "Original URI of the item - unrelated to the table with the same name"},
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-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
475 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
476 "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"},
477 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "uri of the parent to this item"},
478 "parent-uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table that contains the parent uri"},
479 "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"},
480 "thr-parent-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table that contains the thread parent uri"},
481 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation timestamp."},
482 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last edit (default is created)"},
483 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last comment/reply to this item"},
484 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime"},
485 "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"},
486 "gravity": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
487 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network from where the item comes from"},
488 "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"},
489 "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"},
490 "icid": {"type": "int unsigned", "relation": {"item-content": "id"}, "comment": "Id of the item-content table entry that contains the whole item content"},
491 "iaid": {"type": "int unsigned", "relation": {"item-activity": "id"}, "comment": "Id of the item-activity table entry that contains the activity data"},
492 "extid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
493 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
494 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
495 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": "distribution is restricted"},
496 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
497 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
498 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been deleted"},
499 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id which owns this copy of the item"},
500 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
501 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": "This item was posted to the wall of uid"},
502 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": "item originated at this site"},
503 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
504 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been favourited"},
505 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": "item has not been seen"},
506 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": "The owner of this item was mentioned in it"},
507 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
508 "psid": {"type": "int unsigned", "relation": {"permissionset": "id"}, "comment": "ID of the permission set of this post"},
509 "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"},
510 "event-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"event": "id"}, "comment": "Used to link to the event.id"},
511 "attach": {"type": "mediumtext", "comment": "JSON structure representing attachments to this item"},
512 "allow_cid": {"type": "mediumtext", "comment": "Deprecated"},
513 "allow_gid": {"type": "mediumtext", "comment": "Deprecated"},
514 "deny_cid": {"type": "mediumtext", "comment": "Deprecated"},
515 "deny_gid": {"type": "mediumtext", "comment": "Deprecated"},
516 "postopts": {"type": "text", "comment": "Deprecated"},
517 "inform": {"type": "mediumtext", "comment": "Deprecated"},
518 "type": {"type": "varchar(20)", "comment": "Deprecated"},
519 "bookmark": {"type": "boolean", "comment": "Deprecated"},
520 "file": {"type": "mediumtext", "comment": "Deprecated"},
521 "location": {"type": "varchar(255)", "comment": "Deprecated"},
522 "coord": {"type": "varchar(255)", "comment": "Deprecated"},
523 "tag": {"type": "mediumtext", "comment": "Deprecated"},
524 "plink": {"type": "varchar(255)", "comment": "Deprecated"},
525 "title": {"type": "varchar(255)", "comment": "Deprecated"},
526 "content-warning": {"type": "varchar(255)", "comment": "Deprecated"},
527 "body": {"type": "mediumtext", "comment": "Deprecated"},
528 "app": {"type": "varchar(255)", "comment": "Deprecated"},
529 "verb": {"type": "varchar(100)", "comment": "Deprecated"},
530 "object-type": {"type": "varchar(100)", "comment": "Deprecated"},
531 "object": {"type": "text", "comment": "Deprecated"},
532 "target-type": {"type": "varchar(100)", "comment": "Deprecated"},
533 "target": {"type": "text", "comment": "Deprecated"},
534 "author-name": {"type": "varchar(255)", "comment": "Deprecated"},
535 "author-link": {"type": "varchar(255)", "comment": "Deprecated"},
536 "author-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
537 "owner-name": {"type": "varchar(255)", "comment": "Deprecated"},
538 "owner-link": {"type": "varchar(255)", "comment": "Deprecated"},
539 "owner-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
540 "rendered-hash": {"type": "varchar(32)", "comment": "Deprecated"},
541 "rendered-html": {"type": "mediumtext", "comment": "Deprecated"}
545 "guid": ["guid(191)"],
547 "parent": ["parent"],
548 "parent-uri": ["parent-uri(191)"],
549 "extid": ["extid(191)"],
550 "uid_id": ["uid", "id"],
551 "uid_contactid_id": ["uid", "contact-id", "id"],
552 "uid_created": ["uid", "created"],
553 "uid_commented": ["uid", "commented"],
554 "uid_unseen_contactid": ["uid", "unseen", "contact-id"],
555 "uid_network_received": ["uid", "network", "received"],
556 "uid_network_commented": ["uid", "network", "commented"],
557 "uid_thrparent": ["uid", "thr-parent(190)"],
558 "uid_parenturi": ["uid", "parent-uri(190)"],
559 "uid_contactid_created": ["uid", "contact-id", "created"],
560 "authorid_created": ["author-id", "created"],
561 "ownerid": ["owner-id"],
562 "uid_uri": ["uid", "uri(190)"],
563 "resource-id": ["resource-id"],
564 "deleted_changed": ["deleted", "changed"],
565 "uid_wall_changed": ["uid", "wall", "changed"],
566 "uid_eventid": ["uid", "event-id"],
569 "psid_wall": ["psid", "wall"]
573 "comment": "Activities for items",
575 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
576 "uri": {"type": "varchar(255)", "comment": ""},
577 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
578 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
579 "activity": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""}
583 "uri-hash": ["UNIQUE", "uri-hash"],
588 "comment": "Content for all posts",
590 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
591 "uri": {"type": "varchar(255)", "comment": ""},
592 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
593 "uri-plink-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
594 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "item title"},
595 "content-warning": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
596 "body": {"type": "mediumtext", "comment": "item body content"},
597 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "text location where this item originated"},
598 "coord": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "longitude/latitude pair representing location where this item originated"},
599 "language": {"type": "text", "comment": "Language information about this post"},
600 "app": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "application which generated this item"},
601 "rendered-hash": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
602 "rendered-html": {"type": "mediumtext", "comment": "item.body converted to html"},
603 "object-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams object type"},
604 "object": {"type": "text", "comment": "JSON encoded object structure unless it is an implied object (normal post)"},
605 "target-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams target type if applicable (URI)"},
606 "target": {"type": "text", "comment": "JSON encoded target structure if used"},
607 "plink": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "permalink or URL to a displayable copy of the message at its source"},
608 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams verb"}
612 "uri-plink-hash": ["UNIQUE", "uri-plink-hash"],
616 "item-delivery-data": {
617 "comment": "Delivery data for items",
619 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
620 "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"},
621 "inform": {"type": "mediumtext", "comment": "Additional receivers of the linked item"}
628 "comment": "URI and GUID for items",
630 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1"},
631 "uri": {"type": "varbinary(255)", "not null": "1", "comment": "URI of an item"},
632 "guid": {"type": "varbinary(255)", "comment": "A unique identifier for an item"}
636 "uri": ["UNIQUE", "uri"],
643 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
644 "name": {"type": "varchar(128)", "not null": "1", "default": "", "comment": ""},
645 "locked": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
646 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process ID"},
647 "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"}
651 "name_expires": ["name", "expires"]
655 "comment": "private messages",
657 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
658 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
659 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this private message"},
660 "from-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "name of the sender"},
661 "from-photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "contact photo link of the sender"},
662 "from-url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "profile linke of the sender"},
663 "contact-id": {"type": "varchar(255)", "not null": "1", "default": "", "relation": {"contact": "id"}, "comment": "contact.id"},
664 "convid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"conv": "id"}, "comment": "conv.id"},
665 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
666 "body": {"type": "mediumtext", "comment": ""},
667 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": "if message visited it is 1"},
668 "reply": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
669 "replied": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
670 "unknown": {"type": "boolean", "not null": "1", "default": "0", "comment": "if sender not in the contact table this is 1"},
671 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
672 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
673 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time of the private message"}
677 "uid_seen": ["uid", "seen"],
678 "convid": ["convid"],
680 "parent-uri": ["parent-uri(64)"],
681 "contactid": ["contact-id(32)"]
685 "comment": "Mail account data for fetching mails",
687 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
688 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
689 "server": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
690 "port": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
691 "ssltype": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
692 "mailbox": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
693 "user": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
694 "pass": {"type": "text", "comment": ""},
695 "reply_to": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
696 "action": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
697 "movetofolder": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
698 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
699 "last_check": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
706 "comment": "table of accounts that can manage each other",
708 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
709 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
710 "mid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
714 "uid_mid": ["UNIQUE", "uid", "mid"]
718 "comment": "notifications",
720 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
721 "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": ""},
722 "type": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
723 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
724 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
725 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
726 "date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
727 "msg": {"type": "mediumtext", "comment": ""},
728 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
729 "link": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
730 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
731 "parent": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
732 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
733 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": ""},
734 "otype": {"type": "varchar(10)", "not null": "1", "default": "", "comment": ""},
735 "name_cache": {"type": "tinytext", "comment": "Cached bbcode parsing of name"},
736 "msg_cache": {"type": "mediumtext", "comment": "Cached bbcode parsing of msg"}
740 "hash_uid": ["hash", "uid"],
741 "seen_uid_date": ["seen", "uid", "date"],
742 "uid_date": ["uid", "date"],
743 "uid_type_link": ["uid", "type", "link(190)"]
749 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
750 "notify-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"notify": "id"}, "comment": ""},
751 "master-parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
752 "parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
753 "receiver-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
760 "comment": "cache for OEmbed queries",
762 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
763 "maxwidth": {"type": "mediumint unsigned", "not null": "1", "primary": "1", "comment": "Maximum width passed to Oembed"},
764 "content": {"type": "mediumtext", "comment": "OEmbed data of the page"},
765 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
768 "PRIMARY": ["url", "maxwidth"],
769 "created": ["created"]
772 "openwebauth-token": {
773 "comment": "Store OpenWebAuth token to verify contacts",
775 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
776 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
777 "type": {"type": "varchar(32)", "not null": "1", "default": "", "comment": "Verify type"},
778 "token": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A generated token"},
779 "meta": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
780 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
787 "comment": "cache for 'parse_url' queries",
789 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
790 "guessing": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the 'guessing' mode active?"},
791 "oembed": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the data the result of oembed?"},
792 "content": {"type": "mediumtext", "comment": "page data"},
793 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
796 "PRIMARY": ["url", "guessing", "oembed"],
797 "created": ["created"]
801 "comment": "Storage for participation messages from Diaspora",
803 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": ""},
804 "server": {"type": "varchar(60)", "not null": "1", "primary": "1", "comment": ""},
805 "cid": {"type": "int unsigned", "not null": "1", "relation": {"contact": "id"}, "comment": ""},
806 "fid": {"type": "int unsigned", "not null": "1", "relation": {"fcontact": "id"}, "comment": ""}
809 "PRIMARY": ["iid", "server"]
813 "comment": "personal (per user) configuration storage",
815 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
816 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
817 "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
818 "k": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": ""},
819 "v": {"type": "mediumtext", "comment": ""}
823 "uid_cat_k": ["UNIQUE", "uid", "cat", "k"]
829 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
830 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id of this permission set"},
831 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
832 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
833 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
834 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
838 "uid_allow_cid_allow_gid_deny_cid_deny_gid": ["allow_cid(50)", "allow_gid(30)", "deny_cid(50)", "deny_gid(30)"]
842 "comment": "photo storage",
844 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
845 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
846 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
847 "guid": {"type": "char(16)", "not null": "1", "default": "", "comment": "A unique identifier for this photo"},
848 "resource-id": {"type": "char(32)", "not null": "1", "default": "", "comment": ""},
849 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation date"},
850 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edited date"},
851 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
852 "desc": {"type": "text", "comment": ""},
853 "album": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "The name of the album to which the photo belongs"},
854 "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
855 "type": {"type": "varchar(30)", "not null": "1", "default": "image/jpeg"},
856 "height": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
857 "width": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
858 "datasize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
859 "data": {"type": "mediumblob", "not null": "1", "comment": ""},
860 "scale": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
861 "profile": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
862 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
863 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
864 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
865 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
869 "contactid": ["contact-id"],
870 "uid_contactid": ["uid", "contact-id"],
871 "uid_profile": ["uid", "profile"],
872 "uid_album_scale_created": ["uid", "album(32)", "scale", "created"],
873 "uid_album_resource-id_created": ["uid", "album(32)", "resource-id", "created"],
874 "resource-id": ["resource-id"]
878 "comment": "Currently unused table for storing poll results",
880 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
881 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
882 "q0": {"type": "text", "comment": ""},
883 "q1": {"type": "text", "comment": ""},
884 "q2": {"type": "text", "comment": ""},
885 "q3": {"type": "text", "comment": ""},
886 "q4": {"type": "text", "comment": ""},
887 "q5": {"type": "text", "comment": ""},
888 "q6": {"type": "text", "comment": ""},
889 "q7": {"type": "text", "comment": ""},
890 "q8": {"type": "text", "comment": ""},
891 "q9": {"type": "text", "comment": ""}
899 "comment": "data for polls - currently unused",
901 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
902 "poll_id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"poll": "id"}},
903 "choice": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""}
907 "poll_id": ["poll_id"]
911 "comment": "Currently running system processes",
913 "pid": {"type": "int unsigned", "not null": "1", "primary": "1", "comment": ""},
914 "command": {"type": "varbinary(32)", "not null": "1", "default": "", "comment": ""},
915 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
919 "command": ["command"]
923 "comment": "user profiles data",
925 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
926 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
927 "profile-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name of the profile"},
928 "is-default": {"type": "boolean", "not null": "1", "default": "0", "comment": "Mark this profile as default profile"},
929 "hide-friends": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide friend list from viewers of this profile"},
930 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
931 "pdesc": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Title or description"},
932 "dob": {"type": "varchar(32)", "not null": "1", "default": "0000-00-00", "comment": "Day of birth"},
933 "address": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
934 "locality": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
935 "region": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
936 "postal-code": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
937 "country-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
938 "hometown": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
939 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
940 "marital": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
941 "with": {"type": "text", "comment": ""},
942 "howlong": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
943 "sexual": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
944 "politic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
945 "religion": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
946 "pub_keywords": {"type": "text", "comment": ""},
947 "prv_keywords": {"type": "text", "comment": ""},
948 "likes": {"type": "text", "comment": ""},
949 "dislikes": {"type": "text", "comment": ""},
950 "about": {"type": "text", "comment": ""},
951 "summary": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
952 "music": {"type": "text", "comment": ""},
953 "book": {"type": "text", "comment": ""},
954 "tv": {"type": "text", "comment": ""},
955 "film": {"type": "text", "comment": ""},
956 "interest": {"type": "text", "comment": ""},
957 "romance": {"type": "text", "comment": ""},
958 "work": {"type": "text", "comment": ""},
959 "education": {"type": "text", "comment": ""},
960 "contact": {"type": "text", "comment": ""},
961 "homepage": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
962 "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
963 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
964 "thumb": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
965 "publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish default profile in local directory"},
966 "net-publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish profile in global directory"}
970 "uid_is-default": ["uid", "is-default"]
974 "comment": "DFRN remote auth use",
976 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
977 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
978 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
979 "dfrn_id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
980 "sec": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
981 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
988 "comment": "Used for OStatus: Contains feed subscribers",
990 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
991 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
992 "callback_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
993 "topic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
994 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
995 "push": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
996 "last_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last successful trial"},
997 "next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
998 "renewed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last subscription renewal"},
999 "secret": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1003 "next_try": ["next_try"]
1007 "comment": "Queue for messages that couldn't be delivered",
1009 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1010 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Message receiver"},
1011 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Receiver's network"},
1012 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Unique GUID of the message"},
1013 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date, when the message was created"},
1014 "last": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last trial"},
1015 "next": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
1016 "retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
1017 "content": {"type": "mediumtext", "comment": ""},
1018 "batch": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}
1027 "comment": "registrations requiring admin approval",
1029 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1030 "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1031 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1032 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1033 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1034 "language": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
1035 "note": {"type": "text", "comment": ""}
1044 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1045 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1046 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1054 "comment": "web session storage",
1056 "id": {"type": "bigint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1057 "sid": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": ""},
1058 "data": {"type": "text", "comment": ""},
1059 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
1064 "expire": ["expire"]
1068 "comment": "Diaspora signatures",
1070 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1071 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
1072 "signed_text": {"type": "mediumtext", "comment": ""},
1073 "signature": {"type": "text", "comment": ""},
1074 "signer": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1078 "iid": ["UNIQUE", "iid"]
1082 "comment": "item taxonomy (categories, tags, etc.) table",
1084 "tid": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
1085 "oid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
1086 "otype": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1087 "type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1088 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1089 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1090 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1091 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1092 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1093 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1094 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1098 "oid_otype_type_term": ["oid", "otype", "type", "term(32)"],
1099 "uid_otype_type_term_global_created": ["uid", "otype", "type", "term(32)", "global", "created"],
1100 "uid_otype_type_url": ["uid", "otype", "type", "url(64)"],
1101 "guid": ["guid(64)"]
1105 "comment": "Thread related data",
1107 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "sequential ID"},
1108 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1109 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
1110 "owner-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item owner"},
1111 "author-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item author"},
1112 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1113 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1114 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1115 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1116 "changed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1117 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1118 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1119 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1120 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1121 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1122 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1123 "ignored": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1124 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
1125 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
1126 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1127 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1128 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1129 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1130 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
1131 "bookmark": {"type": "boolean", "comment": ""}
1135 "uid_network_commented": ["uid", "network", "commented"],
1136 "uid_network_created": ["uid", "network", "created"],
1137 "uid_contactid_commented": ["uid", "contact-id", "commented"],
1138 "uid_contactid_created": ["uid", "contact-id", "created"],
1139 "contactid": ["contact-id"],
1140 "ownerid": ["owner-id"],
1141 "authorid": ["author-id"],
1142 "uid_created": ["uid", "created"],
1143 "uid_commented": ["uid", "commented"],
1144 "uid_wall_created": ["uid", "wall", "created"],
1145 "private_wall_origin_commented": ["private", "wall", "origin", "commented"]
1149 "comment": "OAuth usage",
1151 "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},
1152 "secret": {"type": "text", "comment": ""},
1153 "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}},
1154 "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},
1155 "scope": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
1156 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1163 "comment": "The local users",
1165 "uid": {"type": "mediumint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1166 "parent-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "The parent user that has full control about this user"},
1167 "guid": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "A unique identifier for this user"},
1168 "username": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this user is known by"},
1169 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "encrypted password"},
1170 "legacy_password": {"type": "boolean", "not null": "1", "default": "0", "comment": "Is the password hash double-hashed?"},
1171 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "nick- and user name"},
1172 "email": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "the users email address"},
1173 "openid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1174 "timezone": {"type": "varchar(128)", "not null": "1", "default": "", "comment": "PHP-legal timezone"},
1175 "language": {"type": "varchar(32)", "not null": "1", "default": "en", "comment": "default language"},
1176 "register_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of registration"},
1177 "login_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last login"},
1178 "default-location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Default for item.location"},
1179 "allow_location": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 allows to display the location"},
1180 "theme": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "user theme preference"},
1181 "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},
1182 "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},
1183 "spubkey": {"type": "text", "comment": ""},
1184 "sprvkey": {"type": "text", "comment": ""},
1185 "verified": {"type": "boolean", "not null": "1", "default": "0", "comment": "user is verified through email"},
1186 "blocked": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 for user is blocked"},
1187 "blockwall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to post to the profile page of the user"},
1188 "hidewall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide profile details from unkown viewers"},
1189 "blocktags": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to tag the post of this user"},
1190 "unkmail": {"type": "boolean", "not null": "1", "default": "0", "comment": "Permit unknown people to send private mails to this user"},
1191 "cntunkmail": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1192 "notify-flags": {"type": "smallint unsigned", "not null": "1", "default": "65535", "comment": "email notification options"},
1193 "page-flags": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "page/profile type"},
1194 "account-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1195 "prvnets": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1196 "pwdreset": {"type": "varchar(255)", "comment": "Password reset request token"},
1197 "pwdreset_time": {"type": "datetime", "comment": "Timestamp of the last password reset request"},
1198 "maxreq": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1199 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1200 "account_removed": {"type": "boolean", "not null": "1", "default": "0", "comment": "if 1 the account is removed"},
1201 "account_expired": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1202 "account_expires_on": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp when account expires and will be deleted"},
1203 "expire_notification_sent": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last warning of account expiration"},
1204 "def_gid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1205 "allow_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1206 "allow_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1207 "deny_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1208 "deny_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1209 "openidserver": {"type": "text", "comment": ""}
1213 "nickname": ["nickname(32)"]
1217 "comment": "Deleted usernames",
1219 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1220 "username": {"type": "varchar(255)", "not null": "1", "comment": ""}
1224 "username": ["username(32)"]
1228 "comment": "User specific item data",
1230 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
1231 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"user": "uid"}, "comment": "User id"},
1232 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marker to hide an item from the user"}
1235 "PRIMARY": ["uid", "iid"]
1239 "comment": "Inter process communication between the frontend and the worker",
1241 "key": {"type": "int", "not null": "1", "primary": "1", "comment": ""},
1242 "jobs": {"type": "boolean", "comment": "Flag for outstanding jobs"}
1250 "comment": "Background tasks queue entries",
1252 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "Auto incremented worker task id"},
1253 "parameter": {"type": "mediumblob", "comment": "Task command"},
1254 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Task priority"},
1255 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation date"},
1256 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process id of the worker"},
1257 "executed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Execution date"},
1258 "done": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marked 1 when the task was done - will be deleted later"}
1263 "parameter": ["parameter(64)"],
1264 "priority_created": ["priority", "created"],
1265 "done_executed": ["done", "executed"]