From 523de3ba0692734237b5ed6fa6dce8fbad9d69c8 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 10 Mar 2022 23:35:42 +0100 Subject: save match players in database --- planetwars-server/src/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'planetwars-server/src/schema.rs') 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)); -- cgit v1.2.3