@getanthill/datastore
Version:
Event-Sourced Datastore
57 lines (56 loc) • 1.3 kB
JSON
{
"db": "datastore",
"name": "users",
"correlation_field": "user_id",
"schema": {
"model": {
"additionalProperties": true,
"properties": {
"firstname": {
"type": "string",
"description": "Firstname of the user",
"example": "John"
},
"lastname": {
"type": "string",
"description": "Lastname of the user",
"example": "Doe"
}
}
},
"events": {
"CREATED": {
"0_0_0": {
"properties": {
"firstname": {
"type": "string",
"description": "Firstname of the user",
"example": "John"
},
"lastname": {
"type": "string",
"description": "Lastname of the user",
"example": "Doe"
}
}
}
},
"UPDATED": {
"0_0_0": {
"properties": {
"firstname": {
"type": "string",
"description": "Firstname of the user",
"example": "John"
},
"lastname": {
"type": "string",
"description": "Lastname of the user",
"example": "Doe"
}
}
}
}
}
}
}