forked from rafaelleru/torrent_player_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
89 lines (88 loc) · 2.59 KB
/
schema.json
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
{
"db_name": "AlexandriaShelf",
"db_file": "data/shelf.db",
"version": 1,
"maps": {
"users/.+/data.json": {
"to_table": [
"comment",
{"node": "comment_vote", "table": "comment_vote", "key_col": "comment_uri", "val_col": "vote"},
{"node": "post_vote", "table": "post_vote", "key_col": "post_id", "val_col": "vote"}
]
},
"users/.+/content.json": {
"to_keyvalue": [ "cert_user_id" ]
},
"data.json": {
"to_table": [ "post" ],
"to_keyvalue": [ "title", "description", "links", "next_post_id", "demo", "modified" ]
}
},
"tables": {
"albums": {
"cols": [
["album_id", "INTEGER"],
["name", "TEXT"],
["year", "INTEGER"],
["song_list", "TEXT"],
["format", "INTEGER"],
["quality", "INTEGER"],
["magnet_hash", "TEXT"],
["cover_url", "TEXT"],
["timestamp", "INTEGER"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX comment_key ON comment(json_id, comment_id)", "CREATE INDEX comment_post_id ON comment(post_id)"],
"schema_changed": 1426195823
},
"caps": {
"cols": [
["cap_id", "INTEGER"],
["name", "TEXT"],
["episode", "INTEGER"],
["season", "INTEGER"],
["format", "INTEGER"],
["quality", "INTEGER"],
["magnet_hash", "TEXT"],
["subs_url_list", "TEXT"],
["audio_languaje", "TEXT"],
["timestamp", "INTEGER"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE INDEX comment_vote_comment_uri ON comment_vote(comment_uri)", "CREATE INDEX comment_vote_json_id ON comment_vote(json_id)"],
"schema_changed": 1426195822
},
"movies": {
"cols": [
["movie_id", "INTEGER"],
["name", "TEXT"],
["year", "INTEGER"],
["format", "INTEGER"],
["quality", "INTEGER"],
["magnet_hash", "TEXT"],
["subs_url_list", "TEXT"],
["audio_languaje", "TEXT"],
["cover_url", "TEXT"],
["timestamp", "INTEGER"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX post_uri ON post(json_id, post_id)", "CREATE INDEX post_id ON post(post_id)", "CREATE INDEX post_source ON post(source)"],
"schema_changed": 1426195824
},
"libros": {
"cols": [
["book_id", "INTEGER"],
["name", "TEXT"],
["year", "INTEGER"],
["format", "INTEGER"],
["magnet_hash", "TEXT"],
["languaje", "TEXT"],
["timestamp", "INTEGER"],
["cover_url", "TEXT"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE INDEX post_vote_post_id ON post_vote(post_id)", "CREATE INDEX post_vote_json_id ON post_vote(post_id)"],
"schema_changed": 1426195826
}
}
}