aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db_types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-server/src/db_types.rs')
-rw-r--r--planetwars-server/src/db_types.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/planetwars-server/src/db_types.rs b/planetwars-server/src/db_types.rs
new file mode 100644
index 0000000..d1225d7
--- /dev/null
+++ b/planetwars-server/src/db_types.rs
@@ -0,0 +1,9 @@
+use diesel_derive_enum::DbEnum;
+
+#[derive(DbEnum, Debug, Clone, Copy, PartialEq, Eq, Hash)]
+#[DieselType = "Match_state"]
+
+pub enum MatchState {
+ Playing,
+ Finished,
+}