summaryrefslogtreecommitdiff
path: root/lib/chessh/schema
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2023-02-01 22:55:06 -0700
committerGitHub <noreply@github.com>2023-02-01 22:55:06 -0700
commit47d3f28f16bdd1eb7ad99b91f7963fd2c4b8f9bf (patch)
tree2682c4ee63fcf67db688bf61077419f521932012 /lib/chessh/schema
parenta26256700d93392dfc92bfc6dc6842dac842cc15 (diff)
downloadchessh-47d3f28f16bdd1eb7ad99b91f7963fd2c4b8f9bf.tar.gz
chessh-47d3f28f16bdd1eb7ad99b91f7963fd2c4b8f9bf.zip
Discord threads (#16)
* Add initial support for discord threads * Finish thread creation
Diffstat (limited to 'lib/chessh/schema')
-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