aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db_types.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-01-03 23:33:00 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-01-03 23:36:19 +0100
commit5b10d5e98e806ce867d27c4cc7b7f5651656744f (patch)
tree1397bc803f1b87e8811be05334a7aeb45032811b /planetwars-server/src/db_types.rs
parent1cde40b45916d1f99a4cda7837b516cde761f127 (diff)
downloadplanetwars.dev-5b10d5e98e806ce867d27c4cc7b7f5651656744f.tar.xz
planetwars.dev-5b10d5e98e806ce867d27c4cc7b7f5651656744f.zip
add match_state to matches
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,
+}