forked from snarfed/mockfacebook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfql_schema.sql
More file actions
839 lines (778 loc) · 20.4 KB
/
Copy pathfql_schema.sql
File metadata and controls
839 lines (778 loc) · 20.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
-- Do not edit! Generated automatically by mockfacebook.
-- http://code.google.com/p/mockfacebook/
-- 2011-11-08 16:25:41.357079
CREATE TABLE IF NOT EXISTS `album` (
aid TEXT,
object_id INTEGER,
owner INTEGER,
cover_pid TEXT,
cover_object_id TEXT,
name TEXT,
created INTEGER,
modified INTEGER,
description TEXT,
location TEXT,
size INTEGER,
link TEXT,
visible TEXT,
modified_major INTEGER,
edit_link TEXT,
type TEXT,
can_upload INTEGER,
photo_count INTEGER,
video_count INTEGER,
UNIQUE (aid, object_id, owner, cover_pid, cover_object_id, name, created, modified, description, location, size, link, visible, modified_major, edit_link, type, can_upload, photo_count, video_count)
);
CREATE TABLE IF NOT EXISTS `application` (
app_id TEXT,
api_key TEXT,
canvas_name TEXT,
display_name TEXT,
icon_url TEXT,
logo_url TEXT,
company_name TEXT,
developers ,
description TEXT,
daily_active_users TEXT,
weekly_active_users TEXT,
monthly_active_users TEXT,
category TEXT,
subcategory TEXT,
is_facebook_app INTEGER,
restriction_info ,
UNIQUE (app_id, api_key, canvas_name, display_name, icon_url, logo_url, company_name, developers, description, daily_active_users, weekly_active_users, monthly_active_users, category, subcategory, is_facebook_app, restriction_info)
);
CREATE TABLE IF NOT EXISTS `apprequest` (
request_id TEXT,
app_id TEXT,
recipient_uid TEXT,
sender_uid TEXT,
message TEXT,
data TEXT,
created_time INTEGER,
UNIQUE (request_id, app_id, recipient_uid, sender_uid, message, data, created_time)
);
CREATE TABLE IF NOT EXISTS `checkin` (
checkin_id INTEGER,
author_uid INTEGER,
page_id INTEGER,
app_id INTEGER,
post_id INTEGER,
coords ,
timestamp INTEGER,
tagged_uids ,
message TEXT,
UNIQUE (checkin_id, author_uid, page_id, app_id, post_id, coords, timestamp, tagged_uids, message)
);
CREATE TABLE IF NOT EXISTS `comment` (
xid TEXT,
object_id INTEGER,
post_id TEXT,
fromid INTEGER,
time INTEGER,
text TEXT,
id TEXT,
username TEXT,
reply_xid TEXT,
post_fbid TEXT,
app_id INTEGER,
likes INTEGER,
comments ,
user_likes INTEGER,
is_private INTEGER,
UNIQUE (xid, object_id, post_id, fromid, time, text, id, username, reply_xid, post_fbid, app_id, likes, comments, user_likes, is_private)
);
CREATE TABLE IF NOT EXISTS `comments_info` (
app_id TEXT,
xid TEXT,
count INTEGER,
updated_time INTEGER,
UNIQUE (app_id, xid, count, updated_time)
);
CREATE TABLE IF NOT EXISTS `connection` (
source_id INTEGER,
target_id INTEGER,
target_type TEXT,
is_following INTEGER,
UNIQUE (source_id, target_id, target_type, is_following)
);
CREATE TABLE IF NOT EXISTS `cookies` (
uid TEXT,
name TEXT,
value TEXT,
expires INTEGER,
path TEXT,
UNIQUE (uid, name, value, expires, path)
);
CREATE TABLE IF NOT EXISTS `developer` (
developer_id TEXT,
application_id TEXT,
UNIQUE (developer_id, application_id)
);
CREATE TABLE IF NOT EXISTS `domain` (
domain_id INTEGER,
domain_name TEXT,
UNIQUE (domain_id, domain_name)
);
CREATE TABLE IF NOT EXISTS `domain_admin` (
owner_id TEXT,
domain_id TEXT,
UNIQUE (owner_id, domain_id)
);
CREATE TABLE IF NOT EXISTS `event` (
eid INTEGER,
name TEXT,
tagline TEXT,
nid INTEGER,
pic_small TEXT,
pic_big TEXT,
pic_square TEXT,
pic TEXT,
host TEXT,
description TEXT,
event_type TEXT,
event_subtype TEXT,
start_time INTEGER,
end_time INTEGER,
creator INTEGER,
update_time INTEGER,
location TEXT,
venue ,
privacy TEXT,
hide_guest_list INTEGER,
can_invite_friends INTEGER,
UNIQUE (eid, name, tagline, nid, pic_small, pic_big, pic_square, pic, host, description, event_type, event_subtype, start_time, end_time, creator, update_time, location, venue, privacy, hide_guest_list, can_invite_friends)
);
CREATE TABLE IF NOT EXISTS `event_member` (
uid TEXT,
eid TEXT,
rsvp_status TEXT,
start_time INTEGER,
UNIQUE (uid, eid, rsvp_status, start_time)
);
CREATE TABLE IF NOT EXISTS `family` (
profile_id TEXT,
uid TEXT,
name TEXT,
birthday TEXT,
relationship TEXT,
UNIQUE (profile_id, uid, name, birthday, relationship)
);
CREATE TABLE IF NOT EXISTS `friend` (
uid1 TEXT,
uid2 TEXT,
UNIQUE (uid1, uid2)
);
CREATE TABLE IF NOT EXISTS `friend_request` (
uid_to TEXT,
uid_from TEXT,
time INTEGER,
message TEXT,
unread INTEGER,
UNIQUE (uid_to, uid_from, time, message, unread)
);
CREATE TABLE IF NOT EXISTS `friendlist` (
owner INTEGER,
flid TEXT,
name TEXT,
UNIQUE (owner, flid, name)
);
CREATE TABLE IF NOT EXISTS `friendlist_member` (
flid TEXT,
uid INTEGER,
UNIQUE (flid, uid)
);
CREATE TABLE IF NOT EXISTS `group` (
gid INTEGER,
name TEXT,
nid INTEGER,
pic_small TEXT,
pic_big TEXT,
pic TEXT,
description TEXT,
group_type TEXT,
group_subtype TEXT,
recent_news TEXT,
creator INTEGER,
update_time INTEGER,
office TEXT,
website TEXT,
venue ,
privacy TEXT,
icon TEXT,
icon34 TEXT,
icon68 TEXT,
email TEXT,
version INTEGER,
UNIQUE (gid, name, nid, pic_small, pic_big, pic, description, group_type, group_subtype, recent_news, creator, update_time, office, website, venue, privacy, icon, icon34, icon68, email, version)
);
CREATE TABLE IF NOT EXISTS `group_member` (
uid TEXT,
gid TEXT,
administrator INTEGER,
positions ,
unread INTEGER,
bookmark_order INTEGER,
UNIQUE (uid, gid, administrator, positions, unread, bookmark_order)
);
CREATE TABLE IF NOT EXISTS `like` (
object_id INTEGER,
post_id TEXT,
user_id INTEGER,
object_type TEXT,
UNIQUE (object_id, post_id, user_id, object_type)
);
CREATE TABLE IF NOT EXISTS `link` (
link_id INTEGER,
owner INTEGER,
owner_comment TEXT,
created_time INTEGER,
title TEXT,
summary TEXT,
url TEXT,
picture TEXT,
image_urls ,
UNIQUE (link_id, owner, owner_comment, created_time, title, summary, url, picture, image_urls)
);
CREATE TABLE IF NOT EXISTS `link_stat` (
url TEXT,
normalized_url TEXT,
share_count INTEGER,
like_count INTEGER,
comment_count INTEGER,
total_count INTEGER,
click_count INTEGER,
comments_fbid INTEGER,
commentsbox_count INTEGER,
UNIQUE (url, normalized_url, share_count, like_count, comment_count, total_count, click_count, comments_fbid, commentsbox_count)
);
CREATE TABLE IF NOT EXISTS `mailbox_folder` (
folder_id TEXT,
viewer_id TEXT,
name TEXT,
unread_count INTEGER,
total_count INTEGER,
UNIQUE (folder_id, viewer_id, name, unread_count, total_count)
);
CREATE TABLE IF NOT EXISTS `message` (
message_id TEXT,
thread_id TEXT,
author_id INTEGER,
body TEXT,
created_time INTEGER,
attachment ,
viewer_id TEXT,
UNIQUE (message_id, thread_id, author_id, body, created_time, attachment, viewer_id)
);
CREATE TABLE IF NOT EXISTS `note` (
uid INTEGER,
note_id TEXT,
created_time INTEGER,
updated_time INTEGER,
content TEXT,
content_html TEXT,
title TEXT,
UNIQUE (uid, note_id, created_time, updated_time, content, content_html, title)
);
CREATE TABLE IF NOT EXISTS `notification` (
notification_id TEXT,
sender_id INTEGER,
recipient_id INTEGER,
created_time INTEGER,
updated_time INTEGER,
title_html TEXT,
title_text TEXT,
body_html TEXT,
body_text TEXT,
href TEXT,
app_id INTEGER,
is_unread INTEGER,
is_hidden INTEGER,
object_id TEXT,
object_type TEXT,
icon_url TEXT,
UNIQUE (notification_id, sender_id, recipient_id, created_time, updated_time, title_html, title_text, body_html, body_text, href, app_id, is_unread, is_hidden, object_id, object_type, icon_url)
);
CREATE TABLE IF NOT EXISTS `object_url` (
url TEXT,
id INTEGER,
type TEXT,
site TEXT,
UNIQUE (url, id, type, site)
);
CREATE TABLE IF NOT EXISTS `page` (
page_id INTEGER,
name TEXT,
username TEXT,
description TEXT,
categories ,
is_community_page INTEGER,
pic_small TEXT,
pic_big TEXT,
pic_square TEXT,
pic TEXT,
pic_large TEXT,
page_url TEXT,
fan_count INTEGER,
type TEXT,
website TEXT,
has_added_app INTEGER,
general_info TEXT,
can_post INTEGER,
checkins INTEGER,
founded TEXT,
company_overview TEXT,
mission TEXT,
products TEXT,
location ,
parking ,
hours ,
pharma_safety_info TEXT,
public_transit TEXT,
attire TEXT,
payment_options ,
culinary_team TEXT,
general_manager TEXT,
price_range TEXT,
restaurant_services ,
restaurant_specialties ,
phone TEXT,
release_date TEXT,
genre TEXT,
starring TEXT,
screenplay_by TEXT,
directed_by TEXT,
produced_by TEXT,
studio TEXT,
awards TEXT,
plot_outline TEXT,
season TEXT,
network TEXT,
schedule TEXT,
written_by TEXT,
band_members TEXT,
hometown TEXT,
current_location TEXT,
record_label TEXT,
booking_agent TEXT,
press_contact TEXT,
artists_we_like TEXT,
influences TEXT,
band_interests TEXT,
bio TEXT,
affiliation TEXT,
birthday TEXT,
personal_info TEXT,
personal_interests TEXT,
built TEXT,
features TEXT,
mpg TEXT,
UNIQUE (page_id, name, username, description, categories, is_community_page, pic_small, pic_big, pic_square, pic, pic_large, page_url, fan_count, type, website, has_added_app, general_info, can_post, checkins, founded, company_overview, mission, products, location, parking, hours, pharma_safety_info, public_transit, attire, payment_options, culinary_team, general_manager, price_range, restaurant_services, restaurant_specialties, phone, release_date, genre, starring, screenplay_by, directed_by, produced_by, studio, awards, plot_outline, season, network, schedule, written_by, band_members, hometown, current_location, record_label, booking_agent, press_contact, artists_we_like, influences, band_interests, bio, affiliation, birthday, personal_info, personal_interests, built, features, mpg)
);
CREATE TABLE IF NOT EXISTS `page_admin` (
uid TEXT,
page_id TEXT,
type TEXT,
UNIQUE (uid, page_id, type)
);
CREATE TABLE IF NOT EXISTS `page_blocked_user` (
page_id TEXT,
uid TEXT,
UNIQUE (page_id, uid)
);
CREATE TABLE IF NOT EXISTS `page_fan` (
uid INTEGER,
page_id INTEGER,
type TEXT,
profile_section TEXT,
created_time INTEGER,
UNIQUE (uid, page_id, type, profile_section, created_time)
);
CREATE TABLE IF NOT EXISTS `permissions_info` (
permission_name TEXT,
header TEXT,
summary TEXT,
UNIQUE (permission_name, header, summary)
);
CREATE TABLE IF NOT EXISTS `photo` (
pid TEXT,
aid TEXT,
owner TEXT,
src_small TEXT,
src_small_width INTEGER,
src_small_height INTEGER,
src_big TEXT,
src_big_width INTEGER,
src_big_height INTEGER,
src TEXT,
src_width INTEGER,
src_height INTEGER,
link TEXT,
caption TEXT,
created INTEGER,
modified INTEGER,
position INTEGER,
object_id INTEGER,
album_object_id INTEGER,
images ,
UNIQUE (pid, aid, owner, src_small, src_small_width, src_small_height, src_big, src_big_width, src_big_height, src, src_width, src_height, link, caption, created, modified, position, object_id, album_object_id, images)
);
CREATE TABLE IF NOT EXISTS `photo_tag` (
pid TEXT,
subject TEXT,
object_id INTEGER,
text TEXT,
xcoord REAL,
ycoord REAL,
created INTEGER,
UNIQUE (pid, subject, object_id, text, xcoord, ycoord, created)
);
CREATE TABLE IF NOT EXISTS `place` (
page_id INTEGER,
name TEXT,
description TEXT,
geometry ,
latitude INTEGER,
longitude INTEGER,
checkin_count INTEGER,
display_subtext TEXT,
UNIQUE (page_id, name, description, geometry, latitude, longitude, checkin_count, display_subtext)
);
CREATE TABLE IF NOT EXISTS `privacy` (
id INTEGER,
object_id INTEGER,
value TEXT,
description TEXT,
allow TEXT,
deny TEXT,
owner_id INTEGER,
networks INTEGER,
friends TEXT,
UNIQUE (id, object_id, value, description, allow, deny, owner_id, networks, friends)
);
CREATE TABLE IF NOT EXISTS `privacy_setting` (
name TEXT,
value TEXT,
description TEXT,
allow TEXT,
deny TEXT,
networks INTEGER,
friends TEXT,
UNIQUE (name, value, description, allow, deny, networks, friends)
);
CREATE TABLE IF NOT EXISTS `profile` (
id INTEGER,
can_post INTEGER,
name TEXT,
url TEXT,
pic TEXT,
pic_square TEXT,
pic_small TEXT,
pic_big TEXT,
pic_crop ,
type TEXT,
username TEXT,
UNIQUE (id, can_post, name, url, pic, pic_square, pic_small, pic_big, pic_crop, type, username)
);
CREATE TABLE IF NOT EXISTS `question` (
id INTEGER,
owner INTEGER,
question TEXT,
created_time INTEGER,
updated_time INTEGER,
UNIQUE (id, owner, question, created_time, updated_time)
);
CREATE TABLE IF NOT EXISTS `question_option` (
id INTEGER,
question_id TEXT,
name TEXT,
votes INTEGER,
object_id INTEGER,
owner INTEGER,
created_time INTEGER,
UNIQUE (id, question_id, name, votes, object_id, owner, created_time)
);
CREATE TABLE IF NOT EXISTS `question_option_votes` (
option_id INTEGER,
voter_id INTEGER,
UNIQUE (option_id, voter_id)
);
CREATE TABLE IF NOT EXISTS `review` (
reviewee_id INTEGER,
reviewer_id INTEGER,
review_id INTEGER,
message TEXT,
created_time INTEGER,
rating INTEGER,
UNIQUE (reviewee_id, reviewer_id, review_id, message, created_time, rating)
);
CREATE TABLE IF NOT EXISTS `standard_friend_info` (
uid1 INTEGER,
uid2 INTEGER,
UNIQUE (uid1, uid2)
);
CREATE TABLE IF NOT EXISTS `standard_user_info` (
uid TEXT,
name TEXT,
username TEXT,
third_party_id TEXT,
first_name TEXT,
last_name TEXT,
locale TEXT,
affiliations ,
profile_url TEXT,
timezone TEXT,
birthday TEXT,
sex TEXT,
proxied_email TEXT,
current_location TEXT,
allowed_restrictions TEXT,
UNIQUE (uid, name, username, third_party_id, first_name, last_name, locale, affiliations, profile_url, timezone, birthday, sex, proxied_email, current_location, allowed_restrictions)
);
CREATE TABLE IF NOT EXISTS `status` (
uid INTEGER,
status_id INTEGER,
time INTEGER,
source INTEGER,
message TEXT,
UNIQUE (uid, status_id, time, source, message)
);
CREATE TABLE IF NOT EXISTS `stream` (
post_id TEXT,
viewer_id INTEGER,
app_id INTEGER,
source_id INTEGER,
updated_time INTEGER,
created_time INTEGER,
filter_key TEXT,
attribution TEXT,
actor_id INTEGER,
target_id INTEGER,
message TEXT,
app_data ,
action_links ,
attachment ,
impressions INTEGER,
comments ,
likes ,
privacy ,
permalink TEXT,
xid INTEGER,
tagged_ids ,
message_tags ,
description TEXT,
description_tags ,
UNIQUE (post_id, viewer_id, app_id, source_id, updated_time, created_time, filter_key, attribution, actor_id, target_id, message, app_data, action_links, attachment, impressions, comments, likes, privacy, permalink, xid, tagged_ids, message_tags, description, description_tags)
);
CREATE TABLE IF NOT EXISTS `stream_filter` (
uid INTEGER,
filter_key TEXT,
name TEXT,
rank INTEGER,
icon_url TEXT,
is_visible INTEGER,
type TEXT,
value INTEGER,
UNIQUE (uid, filter_key, name, rank, icon_url, is_visible, type, value)
);
CREATE TABLE IF NOT EXISTS `stream_tag` (
post_id TEXT,
actor_id TEXT,
target_id TEXT,
UNIQUE (post_id, actor_id, target_id)
);
CREATE TABLE IF NOT EXISTS `thread` (
thread_id TEXT,
folder_id TEXT,
subject TEXT,
recipients ,
updated_time INTEGER,
parent_message_id TEXT,
parent_thread_id INTEGER,
message_count INTEGER,
snippet TEXT,
snippet_author INTEGER,
object_id INTEGER,
unread INTEGER,
viewer_id TEXT,
UNIQUE (thread_id, folder_id, subject, recipients, updated_time, parent_message_id, parent_thread_id, message_count, snippet, snippet_author, object_id, unread, viewer_id)
);
CREATE TABLE IF NOT EXISTS `translation` (
locale TEXT,
native_hash TEXT,
native_string TEXT,
description TEXT,
translation TEXT,
approval_status TEXT,
pre_hash_string TEXT,
best_string TEXT,
UNIQUE (locale, native_hash, native_string, description, translation, approval_status, pre_hash_string, best_string)
);
CREATE TABLE IF NOT EXISTS `unified_message` (
message_id TEXT,
thread_id TEXT,
subject TEXT,
body TEXT,
unread INTEGER,
action_id TEXT,
timestamp TEXT,
tags ,
sender ,
recipients ,
object_sender ,
html_body TEXT,
attachments ,
attachment_map ,
shares ,
share_map ,
UNIQUE (message_id, thread_id, subject, body, unread, action_id, timestamp, tags, sender, recipients, object_sender, html_body, attachments, attachment_map, shares, share_map)
);
CREATE TABLE IF NOT EXISTS `unified_thread` (
action_id TEXT,
archived INTEGER,
can_reply INTEGER,
folder TEXT,
former_participants ,
has_attachments INTEGER,
is_subscribed INTEGER,
last_visible_add_action_id TEXT,
name TEXT,
num_messages INTEGER,
num_unread INTEGER,
object_participants ,
participants ,
senders ,
single_recipient TEXT,
snippet TEXT,
snippet_sender ,
snippet_message_has_attachment INTEGER,
subject TEXT,
tags ,
thread_id TEXT,
thread_participants ,
timestamp TEXT,
unread INTEGER,
UNIQUE (action_id, archived, can_reply, folder, former_participants, has_attachments, is_subscribed, last_visible_add_action_id, name, num_messages, num_unread, object_participants, participants, senders, single_recipient, snippet, snippet_sender, snippet_message_has_attachment, subject, tags, thread_id, thread_participants, timestamp, unread)
);
CREATE TABLE IF NOT EXISTS `unified_thread_action` (
action_id TEXT,
actor ,
thread_id TEXT,
timestamp TEXT,
type INTEGER,
users ,
UNIQUE (action_id, actor, thread_id, timestamp, type, users)
);
CREATE TABLE IF NOT EXISTS `unified_thread_count` (
folder TEXT,
unread_count INTEGER,
unseen_count INTEGER,
last_action_id INTEGER,
last_seen_time INTEGER,
total_threads INTEGER,
UNIQUE (folder, unread_count, unseen_count, last_action_id, last_seen_time, total_threads)
);
CREATE TABLE IF NOT EXISTS `url_like` (
user_id TEXT,
url TEXT,
UNIQUE (user_id, url)
);
CREATE TABLE IF NOT EXISTS `user` (
uid INTEGER,
username TEXT,
first_name TEXT,
middle_name TEXT,
last_name TEXT,
name TEXT,
pic_small TEXT,
pic_big TEXT,
pic_square TEXT,
pic TEXT,
affiliations ,
profile_update_time INTEGER,
timezone INTEGER,
religion TEXT,
birthday TEXT,
birthday_date TEXT,
sex TEXT,
hometown_location ,
meeting_sex ,
meeting_for ,
relationship_status TEXT,
significant_other_id INTEGER,
political TEXT,
current_location ,
activities TEXT,
interests TEXT,
is_app_user INTEGER,
music TEXT,
tv TEXT,
movies TEXT,
books TEXT,
quotes TEXT,
about_me TEXT,
hs_info ,
education_history ,
work_history ,
notes_count INTEGER,
wall_count INTEGER,
status TEXT,
has_added_app INTEGER,
online_presence TEXT,
locale TEXT,
proxied_email TEXT,
profile_url TEXT,
email_hashes ,
pic_small_with_logo TEXT,
pic_big_with_logo TEXT,
pic_square_with_logo TEXT,
pic_with_logo TEXT,
allowed_restrictions TEXT,
verified INTEGER,
profile_blurb TEXT,
family ,
website TEXT,
is_blocked INTEGER,
contact_email TEXT,
email TEXT,
third_party_id TEXT,
name_format TEXT,
video_upload_limits ,
games TEXT,
is_minor INTEGER,
work ,
education ,
sports ,
favorite_athletes ,
favorite_teams ,
inspirational_people ,
languages ,
likes_count INTEGER,
friend_count INTEGER,
mutual_friend_count INTEGER,
can_post INTEGER,
UNIQUE (uid, username, first_name, middle_name, last_name, name, pic_small, pic_big, pic_square, pic, affiliations, profile_update_time, timezone, religion, birthday, birthday_date, sex, hometown_location, meeting_sex, meeting_for, relationship_status, significant_other_id, political, current_location, activities, interests, is_app_user, music, tv, movies, books, quotes, about_me, hs_info, education_history, work_history, notes_count, wall_count, status, has_added_app, online_presence, locale, proxied_email, profile_url, email_hashes, pic_small_with_logo, pic_big_with_logo, pic_square_with_logo, pic_with_logo, allowed_restrictions, verified, profile_blurb, family, website, is_blocked, contact_email, email, third_party_id, name_format, video_upload_limits, games, is_minor, work, education, sports, favorite_athletes, favorite_teams, inspirational_people, languages, likes_count, friend_count, mutual_friend_count, can_post)
);
CREATE TABLE IF NOT EXISTS `video` (
vid INTEGER,
owner INTEGER,
album_id INTEGER,
title TEXT,
description TEXT,
link TEXT,
thumbnail_link TEXT,
embed_html TEXT,
updated_time INTEGER,
created_time INTEGER,
length REAL,
src TEXT,
src_hq TEXT,
UNIQUE (vid, owner, album_id, title, description, link, thumbnail_link, embed_html, updated_time, created_time, length, src, src_hq)
);
CREATE TABLE IF NOT EXISTS `video_tag` (
vid TEXT,
subject INTEGER,
updated_time INTEGER,
created_time INTEGER,
UNIQUE (vid, subject, updated_time, created_time)
);