eventTypefield of the Event describes the meaning of the Event. The Event type describes in business language what has happened.
datafield in Serialized events provide the data that should be stored together with the Event.
encryptedDatafor storing data that should be client-side encrypted before stored.
A hotel room for Room 213 was reserved by John Doe at 2019-03-12 using reservation number ABC-123.
HotelRoomReservedEvent that we used in the previous example we can view the process of a HotelRoomReservation as our Aggregate. The reservation would contain multiple Events that refer to this specific reservation and business rules that only makes it possible for Events to occur in a certain order.
ReservationConfirmedEvent providing the version number loaded in step 1 to avoid any inconsistency or double-booking.