54 lines
No EOL
1.5 KiB
JSON
54 lines
No EOL
1.5 KiB
JSON
{
|
|
"db_name": "ZeroBlog",
|
|
"db_file": "data/zeroblog.db",
|
|
"version": 2,
|
|
"maps": {
|
|
"users/.+/data.json": {
|
|
"to_table": [
|
|
"comment",
|
|
{"node": "comment_vote", "table": "comment_vote", "key_col": "comment_uri", "val_col": "vote"}
|
|
]
|
|
},
|
|
"users/.+/content.json": {
|
|
"to_keyvalue": [ "cert_user_id" ]
|
|
},
|
|
"data.json": {
|
|
"to_table": [ "post" ],
|
|
"to_keyvalue": [ "title", "description", "links", "next_post_id", "demo", "modified" ]
|
|
}
|
|
|
|
},
|
|
"tables": {
|
|
"comment": {
|
|
"cols": [
|
|
["comment_id", "INTEGER"],
|
|
["post_id", "INTEGER"],
|
|
["body", "TEXT"],
|
|
["date_added", "INTEGER"],
|
|
["json_id", "INTEGER REFERENCES json (json_id)"]
|
|
],
|
|
"indexes": ["CREATE UNIQUE INDEX comment_key ON comment(json_id, comment_id)", "CREATE INDEX comment_post_id ON comment(post_id)"],
|
|
"schema_changed": 1426195823
|
|
},
|
|
"comment_vote": {
|
|
"cols": [
|
|
["comment_uri", "TEXT"],
|
|
["vote", "INTEGER"],
|
|
["json_id", "INTEGER REFERENCES json (json_id)"]
|
|
],
|
|
"indexes": ["CREATE INDEX comment_vote_comment_uri ON comment_vote(comment_uri)", "CREATE INDEX comment_vote_json_id ON comment_vote(json_id)"],
|
|
"schema_changed": 1426195822
|
|
},
|
|
"post": {
|
|
"cols": [
|
|
["post_id", "INTEGER"],
|
|
["title", "TEXT"],
|
|
["body", "TEXT"],
|
|
["date_published", "INTEGER"],
|
|
["json_id", "INTEGER REFERENCES json (json_id)"]
|
|
],
|
|
"indexes": ["CREATE UNIQUE INDEX post_uri ON post(json_id, post_id)", "CREATE INDEX post_id ON post(post_id)"],
|
|
"schema_changed": 1426195823
|
|
}
|
|
}
|
|
} |