Refactoring of Events context
This commit is contained in:
19
lib/mobilizon/events/event_participation_condition.ex
Normal file
19
lib/mobilizon/events/event_participation_condition.ex
Normal file
@@ -0,0 +1,19 @@
|
||||
defmodule Mobilizon.Events.EventParticipationCondition do
|
||||
@moduledoc """
|
||||
Represents an event participation condition.
|
||||
"""
|
||||
|
||||
use Ecto.Schema
|
||||
|
||||
@type t :: %__MODULE__{
|
||||
title: String.t(),
|
||||
content: String.t(),
|
||||
url: String.t()
|
||||
}
|
||||
|
||||
embedded_schema do
|
||||
field(:title, :string)
|
||||
field(:content, :string)
|
||||
field(:url, :string)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user