mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Minor refactor for fake server players
This commit is contained in:
@@ -5,13 +5,15 @@ use sea_orm::entity::prelude::*;
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
pub id: i32,
|
||||
pub user_id: i32,
|
||||
pub user_id: Option<i32>,
|
||||
pub game_id: i32,
|
||||
pub creation_time: i64, // seconds since unix epoch
|
||||
pub player_id: i16, // actually u8
|
||||
pub team: i32,
|
||||
pub group: Option<i32>, // probably a user id
|
||||
pub is_claimed: bool,
|
||||
pub public_id: String,
|
||||
pub display_name: String,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
||||
Reference in New Issue
Block a user