chessh/priv/repo/migrations/20221229225559_add_user_session.exs
2022-12-29 17:21:20 -07:00

12 lines
277 B
Elixir

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