Skip to content

Commit

Permalink
add profile_img to users table in db
Browse files Browse the repository at this point in the history
relatesto #63
  • Loading branch information
yvonne-liu committed Mar 31, 2017
1 parent 685e1c1 commit 290d807
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
37 changes: 19 additions & 18 deletions build_database/db_build.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@ CREATE TABLE users (
place_of_birth VARCHAR(64) NOT NULL,
favorite_hobby VARCHAR(64) NOT NULL,
favorite_book VARCHAR(64) NOT NULL,
siblings INTEGER
siblings INTEGER,
profile_img VARCHAR(64) NOT NULL
);

INSERT INTO users (first_name, middle_name, last_name, github_user_name, nationality, languages, place_of_birth, favorite_hobby, favorite_book, siblings)
VALUES ('Yvonne', '禹彤', 'Liu', 'yvonne-liu', 'American', 'English, Mandarin Chinese, some Italian', 'Taipei, Taiwan', 'Hiking', 'East of Eden', 0),
('Finn', 'Webb Newell', 'Hodgkin', 'finnhodgkin', 'British', 'English', 'London, UK', 'Climbing', 'The Lacuna', 2),
('Lucy', 'Rose', 'Sabin', 'lucyrose93', 'British', 'English, French, Spanish', 'West Sussex, UK', 'Yoga', 'Alice"s Adventures in Wonderland', 1),
('Samatar', NULL, 'Axmed', 'samatar26', 'Dutch', 'English, Somali, Dutch', 'Apeldoorn', 'Weightlifting', 'Het lot van de familie Meijer', 4),
('Jessica', 'Ruth', 'Salmon', 'bo-bok', 'British', 'British, Russian', 'England', 'Reading', 'Brothers Karamazov', 0),
('Alexis', NULL, 'Lui', 'alexis-l8', 'British', 'English, Cantonese, Spanish, Japanese, Mandarin, Esperanto', 'London', 'Squash', 'Harry Potter', 2),
('Alice', 'Eleanor', 'Carr', 'ConchobarMacNessa', 'British/Australian', 'English/Mandarin', 'Australia', 'Drawing', 'Steppenwolf', 2),
('Oliver', 'James', 'Phillips', 'oliverjam', 'British', 'English', 'Stevenage, UK', 'JavaScript', 'JavaScript: The Good Parts', 3),
('Maja', 'M', 'Kudlicka', 'majakudlicka', 'Polish', 'English, Polish, Broken German, Spanish and French', 'Poland', 'Travelling', 'Harry Potter', 1),
('Akin', 'Mariah', 'Sowemimo', 'akin909', 'Estonian', 'English, French', 'UK', 'Coding', 'Love in the Time of Cholera', 2),
('Piotr', NULL, 'Berebecki', 'PiotrBerebecki', 'Jamaican', 'English', 'Martian', 'Watering flowers', 'Advanced Watering Flowers Techniques for Beginners', 7),
('Joey', 'Louise', 'Scott', 'joeylouise', 'British', 'English, Spanish', 'London', 'Singing', 'In Cold Blood', 1),
('Philippa', NULL, 'Bywater', 'pbywater', 'British/Canadian', 'English, French', 'Germany', 'Coding', 'The Famished Road', 1),
('Martha', NULL, 'Ciobaniuc', 'smarthutza', 'Romanian', 'English, Romanian, Spanish, German', 'Romania', 'Dancing', 'Too many', 0),
('Antonio', NULL, 'Trabalza', 'antoniotrkdz', 'Italian', 'Italian, English', 'Italy', 'LINUX, Coding and Keyboards', 'ABC of Economics', 0),
('Zooey', 'Ben', 'Miller', 'zooeymiller', 'British', 'English', 'Isle of Wight', 'Cycling', 'The Myth of Sisyphus', 1);
INSERT INTO users (first_name, middle_name, last_name, github_user_name, nationality, languages, place_of_birth, favorite_hobby, favorite_book, siblings, profile_img)
VALUES ('Yvonne', '禹彤', 'Liu', 'yvonne-liu', 'American', 'English, Mandarin Chinese, some Italian', 'Taipei, Taiwan', 'Hiking', 'East of Eden', 0, './public/assets/profile-pics/yvonne_headshot.jpg'),
('Finn', 'Webb Newell', 'Hodgkin', 'finnhodgkin', 'British', 'English', 'London, UK', 'Climbing', 'The Lacuna', 2, './public/assets/profile-pics/finn_headshot.jpg'),
('Lucy', 'Rose', 'Sabin', 'lucyrose93', 'British', 'English, French, Spanish', 'West Sussex, UK', 'Yoga', 'Alice"s Adventures in Wonderland', 1, './public/assets/profile-pics/lucy_headshot.jpg'),
('Samatar', NULL, 'Axmed', 'samatar26', 'Dutch', 'English, Somali, Dutch', 'Apeldoorn', 'Weightlifting', 'Het lot van de familie Meijer', 4, './public/assets/profile-pics/samatar_headshot.jpg'),
('Jessica', 'Ruth', 'Salmon', 'bo-bok', 'British', 'British, Russian', 'England', 'Reading', 'Brothers Karamazov', 0, './public/assets/profile-pics/jessica_headshot.jpg'),
('Alexis', NULL, 'Lui', 'alexis-l8', 'British', 'English, Cantonese, Spanish, Japanese, Mandarin, Esperanto', 'London', 'Squash', 'Harry Potter', 2, './public/assets/profile-pics/alexis_headshot.jpg'),
('Alice', 'Eleanor', 'Carr', 'ConchobarMacNessa', 'British/Australian', 'English/Mandarin', 'Australia', 'Drawing', 'Steppenwolf', 2, './public/assets/profile-pics/alice_headshot.jpg'),
('Oliver', 'James', 'Phillips', 'oliverjam', 'British', 'English', 'Stevenage, UK', 'JavaScript', 'JavaScript: The Good Parts', 3, './public/assets/profile-pics/oliver_headshot.jpg'),
('Maja', 'M', 'Kudlicka', 'majakudlicka', 'Polish', 'English, Polish, Broken German, Spanish and French', 'Poland', 'Travelling', 'Harry Potter', 1, './public/assets/profile-pics/maja_headshot.jpg'),
('Akin', 'Mariah', 'Sowemimo', 'akin909', 'Estonian', 'English, French', 'UK', 'Coding', 'Love in the Time of Cholera', 2, './public/assets/profile-pics/akin_headshot.jpg'),
('Piotr', NULL, 'Berebecki', 'PiotrBerebecki', 'Jamaican', 'English', 'Martian', 'Watering flowers', 'Advanced Watering Flowers Techniques for Beginners', 7, './public/assets/profile-pics/piotr_headshot.jpg'),
('Joey', 'Louise', 'Scott', 'joeylouise', 'British', 'English, Spanish', 'London', 'Singing', 'In Cold Blood', 1, './public/assets/profile-pics/joey_headshot.jpg'),
('Philippa', NULL, 'Bywater', 'pbywater', 'British/Canadian', 'English, French', 'Germany', 'Coding', 'The Famished Road', 1, './public/assets/profile-pics/philippa_headshot.jpg'),
('Martha', NULL, 'Ciobaniuc', 'smarthutza', 'Romanian', 'English, Romanian, Spanish, German', 'Romania', 'Dancing', 'Too many', 0, './public/assets/profile-pics/martha_headshot.jpg'),
('Antonio', NULL, 'Trabalza', 'antoniotrkdz', 'Italian', 'Italian, English', 'Italy', 'LINUX, Coding and Keyboards', 'ABC of Economics', 0, './public/assets/profile-pics/antonio_headshot.jpg'),
('Zooey', 'Ben', 'Miller', 'zooeymiller', 'British', 'English', 'Isle of Wight', 'Cycling', 'The Myth of Sisyphus', 1, './public/assets/profile-pics/zooey_headshot.jpg');

CREATE TABLE teams (
id SERIAL PRIMARY KEY,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
},
"dependencies": {
"env2": "^2.1.1",
"pg": "^6.1.5",
"pg": "^6.1.5"
}
}

0 comments on commit 290d807

Please sign in to comment.