View Source OnePiece.Commanded.Event (OnePiece.Commanded v0.15.1)
Defines "Event" modules.
Link to this section Summary
Functions
Converts the module into an Ecto.Schema
.
Link to this section Types
@type t() :: struct()
Link to this section Functions
Converts the module into an Ecto.Schema
.
It derives from Jason.Encoder
.
usage
Usage
defmodule MyEvent do
use OnePiece.Commanded.Event, aggregate_identifier: :id
embedded_schema do
# ...
end
end