Many-to-many between performers and performances.

This commit is contained in:
codevictory
2021-04-03 21:47:24 +03:00
parent 05eeb8cbf4
commit 07e475b111
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
defmodule Runosaari.Core.PerformerPerformance do
use Ecto.Schema
import Ecto.Changeset
schema "performer_performance" do
field :performer_id, :id
field :performance_id, :id
timestamps()
end
@doc false
def changeset(performer_performance, attrs) do
performer_performance
|> cast(attrs, [])
|> validate_required([])
end
end