aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/schema.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-server/src/schema.rs')
-rw-r--r--planetwars-server/src/schema.rs28
1 files changed, 27 insertions, 1 deletions
diff --git a/planetwars-server/src/schema.rs b/planetwars-server/src/schema.rs
index 413c4d1..7f60d64 100644
--- a/planetwars-server/src/schema.rs
+++ b/planetwars-server/src/schema.rs
@@ -1,4 +1,7 @@
table! {
+ use diesel::sql_types::*;
+ use crate::db_types::*;
+
bots (id) {
id -> Int4,
owner_id -> Int4,
@@ -7,6 +10,9 @@ table! {
}
table! {
+ use diesel::sql_types::*;
+ use crate::db_types::*;
+
code_bundles (id) {
id -> Int4,
bot_id -> Int4,
@@ -16,6 +22,9 @@ table! {
}
table! {
+ use diesel::sql_types::*;
+ use crate::db_types::*;
+
match_players (match_id, player_id) {
match_id -> Int4,
bot_id -> Int4,
@@ -24,14 +33,21 @@ table! {
}
table! {
+ use diesel::sql_types::*;
+ use crate::db_types::*;
+
matches (id) {
id -> Int4,
+ state -> Match_state,
log_path -> Text,
created_at -> Timestamp,
}
}
table! {
+ use diesel::sql_types::*;
+ use crate::db_types::*;
+
sessions (id) {
id -> Int4,
user_id -> Int4,
@@ -40,6 +56,9 @@ table! {
}
table! {
+ use diesel::sql_types::*;
+ use crate::db_types::*;
+
users (id) {
id -> Int4,
username -> Varchar,
@@ -54,4 +73,11 @@ joinable!(match_players -> bots (bot_id));
joinable!(match_players -> matches (match_id));
joinable!(sessions -> users (user_id));
-allow_tables_to_appear_in_same_query!(bots, code_bundles, match_players, matches, sessions, users,);
+allow_tables_to_appear_in_same_query!(
+ bots,
+ code_bundles,
+ match_players,
+ matches,
+ sessions,
+ users,
+);