Skip to content

Commit

Permalink
add testing data
Browse files Browse the repository at this point in the history
  • Loading branch information
akrakman committed Nov 8, 2022
1 parent 1de74b2 commit 6ffce28
Showing 1 changed file with 118 additions and 38 deletions.
156 changes: 118 additions & 38 deletions src/backend/database/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);

3 comments on commit 6ffce28

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
app.py910100%
config.py10100%
decorators.py270100%
dataholders
   apt.py90100%
   mainpage_get.py150100%
   review.py70100%
pages
   login.py310100%
   mainpage.py950100%
TOTAL2760100%

Tests Skipped Failures Errors Time
35 0 💤 0 ❌ 0 🔥 0.629s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
app.py910100%
config.py10100%
decorators.py270100%
dataholders
   apt.py90100%
   mainpage_get.py150100%
   review.py70100%
pages
   login.py310100%
   mainpage.py950100%
TOTAL2760100%

Tests Skipped Failures Errors Time
35 0 💤 0 ❌ 0 🔥 0.687s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
app.py910100%
config.py10100%
decorators.py270100%
dataholders
   apt.py90100%
   mainpage_get.py150100%
   review.py70100%
pages
   login.py310100%
   mainpage.py950100%
TOTAL2760100%

Tests Skipped Failures Errors Time
35 0 💤 0 ❌ 0 🔥 0.811s ⏱️

Please sign in to comment.