forked from AnthyG/ThunderWave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbschema.json
59 lines (59 loc) · 1.75 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"db_name": "Da_Net",
"db_file": "data/da_net.db",
"version": 2,
"maps": {
"users/.+/data.json": {
"to_table": [{
"node": "messages",
"table": "messages"
},
{
"node": "images",
"table": "images"
}
],
"to_keyvalue": [
"last_seen"
]
},
"users/.+/content.json": {
"to_json_table": [
"cert_user_id"
],
"file_name": "data.json"
}
},
"tables": {
"json": {
"cols": [
["json_id", "INTEGER PRIMARY KEY AUTOINCREMENT"],
["directory", "TEXT"],
["file_name", "TEXT"],
["cert_user_id", "TEXT"]
],
"indexes": ["CREATE UNIQUE INDEX path ON json(directory, file_name)"],
"schema_changed": 6
},
"messages": {
"cols": [
["message_id", "INTEGER PRIMARY KEY"],
["body", "TEXT"],
["date_added", "INTEGER"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX message_key ON messages(json_id, date_added)"],
"schema_changed": 16
},
"images": {
"cols": [
["image_id", "INTEGER PRIMARY KEY"],
["file_name", "TEXT"],
["date_added", "INTEGER"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX image_key ON images(json_id, date_added)"],
"schema_changed": 6
}
}
}