map_id integer NOT NULL,
duration interval,
winner integer,
- match_id numeric,
+ match_id character varying(64),
create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
CONSTRAINT games_pk PRIMARY KEY (game_id),
CONSTRAINT games_fk001 FOREIGN KEY (game_type_cd)
ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT games_fk003 FOREIGN KEY (map_id)
REFERENCES xonstat.maps (map_id) MATCH SIMPLE
- ON UPDATE NO ACTION ON DELETE NO ACTION
+ ON UPDATE NO ACTION ON DELETE NO ACTION,
+ CONSTRAINT games_uk001 UNIQUE (server_id, match_id)
)
WITH (
OIDS=FALSE