player_game_stat_id bigserial NOT NULL,
player_id integer NOT NULL,
game_id bigint NOT NULL,
- stat_type character varying(1),
nick character varying(64),
team integer,
"rank" integer,
CONSTRAINT player_game_stats_fk002 FOREIGN KEY (game_id)
REFERENCES xonstat.games (game_id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,
- CONSTRAINT player_game_stats_uk001 UNIQUE (player_id, game_id, stat_type)
+ CONSTRAINT player_game_stats_uk001 UNIQUE (player_id, game_id)
)
WITH (
OIDS=FALSE