Example #1
0
class BankAccountCreated(events.Event):
    __empty_stream__ = True

    id = events.CUIDField(primary_key=True)
    owner = events.CharField()
Example #2
0
class MyObjectCreated(events.Event):
    id = events.CUIDField(primary_key=True)
    owner = events.CharField()
Example #3
0
class OwnerChanged(events.Event):
    __dependencies__ = ["BankAccountCreated"]

    new_owner = events.CharField()