@getanthill/datastore
Version:
Event-Sourced Datastore
48 lines (47 loc) • 968 B
JSON
{
"is_enabled": true,
"db": "datastore",
"name": "users",
"correlation_field": "user_id",
"schema": {
"model": {
"additionalProperties": true,
"properties": {
"firstname": {
"type": "string"
}
}
},
"events": {
"CREATED": {
"0_0_0": {
"properties": {
"firstname": {
"type": "string"
}
}
}
},
"UPDATED": {
"0_0_0": {
"properties": {
"firstname": {
"type": "string"
}
}
}
}
}
},
"processings": [
{
"field": "firstname",
"name": "Say hello",
"purpose": "The objective of this processing is to access the firstname of the user to say hello politely.",
"persons": ["users"],
"recipients": ["anthill"],
"tokens": ["say_hello_processing"],
"duration_in_seconds": 31536000
}
]
}