--- /dev/null
+CREATE TABLE player_medals
+(
+ player_id integer NOT NULL,
+ place integer NOT NULL,
+ image character varying(50) NOT NULL,
+ alt character varying(50) NOT NULL,
+ create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
+ CONSTRAINT player_medals_pk PRIMARY KEY (player_id, image),
+ CONSTRAINT player_medals_fk01 FOREIGN KEY (player_id)
+ REFERENCES players (player_id) MATCH SIMPLE
+ ON UPDATE NO ACTION ON DELETE NO ACTION
+)
+WITH (
+ OIDS=FALSE
+);
+
+ALTER TABLE player_medals OWNER TO xonstat;