{
"authoritative_shard_group": "meta",
"shard_indexes": {
"xxhash_user_id": {
"type": "xxhash",
"columns": ["user_id"]
},
"xxhash_account_id": {
"type": "xxhash",
"columns": ["account_id"]
}
},
"shard_groups": [
{
"uid": "meta",
"key_ranges": [{ "shard_uid": "shard-meta" }]
},
{
"uid": "user_data",
"default_shard_index": "xxhash_user_id",
"key_ranges": [
{ "shard_uid": "shard-a", "end": "80" },
{ "shard_uid": "shard-b", "start": "80" }
]
}
],
"databases": {
"app": {
"global_secondary_indexes": {
"by_email": {
"schema": "public",
"table": "accounts_by_email",
"owner_table": "accounts",
"columns": ["email"],
"unique": true,
"enabled": true
},
"by_phone": {
"schema": "public",
"table": "accounts_by_phone",
"owner_table": "accounts",
"columns": ["phone"],
"unique": true,
"enabled": true
}
},
"schemas": {
"public": {
"tables": {
"users": {
"shard_group": "user_data"
},
"orders": {
"shard_group": "user_data"
},
"products": {
"shard_group": "user_data"
},
"user_tags": {
"shard_group": "user_data"
},
"accounts": {
"shard_group": "user_data",
"secondary_indexes": [
{
"name": "by_email",
"columns": ["email"]
},
{
"name": "by_phone",
"columns": ["phone"]
}
],
"primary_indexes": [
{
"shard_index": "xxhash_account_id"
}
]
},
"accounts_by_email": {
"shard_group": "meta"
},
"accounts_by_phone": {
"shard_group": "meta"
},
"notes": {
"shard_group": "meta"
}
},
"reference_tables": {
"ref_countries": {
"shard_groups": ["user_data"]
}
}
}
}
}
}
}