aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db/bots.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-server/src/db/bots.rs')
-rw-r--r--planetwars-server/src/db/bots.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/db/bots.rs b/planetwars-server/src/db/bots.rs
index 970dcf9..f7d8373 100644
--- a/planetwars-server/src/db/bots.rs
+++ b/planetwars-server/src/db/bots.rs
@@ -7,14 +7,14 @@ use chrono;
#[derive(Insertable)]
#[table_name = "bots"]
pub struct NewBot<'a> {
- pub owner_id: i32,
+ pub owner_id: Option<i32>,
pub name: &'a str,
}
#[derive(Queryable, Debug, PartialEq, Serialize, Deserialize)]
pub struct Bot {
pub id: i32,
- pub owner_id: i32,
+ pub owner_id: Option<i32>,
pub name: String,
}