sequence

open val sequence: Int

The sequence number of this event within the aggregate's event stream.

Sequence numbers provide ordering guarantees and help detect missing or duplicate events. They start from 1 and increment for each event published by the aggregate. Defaults to DEFAULT_EVENT_SEQUENCE for single events.