summaryrefslogtreecommitdiff
path: root/lib/chessh/schema/game.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/schema/game.ex')
-rw-r--r--lib/chessh/schema/game.ex5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chessh/schema/game.ex b/lib/chessh/schema/game.ex
index b7893f1..55b9ea4 100644
--- a/lib/chessh/schema/game.ex
+++ b/lib/chessh/schema/game.ex
@@ -15,6 +15,8 @@ defmodule Chessh.Game do
belongs_to(:light_player, Player, foreign_key: :light_player_id)
belongs_to(:dark_player, Player, foreign_key: :dark_player_id)
+ field(:discord_thread_id, :string)
+
timestamps()
end
@@ -28,7 +30,8 @@ defmodule Chessh.Game do
:status,
:last_move,
:light_player_id,
- :dark_player_id
+ :dark_player_id,
+ :discord_thread_id
])
end
end