From fea33d839aa1cc7b82f8315061f21ccea318dc47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <jose.carlos@menteslibres.net> Date: Mon, 9 Jun 2014 18:05:08 -0500 Subject: [PATCH] Adding publication and review. --- postgresql/_dumps/structs.sql | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/postgresql/_dumps/structs.sql b/postgresql/_dumps/structs.sql index 2c7b526c..76fd8527 100644 --- a/postgresql/_dumps/structs.sql +++ b/postgresql/_dumps/structs.sql @@ -2,7 +2,26 @@ DROP TABLE IF EXISTS artist; CREATE TABLE artist ( id serial primary key, - name VARCHAR(60) + name varchar(60) +); + +DROP TABLE IF EXISTS publication; + +CREATE TABLE publication ( + id serial primary key, + title varchar(80), + author_id integer, +); + +DROP TABLE IF EXISTS review; + +CREATE TABLE review ( + id serial primary key, + publication_id integer, + author_id integer, + name varchar(80), + comments text, + created timestamp without time zone ); DROP TABLE IF EXISTS data_types; -- GitLab