Skip to content

Instantly share code, notes, and snippets.

@JensRantil
Last active December 22, 2015 04:28
Show Gist options
  • Save JensRantil/6416970 to your computer and use it in GitHub Desktop.
Save JensRantil/6416970 to your computer and use it in GitHub Desktop.
Three example events for CouchDB.
[{
"_id": "FD12E675-52BF-499C-B651-25D6B92BA8BE:1",
"globalId": "7C768D9E-DA0E-4413-98D0-5C730BAEB461",
"aggregateType": "contact",
"event": {
"type": "createContact",
"firstname": "Jens",
"lastname": "Rantil",
"telephone": "+46401234567",
},
"meta": {
"timestamp": "2013-08-29 14:04:23",
"creator": "JensRantil"
},
},
{
"_id": "FD12E675-52BF-499C-B651-25D6B92BA8BE:2",
"globalId": "F2ADF32D-BF0E-421C-B3EE-18E1F532FDC9",
"aggregateType": "contact",
"event": {
"type": "changeFirstname",
"firstname": "Jens",
},
"meta": {
"timestamp": "2013-08-29 14:39:43",
"creator": "JensRantil"
},
},
{
"_id": "FD12E675-52BF-499C-B651-25D6B92BA8BE:3",
"globalId": "1953153E-CC7B-4508-A7C1-7ADC6994249A",
"aggregateType": "contact",
"event": {
"type": "archive",
"reason": "No longer a customer.",
},
"meta": {
"timestamp": "2013-09-17 13:33:12",
"creator": "JensRantil"
},
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment