blob: 1395fec8f16b8d050f84000769e6906fb2479f74 [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001{
2 "create": {
3 "item": "CREATE TABLE IF NOT EXISTS item (item_id text primary key, item_info text, creation_time timestamp, modification_time timestamp)",
4 "version": "CREATE TABLE IF NOT EXISTS version (space text, item_id text, version_id text,base_version_id text,info text,relations text,creation_time timestamp,modification_time timestamp,PRIMARY KEY (( space, item_id ), version_id))",
5 "version_elements": "CREATE TABLE IF NOT EXISTS version_elements (space text,item_id text,version_id text,element_ids set<text>,PRIMARY KEY (( space, item_id, version_id )))",
6 "element_namespace": "CREATE TABLE IF NOT EXISTS element_namespace (space text, item_id text, element_id text, namespace text, PRIMARY KEY ((space, item_id, element_id)))",
7 "element": "CREATE TABLE IF NOT EXISTS element (space text,item_id text,version_id text,element_id text,parent_id text,namespace text,info text,relations text,data blob,searchable_data blob,visualization blob,sub_element_ids set<text>,PRIMARY KEY (( space, item_id, version_id, element_id )))"
8 },
9 "drop": {
10 "item": "DROP TABLE IF EXISTS item",
11 "version": "DROP TABLE IF EXISTS version",
12 "version_elements": "DROP TABLE IF EXISTS version_elements",
13 "element_namespace": "DROP TABLE IF EXISTS element_namespace",
14 "element": "DROP TABLE IF EXISTS element"
15 },
16 "alter": {
17 },
18 "actions": {
19 }
20}