table_create Purchases TABLE_HASH_KEY ShortText
column_create Purchases item COLUMN_SCALAR ShortText
column_create Purchases price COLUMN_SCALAR UInt32

table_create Settlements TABLE_HASH_KEY ShortText
column_create Settlements purchases COLUMN_VECTOR Purchases

column_create Purchases settlements_purchases COLUMN_INDEX Settlements purchases

load --table Purchases
[
{"_key": "super market-1",
 "item": "apple",
 "price": 100},
{"_key": "super market-2",
 "item": "milk",
 "price": 200},
{"_key": "shoes shop-1",
 "item": "sneakers",
 "price": 3000}
]

load --table Settlements
[
{
  "_key": "super market",
  "purchases": "[\"super market-1\", \"super market-2\", \"super market-3\"]"
},
{
  "_key": "shoes shop",
  "purchases": "[\"shoes shop-1\"]"
}
]

dump \
  --dump_plugins no \
  --dump_schema no
