1 CREATE TABLE player_medals
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
17 ALTER TABLE player_medals OWNER TO xonstat;