-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdbschema.json
More file actions
41 lines (41 loc) · 978 Bytes
/
Copy pathdbschema.json
File metadata and controls
41 lines (41 loc) · 978 Bytes
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
{
"db_name": "ZeroUp",
"db_file": "data/users/zeroup.db",
"version": 2,
"maps": {
".+/content.json": {
"to_json_table": [ "cert_auth_type", "cert_user_id" ],
"file_name": "data.json"
},
".+/data.json": {
"to_table": [
{"node": "file", "table": "file", "key_col": "file_name"}
],
"to_keyvalue": ["next_comment_id", "next_topic_id"]
}
},
"tables": {
"json": {
"cols": [
["json_id", "INTEGER PRIMARY KEY AUTOINCREMENT"],
["directory", "TEXT"],
["file_name", "TEXT"],
["cert_auth_type", "TEXT"],
["cert_user_id", "TEXT"]
],
"indexes": ["CREATE UNIQUE INDEX path ON json(directory, file_name)"],
"schema_changed": 5
},
"file": {
"cols": [
["file_name", "TEXT"],
["title", "TEXT"],
["size", "INT"],
["date_added", "DATETIME"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX file_key ON file(date_added, json_id)"],
"schema_changed": 1
}
}
}