From ee5c67c092acc57a6ef2b8f7934ba827df43add6 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 30 Jul 2022 17:03:32 +0200 Subject: add is_public to matches --- planetwars-server/src/db/matches.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'planetwars-server/src/db') 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, + pub is_public: bool, } #[derive(Queryable, Identifiable, Associations, Clone)] -- cgit v1.2.3