(
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'),
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),
+ 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,
player_id integer NOT NULL,
nick character varying(128),
game_type_cd character varying(10) NOT NULL,
+ category character varying(10) NOT NULL default 'general',
elo numeric NOT NULL,
rank integer NOT NULL,
create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
player_id integer NOT NULL,
nick character varying(128),
game_type_cd character varying(10) NOT NULL,
+ category character varying(10) NOT NULL default 'general',
elo numeric NOT NULL,
rank integer NOT NULL,
create_dt timestamp without time zone
pure_ind boolean NOT NULL DEFAULT true,
impure_cvars integer NULL,
elo_ind boolean NOT NULL DEFAULT true,
+ categories character varying(10)[],
active_ind boolean NOT NULL DEFAULT true,
create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
CONSTRAINT servers_pk PRIMARY KEY (server_id)