forked from HelloZeroNet/ZeroMail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbschema.json
36 lines (36 loc) · 915 Bytes
/
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
{
"db_name": "ZeroMail",
"db_file": "data/users/zeromail.db",
"version": 2,
"maps": {
".+/data.json": {
"to_table": [
{"node": "message", "table": "message", "key_col": "date_added", "val_col": "encrypted"},
{"node": "secret", "table": "secret", "key_col": "date_added", "val_col": "encrypted"}
]
},
".+/content.json": {
"to_keyvalue": [ "cert_user_id" ]
}
},
"tables": {
"message": {
"cols": [
["date_added", "INTEGER"],
["encrypted", "TEXT"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX message_key ON message(json_id, date_added)"],
"schema_changed": 3
},
"secret": {
"cols": [
["date_added", "INTEGER"],
["encrypted", "TEXT"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX secret_key ON secret(json_id, date_added)"],
"schema_changed": 3
}
}
}