Add match url

This commit is contained in:
2024-05-03 00:44:55 +02:00
parent dafadcbddd
commit 080b18c6be
3 changed files with 16 additions and 3 deletions
@@ -5,13 +5,14 @@ defmodule LolAnalytics.Match.MatchSchema do
schema "match" do
field :match_id, :string
field :processed, :boolean, default: false
field :match_url, :string
timestamps()
end
def changeset(%__MODULE__{} = match, params \\ %{}) do
match
|> cast(params, [:match_id, :processed])
|> cast(params, [:match_id, :processed, :match_url])
|> validate_required([:match_id, :processed])
end