aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/schema.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-03-10 23:35:42 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-03-10 23:35:42 +0100
commit523de3ba0692734237b5ed6fa6dce8fbad9d69c8 (patch)
tree1886c3bfcaba756f3bcc1ca5f4fec7a8b98dbc87 /planetwars-server/src/schema.rs
parent95b733ba4d7e3041adf4fb42c66e2b83ccce1df9 (diff)
downloadplanetwars.dev-523de3ba0692734237b5ed6fa6dce8fbad9d69c8.tar.xz
planetwars.dev-523de3ba0692734237b5ed6fa6dce8fbad9d69c8.zip
save match players in database
Diffstat (limited to 'planetwars-server/src/schema.rs')
-rw-r--r--planetwars-server/src/schema.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/schema.rs b/planetwars-server/src/schema.rs
index 0ebddf3..ae2e60c 100644
--- a/planetwars-server/src/schema.rs
+++ b/planetwars-server/src/schema.rs
@@ -30,8 +30,8 @@ table! {
match_players (match_id, player_id) {
match_id -> Int4,
- bot_id -> Int4,
player_id -> Int4,
+ code_bundle_id -> Int4,
}
}
@@ -72,7 +72,7 @@ table! {
joinable!(bots -> users (owner_id));
joinable!(code_bundles -> bots (bot_id));
-joinable!(match_players -> bots (bot_id));
+joinable!(match_players -> code_bundles (code_bundle_id));
joinable!(match_players -> matches (match_id));
joinable!(sessions -> users (user_id));