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 "url": ["followers(190)"]
47 "comment": "file attachments",
49 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "generated index"},
50 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
51 "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "hash"},
52 "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "filename of original"},
53 "filetype": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "mimetype"},
54 "filesize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "size in bytes"},
55 "data": {"type": "longblob", "not null": "1", "comment": "file data"},
56 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},
57 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},
58 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>"},
59 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
60 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
61 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
68 "comment": "OAuth usage",
70 "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},
71 "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}, "comment": ""},
72 "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
73 "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},
74 "scope": {"type": "varchar(250)", "not null": "1", "default": "", "comment": ""}
81 "comment": "Stores temporary data",
83 "k": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "cache key"},
84 "v": {"type": "mediumtext", "comment": "cached serialized value"},
85 "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"},
86 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache insertion"}
90 "k_expires": ["k", "expires"]
96 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
97 "challenge": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
98 "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
99 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
100 "type": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
101 "last_update": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
108 "comment": "OAuth usage",
110 "client_id": {"type": "varchar(20)", "not null": "1", "primary": "1", "comment": ""},
111 "pw": {"type": "varchar(20)", "not null": "1", "default": "", "comment": ""},
112 "redirect_uri": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
113 "name": {"type": "text", "comment": ""},
114 "icon": {"type": "text", "comment": ""},
115 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
118 "PRIMARY": ["client_id"]
122 "comment": "main configuration storage",
124 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
125 "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
126 "k": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
127 "v": {"type": "mediumtext", "comment": ""}
131 "cat_k": ["UNIQUE", "cat", "k"]
135 "comment": "contact table",
137 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
138 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
139 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
140 "self": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if the contact is the user him/her self"},
141 "remote_self": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
142 "rel": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "The kind of the relation between the user and the contact"},
143 "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
144 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network protocol of the contact"},
145 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},
146 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},
147 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
148 "about": {"type": "text", "comment": ""},
149 "keywords": {"type": "text", "comment": "public keywords (interests) of the contact"},
150 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
151 "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
152 "attag": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
153 "avatar": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
154 "photo": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo of the contact"},
155 "thumb": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (thumb size)"},
156 "micro": {"type": "varchar(255)", "default": "", "comment": "Link to the profile photo (micro size)"},
157 "site-pubkey": {"type": "text", "comment": ""},
158 "issued-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
159 "dfrn-id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
160 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
161 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
162 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
163 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
164 "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},
165 "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},
166 "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
167 "request": {"type": "varchar(255)", "comment": ""},
168 "notify": {"type": "varchar(255)", "comment": ""},
169 "poll": {"type": "varchar(255)", "comment": ""},
170 "confirm": {"type": "varchar(255)", "comment": ""},
171 "poco": {"type": "varchar(255)", "comment": ""},
172 "aes_allow": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
173 "ret-aes": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
174 "usehub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
175 "subhub": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
176 "hub-verify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
177 "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"},
178 "success_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last successful contact update"},
179 "failure_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of the last failed update"},
180 "name-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
181 "uri-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
182 "avatar-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
183 "term-date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
184 "last-item": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "date of the last post"},
185 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
186 "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
187 "readonly": {"type": "boolean", "not null": "1", "default": "0", "comment": "posts of the contact are readonly"},
188 "writable": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
189 "forum": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a forum"},
190 "prv": {"type": "boolean", "not null": "1", "default": "0", "comment": "contact is a private group"},
191 "contact-type": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
192 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
193 "archive": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
194 "pending": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
195 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "Contact has been deleted"},
196 "rating": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
197 "reason": {"type": "text", "comment": ""},
198 "closeness": {"type": "tinyint unsigned", "not null": "1", "default": "99", "comment": ""},
199 "info": {"type": "mediumtext", "comment": ""},
200 "profile-id": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
201 "bdyear": {"type": "varchar(4)", "not null": "1", "default": "", "comment": ""},
202 "bd": {"type": "date", "not null": "1", "default": "0001-01-01", "comment": ""},
203 "notify_new_posts": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
204 "fetch_further_information": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
205 "ffi_keyword_blacklist": {"type": "text", "comment": ""}
209 "uid_name": ["uid", "name(190)"],
210 "self_uid": ["self", "uid"],
211 "alias_uid": ["alias(32)", "uid"],
212 "pending_uid": ["pending", "uid"],
213 "blocked_uid": ["blocked", "uid"],
214 "uid_rel_network_poll": ["uid", "rel", "network", "poll(64)", "archive"],
215 "uid_network_batch": ["uid", "network", "batch(64)"],
216 "addr_uid": ["addr(32)", "uid"],
217 "nurl_uid": ["nurl(32)", "uid"],
218 "nick_uid": ["nick(32)", "uid"],
219 "dfrn-id": ["dfrn-id(64)"],
220 "issued-id": ["issued-id(64)"]
224 "comment": "private messages",
226 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
227 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this conversation"},
228 "recips": {"type": "text", "comment": "sender_handle;recipient_handle"},
229 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
230 "creator": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "handle of creator"},
231 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation timestamp"},
232 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "edited timestamp"},
233 "subject": {"type": "text", "comment": "subject of initial message"}
241 "comment": "Raw data and structure information for messages",
243 "item-uri": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "Original URI of the item - unrelated to the table with the same name"},
244 "reply-to-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "URI to which this item is a reply"},
245 "conversation-uri": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation URI"},
246 "conversation-href": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": "GNU Social conversation link"},
247 "protocol": {"type": "tinyint unsigned", "not null": "1", "default": "255", "comment": "The protocol of the item"},
248 "source": {"type": "mediumtext", "comment": "Original source"},
249 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Receiving date"}
252 "PRIMARY": ["item-uri"],
253 "conversation-uri": ["conversation-uri"],
254 "received": ["received"]
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": ""},
262 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
263 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact_id (ID of the contact in contact table)"},
264 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
265 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time"},
266 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edit time"},
267 "start": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event start time"},
268 "finish": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "event end time"},
269 "summary": {"type": "text", "comment": "short description or title of the event"},
270 "desc": {"type": "text", "comment": "event description"},
271 "location": {"type": "text", "comment": "event location"},
272 "type": {"type": "varchar(20)", "not null": "1", "default": "", "comment": "event or birthday"},
273 "nofinish": {"type": "boolean", "not null": "1", "default": "0", "comment": "if event does have no end this is 1"},
274 "adjust": {"type": "boolean", "not null": "1", "default": "1", "comment": "adjust to timezone of the recipient (0 or 1)"},
275 "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": "0 or 1"},
276 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
277 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
278 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
279 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
283 "uid_start": ["uid", "start"]
287 "comment": "Diaspora compatible contacts - used in the Diaspora implementation",
289 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
290 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "unique id"},
291 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
292 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
293 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
294 "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
295 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
296 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
297 "batch": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
298 "notify": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
299 "poll": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
300 "confirm": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
301 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
302 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
303 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
304 "pubkey": {"type": "text", "comment": ""},
305 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
309 "addr": ["addr(32)"],
310 "url": ["UNIQUE", "url(190)"]
314 "comment": "friend suggestion stuff",
316 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
317 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
318 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
319 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
320 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
321 "request": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
322 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
323 "note": {"type": "text", "comment": ""},
324 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
331 "comment": "contacts ignored by friend suggestions",
333 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
334 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Local User id"},
335 "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": "gcontact.id of ignored contact"}
344 "comment": "global contacts",
346 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
347 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this contact is known by"},
348 "nick": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Nick- and user name of the contact"},
349 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the contacts profile page"},
350 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
351 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Link to the profile photo"},
352 "connect": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
353 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
354 "updated": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
355 "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
356 "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
357 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
358 "about": {"type": "text", "comment": ""},
359 "keywords": {"type": "text", "comment": "puplic keywords (interests)"},
360 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
361 "birthday": {"type": "varchar(32)", "not null": "1", "default": "0001-01-01", "comment": ""},
362 "community": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 if contact is forum account"},
363 "contact-type": {"type": "tinyint", "not null": "1", "default": "-1", "comment": ""},
364 "hide": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = should be hidden from search"},
365 "nsfw": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 = contact posts nsfw content"},
366 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "social network protocol"},
367 "addr": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
368 "notify": {"type": "varchar(255)", "comment": ""},
369 "alias": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
370 "generation": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
371 "server_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "baseurl of the contacts server"}
375 "nurl": ["UNIQUE", "nurl(190)"],
376 "name": ["name(64)"],
377 "nick": ["nick(32)"],
378 "addr": ["addr(64)"],
379 "hide_network_updated": ["hide", "network", "updated"],
380 "updated": ["updated"]
384 "comment": "'friends of friends' linkages derived from poco",
386 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
387 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
388 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
389 "gcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},
390 "zcid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gcontact": "id"}, "comment": ""},
391 "updated": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
395 "cid_uid_gcid_zcid": ["UNIQUE", "cid", "uid", "gcid", "zcid"],
400 "comment": "privacy groups, group info",
402 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
403 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
404 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the member list is not private"},
405 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 indicates the group has been deleted"},
406 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "human readable name of group"}
414 "comment": "privacy groups, member info",
416 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
417 "gid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"group": "id"}, "comment": "groups.id of the associated group"},
418 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id of the member assigned to the associated group"}
422 "contactid": ["contact-id"],
423 "gid_contactid": ["UNIQUE", "gid", "contact-id"]
427 "comment": "Global servers",
429 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
430 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
431 "nurl": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
432 "version": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
433 "site_name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
434 "info": {"type": "text", "comment": ""},
435 "register_policy": {"type": "tinyint", "not null": "1", "default": "0", "comment": ""},
436 "registered-users": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Number of registered users"},
437 "poco": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
438 "noscrape": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
439 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
440 "platform": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
441 "relay-subscribe": {"type": "boolean", "not null": "1", "default": "0", "comment": "Has the server subscribed to the relay system"},
442 "relay-scope": {"type": "varchar(10)", "not null": "1", "default": "", "comment": "The scope of messages that the server wants to get"},
443 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
444 "last_poco_query": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
445 "last_contact": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""},
446 "last_failure": {"type": "datetime", "default": "0001-01-01 00:00:00", "comment": ""}
450 "nurl": ["UNIQUE", "nurl(190)"]
454 "comment": "Tags that the server has subscribed",
456 "gserver-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"gserver": "id"}, "primary": "1", "comment": "The id of the gserver"},
457 "tag": {"type": "varchar(100)", "not null": "1", "default": "", "primary": "1", "comment": "Tag that the server has subscribed"}
460 "PRIMARY": ["gserver-id", "tag"],
465 "comment": "addon hook registry",
467 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
468 "hook": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": "name of hook"},
469 "file": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "relative filename of hook handler"},
470 "function": {"type": "varbinary(200)", "not null": "1", "default": "", "comment": "function name of hook handler"},
471 "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"}
475 "hook_file_function": ["UNIQUE", "hook", "file", "function"]
481 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
482 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
483 "fid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"fcontact": "id"}, "comment": ""},
484 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
485 "knowyou": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
486 "duplex": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
487 "note": {"type": "text", "comment": ""},
488 "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
489 "datetime": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
490 "blocked": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
491 "ignore": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}
498 "comment": "Structure for all posts",
500 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
501 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this item"},
502 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
503 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
504 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
505 "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"},
506 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "uri of the parent to this item"},
507 "parent-uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table that contains the parent uri"},
508 "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"},
509 "thr-parent-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table that contains the thread parent uri"},
510 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation timestamp."},
511 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last edit (default is created)"},
512 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last comment/reply to this item"},
513 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime"},
514 "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"},
515 "gravity": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
516 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Network from where the item comes from"},
517 "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"},
518 "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"},
519 "icid": {"type": "int unsigned", "relation": {"item-content": "id"}, "comment": "Id of the item-content table entry that contains the whole item content"},
520 "iaid": {"type": "int unsigned", "relation": {"item-activity": "id"}, "comment": "Id of the item-activity table entry that contains the activity data"},
521 "extid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
522 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
523 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
524 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": "distribution is restricted"},
525 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
526 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
527 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been deleted"},
528 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id which owns this copy of the item"},
529 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
530 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": "This item was posted to the wall of uid"},
531 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": "item originated at this site"},
532 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
533 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": "item has been favourited"},
534 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": "item has not been seen"},
535 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": "The owner of this item was mentioned in it"},
536 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
537 "psid": {"type": "int unsigned", "relation": {"permissionset": "id"}, "comment": "ID of the permission set of this post"},
538 "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"},
539 "event-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"event": "id"}, "comment": "Used to link to the event.id"},
540 "attach": {"type": "mediumtext", "comment": "JSON structure representing attachments to this item"},
541 "allow_cid": {"type": "mediumtext", "comment": "Deprecated"},
542 "allow_gid": {"type": "mediumtext", "comment": "Deprecated"},
543 "deny_cid": {"type": "mediumtext", "comment": "Deprecated"},
544 "deny_gid": {"type": "mediumtext", "comment": "Deprecated"},
545 "postopts": {"type": "text", "comment": "Deprecated"},
546 "inform": {"type": "mediumtext", "comment": "Deprecated"},
547 "type": {"type": "varchar(20)", "comment": "Deprecated"},
548 "bookmark": {"type": "boolean", "comment": "Deprecated"},
549 "file": {"type": "mediumtext", "comment": "Deprecated"},
550 "location": {"type": "varchar(255)", "comment": "Deprecated"},
551 "coord": {"type": "varchar(255)", "comment": "Deprecated"},
552 "tag": {"type": "mediumtext", "comment": "Deprecated"},
553 "plink": {"type": "varchar(255)", "comment": "Deprecated"},
554 "title": {"type": "varchar(255)", "comment": "Deprecated"},
555 "content-warning": {"type": "varchar(255)", "comment": "Deprecated"},
556 "body": {"type": "mediumtext", "comment": "Deprecated"},
557 "app": {"type": "varchar(255)", "comment": "Deprecated"},
558 "verb": {"type": "varchar(100)", "comment": "Deprecated"},
559 "object-type": {"type": "varchar(100)", "comment": "Deprecated"},
560 "object": {"type": "text", "comment": "Deprecated"},
561 "target-type": {"type": "varchar(100)", "comment": "Deprecated"},
562 "target": {"type": "text", "comment": "Deprecated"},
563 "author-name": {"type": "varchar(255)", "comment": "Deprecated"},
564 "author-link": {"type": "varchar(255)", "comment": "Deprecated"},
565 "author-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
566 "owner-name": {"type": "varchar(255)", "comment": "Deprecated"},
567 "owner-link": {"type": "varchar(255)", "comment": "Deprecated"},
568 "owner-avatar": {"type": "varchar(255)", "comment": "Deprecated"},
569 "rendered-hash": {"type": "varchar(32)", "comment": "Deprecated"},
570 "rendered-html": {"type": "mediumtext", "comment": "Deprecated"}
574 "guid": ["guid(191)"],
576 "parent": ["parent"],
577 "parent-uri": ["parent-uri(191)"],
578 "extid": ["extid(191)"],
579 "uid_id": ["uid", "id"],
580 "uid_contactid_id": ["uid", "contact-id", "id"],
581 "uid_created": ["uid", "created"],
582 "uid_commented": ["uid", "commented"],
583 "uid_unseen_contactid": ["uid", "unseen", "contact-id"],
584 "uid_network_received": ["uid", "network", "received"],
585 "uid_network_commented": ["uid", "network", "commented"],
586 "uid_thrparent": ["uid", "thr-parent(190)"],
587 "uid_parenturi": ["uid", "parent-uri(190)"],
588 "uid_contactid_created": ["uid", "contact-id", "created"],
589 "authorid_created": ["author-id", "created"],
590 "ownerid": ["owner-id"],
591 "uid_uri": ["uid", "uri(190)"],
592 "resource-id": ["resource-id"],
593 "deleted_changed": ["deleted", "changed"],
594 "uid_wall_changed": ["uid", "wall", "changed"],
595 "uid_eventid": ["uid", "event-id"],
598 "psid_wall": ["psid", "wall"]
602 "comment": "Activities for items",
604 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
605 "uri": {"type": "varchar(255)", "comment": ""},
606 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
607 "uri-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
608 "activity": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""}
612 "uri-hash": ["UNIQUE", "uri-hash"],
617 "comment": "Content for all posts",
619 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "relation": {"thread": "iid"}},
620 "uri": {"type": "varchar(255)", "comment": ""},
621 "uri-id": {"type": "int unsigned", "relation": {"item-uri": "id"}, "comment": "Id of the item-uri table entry that contains the item uri"},
622 "uri-plink-hash": {"type": "varchar(80)", "not null": "1", "default": "", "comment": "RIPEMD-128 hash from uri"},
623 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "item title"},
624 "content-warning": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
625 "body": {"type": "mediumtext", "comment": "item body content"},
626 "location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "text location where this item originated"},
627 "coord": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "longitude/latitude pair representing location where this item originated"},
628 "language": {"type": "text", "comment": "Language information about this post"},
629 "app": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "application which generated this item"},
630 "rendered-hash": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
631 "rendered-html": {"type": "mediumtext", "comment": "item.body converted to html"},
632 "object-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams object type"},
633 "object": {"type": "text", "comment": "JSON encoded object structure unless it is an implied object (normal post)"},
634 "target-type": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams target type if applicable (URI)"},
635 "target": {"type": "text", "comment": "JSON encoded target structure if used"},
636 "plink": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "permalink or URL to a displayable copy of the message at its source"},
637 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": "ActivityStreams verb"}
641 "uri-plink-hash": ["UNIQUE", "uri-plink-hash"],
645 "item-delivery-data": {
646 "comment": "Delivery data for items",
648 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
649 "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"},
650 "inform": {"type": "mediumtext", "comment": "Additional receivers of the linked item"}
657 "comment": "URI and GUID for items",
659 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1"},
660 "uri": {"type": "varbinary(255)", "not null": "1", "comment": "URI of an item"},
661 "guid": {"type": "varbinary(255)", "comment": "A unique identifier for an item"}
665 "uri": ["UNIQUE", "uri"],
672 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
673 "name": {"type": "varchar(128)", "not null": "1", "default": "", "comment": ""},
674 "locked": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
675 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process ID"},
676 "expires": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of cache expiration"}
680 "name_expires": ["name", "expires"]
684 "comment": "private messages",
686 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
687 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
688 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A unique identifier for this private message"},
689 "from-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "name of the sender"},
690 "from-photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "contact photo link of the sender"},
691 "from-url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "profile linke of the sender"},
692 "contact-id": {"type": "varchar(255)", "not null": "1", "default": "", "relation": {"contact": "id"}, "comment": "contact.id"},
693 "convid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"conv": "id"}, "comment": "conv.id"},
694 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
695 "body": {"type": "mediumtext", "comment": ""},
696 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": "if message visited it is 1"},
697 "reply": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
698 "replied": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
699 "unknown": {"type": "boolean", "not null": "1", "default": "0", "comment": "if sender not in the contact table this is 1"},
700 "uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
701 "parent-uri": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
702 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation time of the private message"}
706 "uid_seen": ["uid", "seen"],
707 "convid": ["convid"],
709 "parent-uri": ["parent-uri(64)"],
710 "contactid": ["contact-id(32)"]
714 "comment": "Mail account data for fetching mails",
716 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
717 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
718 "server": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
719 "port": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
720 "ssltype": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
721 "mailbox": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
722 "user": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
723 "pass": {"type": "text", "comment": ""},
724 "reply_to": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
725 "action": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
726 "movetofolder": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
727 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
728 "last_check": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
735 "comment": "table of accounts that can manage each other",
737 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
738 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
739 "mid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
743 "uid_mid": ["UNIQUE", "uid", "mid"]
747 "comment": "notifications",
749 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
750 "hash": {"type": "varchar(64)", "not null": "1", "default": "", "comment": ""},
751 "type": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
752 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
753 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
754 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
755 "date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
756 "msg": {"type": "mediumtext", "comment": ""},
757 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
758 "link": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
759 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
760 "parent": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
761 "seen": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
762 "verb": {"type": "varchar(100)", "not null": "1", "default": "", "comment": ""},
763 "otype": {"type": "varchar(10)", "not null": "1", "default": "", "comment": ""},
764 "name_cache": {"type": "tinytext", "comment": "Cached bbcode parsing of name"},
765 "msg_cache": {"type": "mediumtext", "comment": "Cached bbcode parsing of msg"}
769 "hash_uid": ["hash", "uid"],
770 "seen_uid_date": ["seen", "uid", "date"],
771 "uid_date": ["uid", "date"],
772 "uid_type_link": ["uid", "type", "link(190)"]
778 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
779 "notify-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"notify": "id"}, "comment": ""},
780 "master-parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
781 "parent-item": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
782 "receiver-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
789 "comment": "cache for OEmbed queries",
791 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
792 "maxwidth": {"type": "mediumint unsigned", "not null": "1", "primary": "1", "comment": "Maximum width passed to Oembed"},
793 "content": {"type": "mediumtext", "comment": "OEmbed data of the page"},
794 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
797 "PRIMARY": ["url", "maxwidth"],
798 "created": ["created"]
801 "openwebauth-token": {
802 "comment": "Store OpenWebAuth token to verify contacts",
804 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
805 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
806 "type": {"type": "varchar(32)", "not null": "1", "default": "", "comment": "Verify type"},
807 "token": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "A generated token"},
808 "meta": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
809 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
816 "comment": "cache for 'parse_url' queries",
818 "url": {"type": "varbinary(255)", "not null": "1", "primary": "1", "comment": "page url"},
819 "guessing": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the 'guessing' mode active?"},
820 "oembed": {"type": "boolean", "not null": "1", "default": "0", "primary": "1", "comment": "is the data the result of oembed?"},
821 "content": {"type": "mediumtext", "comment": "page data"},
822 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "datetime of creation"}
825 "PRIMARY": ["url", "guessing", "oembed"],
826 "created": ["created"]
830 "comment": "Storage for participation messages from Diaspora",
832 "iid": {"type": "int unsigned", "not null": "1", "primary": "1", "relation": {"item": "id"}, "comment": ""},
833 "server": {"type": "varchar(60)", "not null": "1", "primary": "1", "comment": ""},
834 "cid": {"type": "int unsigned", "not null": "1", "relation": {"contact": "id"}, "comment": ""},
835 "fid": {"type": "int unsigned", "not null": "1", "relation": {"fcontact": "id"}, "comment": ""}
838 "PRIMARY": ["iid", "server"]
842 "comment": "personal (per user) configuration storage",
844 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
845 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
846 "cat": {"type": "varbinary(50)", "not null": "1", "default": "", "comment": ""},
847 "k": {"type": "varbinary(100)", "not null": "1", "default": "", "comment": ""},
848 "v": {"type": "mediumtext", "comment": ""}
852 "uid_cat_k": ["UNIQUE", "uid", "cat", "k"]
858 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
859 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner id of this permission set"},
860 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
861 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
862 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
863 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
867 "uid_allow_cid_allow_gid_deny_cid_deny_gid": ["allow_cid(50)", "allow_gid(30)", "deny_cid(50)", "deny_gid(30)"]
871 "comment": "photo storage",
873 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
874 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
875 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
876 "guid": {"type": "char(16)", "not null": "1", "default": "", "comment": "A unique identifier for this photo"},
877 "resource-id": {"type": "char(32)", "not null": "1", "default": "", "comment": ""},
878 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "creation date"},
879 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "last edited date"},
880 "title": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
881 "desc": {"type": "text", "comment": ""},
882 "album": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "The name of the album to which the photo belongs"},
883 "filename": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
884 "type": {"type": "varchar(30)", "not null": "1", "default": "image/jpeg"},
885 "height": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
886 "width": {"type": "smallint unsigned", "not null": "1", "default": "0", "comment": ""},
887 "datasize": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
888 "data": {"type": "mediumblob", "not null": "1", "comment": ""},
889 "scale": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
890 "profile": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
891 "allow_cid": {"type": "mediumtext", "comment": "Access Control - list of allowed contact.id '<19><78>'"},
892 "allow_gid": {"type": "mediumtext", "comment": "Access Control - list of allowed groups"},
893 "deny_cid": {"type": "mediumtext", "comment": "Access Control - list of denied contact.id"},
894 "deny_gid": {"type": "mediumtext", "comment": "Access Control - list of denied groups"}
898 "contactid": ["contact-id"],
899 "uid_contactid": ["uid", "contact-id"],
900 "uid_profile": ["uid", "profile"],
901 "uid_album_scale_created": ["uid", "album(32)", "scale", "created"],
902 "uid_album_resource-id_created": ["uid", "album(32)", "resource-id", "created"],
903 "resource-id": ["resource-id"]
907 "comment": "Currently unused table for storing poll results",
909 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
910 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
911 "q0": {"type": "text", "comment": ""},
912 "q1": {"type": "text", "comment": ""},
913 "q2": {"type": "text", "comment": ""},
914 "q3": {"type": "text", "comment": ""},
915 "q4": {"type": "text", "comment": ""},
916 "q5": {"type": "text", "comment": ""},
917 "q6": {"type": "text", "comment": ""},
918 "q7": {"type": "text", "comment": ""},
919 "q8": {"type": "text", "comment": ""},
920 "q9": {"type": "text", "comment": ""}
928 "comment": "data for polls - currently unused",
930 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
931 "poll_id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"poll": "id"}},
932 "choice": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""}
936 "poll_id": ["poll_id"]
940 "comment": "Currently running system processes",
942 "pid": {"type": "int unsigned", "not null": "1", "primary": "1", "comment": ""},
943 "command": {"type": "varbinary(32)", "not null": "1", "default": "", "comment": ""},
944 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""}
948 "command": ["command"]
952 "comment": "user profiles data",
954 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
955 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "Owner User id"},
956 "profile-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name of the profile"},
957 "is-default": {"type": "boolean", "not null": "1", "default": "0", "comment": "Mark this profile as default profile"},
958 "hide-friends": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide friend list from viewers of this profile"},
959 "name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
960 "pdesc": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Title or description"},
961 "dob": {"type": "varchar(32)", "not null": "1", "default": "0000-00-00", "comment": "Day of birth"},
962 "address": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
963 "locality": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
964 "region": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
965 "postal-code": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
966 "country-name": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
967 "hometown": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
968 "gender": {"type": "varchar(32)", "not null": "1", "default": "", "comment": ""},
969 "marital": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
970 "with": {"type": "text", "comment": ""},
971 "howlong": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
972 "sexual": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
973 "politic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
974 "religion": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
975 "pub_keywords": {"type": "text", "comment": ""},
976 "prv_keywords": {"type": "text", "comment": ""},
977 "likes": {"type": "text", "comment": ""},
978 "dislikes": {"type": "text", "comment": ""},
979 "about": {"type": "text", "comment": ""},
980 "summary": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
981 "music": {"type": "text", "comment": ""},
982 "book": {"type": "text", "comment": ""},
983 "tv": {"type": "text", "comment": ""},
984 "film": {"type": "text", "comment": ""},
985 "interest": {"type": "text", "comment": ""},
986 "romance": {"type": "text", "comment": ""},
987 "work": {"type": "text", "comment": ""},
988 "education": {"type": "text", "comment": ""},
989 "contact": {"type": "text", "comment": ""},
990 "homepage": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
991 "xmpp": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
992 "photo": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
993 "thumb": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
994 "publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish default profile in local directory"},
995 "net-publish": {"type": "boolean", "not null": "1", "default": "0", "comment": "publish profile in global directory"}
999 "uid_is-default": ["uid", "is-default"]
1003 "comment": "DFRN remote auth use",
1005 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1006 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1007 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "contact.id"},
1008 "dfrn_id": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1009 "sec": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1010 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
1016 "push_subscriber": {
1017 "comment": "Used for OStatus: Contains feed subscribers",
1019 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1020 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1021 "callback_url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1022 "topic": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1023 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1024 "push": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
1025 "last_update": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last successful trial"},
1026 "next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
1027 "renewed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last subscription renewal"},
1028 "secret": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1032 "next_try": ["next_try"]
1036 "comment": "Queue for messages that couldn't be delivered",
1038 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1039 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Message receiver"},
1040 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": "Receiver's network"},
1041 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Unique GUID of the message"},
1042 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date, when the message was created"},
1043 "last": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Date of last trial"},
1044 "next": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
1045 "retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
1046 "content": {"type": "mediumtext", "comment": ""},
1047 "batch": {"type": "boolean", "not null": "1", "default": "0", "comment": ""}
1056 "comment": "registrations requiring admin approval",
1058 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1059 "hash": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1060 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1061 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1062 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1063 "language": {"type": "varchar(16)", "not null": "1", "default": "", "comment": ""},
1064 "note": {"type": "text", "comment": ""}
1073 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1074 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1075 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1083 "comment": "web session storage",
1085 "id": {"type": "bigint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1086 "sid": {"type": "varbinary(255)", "not null": "1", "default": "", "comment": ""},
1087 "data": {"type": "text", "comment": ""},
1088 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""}
1093 "expire": ["expire"]
1097 "comment": "Diaspora signatures",
1099 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1100 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": "item.id"},
1101 "signed_text": {"type": "mediumtext", "comment": ""},
1102 "signature": {"type": "text", "comment": ""},
1103 "signer": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""}
1107 "iid": ["UNIQUE", "iid"]
1111 "comment": "item taxonomy (categories, tags, etc.) table",
1113 "tid": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": ""},
1114 "oid": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"item": "id"}, "comment": ""},
1115 "otype": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1116 "type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1117 "term": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1118 "url": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1119 "guid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1120 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1121 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1122 "global": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1123 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1127 "oid_otype_type_term": ["oid", "otype", "type", "term(32)"],
1128 "uid_otype_type_term_global_created": ["uid", "otype", "type", "term(32)", "global", "created"],
1129 "uid_otype_type_url": ["uid", "otype", "type", "url(64)"],
1130 "guid": ["guid(64)"]
1134 "comment": "Thread related data",
1136 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "sequential ID"},
1137 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"},
1138 "contact-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": ""},
1139 "owner-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item owner"},
1140 "author-id": {"type": "int unsigned", "not null": "1", "default": "0", "relation": {"contact": "id"}, "comment": "Item author"},
1141 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1142 "edited": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1143 "commented": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1144 "received": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1145 "changed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": ""},
1146 "wall": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1147 "private": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1148 "pubmail": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1149 "moderated": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1150 "visible": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1151 "starred": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1152 "ignored": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1153 "post-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Post type (personal note, bookmark, ...)"},
1154 "unseen": {"type": "boolean", "not null": "1", "default": "1", "comment": ""},
1155 "deleted": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1156 "origin": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1157 "forum_mode": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1158 "mention": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1159 "network": {"type": "char(4)", "not null": "1", "default": "", "comment": ""},
1160 "bookmark": {"type": "boolean", "comment": ""}
1164 "uid_network_commented": ["uid", "network", "commented"],
1165 "uid_network_created": ["uid", "network", "created"],
1166 "uid_contactid_commented": ["uid", "contact-id", "commented"],
1167 "uid_contactid_created": ["uid", "contact-id", "created"],
1168 "contactid": ["contact-id"],
1169 "ownerid": ["owner-id"],
1170 "authorid": ["author-id"],
1171 "uid_created": ["uid", "created"],
1172 "uid_commented": ["uid", "commented"],
1173 "uid_wall_created": ["uid", "wall", "created"],
1174 "private_wall_origin_commented": ["private", "wall", "origin", "commented"]
1178 "comment": "OAuth usage",
1180 "id": {"type": "varchar(40)", "not null": "1", "primary": "1", "comment": ""},
1181 "secret": {"type": "text", "comment": ""},
1182 "client_id": {"type": "varchar(20)", "not null": "1", "default": "", "relation": {"clients": "client_id"}},
1183 "expires": {"type": "int", "not null": "1", "default": "0", "comment": ""},
1184 "scope": {"type": "varchar(200)", "not null": "1", "default": "", "comment": ""},
1185 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "User id"}
1192 "comment": "The local users",
1194 "uid": {"type": "mediumint unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1195 "parent-uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "relation": {"user": "uid"}, "comment": "The parent user that has full control about this user"},
1196 "guid": {"type": "varchar(64)", "not null": "1", "default": "", "comment": "A unique identifier for this user"},
1197 "username": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Name that this user is known by"},
1198 "password": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "encrypted password"},
1199 "legacy_password": {"type": "boolean", "not null": "1", "default": "0", "comment": "Is the password hash double-hashed?"},
1200 "nickname": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "nick- and user name"},
1201 "email": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "the users email address"},
1202 "openid": {"type": "varchar(255)", "not null": "1", "default": "", "comment": ""},
1203 "timezone": {"type": "varchar(128)", "not null": "1", "default": "", "comment": "PHP-legal timezone"},
1204 "language": {"type": "varchar(32)", "not null": "1", "default": "en", "comment": "default language"},
1205 "register_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of registration"},
1206 "login_date": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last login"},
1207 "default-location": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "Default for item.location"},
1208 "allow_location": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 allows to display the location"},
1209 "theme": {"type": "varchar(255)", "not null": "1", "default": "", "comment": "user theme preference"},
1210 "pubkey": {"type": "text", "comment": "RSA public key 4096 bit"},
1211 "prvkey": {"type": "text", "comment": "RSA private key 4096 bit"},
1212 "spubkey": {"type": "text", "comment": ""},
1213 "sprvkey": {"type": "text", "comment": ""},
1214 "verified": {"type": "boolean", "not null": "1", "default": "0", "comment": "user is verified through email"},
1215 "blocked": {"type": "boolean", "not null": "1", "default": "0", "comment": "1 for user is blocked"},
1216 "blockwall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to post to the profile page of the user"},
1217 "hidewall": {"type": "boolean", "not null": "1", "default": "0", "comment": "Hide profile details from unkown viewers"},
1218 "blocktags": {"type": "boolean", "not null": "1", "default": "0", "comment": "Prohibit contacts to tag the post of this user"},
1219 "unkmail": {"type": "boolean", "not null": "1", "default": "0", "comment": "Permit unknown people to send private mails to this user"},
1220 "cntunkmail": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1221 "notify-flags": {"type": "smallint unsigned", "not null": "1", "default": "65535", "comment": "email notification options"},
1222 "page-flags": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "page/profile type"},
1223 "account-type": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": ""},
1224 "prvnets": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1225 "pwdreset": {"type": "varchar(255)", "comment": "Password reset request token"},
1226 "pwdreset_time": {"type": "datetime", "comment": "Timestamp of the last password reset request"},
1227 "maxreq": {"type": "int unsigned", "not null": "1", "default": "10", "comment": ""},
1228 "expire": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1229 "account_removed": {"type": "boolean", "not null": "1", "default": "0", "comment": "if 1 the account is removed"},
1230 "account_expired": {"type": "boolean", "not null": "1", "default": "0", "comment": ""},
1231 "account_expires_on": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp when account expires and will be deleted"},
1232 "expire_notification_sent": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "timestamp of last warning of account expiration"},
1233 "def_gid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": ""},
1234 "allow_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1235 "allow_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1236 "deny_cid": {"type": "mediumtext", "comment": "default permission for this user"},
1237 "deny_gid": {"type": "mediumtext", "comment": "default permission for this user"},
1238 "openidserver": {"type": "text", "comment": ""}
1242 "nickname": ["nickname(32)"]
1246 "comment": "Deleted usernames",
1248 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "sequential ID"},
1249 "username": {"type": "varchar(255)", "not null": "1", "comment": ""}
1253 "username": ["username(32)"]
1257 "comment": "User specific public contact data",
1259 "cid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"contact": "id"}, "comment": "Contact id of the linked public contact"},
1260 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"user": "uid"}, "comment": "User id"},
1261 "blocked": {"type": "boolean", "comment": "Contact is completely blocked for this user"},
1262 "ignored": {"type": "boolean", "comment": "Posts from this contact are ignored"},
1263 "collapsed": {"type": "boolean", "comment": "Posts from this contact are collapsed"}
1266 "PRIMARY": ["uid", "cid"]
1270 "comment": "User specific item data",
1272 "iid": {"type": "int unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"item": "id"}, "comment": "Item id"},
1273 "uid": {"type": "mediumint unsigned", "not null": "1", "default": "0", "primary": "1", "relation": {"user": "uid"}, "comment": "User id"},
1274 "hidden": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marker to hide an item from the user"},
1275 "ignored": {"type": "boolean", "comment": "Ignore this thread if set"}
1278 "PRIMARY": ["uid", "iid"]
1282 "comment": "Inter process communication between the frontend and the worker",
1284 "key": {"type": "int", "not null": "1", "primary": "1", "comment": ""},
1285 "jobs": {"type": "boolean", "comment": "Flag for outstanding jobs"}
1293 "comment": "Background tasks queue entries",
1295 "id": {"type": "int unsigned", "not null": "1", "extra": "auto_increment", "primary": "1", "comment": "Auto incremented worker task id"},
1296 "parameter": {"type": "mediumblob", "comment": "Task command"},
1297 "priority": {"type": "tinyint unsigned", "not null": "1", "default": "0", "comment": "Task priority"},
1298 "created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation date"},
1299 "pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process id of the worker"},
1300 "executed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Execution date"},
1301 "next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
1302 "retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
1303 "done": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marked 1 when the task was done - will be deleted later"}
1308 "parameter": ["parameter(64)"],
1309 "priority_created_next_try": ["priority", "created", "next_try"],
1310 "done_executed_next_try": ["done", "executed", "next_try"]