-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbschema.json
41 lines (41 loc) · 1.15 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
{
"db_name": "Test",
"db_file": "data/test.db",
"version": 2,
"maps": {
"users/.+/data.json": {
"to_table": ["message"]
},
"users/.+/content.json": {
"to_json_table": ["cert_user_id"],
"file_name": "data.json"
}
},
"tables": {
"message": {
"cols": [
["id", "INTEGER"],
["msg", "TEXT"],
["created", "DATETIME"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": [
"CREATE UNIQUE INDEX message_key ON message(id, json_id)",
"CREATE INDEX message_created ON message(created)"
],
"schema_changed": 12
},
"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": 3
}
}
}