Fix heatmap issue and implement per round analysis

This commit is contained in:
Lol3rrr
2024-10-08 23:15:42 +02:00
parent 4353de4455
commit 539adecf5d
24 changed files with 58455 additions and 335 deletions

View File

@@ -88,3 +88,15 @@ pub struct DemoPlayerHeatmap {
pub steam_id: String,
pub data: String,
}
#[derive(Queryable, Selectable, Insertable, Debug)]
#[diesel(table_name = crate::schema::demo_round)]
#[diesel(check_for_backend(diesel::pg::Pg))]
pub struct DemoRound {
pub demo_id: i64,
pub round_number: i16,
pub start_tick: i64,
pub end_tick: i64,
pub win_reason: String,
pub events: serde_json::Value,
}