]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blob - tables/player_medals.tab
Add indexes on the game_id field.
[xonotic/xonstatdb.git] / tables / player_medals.tab
1 CREATE TABLE player_medals
2 (
3   player_id integer NOT NULL,
4   place integer NOT NULL,
5   image character varying(50) NOT NULL,
6   alt character varying(50) NOT NULL,
7   create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
8   CONSTRAINT player_medals_pk PRIMARY KEY (player_id, image),
9   CONSTRAINT player_medals_fk01 FOREIGN KEY (player_id)
10       REFERENCES players (player_id) MATCH SIMPLE
11       ON UPDATE NO ACTION ON DELETE NO ACTION
12 )
13 WITH (
14   OIDS=FALSE
15 );
16
17 ALTER TABLE player_medals OWNER TO xonstat;