diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-30 17:03:32 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-30 17:03:32 +0200 |
commit | ee5c67c092acc57a6ef2b8f7934ba827df43add6 (patch) | |
tree | 83d8ac11ed7335ac9d992b06bd26e2906aa2a671 /planetwars-server/src/db/matches.rs | |
parent | 1d280c62e23cf1f52398c4fe11474fdde4aaa74c (diff) | |
download | planetwars.dev-ee5c67c092acc57a6ef2b8f7934ba827df43add6.tar.xz planetwars.dev-ee5c67c092acc57a6ef2b8f7934ba827df43add6.zip |
add is_public to matches
Diffstat (limited to 'planetwars-server/src/db/matches.rs')
-rw-r--r-- | planetwars-server/src/db/matches.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/planetwars-server/src/db/matches.rs b/planetwars-server/src/db/matches.rs index 061e2ea..be2a8be 100644 --- a/planetwars-server/src/db/matches.rs +++ b/planetwars-server/src/db/matches.rs @@ -15,6 +15,7 @@ use super::bots::{Bot, BotVersion}; pub struct NewMatch<'a> { pub state: MatchState, pub log_path: &'a str, + pub is_public: bool, } #[derive(Insertable)] @@ -36,6 +37,7 @@ pub struct MatchBase { pub log_path: String, pub created_at: NaiveDateTime, pub winner: Option<i32>, + pub is_public: bool, } #[derive(Queryable, Identifiable, Associations, Clone)] |