-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add full list of countries to table
Relates #6 Co-authored-by: ephieo <[email protected]>
- Loading branch information
Showing
2 changed files
with
237 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,237 @@ | ||
BEGIN; | ||
|
||
DROP TABLE IF EXISTS countries, things_to_do, businesses, experiences CASCADE; | ||
|
||
CREATE TABLE countries ( | ||
id SERIAL PRIMARY KEY, | ||
country_name VARCHAR(255) NOT NULL, | ||
); | ||
|
||
CREATE TABLE things_to_do ( | ||
country_id INTEGER REFERENCES countries(id), | ||
name VARCHAR(255) NOT NULL, | ||
details TEXT, | ||
-- time INTEGER ??? | ||
-- date ??? | ||
location TEXT | ||
|
||
); | ||
CREATE TABLE businesses ( | ||
country_id INTEGER REFERENCES countries(id), | ||
name VARCHAR(255) NOT NULL, | ||
details TEXT, | ||
-- time INTEGER ??? | ||
-- date ??? | ||
location TEXT | ||
-- ownership array ?? | ||
); | ||
|
||
CREATE TABLE experiences ( | ||
country_id INTEGER REFERENCES countries(id), | ||
socials TEXT, | ||
details TEXT, | ||
-- tags array ?? | ||
overall_experience TEXT, | ||
); | ||
|
||
INSERT INTO countries (country_name) VALUES | ||
('Afghanistan'), | ||
('Albania'), | ||
('Algeria'), | ||
('Andorra'), | ||
('Angola'), | ||
('Antigua and Barbuda'), | ||
('Argentina'), | ||
('Armenia'), | ||
('Australia'), | ||
('Austria'), | ||
('Azerbaijan'), | ||
('Bahamas'), | ||
('Bahrain'), | ||
('Bangladesh'), | ||
('Barbados'), | ||
('Belarus'), | ||
('Belgium'), | ||
('Belize'), | ||
('Benin'), | ||
('Bhutan'), | ||
('Bolivia'), | ||
('Bosnia and Herzegovina'), | ||
('Botswana'), | ||
('Brazil'), | ||
('Brunei'), | ||
('Bulgaria'), | ||
('Burkina Faso'), | ||
('Burundi'), | ||
('Cabo Verde'), | ||
('Cambodia'), | ||
('Cameroon') | ||
('Canada'), | ||
('Central African Republic'), | ||
('Chad'), | ||
('Chile'), | ||
('China'), | ||
('Colombia'), | ||
('Comoros'), | ||
('Costa Rica'), | ||
('Cote d''Ivoire'), | ||
('Croatia'), | ||
('Cuba'), | ||
('Cyprus'), | ||
('Czechia'), | ||
('Democratic Republic of Congo'), | ||
('Denmark'), | ||
('Djibouti'), | ||
('Dominica'), | ||
('Dominican Republic'), | ||
('Ecuador'), | ||
('Egypt'), | ||
('El Salvador'), | ||
('Equatorial Guinea'), | ||
('Eritrea'), | ||
('Estonia'), | ||
('Eswatini'), | ||
('Ethiopia'), | ||
('Fiji'), | ||
('Finland'), | ||
('France'), | ||
('Gabon'), | ||
('Gambia'), | ||
('Georgia'), | ||
('Germany'), | ||
('Ghana'), | ||
('Greece'), | ||
('Grenada'), | ||
('Guatemala'), | ||
('Guinea'), | ||
('Guinea-Bissau'), | ||
('Guyana'), | ||
('Haiti'), | ||
('Honduras'), | ||
('Hungary'), | ||
('Iceland'), | ||
('India'), | ||
('Indonesia'), | ||
('Iran'), | ||
('Iraq'), | ||
('Ireland'), | ||
('Israel'), | ||
('Italy'), | ||
('Jamaica'), | ||
('Japan'), | ||
('Jordan'), | ||
('Kazakhstan'), | ||
('Kenya'), | ||
('Kiribati'), | ||
('Kosovo'), | ||
('Kuwait'), | ||
('Kyrgyzstan'), | ||
('Laos'), | ||
('Latvia'), | ||
('Lebanon'), | ||
('Lesotho'), | ||
('Liberia'), | ||
('Libya'), | ||
('Liechtenstein'), | ||
('Lithuania'), | ||
('Luxembourg'), | ||
('Madagascar'), | ||
('Malawi'), | ||
('Malaysia'), | ||
('Maldives'), | ||
('Mali'), | ||
('Malta'), | ||
('Marshall Islands'), | ||
('Mauritania'), | ||
('Mauritius'), | ||
('Mexico'), | ||
('Micronesia'), | ||
('Moldova'), | ||
('Monaco'), | ||
('Mongolia'), | ||
('Montenegro'), | ||
('Morocco'), | ||
('Mozambique'), | ||
('Myanmar'), | ||
('Namibia'), | ||
('Nauru'), | ||
('Nepal'), | ||
('Netherlands'), | ||
('New Zealand'), | ||
('Nicaragua'), | ||
('Niger'), | ||
('Nigeria'), | ||
('North Korea'), | ||
('North Macedonia'), | ||
('Norway'), | ||
('Oman'), | ||
('Pakistan'), | ||
('Palau'), | ||
('Palestine'), | ||
('Panama'), | ||
('Papua New Guinea'), | ||
('Paraguay'), | ||
('Peru'), | ||
('Philippines'), | ||
('Poland'), | ||
('Portugal'), | ||
('Qatar'), | ||
('Republic of the Congo'), | ||
('Romania'), | ||
('Russia'), | ||
('Rwanda'), | ||
('Saint Kitts and Nevis'), | ||
('Saint Lucia'), | ||
('Saint Vincent and the Grenadines'), | ||
('Samoa'), | ||
('San Marino'), | ||
('Sao Tome and Principe'), | ||
('Saudi Arabia'), | ||
('Senegal'), | ||
('Serbia'), | ||
('Seychelles'), | ||
('Sierra Leone'), | ||
('Singapore'), | ||
('Slovakia'), | ||
('Slovenia'), | ||
('Solomon Islands'), | ||
('Somalia'), | ||
('South Africa'), | ||
('South Korea'), | ||
('South Sudan'), | ||
('Spain'), | ||
('Sri Lanka'), | ||
('Sudan'), | ||
('Suriname'), | ||
('Sweden'), | ||
('Switzerland'), | ||
('Syria') | ||
('Taiwan'), | ||
('Tajikistan'), | ||
('Tanzania'), | ||
('Thailand'), | ||
('Timor-Leste'), | ||
('Togo'), | ||
('Tonga'), | ||
('Trinidad and Tobago'), | ||
('Tunisia'), | ||
('Turkey'), | ||
('Turkmenistan'), | ||
('Tuvalu'), | ||
('Uganda'), | ||
('Ukraine'), | ||
('United Arab Emirates'), | ||
('United Kingdom'), | ||
('United States of America'), | ||
('Uruguay'), | ||
('Uzbekistan'), | ||
('Vanuatu'), | ||
('Vatican City'), | ||
('Venezuela'), | ||
('Vietnam'), | ||
('Yemen'), | ||
('Zambia'), | ||
('Zimbabwe'), | ||
|
||
|
||
COMMIT; |