Current section

Files

Jump to
ami lib ami community_event.ex
Raw

lib/ami/community_event.ex

defmodule Ami.CommunityEvent do
use Ecto.Schema
alias Ami.{
Community,
Event
}
schema "community_events" do
@timestamps_opts [type: :naive_datetime_usec]
field(:created_at, :utc_datetime_usec)
field(:updated_at, :utc_datetime_usec)
belongs_to(:community, Community)
belongs_to(:event, Event)
end
end