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": "ActivityPub compatible contacts - used in the ActivityPub implementation",
21 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "URL of the contact"},
22 "uuid": {"type": "varchar(255)", "comment": ""},
23 "type": {"type": "varchar(20)", "not null": "1", "comment": ""},
24 "following": {"type": "varchar(255)", "comment": ""},
25 "followers": {"type": "varchar(255)", "comment": ""},
26 "inbox": {"type": "varchar(255)", "not null": "1", "comment": ""},
27 "outbox": {"type": "varchar(255)", "comment": ""},
28 "sharedinbox": {"type": "varchar(255)", "comment": ""},
29 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
30 "name": {"type": "varchar(255)", "comment": ""},
31 "about": {"type": "text", "comment": ""},
32 "photo": {"type": "varchar(255)", "comment": ""},
33 "addr": {"type": "varchar(255)", "comment": ""},
34 "alias": {"type": "varchar(255)", "comment": ""},
35 "pubkey": {"type": "text", "comment": ""},
36 "baseurl": {"type": "varchar(255)", "comment": "baseurl of the ap contact"},
37 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
43 "alias": ["alias(190)"],
44 "url": ["followers(190)"]
48 "comment": "file attachments",
50 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "generated index"},
51 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
52 "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "hash"},
53 "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "filename of original"},
54 "filetype": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "mimetype"},
55 "filesize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "size in bytes"},
56 "data": {"type": "longblob", "not null": "1", "comment": "file data"},
57 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},
58 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},
59 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>"},
60 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
61 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
62 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
69 "comment": "OAuth usage",
71 "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},
72 "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}, "comment": ""},
73 "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
74 "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},
75 "scope": {"type": "varchar(250)", "not null": "1", "default": "", "comment": ""}
82 "comment": "Stores temporary data",
84 "k": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "cache key"},
85 "v": {"type": "mediumtext", "comment": "cached serialized value"},
86 "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"},
87 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache insertion"}
91 "k_expires": ["k", "expires"]
97 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
98 "challenge": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
99 "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
100 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
101 "type": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
102 "last_update": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
109 "comment": "OAuth usage",
111 "client_id": {"type": "varchar(20)", "not null": "1", "primary": "1", "comment": ""},
112 "pw": {"type": "varchar(20)", "not null": "1", "default": "", "comment": ""},
113 "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
114 "name": {"type": "text", "comment": ""},
115 "icon": {"type": "text", "comment": ""},
116 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
119 "PRIMARY": ["client_id"]
123 "comment": "main configuration storage",
125 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
126 "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
127 "k": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
128 "v": {"type": "mediumtext", "comment": ""}
132 "cat_k": ["UNIQUE", "cat", "k"]
136 "comment": "contact table",
138 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
139 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
140 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
141 "self": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if the contact is the user him/her self"},
142 "remote_self": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
143 "rel": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "The kind of the relation between the user and the contact"},
144 "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
145 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network protocol of the contact"},
146 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},
147 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},
148 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
149 "about": {"type": "text", "comment": ""},
150 "keywords": {"type": "text", "comment": "public keywords (interests) of the contact"},
151 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
152 "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
153 "attag": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
154 "avatar": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
155 "photo": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo of the contact"},
156 "thumb": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (thumb size)"},
157 "micro": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (micro size)"},
158 "site-pubkey": {"type": "text", "comment": ""},
159 "issued-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
160 "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
161 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
162 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
163 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
164 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
165 "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},
166 "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},
167 "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
168 "request": {"type": "varchar(255)", "comment": ""},
169 "notify": {"type": "varchar(255)", "comment": ""},
170 "poll": {"type": "varchar(255)", "comment": ""},
171 "confirm": {"type": "varchar(255)", "comment": ""},
172 "poco": {"type": "varchar(255)", "comment": ""},
173 "aes_allow": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
174 "ret-aes": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
175 "usehub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
176 "subhub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
177 "hub-verify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
178 "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"},
179 "success_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last successful contact update"},
180 "failure_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last failed update"},
181 "name-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
182 "uri-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
183 "avatar-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
184 "term-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
185 "last-item": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "date of the last post"},
186 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
187 "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
188 "readonly": {"type": "boolean", "not null": "1", "default": "0", "comment": "posts of the contact are readonly"},
189 "writable": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
190 "forum": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a forum"},
191 "prv": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a private group"},
192 "contact-type": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
193 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
194 "archive": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
195 "pending": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
196 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "Contact has been deleted"},
197 "rating": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
198 "reason": {"type": "text", "comment": ""},
199 "closeness": {"type": "tinyint unsigned", "not null": "1", "default": "99", "comment": ""},
200 "info": {"type": "mediumtext", "comment": ""},
201 "profile-id": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
202 "bdyear": {"type": "varchar(4)", "not null": "1", "default": "", "comment": ""},
203 "bd": {"type": "date", "not null": "1", "default": "0001-01-01", "comment": ""},
204 "notify_new_posts": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
205 "fetch_further_information": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
206 "ffi_keyword_blacklist": {"type": "text", "comment": ""}
210 "uid_name": ["uid", "name(190)"],
211 "self_uid": ["self", "uid"],
212 "alias_uid": ["alias(32)", "uid"],
213 "pending_uid": ["pending", "uid"],
214 "blocked_uid": ["blocked", "uid"],
215 "uid_rel_network_poll": ["uid", "rel", "network", "poll(64)", "archive"],
216 "uid_network_batch": ["uid", "network", "batch(64)"],
217 "addr_uid": ["addr(32)", "uid"],
218 "nurl_uid": ["nurl(32)", "uid"],
219 "nick_uid": ["nick(32)", "uid"],
220 "dfrn-id": ["dfrn-id(64)"],
221 "issued-id": ["issued-id(64)"]
225 "comment": "private messages",
227 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
228 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this conversation"},
229 "recips": {"type": "text", "comment": "sender_handle;recipient_handle"},
230 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
231 "creator": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "handle of creator"},
232 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation timestamp"},
233 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "edited timestamp"},
234 "subject": {"type": "text", "comment": "subject of initial message"}
242 "comment": "Raw data and structure information for messages",
244 "item-uri": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "Original URI of the item - unrelated to the table with the same name"},
245 "reply-to-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "URI to which this item is a reply"},
246 "conversation-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation URI"},
247 "conversation-href": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation link"},
248 "protocol": {"type": "tinyint unsigned", "not null": "1", "default": "255", "comment": "The protocol of the item"},
249 "source": {"type": "mediumtext", "comment": "Original source"},
250 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Receiving date"}
253 "PRIMARY": ["item-uri"],
254 "conversation-uri": ["conversation-uri"],
255 "received": ["received"]
258 "diaspora-interaction": {
259 "comment": "Signed Diaspora Interaction",
261 "uri-id": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
262 "interaction": {"type": "mediumtext", "comment": "The Diaspora interaction"}
265 "PRIMARY": ["uri-id"]
271 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
272 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
273 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
274 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact_id (ID of the contact in contact table)"},
275 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
276 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},
277 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},
278 "start": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event start time"},
279 "finish": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event end time"},
280 "summary": {"type": "text", "comment": "short description or title of the event"},
281 "desc": {"type": "text", "comment": "event description"},
282 "location": {"type": "text", "comment": "event location"},
283 "type": {"type": "varchar(20)", "not null": "1", "default": "", "comment": "event or birthday"},
284 "nofinish": {"type": "boolean", "not null": "1", "default": "0", "comment": "if event does have no end this is 1"},
285 "adjust": {"type": "boolean", "not null": "1", "default": "1", "comment": "adjust to timezone of the recipient (0 or 1)"},
286 "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": "0 or 1"},
287 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
288 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
289 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
290 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
294 "uid_start": ["uid", "start"]
298 "comment": "Diaspora compatible contacts - used in the Diaspora implementation",
300 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
301 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "unique id"},
302 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
303 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
304 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
305 "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
306 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
307 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
308 "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
309 "notify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
310 "poll": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
311 "confirm": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
312 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
313 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
314 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
315 "pubkey": {"type": "text", "comment": ""},
316 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
320 "addr": ["addr(32)"],
321 "url": ["UNIQUE", "url(190)"]
325 "comment": "friend suggestion stuff",
327 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
328 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
329 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
330 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
331 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
332 "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
333 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
334 "note": {"type": "text", "comment": ""},
335 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
342 "comment": "contacts ignored by friend suggestions",
344 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
345 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Local User id"},
346 "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": "gcontact.id of ignored contact"}
355 "comment": "global contacts",
357 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
358 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},
359 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},
360 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the contacts profile page"},
361 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
362 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the profile photo"},
363 "connect": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
364 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
365 "updated": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
366 "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
367 "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
368 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
369 "about": {"type": "text", "comment": ""},
370 "keywords": {"type": "text", "comment": "puplic keywords (interests)"},
371 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
372 "birthday": {"type": "varchar(32)", "not null": "1", "default": "0001-01-01", "comment": ""},
373 "community": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if contact is forum account"},
374 "contact-type": {"type": "tinyint", "not null": "1", "default": "-1", "comment": ""},
375 "hide": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = should be hidden from search"},
376 "nsfw": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = contact posts nsfw content"},
377 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "social network protocol"},
378 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
379 "notify": {"type": "varchar(255)", "comment": ""},
380 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
381 "generation": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
382 "server_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "baseurl of the contacts server"}
386 "nurl": ["UNIQUE", "nurl(190)"],
387 "name": ["name(64)"],
388 "nick": ["nick(32)"],
389 "addr": ["addr(64)"],
390 "hide_network_updated": ["hide", "network", "updated"],
391 "updated": ["updated"]
395 "comment": "'friends of friends' linkages derived from poco",
397 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
398 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
399 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
400 "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},
401 "zcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},
402 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
406 "cid_uid_gcid_zcid": ["UNIQUE", "cid", "uid", "gcid", "zcid"],
411 "comment": "privacy groups, group info",
413 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
414 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
415 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the member list is not private"},
416 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the group has been deleted"},
417 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "human readable name of group"}
425 "comment": "privacy groups, member info",
427 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
428 "gid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"group": "id"}, "comment": "groups.id of the associated group"},
429 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id of the member assigned to the associated group"}
433 "contactid": ["contact-id"],
434 "gid_contactid": ["UNIQUE", "gid", "contact-id"]
438 "comment": "Global servers",
440 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
441 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
442 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
443 "version": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
444 "site_name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
445 "info": {"type": "text", "comment": ""},
446 "register_policy": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
447 "registered-users": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Number of registered users"},
448 "poco": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
449 "noscrape": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
450 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
451 "platform": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
452 "relay-subscribe": {"type": "boolean", "not null": "1", "default": "0", "comment": "Has the server subscribed to the relay system"},
453 "relay-scope": {"type": "varchar(10)", "not null": "1", "default": "", "comment": "The scope of messages that the server wants to get"},
454 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
455 "last_poco_query": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
456 "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
457 "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""}
461 "nurl": ["UNIQUE", "nurl(190)"]
465 "comment": "Tags that the server has subscribed",
467 "gserver-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gserver": "id"}, "primary": "1", "comment": "The id of the gserver"},
468 "tag": {"type": "varchar(100)", "not null": "1", "default": "", "primary": "1", "comment": "Tag that the server has subscribed"}
471 "PRIMARY": ["gserver-id", "tag"],
476 "comment": "addon hook registry",
478 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
479 "hook": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": "name of hook"},
480 "file": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "relative filename of hook handler"},
481 "function": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "function name of hook handler"},
482 "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"}
486 "hook_file_function": ["UNIQUE", "hook", "file", "function"]
492 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
493 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
494 "fid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"fcontact": "id"}, "comment": ""},
495 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
496 "knowyou": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
497 "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
498 "note": {"type": "text", "comment": ""},
499 "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
500 "datetime": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
501 "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
502 "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}
509 "comment": "Structure for all posts",
511 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
512 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this item"},
513 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
514 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
515 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
516 "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"},
517 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "uri of the parent to this item"},
518 "parent-uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table that contains the parent uri"},
519 "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"},
520 "thr-parent-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table that contains the thread parent uri"},
521 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation timestamp."},
522 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last edit (default is created)"},
523 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last comment/reply to this item"},
524 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime"},
525 "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"},
526 "gravity": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
527 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network from where the item comes from"},
528 "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"},
529 "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"},
530 "icid": {"type": "int unsigned", "relation": {"item-content": "id"}, "comment": "Id of the item-content table entry that contains the whole item content"},
531 "iaid": {"type": "int unsigned", "relation": {"item-activity": "id"}, "comment": "Id of the item-activity table entry that contains the activity data"},
532 "extid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
533 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
534 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
535 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": "distribution is restricted"},
536 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
537 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
538 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been deleted"},
539 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id which owns this copy of the item"},
540 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
541 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": "This item was posted to the wall of uid"},
542 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": "item originated at this site"},
543 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
544 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been favourited"},
545 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": "item has not been seen"},
546 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": "The owner of this item was mentioned in it"},
547 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
548 "psid": {"type": "int unsigned", "relation": {"permissionset": "id"}, "comment": "ID of the permission set of this post"},
549 "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"},
550 "event-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"event": "id"}, "comment": "Used to link to the event.id"},
551 "attach": {"type": "mediumtext", "comment": "JSON structure representing attachments to this item"},
552 "allow_cid": {"type": "mediumtext", "comment": "Deprecated"},
553 "allow_gid": {"type": "mediumtext", "comment": "Deprecated"},
554 "deny_cid": {"type": "mediumtext", "comment": "Deprecated"},
555 "deny_gid": {"type": "mediumtext", "comment": "Deprecated"},
556 "postopts": {"type": "text", "comment": "Deprecated"},
557 "inform": {"type": "mediumtext", "comment": "Deprecated"},
558 "type": {"type": "varchar(20)", "comment": "Deprecated"},
559 "bookmark": {"type": "boolean", "comment": "Deprecated"},
560 "file": {"type": "mediumtext", "comment": "Deprecated"},
561 "location": {"type": "varchar(255)", "comment": "Deprecated"},
562 "coord": {"type": "varchar(255)", "comment": "Deprecated"},
563 "tag": {"type": "mediumtext", "comment": "Deprecated"},
564 "plink": {"type": "varchar(255)", "comment": "Deprecated"},
565 "title": {"type": "varchar(255)", "comment": "Deprecated"},
566 "content-warning": {"type": "varchar(255)", "comment": "Deprecated"},
567 "body": {"type": "mediumtext", "comment": "Deprecated"},
568 "app": {"type": "varchar(255)", "comment": "Deprecated"},
569 "verb": {"type": "varchar(100)", "comment": "Deprecated"},
570 "object-type": {"type": "varchar(100)", "comment": "Deprecated"},
571 "object": {"type": "text", "comment": "Deprecated"},
572 "target-type": {"type": "varchar(100)", "comment": "Deprecated"},
573 "target": {"type": "text", "comment": "Deprecated"},
574 "author-name": {"type": "varchar(255)", "comment": "Deprecated"},
575 "author-link": {"type": "varchar(255)", "comment": "Deprecated"},
576 "author-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
577 "owner-name": {"type": "varchar(255)", "comment": "Deprecated"},
578 "owner-link": {"type": "varchar(255)", "comment": "Deprecated"},
579 "owner-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
580 "rendered-hash": {"type": "varchar(32)", "comment": "Deprecated"},
581 "rendered-html": {"type": "mediumtext", "comment": "Deprecated"}
585 "guid": ["guid(191)"],
587 "parent": ["parent"],
588 "parent-uri": ["parent-uri(191)"],
589 "extid": ["extid(191)"],
590 "uid_id": ["uid", "id"],
591 "uid_contactid_id": ["uid", "contact-id", "id"],
592 "uid_created": ["uid", "created"],
593 "uid_commented": ["uid", "commented"],
594 "uid_unseen_contactid": ["uid", "unseen", "contact-id"],
595 "uid_network_received": ["uid", "network", "received"],
596 "uid_network_commented": ["uid", "network", "commented"],
597 "uid_thrparent": ["uid", "thr-parent(190)"],
598 "uid_parenturi": ["uid", "parent-uri(190)"],
599 "uid_contactid_created": ["uid", "contact-id", "created"],
600 "authorid_created": ["author-id", "created"],
601 "ownerid": ["owner-id"],
602 "uid_uri": ["uid", "uri(190)"],
603 "resource-id": ["resource-id"],
604 "deleted_changed": ["deleted", "changed"],
605 "uid_wall_changed": ["uid", "wall", "changed"],
606 "uid_eventid": ["uid", "event-id"],
609 "psid_wall": ["psid", "wall"]
613 "comment": "Activities for items",
615 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
616 "uri": {"type": "varchar(255)", "comment": ""},
617 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
618 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
619 "activity": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""}
623 "uri-hash": ["UNIQUE", "uri-hash"],
629 "comment": "Content for all posts",
631 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
632 "uri": {"type": "varchar(255)", "comment": ""},
633 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
634 "uri-plink-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
635 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "item title"},
636 "content-warning": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
637 "body": {"type": "mediumtext", "comment": "item body content"},
638 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "text location where this item originated"},
639 "coord": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "longitude/latitude pair representing location where this item originated"},
640 "language": {"type": "text", "comment": "Language information about this post"},
641 "app": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "application which generated this item"},
642 "rendered-hash": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
643 "rendered-html": {"type": "mediumtext", "comment": "item.body converted to html"},
644 "object-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams object type"},
645 "object": {"type": "text", "comment": "JSON encoded object structure unless it is an implied object (normal post)"},
646 "target-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams target type if applicable (URI)"},
647 "target": {"type": "text", "comment": "JSON encoded target structure if used"},
648 "plink": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "permalink or URL to a displayable copy of the message at its source"},
649 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams verb"}
653 "uri-plink-hash": ["UNIQUE", "uri-plink-hash"],
658 "item-delivery-data": {
659 "comment": "Delivery data for items",
661 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
662 "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"},
663 "inform": {"type": "mediumtext", "comment": "Additional receivers of the linked item"}
670 "comment": "URI and GUID for items",
672 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1"},
673 "uri": {"type": "varbinary(255)", "not null": "1", "comment": "URI of an item"},
674 "guid": {"type": "varbinary(255)", "comment": "A unique identifier for an item"}
678 "uri": ["UNIQUE", "uri"],
685 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
686 "name": {"type": "varchar(128)", "not null": "1", "default": "", "comment": ""},
687 "locked": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
688 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process ID"},
689 "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"}
693 "name_expires": ["name", "expires"]
697 "comment": "private messages",
699 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
700 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
701 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this private message"},
702 "from-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "name of the sender"},
703 "from-photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "contact photo link of the sender"},
704 "from-url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "profile linke of the sender"},
705 "contact-id": {"type": "varchar(255)", "not null": "1", "default": "", "relation": {"contact": "id"}, "comment": "contact.id"},
706 "convid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"conv": "id"}, "comment": "conv.id"},
707 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
708 "body": {"type": "mediumtext", "comment": ""},
709 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": "if message visited it is 1"},
710 "reply": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
711 "replied": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
712 "unknown": {"type": "boolean", "not null": "1", "default": "0", "comment": "if sender not in the contact table this is 1"},
713 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
714 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
715 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time of the private message"}
719 "uid_seen": ["uid", "seen"],
720 "convid": ["convid"],
722 "parent-uri": ["parent-uri(64)"],
723 "contactid": ["contact-id(32)"]
727 "comment": "Mail account data for fetching mails",
729 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
730 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
731 "server": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
732 "port": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
733 "ssltype": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
734 "mailbox": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
735 "user": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
736 "pass": {"type": "text", "comment": ""},
737 "reply_to": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
738 "action": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
739 "movetofolder": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
740 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
741 "last_check": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
748 "comment": "table of accounts that can manage each other",
750 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
751 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
752 "mid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
756 "uid_mid": ["UNIQUE", "uid", "mid"]
760 "comment": "notifications",
762 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
763 "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": ""},
764 "type": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
765 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
766 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
767 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
768 "date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
769 "msg": {"type": "mediumtext", "comment": ""},
770 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
771 "link": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
772 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
773 "parent": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
774 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
775 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": ""},
776 "otype": {"type": "varchar(10)", "not null": "1", "default": "", "comment": ""},
777 "name_cache": {"type": "tinytext", "comment": "Cached bbcode parsing of name"},
778 "msg_cache": {"type": "mediumtext", "comment": "Cached bbcode parsing of msg"}
782 "hash_uid": ["hash", "uid"],
783 "seen_uid_date": ["seen", "uid", "date"],
784 "uid_date": ["uid", "date"],
785 "uid_type_link": ["uid", "type", "link(190)"]
791 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
792 "notify-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"notify": "id"}, "comment": ""},
793 "master-parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
794 "parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
795 "receiver-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
802 "comment": "cache for OEmbed queries",
804 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
805 "maxwidth": {"type": "mediumint unsigned", "not null": "1", "primary": "1", "comment": "Maximum width passed to Oembed"},
806 "content": {"type": "mediumtext", "comment": "OEmbed data of the page"},
807 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
810 "PRIMARY": ["url", "maxwidth"],
811 "created": ["created"]
814 "openwebauth-token": {
815 "comment": "Store OpenWebAuth token to verify contacts",
817 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
818 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
819 "type": {"type": "varchar(32)", "not null": "1", "default": "", "comment": "Verify type"},
820 "token": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A generated token"},
821 "meta": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
822 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
829 "comment": "cache for 'parse_url' queries",
831 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
832 "guessing": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the 'guessing' mode active?"},
833 "oembed": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the data the result of oembed?"},
834 "content": {"type": "mediumtext", "comment": "page data"},
835 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
838 "PRIMARY": ["url", "guessing", "oembed"],
839 "created": ["created"]
843 "comment": "Storage for participation messages from Diaspora",
845 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": ""},
846 "server": {"type": "varchar(60)", "not null": "1", "primary": "1", "comment": ""},
847 "cid": {"type": "int unsigned", "not null": "1", "relation": {"contact": "id"}, "comment": ""},
848 "fid": {"type": "int unsigned", "not null": "1", "relation": {"fcontact": "id"}, "comment": ""}
851 "PRIMARY": ["iid", "server"]
855 "comment": "personal (per user) configuration storage",
857 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
858 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
859 "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
860 "k": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": ""},
861 "v": {"type": "mediumtext", "comment": ""}
865 "uid_cat_k": ["UNIQUE", "uid", "cat", "k"]
871 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
872 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id of this permission set"},
873 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
874 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
875 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
876 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
880 "uid_allow_cid_allow_gid_deny_cid_deny_gid": ["allow_cid(50)", "allow_gid(30)", "deny_cid(50)", "deny_gid(30)"]
884 "comment": "photo storage",
886 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
887 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
888 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
889 "guid": {"type": "char(16)", "not null": "1", "default": "", "comment": "A unique identifier for this photo"},
890 "resource-id": {"type": "char(32)", "not null": "1", "default": "", "comment": ""},
891 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation date"},
892 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edited date"},
893 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
894 "desc": {"type": "text", "comment": ""},
895 "album": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "The name of the album to which the photo belongs"},
896 "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
897 "type": {"type": "varchar(30)", "not null": "1", "default": "image/jpeg"},
898 "height": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
899 "width": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
900 "datasize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
901 "data": {"type": "mediumblob", "not null": "1", "comment": ""},
902 "scale": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
903 "profile": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
904 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
905 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
906 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
907 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
911 "contactid": ["contact-id"],
912 "uid_contactid": ["uid", "contact-id"],
913 "uid_profile": ["uid", "profile"],
914 "uid_album_scale_created": ["uid", "album(32)", "scale", "created"],
915 "uid_album_resource-id_created": ["uid", "album(32)", "resource-id", "created"],
916 "resource-id": ["resource-id"]
920 "comment": "Currently unused table for storing poll results",
922 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
923 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
924 "q0": {"type": "text", "comment": ""},
925 "q1": {"type": "text", "comment": ""},
926 "q2": {"type": "text", "comment": ""},
927 "q3": {"type": "text", "comment": ""},
928 "q4": {"type": "text", "comment": ""},
929 "q5": {"type": "text", "comment": ""},
930 "q6": {"type": "text", "comment": ""},
931 "q7": {"type": "text", "comment": ""},
932 "q8": {"type": "text", "comment": ""},
933 "q9": {"type": "text", "comment": ""}
941 "comment": "data for polls - currently unused",
943 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
944 "poll_id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"poll": "id"}},
945 "choice": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""}
949 "poll_id": ["poll_id"]
953 "comment": "Currently running system processes",
955 "pid": {"type": "int unsigned", "not null": "1", "primary": "1", "comment": ""},
956 "command": {"type": "varbinary(32)", "not null": "1", "default": "", "comment": ""},
957 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
961 "command": ["command"]
965 "comment": "user profiles data",
967 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
968 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
969 "profile-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name of the profile"},
970 "is-default": {"type": "boolean", "not null": "1", "default": "0", "comment": "Mark this profile as default profile"},
971 "hide-friends": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide friend list from viewers of this profile"},
972 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
973 "pdesc": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Title or description"},
974 "dob": {"type": "varchar(32)", "not null": "1", "default": "0000-00-00", "comment": "Day of birth"},
975 "address": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
976 "locality": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
977 "region": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
978 "postal-code": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
979 "country-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
980 "hometown": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
981 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
982 "marital": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
983 "with": {"type": "text", "comment": ""},
984 "howlong": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
985 "sexual": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
986 "politic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
987 "religion": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
988 "pub_keywords": {"type": "text", "comment": ""},
989 "prv_keywords": {"type": "text", "comment": ""},
990 "likes": {"type": "text", "comment": ""},
991 "dislikes": {"type": "text", "comment": ""},
992 "about": {"type": "text", "comment": ""},
993 "summary": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
994 "music": {"type": "text", "comment": ""},
995 "book": {"type": "text", "comment": ""},
996 "tv": {"type": "text", "comment": ""},
997 "film": {"type": "text", "comment": ""},
998 "interest": {"type": "text", "comment": ""},
999 "romance": {"type": "text", "comment": ""},
1000 "work": {"type": "text", "comment": ""},
1001 "education": {"type": "text", "comment": ""},
1002 "contact": {"type": "text", "comment": ""},
1003 "homepage": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1004 "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1005 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1006 "thumb": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1007 "publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish default profile in local directory"},
1008 "net-publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish profile in global directory"}
1012 "uid_is-default": ["uid", "is-default"]
1016 "comment": "DFRN remote auth use",
1018 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1019 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1020 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
1021 "dfrn_id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1022 "sec": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1023 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
1029 "push_subscriber": {
1030 "comment": "Used for OStatus: Contains feed subscribers",
1032 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1033 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1034 "callback_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1035 "topic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1036 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1037 "push": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
1038 "last_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last successful trial"},
1039 "next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
1040 "renewed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last subscription renewal"},
1041 "secret": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1045 "next_try": ["next_try"]
1049 "comment": "Queue for messages that couldn't be delivered",
1051 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1052 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Message receiver"},
1053 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Receiver's network"},
1054 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Unique GUID of the message"},
1055 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date, when the message was created"},
1056 "last": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last trial"},
1057 "next": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
1058 "retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
1059 "content": {"type": "mediumtext", "comment": ""},
1060 "batch": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}
1069 "comment": "registrations requiring admin approval",
1071 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1072 "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1073 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1074 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1075 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1076 "language": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
1077 "note": {"type": "text", "comment": ""}
1086 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1087 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1088 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1096 "comment": "web session storage",
1098 "id": {"type": "bigint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1099 "sid": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": ""},
1100 "data": {"type": "text", "comment": ""},
1101 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
1106 "expire": ["expire"]
1110 "comment": "Diaspora signatures",
1112 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1113 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
1114 "signed_text": {"type": "mediumtext", "comment": ""},
1115 "signature": {"type": "text", "comment": ""},
1116 "signer": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1120 "iid": ["UNIQUE", "iid"]
1124 "comment": "item taxonomy (categories, tags, etc.) table",
1126 "tid": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
1127 "oid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
1128 "otype": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1129 "type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1130 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1131 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1132 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1133 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1134 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1135 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1136 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1140 "oid_otype_type_term": ["oid", "otype", "type", "term(32)"],
1141 "uid_otype_type_term_global_created": ["uid", "otype", "type", "term(32)", "global", "created"],
1142 "uid_otype_type_url": ["uid", "otype", "type", "url(64)"],
1143 "guid": ["guid(64)"]
1147 "comment": "Thread related data",
1149 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "sequential ID"},
1150 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1151 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
1152 "owner-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item owner"},
1153 "author-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item author"},
1154 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1155 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1156 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1157 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1158 "changed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1159 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1160 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1161 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1162 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1163 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1164 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1165 "ignored": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1166 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
1167 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
1168 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1169 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1170 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1171 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1172 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
1173 "bookmark": {"type": "boolean", "comment": ""}
1177 "uid_network_commented": ["uid", "network", "commented"],
1178 "uid_network_created": ["uid", "network", "created"],
1179 "uid_contactid_commented": ["uid", "contact-id", "commented"],
1180 "uid_contactid_created": ["uid", "contact-id", "created"],
1181 "contactid": ["contact-id"],
1182 "ownerid": ["owner-id"],
1183 "authorid": ["author-id"],
1184 "uid_created": ["uid", "created"],
1185 "uid_commented": ["uid", "commented"],
1186 "uid_wall_created": ["uid", "wall", "created"],
1187 "private_wall_origin_commented": ["private", "wall", "origin", "commented"]
1191 "comment": "OAuth usage",
1193 "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},
1194 "secret": {"type": "text", "comment": ""},
1195 "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}},
1196 "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},
1197 "scope": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
1198 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1205 "comment": "The local users",
1207 "uid": {"type": "mediumint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1208 "parent-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "The parent user that has full control about this user"},
1209 "guid": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "A unique identifier for this user"},
1210 "username": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this user is known by"},
1211 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "encrypted password"},
1212 "legacy_password": {"type": "boolean", "not null": "1", "default": "0", "comment": "Is the password hash double-hashed?"},
1213 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "nick- and user name"},
1214 "email": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "the users email address"},
1215 "openid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1216 "timezone": {"type": "varchar(128)", "not null": "1", "default": "", "comment": "PHP-legal timezone"},
1217 "language": {"type": "varchar(32)", "not null": "1", "default": "en", "comment": "default language"},
1218 "register_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of registration"},
1219 "login_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last login"},
1220 "default-location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Default for item.location"},
1221 "allow_location": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 allows to display the location"},
1222 "theme": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "user theme preference"},
1223 "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},
1224 "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},
1225 "spubkey": {"type": "text", "comment": ""},
1226 "sprvkey": {"type": "text", "comment": ""},
1227 "verified": {"type": "boolean", "not null": "1", "default": "0", "comment": "user is verified through email"},
1228 "blocked": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 for user is blocked"},
1229 "blockwall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to post to the profile page of the user"},
1230 "hidewall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide profile details from unkown viewers"},
1231 "blocktags": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to tag the post of this user"},
1232 "unkmail": {"type": "boolean", "not null": "1", "default": "0", "comment": "Permit unknown people to send private mails to this user"},
1233 "cntunkmail": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1234 "notify-flags": {"type": "smallint unsigned", "not null": "1", "default": "65535", "comment": "email notification options"},
1235 "page-flags": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "page/profile type"},
1236 "account-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1237 "prvnets": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1238 "pwdreset": {"type": "varchar(255)", "comment": "Password reset request token"},
1239 "pwdreset_time": {"type": "datetime", "comment": "Timestamp of the last password reset request"},
1240 "maxreq": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1241 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1242 "account_removed": {"type": "boolean", "not null": "1", "default": "0", "comment": "if 1 the account is removed"},
1243 "account_expired": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1244 "account_expires_on": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp when account expires and will be deleted"},
1245 "expire_notification_sent": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last warning of account expiration"},
1246 "def_gid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1247 "allow_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1248 "allow_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1249 "deny_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1250 "deny_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1251 "openidserver": {"type": "text", "comment": ""}
1255 "nickname": ["nickname(32)"]
1259 "comment": "Deleted usernames",
1261 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1262 "username": {"type": "varchar(255)", "not null": "1", "comment": ""}
1266 "username": ["username(32)"]
1270 "comment": "User specific public contact data",
1272 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"contact": "id"}, "comment": "Contact id of the linked public contact"},
1273 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"user": "uid"}, "comment": "User id"},
1274 "blocked": {"type": "boolean", "comment": "Contact is completely blocked for this user"},
1275 "ignored": {"type": "boolean", "comment": "Posts from this contact are ignored"},
1276 "collapsed": {"type": "boolean", "comment": "Posts from this contact are collapsed"}
1279 "PRIMARY": ["uid", "cid"]
1283 "comment": "User specific item data",
1285 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
1286 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"user": "uid"}, "comment": "User id"},
1287 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marker to hide an item from the user"},
1288 "ignored": {"type": "boolean", "comment": "Ignore this thread if set"}
1291 "PRIMARY": ["uid", "iid"]
1295 "comment": "Inter process communication between the frontend and the worker",
1297 "key": {"type": "int", "not null": "1", "primary": "1", "comment": ""},
1298 "jobs": {"type": "boolean", "comment": "Flag for outstanding jobs"}
1306 "comment": "Background tasks queue entries",
1308 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "Auto incremented worker task id"},
1309 "parameter": {"type": "mediumblob", "comment": "Task command"},
1310 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Task priority"},
1311 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation date"},
1312 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process id of the worker"},
1313 "executed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Execution date"},
1314 "next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
1315 "retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
1316 "done": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marked 1 when the task was done - will be deleted later"}
1321 "parameter": ["parameter(64)"],
1322 "priority_created_next_try": ["priority", "created", "next_try"],
1323 "done_executed_next_try": ["done", "executed", "next_try"]