forked from kustomzone/nullchan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbschema.json
44 lines (44 loc) · 1.27 KB
/
dbschema.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
{
"db_name": "0chan",
"db_file": "data/0chan.db",
"version": 2,
"maps": {
"users/.+/data.json": {
"to_table": [ "message" ]
},
"users/.+/content.json": {
"to_keyvalue": [ "cert_user_id" ]
}
},
"tables": {
"message": {
"cols": [
["board", "STRING"],
["hashsum", "STRING"],
["title", "STRING"],
["body", "TEXT"],
["anonymous", "BOOLEAN"],
["created_at", "INTEGER"],
["parent", "STRING"],
["file_thumb", "STRING"],
["file_full", "STRING"],
["json_id", "INTEGER REFERENCES json (json_id)"],
["attachment", "STRING"],
["attachment_size", "INTEGER"],
["attachment_full_height", "INTEGER"],
["attachment_full_width", "INTEGER"],
["attachment_full_path", "STRING"],
["attachment_thumb_height", "INTEGER"],
["attachment_thumb_width", "INTEGER"],
["attachment_thumb_path", "STRING"]
],
"indexes": [
"CREATE UNIQUE INDEX message_key ON message(json_id, created_at)",
"CREATE UNIQUE INDEX message_hashsum ON message(hashsum)",
"CREATE INDEX message_parent ON message(parent)",
"CREATE INDEX message_board ON message(board)"
],
"schema_changed": 1455659111
}
}
}