]> git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/player_elos.tab
Add TKA to the full build.
[xonotic/xonstatdb.git] / tables / player_elos.tab
index 0c0e024c3bc6d98738e9a5373e851971081a0618..24d8d90be226c89e2ada7a56260bc20bd6b46643 100755 (executable)
@@ -2,10 +2,13 @@ CREATE TABLE xonstat.player_elos
 (
   player_id integer NOT NULL,
   game_type_cd character varying(10) NOT NULL,
+  category character varying(10) NOT NULL default 'general',
   games integer NOT NULL default 0,
   elo numeric NOT NULL,
+  active_ind boolean NOT NULL default true,
   create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
-  CONSTRAINT player_elos_pk PRIMARY KEY (player_id, game_type_cd),
+  update_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
+  CONSTRAINT player_elos_pk PRIMARY KEY (player_id, game_type_cd, category),
   CONSTRAINT player_elos_fk01 FOREIGN KEY (player_id)
       REFERENCES xonstat.players (player_id) MATCH SIMPLE
       ON UPDATE NO ACTION ON DELETE NO ACTION,