Packages

Package containing all AMI Models shared between micro-services.

Retired package: Deprecated - faulty

Current section

Files

Jump to
ami_models 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
field(:created_at, :utc_datetime)
field(:updated_at, :utc_datetime)
belongs_to(:community, Community)
belongs_to(:event, Event)
end
end