chessh/priv/repo/migrations/20221229225559_add_user_session.exs

12 lines
277 B
Elixir
Raw Normal View History

2022-12-29 19:21:20 -05:00
defmodule Chessh.Repo.Migrations.AddUserSession do
use Ecto.Migration
def change do
create table(:player_sessions) do
add(:login, :utc_datetime)
add(:player_id, references(:players))
add(:node_id, references(:nodes, type: :string))
end
end
end