Add basic analysis results, like scoreboard
This commit is contained in:
@@ -33,6 +33,27 @@ pub struct DemoInfo {
|
||||
pub map: String,
|
||||
}
|
||||
|
||||
#[derive(Queryable, Selectable, Insertable, Debug)]
|
||||
#[diesel(table_name = crate::schema::demo_players)]
|
||||
#[diesel(check_for_backend(diesel::pg::Pg))]
|
||||
pub struct DemoPlayer {
|
||||
pub demo_id: i64,
|
||||
pub steam_id: String,
|
||||
pub name: String,
|
||||
pub team: i16,
|
||||
pub color: i16,
|
||||
}
|
||||
|
||||
#[derive(Queryable, Selectable, Insertable, Debug)]
|
||||
#[diesel(table_name = crate::schema::demo_player_stats)]
|
||||
#[diesel(check_for_backend(diesel::pg::Pg))]
|
||||
pub struct DemoPlayerStats {
|
||||
pub demo_id: i64,
|
||||
pub steam_id: String,
|
||||
pub kills: i16,
|
||||
pub deaths: i16,
|
||||
}
|
||||
|
||||
#[derive(Queryable, Selectable, Insertable, Debug)]
|
||||
#[diesel(table_name = crate::schema::processing_status)]
|
||||
#[diesel(check_for_backend(diesel::pg::Pg))]
|
||||
|
||||
Reference in New Issue
Block a user