Skip to content

Instantly share code, notes, and snippets.

@parsnips
Created December 11, 2020 05:02
Show Gist options
  • Save parsnips/c4297765281f4c787d9c00dd8a610b57 to your computer and use it in GitHub Desktop.
Save parsnips/c4297765281f4c787d9c00dd8a610b57 to your computer and use it in GitHub Desktop.
{
"Table": {
"schema": {
"joins": {
"customerAccounts": {
"partition": [
"document.customerID"
],
"index": "customerAccounts.indexes.primary"
}
},
"indexes": {
"dynamic": {
"conditions": {
"hasContextID": "has(document.context) && has(document.context.id)"
},
"properties": {
"unique": "true"
},
"key": {
"partition": [
"uint(document.context.id)"
]
}
},
"primary": {
"properties": {
"unique": "true"
},
"key": {
"partition": [
"document.customerID"
]
}
}
},
"document": {
"forename": "string",
"address": {
"zip": "string",
"country": "string('USA')",
"city": "string",
"state": "string",
"line2": "string",
"line1": "string"
},
"phone": "string",
"surname": "string",
"customerID": "uint",
"context": "{}",
"email": "string",
"status": "string('ACTIVE')"
},
"conditions": {
"emailContainsAt": "document.email.contains('@')"
}
},
"name": "miketest2",
"version": "miketest__V0001"
},
"Tenant": "2f097c53-c8ea-4787-8d03-e34da43a6ac8"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment