api specs
This commit is contained in:
14
phoenix/lib/shooting_event_phx/domain/player.ex
Normal file
14
phoenix/lib/shooting_event_phx/domain/player.ex
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule ShootingEventPhx.Domain.Player do
|
||||
use Ecto.Schema
|
||||
|
||||
@primary_key {:id, :id, autogenerate: true}
|
||||
@timestamps_opts [inserted_at: :created_at, updated_at: :updated_at, type: :utc_datetime]
|
||||
schema "players" do
|
||||
field :name_ar, :string
|
||||
field :name_en, :string
|
||||
field :group_code, :string, default: ""
|
||||
field :image_data, :string, default: ""
|
||||
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user