Add basic analysis results, like scoreboard

This commit is contained in:
Lol3rrr
2024-09-17 17:35:02 +02:00
parent 8290fcf390
commit b216022768
7 changed files with 157 additions and 47 deletions

View File

@@ -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))]