diff options
author | Simponic <loganhunt@simponic.xyz> | 2023-02-01 22:55:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 22:55:06 -0700 |
commit | 47d3f28f16bdd1eb7ad99b91f7963fd2c4b8f9bf (patch) | |
tree | 2682c4ee63fcf67db688bf61077419f521932012 /lib/chessh/schema | |
parent | a26256700d93392dfc92bfc6dc6842dac842cc15 (diff) | |
download | chessh-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.ex | 5 |
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 |