Last active
December 20, 2015 17:49
-
-
Save agustinhaller/6171512 to your computer and use it in GitHub Desktop.
Soviax sql structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE SCHEMA soviax_site; | |
| CREATE TABLE soviax_site.packages ( | |
| id serial PRIMARY KEY, -- Es lo mismo que el autoincrement | |
| name text NOT NULL UNIQUE, | |
| title text NOT NULL, | |
| departure_dates text NOT NULL, | |
| price_desc text NOT NULL, | |
| start_date date NOT NULL, | |
| end_date date NOT NULL, | |
| date_created timestamp NOT NULL, | |
| location varchar(200) NOT NULL | |
| ); | |
| CREATE TABLE soviax_site.package_images ( | |
| id serial PRIMARY KEY, -- Es lo mismo que el autoincrement | |
| package_id int NOT NULL, | |
| image_path varchar(1000) NOT NULL UNIQUE, | |
| image_type varchar(20) -- Puede ser 'main' (es la que se muestra en la home page), 'mini', 'other' | |
| ); | |
| CREATE TABLE soviax_site.package_details ( | |
| id serial PRIMARY KEY, -- Es lo mismo que el autoincrement | |
| package_id int NOT NULL, | |
| description text NOT NULL, | |
| included bool NOT NULL | |
| ); | |
| CREATE TABLE soviax_site.logs ( | |
| message text NOT NULL, | |
| date timestamp NOT NULL | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment