blob: 5ddb1d7024519e7273d6b5f5d6411899b2e5e912 [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)",
talig8e9c0652017-12-20 14:30:43 +02004 "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,revision_id text,element_ids Map<text,text>, dirty_element_ids set<text>,stage_element_ids set<text>, conflict_element_ids set<text>, publish_time timestamp,user text,message text, PRIMARY KEY (( space, item_id, version_id ),revision_id))",
6 "element_namespace": "CREATE TABLE IF NOT EXISTS element_namespace (item_id text, element_id text, namespace text, PRIMARY KEY ((item_id, element_id)))",
7 "element": "CREATE TABLE IF NOT EXISTS element (space text,item_id text,version_id text,element_id text,revision_id text,parent_id text,namespace text,info text,relations text,data blob,searchable_data blob,visualization blob,sub_element_ids set<text> ,element_hash text,PRIMARY KEY (( space, item_id, version_id, element_id ),revision_id))",
8 "element_synchronization_state": "CREATE TABLE IF NOT EXISTS element_synchronization_state (space text, item_id text, version_id text, element_id text,revision_id text, publish_time timestamp, dirty boolean, PRIMARY KEY (( space, item_id, version_id ), element_id,revision_id))",
9 "element_stage": "CREATE TABLE IF NOT EXISTS element_stage (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>,element_hash text, publish_time timestamp, action text, conflicted boolean,conflict_dependent_ids set<text>, PRIMARY KEY (( space, item_id, version_id, element_id )))",
10 "version_stage": "CREATE TABLE IF NOT EXISTS version_stage (space text, item_id text, version_id text, base_version_id text, creation_time timestamp,modification_time timestamp, publish_time timestamp, action text, PRIMARY KEY (( space, item_id ), version_id))"
AviZi280f8012017-06-09 02:39:56 +030011 },
12 "drop": {
13 "item": "DROP TABLE IF EXISTS item",
14 "version": "DROP TABLE IF EXISTS version",
15 "version_elements": "DROP TABLE IF EXISTS version_elements",
16 "element_namespace": "DROP TABLE IF EXISTS element_namespace",
talig8e9c0652017-12-20 14:30:43 +020017 "element": "DROP TABLE IF EXISTS element",
18 "element_synchronization_state": "DROP TABLE IF EXISTS element_synchronization_state",
19 "element_stage": "DROP TABLE IF EXISTS element_stage",
20 "version_stage": "DROP TABLE IF EXISTS version_stage"
AviZi280f8012017-06-09 02:39:56 +030021 },
22 "alter": {
talig8e9c0652017-12-20 14:30:43 +020023
AviZi280f8012017-06-09 02:39:56 +030024 },
25 "actions": {
26 }
27}