aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db_types.rs
blob: 29b1e9b1d5900851cd2941fa296bd84474c5a06e (plain)
1
2
3
4
5
6
7
8
9
10
use diesel_derive_enum::DbEnum;
use serde::{Deserialize, Serialize};

#[derive(DbEnum, Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Hash)]
#[DieselTypePath = "crate::schema::sql_types::MatchState"]

pub enum MatchState {
    Playing,
    Finished,
}