-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
118 additions
and
38 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -36,60 +36,140 @@ CREATE TABLE Reviews ( | |
); | ||
|
||
-- TEST | ||
-- INSERT INTO Users (username, password, email, phone, apt_id) | ||
-- VALUES ('Zongxian', '12345abcde', '[email protected]', '1234567890', 1); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Zongxian', '12345abcde', '[email protected]', '1234567890', 1); | ||
|
||
-- INSERT INTO Users (username, password, email, phone, apt_id) | ||
-- VALUES ('MonteCarlo', 'qwert#6767', '[email protected]', '9876543210', 2); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('MonteCarlo', 'qwert#6767', '[email protected]', '9876543210', 2); | ||
|
||
-- INSERT INTO Users (username, password, email, phone, apt_id) | ||
-- VALUES ('Minh', 'hello123', 'Minh.com', '9876543210', 2); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Evans', 'asd', 'Evans.com', '9876543210', 3); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('The Dean Campustown', '708 S 6th St, Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Xi', 'abcdefg', 'Monte@Carlo.com', '9876543210', 4); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('Seven07 Apartments', '707 S 4th St, Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Waterbottle', 'hello123', 'Minh.com', '9876543210', 5); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('A Campus', '708 S 6th St, Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Pencil', 'qw??DASFD@$!@767', 'Monte@Carlo.com', '9876543210', 6); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('B', '707 S 4th St, Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Green alien', '1234324324fgrerw?$#@%?', 'Minh.com', '9876543210', 7); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('Ttown', '708 S 6th St, Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Jefferson', '0q4043jtqwt?$#T', 'Monte@hello.com', '123456789', 8); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('C', '707 S 4th St, Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
INSERT INTO Users (username, password, email, phone, apt_id) | ||
VALUES ('Timothy', 'asdfsdf', 'Minh.com', '9876543210', 2); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('D', '708 S 6th St, Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('The Dean Campustown', '708 S 6th St Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('E', '707 S 4th St, Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Seven07 Apartments', '707 S 4th St Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('F', '708 S 6th St, Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Maywood Apartments', '707 Left St Urbana, IL 61801', 300, 900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('G', '707 S 4th St, Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Champaign Park', '2106 W White St Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('H', '708 S 6th St, Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Capstone Quarters', '708 S 6th St Champaign, IL 61820', 860, 1900, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
-- INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
-- VALUES ('I', '707 S 4th St, Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Legacy202', '1234 Sunshine Ct Champaign, IL 61820', 856, 1750, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
-- INSERT INTO AptPics (apt_id, link) | ||
-- VALUES (1, 'https://image1.apartmentfinder.com/i2/yI_vOGHFLSjSR7fuXTtN6vEcPux3OoeLbY-pKtkIda8/116/seven07-champaign-il-4-br-4-ba---living-room.jpg'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Cool Apartments', '689 N 1st St Champaign, IL 61820', 435, 54635, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
-- INSERT INTO AptPics (apt_id, link) | ||
-- VALUES (2, 'https://image1.apartmentfinder.com/i2/fU58gLkELEv-9Yoe6T4cecz5HcARTNYp-eA3RtF1wY0/116/seven07-champaign-il-building-photo.jpg'); | ||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Luxury Student Housing', '710 S 4th St Champaign, IL 61820', 233, 444, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('House', '708 S 6th St Champaign, IL 61820', 5, 45, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Fields South', '3301 Fields South St Champaign, IL 61820', 345, 4536, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('An Apartment', '1600 W Bradley St Champaign, IL 61820', 21, 346346, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Skyline Tower', '519 E Green St Champaign, IL 61820', 2323, 12345, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Baytowne Apartments', '1000 Baytowne Dr Champaign, IL 61820', 345, 555, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Fields South', '3301 Fields South St Champaign, IL 61820', 666, 777, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Westgate Apartments', '1600 W Bradley St Champaign, IL 61820', 555, 654, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('112 Green', '112 E Green St Champaign, IL 61820', 123, 234, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Hunters Pond Apartment Homes', '2717 Hunters Pand Run Champaign, IL 61820', 555, 778, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Fields South', '3301 Fields South St Champaign, IL 61820', 998, 999, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('Westgate Apartments', '1600 W Bradley St Champaign, IL 61820', 21, 346346, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/The-Dean-Campustown-Apartments-ttrtct8'); | ||
|
||
INSERT INTO Apartments (apt_name, apt_address, price_min, price_max, link) | ||
VALUES ('112 Green', '112 E Green St Champaign, IL 61820', 900, 2314, 'https://www.apartmentfinder.com/Illinois/Champaign-Apartments/Seven07-Apartments-75ckgzx'); | ||
|
||
INSERT INTO AptPics (apt_id, link) | ||
VALUES (1, 'https://image1.apartmentfinder.com/i2/yI_vOGHFLSjSR7fuXTtN6vEcPux3OoeLbY-pKtkIda8/116/seven07-champaign-il-4-br-4-ba---living-room.jpg'); | ||
|
||
INSERT INTO AptPics (apt_id, link) | ||
VALUES (2, 'https://image1.apartmentfinder.com/i2/fU58gLkELEv-9Yoe6T4cecz5HcARTNYp-eA3RtF1wY0/116/seven07-champaign-il-building-photo.jpg'); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (1, 1, '2021-09-23', 'Great Apartment, I love it!', 1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (2, 2, '2021-09-23', 'Shit Apartment, I hate it!', -1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (3, 3, '2021-09-23', 'Really Really Really Average!!', 1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (4, 4, '2000-10-03', 'Lorem ipsum dolor sit amet, | ||
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut | ||
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud | ||
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum | ||
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', -1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (5, 5, '2021-09-10', 'EEEEEEEEEEEEEEEEEEEEEEEEEE', 1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (6, 6, '2021-09-11', 'ok I hate it!', -1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (7, 7, '2021-09-21', 'I love you!', 1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (8, 8, '2021-09-09', 'So bad Im buying it!', -1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (9, 9, '2021-09-12', 'Its not an apartment, its a flat.', 1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (10, 10, '2021-09-13', 'Be a good person', -1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (11, 11, '2021-09-14', 'Hello there lizard', 1); | ||
|
||
INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
VALUES (12, 12, '2021-09-15', 'Windows are broken, rent is expensive, door doesnt work. Roof falling in. Bank foreclosing it. ABORT', -1); | ||
|
||
-- INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
-- VALUES (1, 1, '2021-09-23', 'Great Apartment, I love it!', 1); | ||
|
||
-- INSERT INTO Reviews (apt_id, user_id, date_of_rating, comment, vote) | ||
-- VALUES (2, 2, '2021-09-23', 'Shit Apartment, I hate it!', -1); | ||
|
6ffce28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report
6ffce28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report
6ffce28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report