Add Head-to-Head kill stats

Add basic head-to-head kill analysis and the corresponding matrix display in the UI
This commit is contained in:
Lol3rrr
2024-11-05 07:50:43 +01:00
parent ecfed6b739
commit fa21804cc3
15 changed files with 350 additions and 12 deletions

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE demo_head_to_head;

View File

@@ -0,0 +1,8 @@
-- Your SQL goes here
CREATE TABLE IF NOT EXISTS demo_head_to_head (
demo_id TEXT NOT NULL,
player TEXT NOT NULL,
enemy TEXT NOT NULL,
kills int2 NOT NULL,
PRIMARY KEY (demo_id, player, enemy)
);