diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-10 23:35:42 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-10 23:35:42 +0100 |
commit | 523de3ba0692734237b5ed6fa6dce8fbad9d69c8 (patch) | |
tree | 1886c3bfcaba756f3bcc1ca5f4fec7a8b98dbc87 /planetwars-server/src/schema.rs | |
parent | 95b733ba4d7e3041adf4fb42c66e2b83ccce1df9 (diff) | |
download | planetwars.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.rs | 4 |
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)); |