subway v0.1.0 Subway.EventBuilder

Defines an event.

An event is a new module, programmatically created inside the caller's namespace. This new event is built upon an Ecto model(making validation and persistence easier)

## Example:

defmodule UserEvents do
  use Subway

  defevent MessageSent do
    field(:user_id, :string)
    field(:content, :string, required: true)
  end
end

Link to this section Summary

Link to this section Functions

Link to this macro

defevent(event_mod, do_block)

(macro)