From bc08a32e6561a19f6373a24f93ebda1df4b65a71 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Mon, 28 Mar 2016 21:09:03 -0400 Subject: [PATCH] Add player_medals table. --- tables/player_medals.tab | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tables/player_medals.tab diff --git a/tables/player_medals.tab b/tables/player_medals.tab new file mode 100755 index 0000000..80440f5 --- /dev/null +++ b/tables/player_medals.tab @@ -0,0 +1,17 @@ +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; -- 2.39.2