From d54b4320f2d52e72e12fb17ffda83c11e13f3500 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 14 Nov 2024 14:54:39 -0500 Subject: [PATCH 001/305] Update Home.py --- app/src/Home.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index ef0f7b19ad..5adaa5d877 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -34,7 +34,7 @@ # set the title of the page and provide a simple prompt. logger.info("Loading the Home page of the app") -st.title('CS 3200 Sample Semester Project App') +st.title('SyncSpace') st.write('\n\n') st.write('### HI! As which user would you like to log in?') @@ -73,5 +73,11 @@ st.session_state['first_name'] = 'SysAdmin' st.switch_page('pages/20_Admin_Home.py') - +if st.button('Some text', + type = 'secondary', + use_container_width=True): + st.session_state['authenticated'] = True + st.session_state['role'] = 'Professor' + st.switch_page('pages/20_Admin_Home.py') + From 73b391d70402719e210e44a87402bc752525a266 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 14 Nov 2024 14:54:53 -0500 Subject: [PATCH 002/305] Update 12_API_Test.py --- app/src/pages/12_API_Test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/12_API_Test.py b/app/src/pages/12_API_Test.py index 74883c5a85..93a97e11eb 100644 --- a/app/src/pages/12_API_Test.py +++ b/app/src/pages/12_API_Test.py @@ -17,7 +17,7 @@ """ data = {} try: - data = requests.get('http://api:4000/data').json() + data = requests.get('http://api:4000/p/products').json() except: st.write("**Important**: Could not connect to sample api, so using dummy data.") data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} From 44d54347f4a1e3ddaa7fc41bfb839fcac1477f3f Mon Sep 17 00:00:00 2001 From: xavieryu18 <140019558+xavieryu18@users.noreply.github.com> Date: Sun, 17 Nov 2024 12:41:25 -0500 Subject: [PATCH 003/305] Create SyncSpace --- database-files/SyncSpace | 171 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 database-files/SyncSpace diff --git a/database-files/SyncSpace b/database-files/SyncSpace new file mode 100644 index 0000000000..33621b2f85 --- /dev/null +++ b/database-files/SyncSpace @@ -0,0 +1,171 @@ +-- Drop and create the database +DROP DATABASE IF EXISTS SyncSpace; +CREATE DATABASE IF NOT EXISTS SyncSpace; + +USE SyncSpace; + +-- Create table for City Community +CREATE TABLE IF NOT EXISTS CityCommunity ( + CommunityID INT AUTO_INCREMENT PRIMARY KEY, + Location VARCHAR(100) +); + +-- Create table for Housing +CREATE TABLE IF NOT EXISTS Housing ( + HousingID INT AUTO_INCREMENT PRIMARY KEY, + Availability VARCHAR(50), + Style VARCHAR(50), + Location VARCHAR(100) +); + +-- Create table for Interest Group +CREATE TABLE IF NOT EXISTS InterestGroup ( + GroupID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + GroupName VARCHAR(100) +); + +-- Create table for Ticket (needed before SystemHealth and SystemLog) +CREATE TABLE IF NOT EXISTS Ticket ( + TicketID INT AUTO_INCREMENT PRIMARY KEY, + UserID INT, + IssueType VARCHAR(50), + Status VARCHAR(50), + Priority VARCHAR(50), + ReceivedDate DATE, + ResolvedDate DATE +); + +-- Create table for User +CREATE TABLE IF NOT EXISTS User ( + UserID INT AUTO_INCREMENT PRIMARY KEY, + ChatID INT, + Name VARCHAR(100), + Email VARCHAR(100), + Role VARCHAR(50), + PermissionsLevel VARCHAR(50) +); + +-- Create table for Chat +CREATE TABLE IF NOT EXISTS Chat ( + ChatID INT AUTO_INCREMENT PRIMARY KEY, + SenderID INT, + ReceiverID INT, + Content TEXT, + Time TIMESTAMP, + SupportStaffID INT, + FOREIGN KEY (SenderID) REFERENCES User(UserID), + FOREIGN KEY (ReceiverID) REFERENCES User(UserID) +); + +-- Create table for Student +CREATE TABLE IF NOT EXISTS Student ( + StudentID INT AUTO_INCREMENT PRIMARY KEY, + Name VARCHAR(100), + Major VARCHAR(100), + Company VARCHAR(100), + Location VARCHAR(100), + HousingStatus VARCHAR(50), + CarpoolStatus VARCHAR(50), + Budget DECIMAL(10, 2), + LeaseDuration VARCHAR(50), + Cleanliness VARCHAR(50), + Lifestyle VARCHAR(50), + CommuteTime INT, + CommuteDays INT, + Interests TEXT, + CommunityID INT, + HousingID INT, + GroupID INT, + FeedbackID INT, + ChatID INT, + BrowseTo VARCHAR(100), + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), + FOREIGN KEY (HousingID) REFERENCES Housing(HousingID), + FOREIGN KEY (GroupID) REFERENCES InterestGroup(GroupID) +); + +-- Create table for Community Post +CREATE TABLE IF NOT EXISTS CommunityPost ( + PostID INT AUTO_INCREMENT PRIMARY KEY, + StudentID INT, + CommunityID INT, + Title VARCHAR(200), + Date DATE, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID), + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) +); + +-- Create table for Events +CREATE TABLE IF NOT EXISTS Events ( + EventID INT AUTO_INCREMENT PRIMARY KEY, + CommunityID INT, + Date DATE, + Name VARCHAR(100), + Description TEXT, + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) +); + +-- Add foreign key to User table now that Chat is created +ALTER TABLE User +ADD FOREIGN KEY (ChatID) REFERENCES Chat(ChatID); + +-- Create table for Feedback +CREATE TABLE IF NOT EXISTS Feedback ( + FeedbackID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + Date DATE, + ProgressRating INT, + StudentID INT, + AdvisorID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + +-- Create table for Advisor +CREATE TABLE IF NOT EXISTS Advisor ( + AdvisorID INT AUTO_INCREMENT PRIMARY KEY, + Name VARCHAR(100), + Email VARCHAR(100), + Department VARCHAR(100), + StudentID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + +-- Add foreign key to Feedback for Advisor after Advisor is created +ALTER TABLE Feedback +ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); + +-- Create table for Task +CREATE TABLE IF NOT EXISTS Task ( + TaskID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + Reminder DATE, + AssignedTo INT, + DueDate DATE, + Status VARCHAR(50), + AdvisorID INT, + FOREIGN KEY (AssignedTo) REFERENCES User(UserID), + FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID) +); + +-- Create table for System Log +CREATE TABLE IF NOT EXISTS SystemLog ( + LogID INT AUTO_INCREMENT PRIMARY KEY, + TicketID INT, + Timestamp TIMESTAMP, + Activity TEXT, + MetricType VARCHAR(50), + Privacy VARCHAR(50), + Security VARCHAR(50), + FOREIGN KEY (TicketID) REFERENCES Ticket(TicketID) +); + +-- Create table for System Health +CREATE TABLE IF NOT EXISTS SystemHealth ( + SystemHealthID INT AUTO_INCREMENT PRIMARY KEY, + LogID INT, + Timestamp TIMESTAMP, + Status VARCHAR(50), + MetricType VARCHAR(50), + FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) +); From 07376dcd32e47b002d885fc382680981683e1aa6 Mon Sep 17 00:00:00 2001 From: xavieryu18 <140019558+xavieryu18@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:01:03 -0500 Subject: [PATCH 004/305] Rename SyncSpace to SyncSpace.sql --- database-files/{SyncSpace => SyncSpace.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename database-files/{SyncSpace => SyncSpace.sql} (100%) diff --git a/database-files/SyncSpace b/database-files/SyncSpace.sql similarity index 100% rename from database-files/SyncSpace rename to database-files/SyncSpace.sql From b35959ad8fee36da0e1c20675f46a401a6c40432 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 19 Nov 2024 12:17:47 -0500 Subject: [PATCH 005/305] Update SyncSpace.sql --- database-files/SyncSpace.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 33621b2f85..e5d1008592 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -5,12 +5,14 @@ CREATE DATABASE IF NOT EXISTS SyncSpace; USE SyncSpace; -- Create table for City Community +DROP TABLE IF EXISTS CityCommunity; CREATE TABLE IF NOT EXISTS CityCommunity ( CommunityID INT AUTO_INCREMENT PRIMARY KEY, Location VARCHAR(100) ); -- Create table for Housing +DROP TABLE IF EXISTS Housing; CREATE TABLE IF NOT EXISTS Housing ( HousingID INT AUTO_INCREMENT PRIMARY KEY, Availability VARCHAR(50), @@ -19,6 +21,7 @@ CREATE TABLE IF NOT EXISTS Housing ( ); -- Create table for Interest Group +DROP TABLE IF EXISTS InterestGroup; CREATE TABLE IF NOT EXISTS InterestGroup ( GroupID INT AUTO_INCREMENT PRIMARY KEY, Description TEXT, @@ -26,6 +29,7 @@ CREATE TABLE IF NOT EXISTS InterestGroup ( ); -- Create table for Ticket (needed before SystemHealth and SystemLog) +DROP TABLE IF EXISTS Ticket; CREATE TABLE IF NOT EXISTS Ticket ( TicketID INT AUTO_INCREMENT PRIMARY KEY, UserID INT, @@ -37,6 +41,7 @@ CREATE TABLE IF NOT EXISTS Ticket ( ); -- Create table for User +DROP TABLE IF EXISTS User; CREATE TABLE IF NOT EXISTS User ( UserID INT AUTO_INCREMENT PRIMARY KEY, ChatID INT, @@ -47,6 +52,7 @@ CREATE TABLE IF NOT EXISTS User ( ); -- Create table for Chat +DROP TABLE IF EXISTS Chat; CREATE TABLE IF NOT EXISTS Chat ( ChatID INT AUTO_INCREMENT PRIMARY KEY, SenderID INT, @@ -59,6 +65,7 @@ CREATE TABLE IF NOT EXISTS Chat ( ); -- Create table for Student +DROP TABLE IF EXISTS Student; CREATE TABLE IF NOT EXISTS Student ( StudentID INT AUTO_INCREMENT PRIMARY KEY, Name VARCHAR(100), @@ -86,6 +93,7 @@ CREATE TABLE IF NOT EXISTS Student ( ); -- Create table for Community Post +DROP TABLE IF EXISTS CommunityPost; CREATE TABLE IF NOT EXISTS CommunityPost ( PostID INT AUTO_INCREMENT PRIMARY KEY, StudentID INT, @@ -97,6 +105,7 @@ CREATE TABLE IF NOT EXISTS CommunityPost ( ); -- Create table for Events +DROP TABLE IF EXISTS Events; CREATE TABLE IF NOT EXISTS Events ( EventID INT AUTO_INCREMENT PRIMARY KEY, CommunityID INT, @@ -111,6 +120,7 @@ ALTER TABLE User ADD FOREIGN KEY (ChatID) REFERENCES Chat(ChatID); -- Create table for Feedback +DROP TABLE IF EXISTS Feedback; CREATE TABLE IF NOT EXISTS Feedback ( FeedbackID INT AUTO_INCREMENT PRIMARY KEY, Description TEXT, @@ -122,6 +132,7 @@ CREATE TABLE IF NOT EXISTS Feedback ( ); -- Create table for Advisor +DROP TABLE IF EXISTS Advisor; CREATE TABLE IF NOT EXISTS Advisor ( AdvisorID INT AUTO_INCREMENT PRIMARY KEY, Name VARCHAR(100), @@ -136,6 +147,7 @@ ALTER TABLE Feedback ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); -- Create table for Task +DROP TABLE IF EXISTS Task; CREATE TABLE IF NOT EXISTS Task ( TaskID INT AUTO_INCREMENT PRIMARY KEY, Description TEXT, @@ -149,6 +161,7 @@ CREATE TABLE IF NOT EXISTS Task ( ); -- Create table for System Log +DROP TABLE IF EXISTS SystemLog; CREATE TABLE IF NOT EXISTS SystemLog ( LogID INT AUTO_INCREMENT PRIMARY KEY, TicketID INT, @@ -161,6 +174,7 @@ CREATE TABLE IF NOT EXISTS SystemLog ( ); -- Create table for System Health +DROP TABLE IF EXISTS SystemHealth; CREATE TABLE IF NOT EXISTS SystemHealth ( SystemHealthID INT AUTO_INCREMENT PRIMARY KEY, LogID INT, From b52e77ddd1954989511c5d5c398e4814f5fb2cfc Mon Sep 17 00:00:00 2001 From: yupark04 <110935773+yupark04@users.noreply.github.com> Date: Tue, 19 Nov 2024 22:22:56 -0500 Subject: [PATCH 006/305] Update SyncSpace --- database-files/SyncSpace | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/database-files/SyncSpace b/database-files/SyncSpace index 33621b2f85..f681c21637 100644 --- a/database-files/SyncSpace +++ b/database-files/SyncSpace @@ -169,3 +169,31 @@ CREATE TABLE IF NOT EXISTS SystemHealth ( MetricType VARCHAR(50), FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) ); + +-- 1.4 +UPDATE Ticket +SET Priority = 'Critical' +WHERE TicketID = 1; + +-- 2.5 +UPDATE Task +SET Status = 'Completed' +WHERE TaskID = 5; + +-- 3.2 +INSERT INTO Student (Name, Major, Location, HousingStatus, Budget, Cleanliness, Lifestyle, CommuteTime, Interests) +VALUES ( + 'Kevin Chen', + 'Data Science and Business', + 'San Jose, California', + 'Searching', + 1200.00, + 'Very Clean', + 'Quiet', + 30, + 'Hiking, Basketball, Technology' +); + +-- 4.3 +INSERT INTO Housing (Style, Availability, Location) +VALUES ('Apartment', 'Available', 'New York City'); From 94f6dcd8951026636279c7c8863a0470b970844a Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 25 Nov 2024 13:44:03 -0500 Subject: [PATCH 007/305] Homework q --- app/src/Home.py | 9 ++++++ app/src/pages/40_Warehouse_Home.py | 44 ++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 app/src/pages/40_Warehouse_Home.py diff --git a/app/src/Home.py b/app/src/Home.py index 5adaa5d877..1750bf3f7f 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -80,4 +80,13 @@ st.session_state['role'] = 'Professor' st.switch_page('pages/20_Admin_Home.py') +# Add a button for the Warehouse Manager Portal +if st.button('Act as Warehouse Manager', + type='primary', + use_container_width=True): + st.session_state['authenticated'] = True + st.session_state['role'] = 'warehouse_manager' + st.session_state['first_name'] = 'Warehouse Manager' + logger.info("Logging in as Warehouse Manager Persona") + st.switch_page('pages/40_Warehouse_Home.py') diff --git a/app/src/pages/40_Warehouse_Home.py b/app/src/pages/40_Warehouse_Home.py new file mode 100644 index 0000000000..c30bab8860 --- /dev/null +++ b/app/src/pages/40_Warehouse_Home.py @@ -0,0 +1,44 @@ +import logging +logger = logging.getLogger(__name__) + +import streamlit as st +from modules.nav import SideBarLinks + +st.set_page_config(layout='wide') + +# Show appropriate sidebar links for the role of the currently logged-in user +SideBarLinks() + +# Page Title +st.title(f"Warehouse Manager Portal") +st.write('') +st.write('') +st.write('### Reports') + +# Buttons for functionality +if st.button('Show All Reorders', + type='primary', + use_container_width=True): + st.switch_page('pages/41_Reorders.py') + +if st.button('Show Low Stock', + type='primary', + use_container_width=True): + st.switch_page('pages/42_Low_Stock.py') + + +st.write('### New Product and Categories') + + +if st.button("Add New Product Category", + type='primary', + use_container_width=True): + st.switch_page('pages/43_New_Cat.py') + +if st.button("Add New Product", + type='primary', + use_container_width=True): + st.switch_page('pages/44_New_Product.py') + + + From c1cf4b7b49906dc95c23eeac5d9bb228b9643eaa Mon Sep 17 00:00:00 2001 From: christinejahn Date: Thu, 28 Nov 2024 00:02:31 -0500 Subject: [PATCH 008/305] Updating to fit Co-op Advisor persona --- app/src/pages/10_USAID_Worker_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/10_USAID_Worker_Home.py b/app/src/pages/10_USAID_Worker_Home.py index d7b230384c..ceab5ecc76 100644 --- a/app/src/pages/10_USAID_Worker_Home.py +++ b/app/src/pages/10_USAID_Worker_Home.py @@ -9,7 +9,7 @@ # Show appropriate sidebar links for the role of the currently logged in user SideBarLinks() -st.title(f"Welcome USAID Worker, {st.session_state['first_name']}.") +st.title(f"Welcome Co-op Advisor, {st.session_state['first_name']}.") st.write('') st.write('') st.write('### What would you like to do today?') From 51d5fe78603ded668399b350a61e0551969f6c60 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Thu, 28 Nov 2024 00:35:50 -0500 Subject: [PATCH 009/305] Update Home.py --- app/src/Home.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index ef0f7b19ad..37ca96658f 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -34,7 +34,7 @@ # set the title of the page and provide a simple prompt. logger.info("Loading the Home page of the app") -st.title('CS 3200 Sample Semester Project App') +st.title('SyncSpace') st.write('\n\n') st.write('### HI! As which user would you like to log in?') @@ -73,5 +73,20 @@ st.session_state['first_name'] = 'SysAdmin' st.switch_page('pages/20_Admin_Home.py') +<<<<<<< HEAD +if st.button('Some Text On the Button', + type = 'primary', + user_container_width=True): + st.session_state['authenticated'] = True + st.session_state['role'] = 'Professor' + st.switch_page('pages/20_Admin_Home.py') +======= +if st.button('Some text', + type = 'secondary', + use_container_width=True): + st.session_state['authenticated'] = True + st.session_state['role'] = 'Professor' + st.switch_page('pages/20_Admin_Home.py') + - +>>>>>>> b35959ad8fee36da0e1c20675f46a401a6c40432 From 831c952e37d2e3c71d8360bbbf8aad8958bcee6d Mon Sep 17 00:00:00 2001 From: christinejahn Date: Thu, 28 Nov 2024 00:35:56 -0500 Subject: [PATCH 010/305] Create SyncSpace.sql --- database-files/SyncSpace.sql | 185 +++++++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 database-files/SyncSpace.sql diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql new file mode 100644 index 0000000000..e5d1008592 --- /dev/null +++ b/database-files/SyncSpace.sql @@ -0,0 +1,185 @@ +-- Drop and create the database +DROP DATABASE IF EXISTS SyncSpace; +CREATE DATABASE IF NOT EXISTS SyncSpace; + +USE SyncSpace; + +-- Create table for City Community +DROP TABLE IF EXISTS CityCommunity; +CREATE TABLE IF NOT EXISTS CityCommunity ( + CommunityID INT AUTO_INCREMENT PRIMARY KEY, + Location VARCHAR(100) +); + +-- Create table for Housing +DROP TABLE IF EXISTS Housing; +CREATE TABLE IF NOT EXISTS Housing ( + HousingID INT AUTO_INCREMENT PRIMARY KEY, + Availability VARCHAR(50), + Style VARCHAR(50), + Location VARCHAR(100) +); + +-- Create table for Interest Group +DROP TABLE IF EXISTS InterestGroup; +CREATE TABLE IF NOT EXISTS InterestGroup ( + GroupID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + GroupName VARCHAR(100) +); + +-- Create table for Ticket (needed before SystemHealth and SystemLog) +DROP TABLE IF EXISTS Ticket; +CREATE TABLE IF NOT EXISTS Ticket ( + TicketID INT AUTO_INCREMENT PRIMARY KEY, + UserID INT, + IssueType VARCHAR(50), + Status VARCHAR(50), + Priority VARCHAR(50), + ReceivedDate DATE, + ResolvedDate DATE +); + +-- Create table for User +DROP TABLE IF EXISTS User; +CREATE TABLE IF NOT EXISTS User ( + UserID INT AUTO_INCREMENT PRIMARY KEY, + ChatID INT, + Name VARCHAR(100), + Email VARCHAR(100), + Role VARCHAR(50), + PermissionsLevel VARCHAR(50) +); + +-- Create table for Chat +DROP TABLE IF EXISTS Chat; +CREATE TABLE IF NOT EXISTS Chat ( + ChatID INT AUTO_INCREMENT PRIMARY KEY, + SenderID INT, + ReceiverID INT, + Content TEXT, + Time TIMESTAMP, + SupportStaffID INT, + FOREIGN KEY (SenderID) REFERENCES User(UserID), + FOREIGN KEY (ReceiverID) REFERENCES User(UserID) +); + +-- Create table for Student +DROP TABLE IF EXISTS Student; +CREATE TABLE IF NOT EXISTS Student ( + StudentID INT AUTO_INCREMENT PRIMARY KEY, + Name VARCHAR(100), + Major VARCHAR(100), + Company VARCHAR(100), + Location VARCHAR(100), + HousingStatus VARCHAR(50), + CarpoolStatus VARCHAR(50), + Budget DECIMAL(10, 2), + LeaseDuration VARCHAR(50), + Cleanliness VARCHAR(50), + Lifestyle VARCHAR(50), + CommuteTime INT, + CommuteDays INT, + Interests TEXT, + CommunityID INT, + HousingID INT, + GroupID INT, + FeedbackID INT, + ChatID INT, + BrowseTo VARCHAR(100), + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), + FOREIGN KEY (HousingID) REFERENCES Housing(HousingID), + FOREIGN KEY (GroupID) REFERENCES InterestGroup(GroupID) +); + +-- Create table for Community Post +DROP TABLE IF EXISTS CommunityPost; +CREATE TABLE IF NOT EXISTS CommunityPost ( + PostID INT AUTO_INCREMENT PRIMARY KEY, + StudentID INT, + CommunityID INT, + Title VARCHAR(200), + Date DATE, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID), + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) +); + +-- Create table for Events +DROP TABLE IF EXISTS Events; +CREATE TABLE IF NOT EXISTS Events ( + EventID INT AUTO_INCREMENT PRIMARY KEY, + CommunityID INT, + Date DATE, + Name VARCHAR(100), + Description TEXT, + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) +); + +-- Add foreign key to User table now that Chat is created +ALTER TABLE User +ADD FOREIGN KEY (ChatID) REFERENCES Chat(ChatID); + +-- Create table for Feedback +DROP TABLE IF EXISTS Feedback; +CREATE TABLE IF NOT EXISTS Feedback ( + FeedbackID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + Date DATE, + ProgressRating INT, + StudentID INT, + AdvisorID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + +-- Create table for Advisor +DROP TABLE IF EXISTS Advisor; +CREATE TABLE IF NOT EXISTS Advisor ( + AdvisorID INT AUTO_INCREMENT PRIMARY KEY, + Name VARCHAR(100), + Email VARCHAR(100), + Department VARCHAR(100), + StudentID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + +-- Add foreign key to Feedback for Advisor after Advisor is created +ALTER TABLE Feedback +ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); + +-- Create table for Task +DROP TABLE IF EXISTS Task; +CREATE TABLE IF NOT EXISTS Task ( + TaskID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + Reminder DATE, + AssignedTo INT, + DueDate DATE, + Status VARCHAR(50), + AdvisorID INT, + FOREIGN KEY (AssignedTo) REFERENCES User(UserID), + FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID) +); + +-- Create table for System Log +DROP TABLE IF EXISTS SystemLog; +CREATE TABLE IF NOT EXISTS SystemLog ( + LogID INT AUTO_INCREMENT PRIMARY KEY, + TicketID INT, + Timestamp TIMESTAMP, + Activity TEXT, + MetricType VARCHAR(50), + Privacy VARCHAR(50), + Security VARCHAR(50), + FOREIGN KEY (TicketID) REFERENCES Ticket(TicketID) +); + +-- Create table for System Health +DROP TABLE IF EXISTS SystemHealth; +CREATE TABLE IF NOT EXISTS SystemHealth ( + SystemHealthID INT AUTO_INCREMENT PRIMARY KEY, + LogID INT, + Timestamp TIMESTAMP, + Status VARCHAR(50), + MetricType VARCHAR(50), + FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) +); From cd10ae71e937e1d38a51541ff3003e358bde6d31 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Thu, 28 Nov 2024 00:36:04 -0500 Subject: [PATCH 011/305] Update 12_API_Test.py --- app/src/pages/12_API_Test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/12_API_Test.py b/app/src/pages/12_API_Test.py index 74883c5a85..93a97e11eb 100644 --- a/app/src/pages/12_API_Test.py +++ b/app/src/pages/12_API_Test.py @@ -17,7 +17,7 @@ """ data = {} try: - data = requests.get('http://api:4000/data').json() + data = requests.get('http://api:4000/p/products').json() except: st.write("**Important**: Could not connect to sample api, so using dummy data.") data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} From b0f230648f26875f728def597766a1597ee99ce1 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Fri, 29 Nov 2024 19:25:06 -0500 Subject: [PATCH 012/305] Update 00_Pol_Strat_Home.py test --- app/src/pages/00_Pol_Strat_Home.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/pages/00_Pol_Strat_Home.py b/app/src/pages/00_Pol_Strat_Home.py index 3d02f25552..a47c30fd15 100644 --- a/app/src/pages/00_Pol_Strat_Home.py +++ b/app/src/pages/00_Pol_Strat_Home.py @@ -13,6 +13,7 @@ st.write('') st.write('') st.write('### What would you like to do today?') +st.write('### Test') if st.button('View World Bank Data Visualization', type='primary', From c7d40b9b6002569d57a5ce430c588080c93e6713 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Fri, 29 Nov 2024 19:34:53 -0500 Subject: [PATCH 013/305] new test --- app/src/pages/00_Pol_Strat_Home.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/pages/00_Pol_Strat_Home.py b/app/src/pages/00_Pol_Strat_Home.py index a47c30fd15..3d02f25552 100644 --- a/app/src/pages/00_Pol_Strat_Home.py +++ b/app/src/pages/00_Pol_Strat_Home.py @@ -13,7 +13,6 @@ st.write('') st.write('') st.write('### What would you like to do today?') -st.write('### Test') if st.button('View World Bank Data Visualization', type='primary', From a7250ca86344f5539d808c5ddf3414cacbfa9efa Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Fri, 29 Nov 2024 19:43:10 -0500 Subject: [PATCH 014/305] another test --- app/src/pages/21_ML_Model_Mgmt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/pages/21_ML_Model_Mgmt.py b/app/src/pages/21_ML_Model_Mgmt.py index 148978c24b..319a755061 100644 --- a/app/src/pages/21_ML_Model_Mgmt.py +++ b/app/src/pages/21_ML_Model_Mgmt.py @@ -12,6 +12,7 @@ st.write('\n\n') st.write('## Model 1 Maintenance') +st.write("Test") st.button("Train Model 01", type = 'primary', From 5de64f4e2f843258e127d617f85ebc34d9e6b520 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Fri, 29 Nov 2024 19:48:18 -0500 Subject: [PATCH 015/305] testing --- app/src/pages/11_Prediction.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/pages/11_Prediction.py b/app/src/pages/11_Prediction.py index a5a322a2f4..493a339873 100644 --- a/app/src/pages/11_Prediction.py +++ b/app/src/pages/11_Prediction.py @@ -11,6 +11,7 @@ SideBarLinks() st.title('Prediction with Regression') +st.write('test') # create a 2 column layout col1, col2 = st.columns(2) From 3aaccd2b2f2400b447233119f4642ff46f030c4c Mon Sep 17 00:00:00 2001 From: christinejahn Date: Fri, 29 Nov 2024 19:50:39 -0500 Subject: [PATCH 016/305] Update products_routes.py --- api/backend/products/products_routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/backend/products/products_routes.py b/api/backend/products/products_routes.py index a3e596d0d3..51c4533afc 100644 --- a/api/backend/products/products_routes.py +++ b/api/backend/products/products_routes.py @@ -205,4 +205,5 @@ def update_product(): product_info = request.json current_app.logger.info(product_info) - return "Success" \ No newline at end of file + return "Success" + From 55e292b3549e7a74c20db5f6141d162f5ee39b9c Mon Sep 17 00:00:00 2001 From: christinejahn Date: Fri, 29 Nov 2024 19:54:30 -0500 Subject: [PATCH 017/305] Testing the update for Co-op Advisor Persona --- app/src/pages/10_USAID_Worker_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/10_USAID_Worker_Home.py b/app/src/pages/10_USAID_Worker_Home.py index ceab5ecc76..35066d1db5 100644 --- a/app/src/pages/10_USAID_Worker_Home.py +++ b/app/src/pages/10_USAID_Worker_Home.py @@ -14,7 +14,7 @@ st.write('') st.write('### What would you like to do today?') -if st.button('Predict Value Based on Regression Model', +if st.button('Predict the Values Based on Regression Model', type='primary', use_container_width=True): st.switch_page('pages/11_Prediction.py') From cdb0ac2ab3a836e1f1a97de126a1243313dc74c4 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Fri, 29 Nov 2024 21:45:06 -0500 Subject: [PATCH 018/305] Creating/updating landing page for Student persona(s) --- app/src/pages/20_Admin_Home.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/pages/20_Admin_Home.py b/app/src/pages/20_Admin_Home.py index 0dbd0f36b4..6e59a6bcc1 100644 --- a/app/src/pages/20_Admin_Home.py +++ b/app/src/pages/20_Admin_Home.py @@ -9,9 +9,9 @@ SideBarLinks() -st.title('System Admin Home Page') +st.title('Student Home Page') -if st.button('Update ML Models', +if st.button('View Advisor Feedback', type='primary', use_container_width=True): st.switch_page('pages/21_ML_Model_Mgmt.py') \ No newline at end of file From 6a24d7e67d06a48cb538af4fe3b70c017f75fb7d Mon Sep 17 00:00:00 2001 From: christinejahn Date: Fri, 29 Nov 2024 21:47:01 -0500 Subject: [PATCH 019/305] Create/update landing page for technical support analyst persona --- app/src/pages/00_Pol_Strat_Home.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/pages/00_Pol_Strat_Home.py b/app/src/pages/00_Pol_Strat_Home.py index 3d02f25552..3285ea31c0 100644 --- a/app/src/pages/00_Pol_Strat_Home.py +++ b/app/src/pages/00_Pol_Strat_Home.py @@ -9,17 +9,22 @@ # Show appropriate sidebar links for the role of the currently logged in user SideBarLinks() -st.title(f"Welcome Political Strategist, {st.session_state['first_name']}.") +st.title(f"Welcome Technical Support Analyst, {st.session_state['first_name']}.") st.write('') st.write('') st.write('### What would you like to do today?') -if st.button('View World Bank Data Visualization', +if st.button('Run Diagnostics', type='primary', use_container_width=True): st.switch_page('pages/01_World_Bank_Viz.py') -if st.button('View World Map Demo', +if st.button('View Ticket Overview', + type='primary', + use_container_width=True): + st.switch_page('pages/02_Map_Demo.py') + +if st.button('Access System Health Dashboard', type='primary', use_container_width=True): st.switch_page('pages/02_Map_Demo.py') \ No newline at end of file From 83e97f119d0aba6883b8784672e468382f8e92b2 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Fri, 29 Nov 2024 21:53:19 -0500 Subject: [PATCH 020/305] Renaming to fit our personas --- .../{00_Pol_Strat_Home.py => 00_Tech_Support_Analyst_Home.py} | 0 .../pages/{10_USAID_Worker_Home.py => 10_Co-op_Advisor_Home.py} | 0 app/src/pages/{20_Admin_Home.py => 20_Student_Home.py} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename app/src/pages/{00_Pol_Strat_Home.py => 00_Tech_Support_Analyst_Home.py} (100%) rename app/src/pages/{10_USAID_Worker_Home.py => 10_Co-op_Advisor_Home.py} (100%) rename app/src/pages/{20_Admin_Home.py => 20_Student_Home.py} (100%) diff --git a/app/src/pages/00_Pol_Strat_Home.py b/app/src/pages/00_Tech_Support_Analyst_Home.py similarity index 100% rename from app/src/pages/00_Pol_Strat_Home.py rename to app/src/pages/00_Tech_Support_Analyst_Home.py diff --git a/app/src/pages/10_USAID_Worker_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py similarity index 100% rename from app/src/pages/10_USAID_Worker_Home.py rename to app/src/pages/10_Co-op_Advisor_Home.py diff --git a/app/src/pages/20_Admin_Home.py b/app/src/pages/20_Student_Home.py similarity index 100% rename from app/src/pages/20_Admin_Home.py rename to app/src/pages/20_Student_Home.py From b6f76c42ca47c1a94eea68465cea2b480e45c6e6 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:24:57 -0500 Subject: [PATCH 021/305] Create SyncSpaceUpdated.sql new sql file if making changes to user stories --- database-files/SyncSpaceUpdated.sql | 164 ++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 database-files/SyncSpaceUpdated.sql diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql new file mode 100644 index 0000000000..38ff5531c2 --- /dev/null +++ b/database-files/SyncSpaceUpdated.sql @@ -0,0 +1,164 @@ +-- Drop and create the database +DROP DATABASE IF EXISTS SyncSpace; +CREATE DATABASE IF NOT EXISTS SyncSpace; + +USE SyncSpace; + +-- Create table for City Community +DROP TABLE IF EXISTS CityCommunity; +CREATE TABLE IF NOT EXISTS CityCommunity ( + CommunityID INT AUTO_INCREMENT PRIMARY KEY, + Location VARCHAR(100) +); + +-- Create table for Housing +DROP TABLE IF EXISTS Housing; +CREATE TABLE IF NOT EXISTS Housing ( + HousingID INT AUTO_INCREMENT PRIMARY KEY, + Availability VARCHAR(50), + Style VARCHAR(50), + Location VARCHAR(100) +); + +-- Create table for Ticket (needed before SystemHealth and SystemLog) +DROP TABLE IF EXISTS Ticket; +CREATE TABLE IF NOT EXISTS Ticket ( + TicketID INT AUTO_INCREMENT PRIMARY KEY, + UserID INT, + IssueType VARCHAR(50), + Status VARCHAR(50), + Priority VARCHAR(50), + ReceivedDate DATE, + ResolvedDate DATE +); + +-- Create table for User +DROP TABLE IF EXISTS User; +CREATE TABLE IF NOT EXISTS User ( + UserID INT AUTO_INCREMENT PRIMARY KEY, + ChatID INT, + Name VARCHAR(100), + Email VARCHAR(100), + Role VARCHAR(50), + PermissionsLevel VARCHAR(50) +); + +-- Create table for Chat +DROP TABLE IF EXISTS Chat; +CREATE TABLE IF NOT EXISTS Chat ( + ChatID INT AUTO_INCREMENT PRIMARY KEY, + SenderID INT, + ReceiverID INT, + Content TEXT, + Time TIMESTAMP, + SupportStaffID INT, + FOREIGN KEY (SenderID) REFERENCES User(UserID), + FOREIGN KEY (ReceiverID) REFERENCES User(UserID) +); + +-- Create table for Student +DROP TABLE IF EXISTS Student; +CREATE TABLE IF NOT EXISTS Student ( + StudentID INT AUTO_INCREMENT PRIMARY KEY, + Name VARCHAR(100), + Major VARCHAR(100), + Company VARCHAR(100), + Location VARCHAR(100), + HousingStatus VARCHAR(50), + CarpoolStatus VARCHAR(50), + Budget DECIMAL(10, 2), + LeaseDuration VARCHAR(50), + Cleanliness VARCHAR(50), + Lifestyle VARCHAR(50), + CommuteTime INT, + CommuteDays INT, + Interests TEXT, + CommunityID INT, + HousingID INT, + GroupID INT, + FeedbackID INT, + ChatID INT, + BrowseTo VARCHAR(100), + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), + FOREIGN KEY (HousingID) REFERENCES Housing(HousingID) +); + +-- Create table for Events +DROP TABLE IF EXISTS Events; +CREATE TABLE IF NOT EXISTS Events ( + EventID INT AUTO_INCREMENT PRIMARY KEY, + CommunityID INT, + Date DATE, + Name VARCHAR(100), + Description TEXT, + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) +); + +-- Add foreign key to User table now that Chat is created +ALTER TABLE User +ADD FOREIGN KEY (ChatID) REFERENCES Chat(ChatID); + +-- Create table for Feedback +DROP TABLE IF EXISTS Feedback; +CREATE TABLE IF NOT EXISTS Feedback ( + FeedbackID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + Date DATE, + ProgressRating INT, + StudentID INT, + AdvisorID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + +-- Create table for Advisor +DROP TABLE IF EXISTS Advisor; +CREATE TABLE IF NOT EXISTS Advisor ( + AdvisorID INT AUTO_INCREMENT PRIMARY KEY, + Name VARCHAR(100), + Email VARCHAR(100), + Department VARCHAR(100), + StudentID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + +-- Add foreign key to Feedback for Advisor after Advisor is created +ALTER TABLE Feedback +ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); + +-- Create table for Task +DROP TABLE IF EXISTS Task; +CREATE TABLE IF NOT EXISTS Task ( + TaskID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + Reminder DATE, + AssignedTo INT, + DueDate DATE, + Status VARCHAR(50), + AdvisorID INT, + FOREIGN KEY (AssignedTo) REFERENCES User(UserID), + FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID) +); + +-- Create table for System Log +DROP TABLE IF EXISTS SystemLog; +CREATE TABLE IF NOT EXISTS SystemLog ( + LogID INT AUTO_INCREMENT PRIMARY KEY, + TicketID INT, + Timestamp TIMESTAMP, + Activity TEXT, + MetricType VARCHAR(50), + Privacy VARCHAR(50), + Security VARCHAR(50), + FOREIGN KEY (TicketID) REFERENCES Ticket(TicketID) +); + +-- Create table for System Health +DROP TABLE IF EXISTS SystemHealth; +CREATE TABLE IF NOT EXISTS SystemHealth ( + SystemHealthID INT AUTO_INCREMENT PRIMARY KEY, + LogID INT, + Timestamp TIMESTAMP, + Status VARCHAR(50), + MetricType VARCHAR(50), + FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) +); From 09a918966db3304c15f116d76a404e3daa8161a7 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:29:20 -0500 Subject: [PATCH 022/305] create files --- ...Student_Home.py => 20_Student_Kevin_Home.py} | 0 app/src/pages/40_Student_Sarah_Home.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) rename app/src/pages/{20_Student_Home.py => 20_Student_Kevin_Home.py} (100%) create mode 100644 app/src/pages/40_Student_Sarah_Home.py diff --git a/app/src/pages/20_Student_Home.py b/app/src/pages/20_Student_Kevin_Home.py similarity index 100% rename from app/src/pages/20_Student_Home.py rename to app/src/pages/20_Student_Kevin_Home.py diff --git a/app/src/pages/40_Student_Sarah_Home.py b/app/src/pages/40_Student_Sarah_Home.py new file mode 100644 index 0000000000..6e59a6bcc1 --- /dev/null +++ b/app/src/pages/40_Student_Sarah_Home.py @@ -0,0 +1,17 @@ +import logging +logger = logging.getLogger(__name__) + +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Student Home Page') + +if st.button('View Advisor Feedback', + type='primary', + use_container_width=True): + st.switch_page('pages/21_ML_Model_Mgmt.py') \ No newline at end of file From 6a7ba436e86b36b7465d80a5e35bd4035daf3a5c Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:39:11 -0500 Subject: [PATCH 023/305] new files --- app/src/pages/.py | 0 app/src/pages/41_Browse_Profiles.py | 0 app/src/pages/42_Professional_Events.py | 0 app/src/pages/43_Other_Page.py | 0 4 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 app/src/pages/.py create mode 100644 app/src/pages/41_Browse_Profiles.py create mode 100644 app/src/pages/42_Professional_Events.py create mode 100644 app/src/pages/43_Other_Page.py diff --git a/app/src/pages/.py b/app/src/pages/.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/pages/41_Browse_Profiles.py b/app/src/pages/41_Browse_Profiles.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/pages/42_Professional_Events.py b/app/src/pages/42_Professional_Events.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/pages/43_Other_Page.py b/app/src/pages/43_Other_Page.py new file mode 100644 index 0000000000..e69de29bb2 From 7c91fd67ba09bc8848cefa4bd46741b2333e2bad Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:44:24 -0500 Subject: [PATCH 024/305] Update nav.py --- app/src/modules/nav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index cb31d3bf67..c40aba9625 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -17,7 +17,7 @@ def AboutPageNav(): #### ------------------------ Examples for Role of pol_strat_advisor ------------------------ def PolStratAdvHomeNav(): st.sidebar.page_link( - "pages/00_Pol_Strat_Home.py", label="Political Strategist Home", icon="👤" + "pages/00_Tech_Support_Analyst_Home.py", label="Tech Support Analyst Home", icon="👤" ) @@ -50,7 +50,7 @@ def ClassificationNav(): #### ------------------------ System Admin Role ------------------------ def AdminPageNav(): - st.sidebar.page_link("pages/20_Admin_Home.py", label="System Admin", icon="🖥️") + st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student - Kevin Chen", icon="🖥️") st.sidebar.page_link( "pages/21_ML_Model_Mgmt.py", label="ML Model Management", icon="🏢" ) From bfa78abf6224efb4524d72e028a71c455a950e5f Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:48:21 -0500 Subject: [PATCH 025/305] Update Home.py --- app/src/Home.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index 5adaa5d877..24a571eccc 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -42,7 +42,7 @@ # functionality, we put a button on the screen that the user # can click to MIMIC logging in as that mock user. -if st.button("Act as John, a Political Strategy Advisor", +if st.button("Act as System Administrator - Michael Ortega", type = 'primary', use_container_width=True): # when user clicks the button, they are now considered authenticated @@ -55,29 +55,29 @@ # finally, we ask streamlit to switch to another page, in this case, the # landing page for this particular user type logger.info("Logging in as Political Strategy Advisor Persona") - st.switch_page('pages/00_Pol_Strat_Home.py') + st.switch_page('pages/00_Tech_Support_Analyst_Home.py') -if st.button('Act as Mohammad, an USAID worker', +if st.button('Act as Co-op Advisor - Jessica Doofenshmirtz', type = 'primary', use_container_width=True): st.session_state['authenticated'] = True st.session_state['role'] = 'usaid_worker' - st.session_state['first_name'] = 'Mohammad' - st.switch_page('pages/10_USAID_Worker_Home.py') + st.session_state['first_name'] = 'Jessica' + st.switch_page('pages/10_Co-op_Advisor_Home.py') -if st.button('Act as System Administrator', +if st.button('Act as Student - Kevin Chen', type = 'primary', use_container_width=True): st.session_state['authenticated'] = True st.session_state['role'] = 'administrator' st.session_state['first_name'] = 'SysAdmin' - st.switch_page('pages/20_Admin_Home.py') + st.switch_page('pages/20_Student_Kevin_Chen_Home.py') -if st.button('Some text', +if st.button('Act as Student - Sarah Lopez', type = 'secondary', use_container_width=True): st.session_state['authenticated'] = True - st.session_state['role'] = 'Professor' - st.switch_page('pages/20_Admin_Home.py') + st.session_state['role'] = 'Student' + st.switch_page('pages/40_Student_Sarah_Home.py') From 4601c48acfb02e58573b0c2512f284b071d695d5 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:49:20 -0500 Subject: [PATCH 026/305] save --- app/src/pages/41_Browse_Profiles.py | 6 ++++++ app/src/pages/43_Other_Page.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/app/src/pages/41_Browse_Profiles.py b/app/src/pages/41_Browse_Profiles.py index e69de29bb2..f8c3d83907 100644 --- a/app/src/pages/41_Browse_Profiles.py +++ b/app/src/pages/41_Browse_Profiles.py @@ -0,0 +1,6 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +import requests +from streamlit_extras.app_logo import add_logo +from modules.nav import SideBarLinks \ No newline at end of file diff --git a/app/src/pages/43_Other_Page.py b/app/src/pages/43_Other_Page.py index e69de29bb2..f8c3d83907 100644 --- a/app/src/pages/43_Other_Page.py +++ b/app/src/pages/43_Other_Page.py @@ -0,0 +1,6 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +import requests +from streamlit_extras.app_logo import add_logo +from modules.nav import SideBarLinks \ No newline at end of file From d17473c7c0fd8bf4a6404defddafa14f1498f1b2 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:50:48 -0500 Subject: [PATCH 027/305] Update 42_Professional_Events.py --- app/src/pages/42_Professional_Events.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/pages/42_Professional_Events.py b/app/src/pages/42_Professional_Events.py index e69de29bb2..f8c3d83907 100644 --- a/app/src/pages/42_Professional_Events.py +++ b/app/src/pages/42_Professional_Events.py @@ -0,0 +1,6 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +import requests +from streamlit_extras.app_logo import add_logo +from modules.nav import SideBarLinks \ No newline at end of file From a24d5e29bd79cfe85ce24420250275a834439f02 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 03:55:32 -0500 Subject: [PATCH 028/305] Update Home.py --- app/src/Home.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index 24a571eccc..13809e4c0a 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -48,13 +48,13 @@ # when user clicks the button, they are now considered authenticated st.session_state['authenticated'] = True # we set the role of the current user - st.session_state['role'] = 'pol_strat_advisor' + st.session_state['role'] = 'tech_support_analyst' # we add the first name of the user (so it can be displayed on # subsequent pages). - st.session_state['first_name'] = 'John' + st.session_state['first_name'] = 'Michael' # finally, we ask streamlit to switch to another page, in this case, the # landing page for this particular user type - logger.info("Logging in as Political Strategy Advisor Persona") + logger.info("Logging in as Tech Support Analyst Persona") st.switch_page('pages/00_Tech_Support_Analyst_Home.py') if st.button('Act as Co-op Advisor - Jessica Doofenshmirtz', From 9ae3120ca6907a23dfc224c8981299c0d6811033 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 05:16:02 -0500 Subject: [PATCH 029/305] Update Home.py --- app/src/Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Home.py b/app/src/Home.py index 13809e4c0a..cc2c3825f2 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -71,7 +71,7 @@ st.session_state['authenticated'] = True st.session_state['role'] = 'administrator' st.session_state['first_name'] = 'SysAdmin' - st.switch_page('pages/20_Student_Kevin_Chen_Home.py') + st.switch_page('pages/20_Student_Kevin_Home.py') if st.button('Act as Student - Sarah Lopez', type = 'secondary', From c7044461e773885a4d55abdf80e734c9f75c8865 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sat, 30 Nov 2024 05:21:42 -0500 Subject: [PATCH 030/305] file updates --- app/src/Home.py | 8 ++++---- app/src/modules/nav.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index cc2c3825f2..cdda766da7 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -48,7 +48,7 @@ # when user clicks the button, they are now considered authenticated st.session_state['authenticated'] = True # we set the role of the current user - st.session_state['role'] = 'tech_support_analyst' + st.session_state['role'] = 'SysAdmin' # we add the first name of the user (so it can be displayed on # subsequent pages). st.session_state['first_name'] = 'Michael' @@ -61,7 +61,7 @@ type = 'primary', use_container_width=True): st.session_state['authenticated'] = True - st.session_state['role'] = 'usaid_worker' + st.session_state['role'] = 'Advisor' st.session_state['first_name'] = 'Jessica' st.switch_page('pages/10_Co-op_Advisor_Home.py') @@ -69,8 +69,8 @@ type = 'primary', use_container_width=True): st.session_state['authenticated'] = True - st.session_state['role'] = 'administrator' - st.session_state['first_name'] = 'SysAdmin' + st.session_state['role'] = 'Student' + st.session_state['first_name'] = 'Kevin' st.switch_page('pages/20_Student_Kevin_Home.py') if st.button('Act as Student - Sarah Lopez', diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index c40aba9625..62fd89ae69 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -78,19 +78,19 @@ def SideBarLinks(show_home=False): if st.session_state["authenticated"]: # Show World Bank Link and Map Demo Link if the user is a political strategy advisor role. - if st.session_state["role"] == "pol_strat_advisor": + if st.session_state["role"] == "SysAdmin": PolStratAdvHomeNav() WorldBankVizNav() MapDemoNav() # If the user role is usaid worker, show the Api Testing page - if st.session_state["role"] == "usaid_worker": + if st.session_state["role"] == "Advisor": PredictionNav() ApiTestNav() ClassificationNav() # If the user is an administrator, give them access to the administrator pages - if st.session_state["role"] == "administrator": + if st.session_state["role"] == "Student": AdminPageNav() # Always show the About page at the bottom of the list of links From 435625c6f95d0d7cb15fc40061006581bb947f99 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sat, 30 Nov 2024 17:22:36 -0500 Subject: [PATCH 031/305] Create michael_routes.py --- api/backend/products/michael_routes.py | 209 +++++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 api/backend/products/michael_routes.py diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py new file mode 100644 index 0000000000..51c4533afc --- /dev/null +++ b/api/backend/products/michael_routes.py @@ -0,0 +1,209 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## + +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response +from flask import current_app +from backend.db_connection import db + +#------------------------------------------------------------ +# Create a new Blueprint object, which is a collection of +# routes. +products = Blueprint('products', __name__) + +#------------------------------------------------------------ +# Get all the products from the database, package them up, +# and return them to the client +@products.route('/products', methods=['GET']) +def get_products(): + query = ''' + SELECT id, + product_code, + product_name, + list_price, + category + FROM products + ''' + + # get a cursor object from the database + cursor = db.get_db().cursor() + + # use cursor to query the database for a list of products + cursor.execute(query) + + # fetch all the data from the cursor + # The cursor will return the data as a + # Python Dictionary + theData = cursor.fetchall() + + # Create a HTTP Response object and add results of the query to it + # after "jasonify"-ing it. + response = make_response(jsonify(theData)) + # set the proper HTTP Status code of 200 (meaning all good) + response.status_code = 200 + # send the response back to the client + return response + +# ------------------------------------------------------------ +# get product information about a specific product +# notice that the route takes and then you see id +# as a parameter to the function. This is one way to send +# parameterized information into the route handler. +@products.route('/product/', methods=['GET']) +def get_product_detail (id): + + query = f'''SELECT id, + product_name, + description, + list_price, + category + FROM products + WHERE id = {str(id)} + ''' + + # logging the query for debugging purposes. + # The output will appear in the Docker logs output + # This line has nothing to do with actually executing the query... + # It is only for debugging purposes. + current_app.logger.info(f'GET /product/ query={query}') + + # get the database connection, execute the query, and + # fetch the results as a Python Dictionary + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + # Another example of logging for debugging purposes. + # You can see if the data you're getting back is what you expect. + current_app.logger.info(f'GET /product/ Result of query = {theData}') + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +# ------------------------------------------------------------ +# Get the top 5 most expensive products from the database +@products.route('/mostExpensive') +def get_most_pop_products(): + + query = ''' + SELECT product_code, + product_name, + list_price, + reorder_level + FROM products + ORDER BY list_price DESC + LIMIT 5 + ''' + + # Same process as handler above + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +# ------------------------------------------------------------ +# Route to get the 10 most expensive items from the +# database. +@products.route('/tenMostExpensive', methods=['GET']) +def get_10_most_expensive_products(): + + query = ''' + SELECT product_code, + product_name, + list_price, + reorder_level + FROM products + ORDER BY list_price DESC + LIMIT 10 + ''' + + # Same process as above + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + + +# ------------------------------------------------------------ +# This is a POST route to add a new product. +# Remember, we are using POST routes to create new entries +# in the database. +@products.route('/product', methods=['POST']) +def add_new_product(): + + # In a POST request, there is a + # collecting data from the request object + the_data = request.json + current_app.logger.info(the_data) + + #extracting the variable + name = the_data['product_name'] + description = the_data['product_description'] + price = the_data['product_price'] + category = the_data['product_category'] + + query = f''' + INSERT INTO products (product_name, + description, + category, + list_price) + VALUES ('{name}', '{description}', '{category}', {str(price)}) + ''' + # TODO: Make sure the version of the query above works properly + # Constructing the query + # query = 'insert into products (product_name, description, category, list_price) values ("' + # query += name + '", "' + # query += description + '", "' + # query += category + '", ' + # query += str(price) + ')' + current_app.logger.info(query) + + # executing and committing the insert statement + cursor = db.get_db().cursor() + cursor.execute(query) + db.get_db().commit() + + response = make_response("Successfully added product") + response.status_code = 200 + return response + +# ------------------------------------------------------------ +### Get all product categories +@products.route('/categories', methods = ['GET']) +def get_all_categories(): + query = ''' + SELECT DISTINCT category AS label, category as value + FROM products + WHERE category IS NOT NULL + ORDER BY category + ''' + + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +# ------------------------------------------------------------ +# This is a stubbed route to update a product in the catalog +# The SQL query would be an UPDATE. +@products.route('/product', methods = ['PUT']) +def update_product(): + product_info = request.json + current_app.logger.info(product_info) + + return "Success" + From aec29c1991d9d2281d555101970969f2e52e14c3 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sat, 30 Nov 2024 18:12:30 -0500 Subject: [PATCH 032/305] Updating the GET route for tech support analyst persona --- api/backend/products/michael_routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 51c4533afc..48ff6ec485 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -13,13 +13,13 @@ #------------------------------------------------------------ # Create a new Blueprint object, which is a collection of # routes. -products = Blueprint('products', __name__) +tech_support_analyst = Blueprint('tech_support_analyst', __name__) #------------------------------------------------------------ # Get all the products from the database, package them up, # and return them to the client -@products.route('/products', methods=['GET']) -def get_products(): +@tech_support_analyst.route('/tickets', methods=['GET']) +def get_tickets(): query = ''' SELECT id, product_code, From 4b044d12470a4edf65a930b5e5c9000c40f9d3ef Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sat, 30 Nov 2024 18:17:54 -0500 Subject: [PATCH 033/305] Updating the POST and PUT routes for tech support analyst persona --- api/backend/products/michael_routes.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 48ff6ec485..81cd95164b 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -53,7 +53,7 @@ def get_tickets(): # notice that the route takes and then you see id # as a parameter to the function. This is one way to send # parameterized information into the route handler. -@products.route('/product/', methods=['GET']) +@tech_support_analyst.route('/product/', methods=['GET']) def get_product_detail (id): query = f'''SELECT id, @@ -139,8 +139,8 @@ def get_10_most_expensive_products(): # This is a POST route to add a new product. # Remember, we are using POST routes to create new entries # in the database. -@products.route('/product', methods=['POST']) -def add_new_product(): +@tech_support_analyst.route('/chats', methods=['POST']) +def add_new_chats(): # In a POST request, there is a # collecting data from the request object @@ -198,12 +198,12 @@ def get_all_categories(): return response # ------------------------------------------------------------ -# This is a stubbed route to update a product in the catalog +# This is a stubbed route to update a log in the catalog # The SQL query would be an UPDATE. -@products.route('/product', methods = ['PUT']) -def update_product(): - product_info = request.json - current_app.logger.info(product_info) +@tech_support_analyst.route('/logs/{user_id}', methods = ['PUT']) +def update_logs(): + logs_info = request.json + current_app.logger.info(logs_info) return "Success" From 76a4c7456cfa1cff47f7dfb59d8cfba7b021e912 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sat, 30 Nov 2024 18:32:53 -0500 Subject: [PATCH 034/305] Updating to Advisor_Feedback page --- app/src/pages/{21_ML_Model_Mgmt.py => 21_Advisor_Feedback.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename app/src/pages/{21_ML_Model_Mgmt.py => 21_Advisor_Feedback.py} (94%) diff --git a/app/src/pages/21_ML_Model_Mgmt.py b/app/src/pages/21_Advisor_Feedback.py similarity index 94% rename from app/src/pages/21_ML_Model_Mgmt.py rename to app/src/pages/21_Advisor_Feedback.py index 319a755061..859f117bcf 100644 --- a/app/src/pages/21_ML_Model_Mgmt.py +++ b/app/src/pages/21_Advisor_Feedback.py @@ -8,7 +8,7 @@ SideBarLinks() -st.title('App Administration Page') +st.title('Advisor Feedback Page') st.write('\n\n') st.write('## Model 1 Maintenance') From 17477c857b5284fd6fc412d614bd2eef0339e3ad Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sat, 30 Nov 2024 18:36:23 -0500 Subject: [PATCH 035/305] Integrating the Advisor Feedback page in Student Sarah and Kevin --- app/src/pages/20_Student_Kevin_Home.py | 2 +- app/src/pages/40_Student_Sarah_Home.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 6e59a6bcc1..ed7f519eb5 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -14,4 +14,4 @@ if st.button('View Advisor Feedback', type='primary', use_container_width=True): - st.switch_page('pages/21_ML_Model_Mgmt.py') \ No newline at end of file + st.switch_page('pages/21_Advisor_Feedback.py') \ No newline at end of file diff --git a/app/src/pages/40_Student_Sarah_Home.py b/app/src/pages/40_Student_Sarah_Home.py index 6e59a6bcc1..ed7f519eb5 100644 --- a/app/src/pages/40_Student_Sarah_Home.py +++ b/app/src/pages/40_Student_Sarah_Home.py @@ -14,4 +14,4 @@ if st.button('View Advisor Feedback', type='primary', use_container_width=True): - st.switch_page('pages/21_ML_Model_Mgmt.py') \ No newline at end of file + st.switch_page('pages/21_Advisor_Feedback.py') \ No newline at end of file From 12640a4dfeac2d14eaf26fcb0e2caadd9c99768d Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 10:32:18 -0500 Subject: [PATCH 036/305] Create SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 database-files/SyncSpace-data.sql diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql new file mode 100644 index 0000000000..e69de29bb2 From 925d69fdb8c745f2aac7bff67a89d22ea2dd6e7a Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 11:10:35 -0500 Subject: [PATCH 037/305] Update SyncSpaceUpdated.sql --- database-files/SyncSpaceUpdated.sql | 54 +++++++++++++---------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 38ff5531c2..69fed184c3 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -20,18 +20,6 @@ CREATE TABLE IF NOT EXISTS Housing ( Location VARCHAR(100) ); --- Create table for Ticket (needed before SystemHealth and SystemLog) -DROP TABLE IF EXISTS Ticket; -CREATE TABLE IF NOT EXISTS Ticket ( - TicketID INT AUTO_INCREMENT PRIMARY KEY, - UserID INT, - IssueType VARCHAR(50), - Status VARCHAR(50), - Priority VARCHAR(50), - ReceivedDate DATE, - ResolvedDate DATE -); - -- Create table for User DROP TABLE IF EXISTS User; CREATE TABLE IF NOT EXISTS User ( @@ -43,17 +31,17 @@ CREATE TABLE IF NOT EXISTS User ( PermissionsLevel VARCHAR(50) ); --- Create table for Chat -DROP TABLE IF EXISTS Chat; -CREATE TABLE IF NOT EXISTS Chat ( - ChatID INT AUTO_INCREMENT PRIMARY KEY, - SenderID INT, - ReceiverID INT, - Content TEXT, - Time TIMESTAMP, - SupportStaffID INT, - FOREIGN KEY (SenderID) REFERENCES User(UserID), - FOREIGN KEY (ReceiverID) REFERENCES User(UserID) +-- Create table for Ticket (needed before SystemHealth and SystemLog) +DROP TABLE IF EXISTS Ticket; +CREATE TABLE IF NOT EXISTS Ticket ( + TicketID INT AUTO_INCREMENT PRIMARY KEY, + UserID INT, + IssueType VARCHAR(50), + Status VARCHAR(50), + Priority VARCHAR(50), + ReceivedDate DATE, + ResolvedDate DATE, + FOREIGN KEY (UserID) REFERENCES User(UserID) ); -- Create table for Student @@ -78,11 +66,23 @@ CREATE TABLE IF NOT EXISTS Student ( GroupID INT, FeedbackID INT, ChatID INT, - BrowseTo VARCHAR(100), FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), FOREIGN KEY (HousingID) REFERENCES Housing(HousingID) ); +-- Create table for Chat +DROP TABLE IF EXISTS Chat; +CREATE TABLE IF NOT EXISTS Chat ( + ChatID INT AUTO_INCREMENT PRIMARY KEY, + StudentID INT, + Content TEXT, + Time TIMESTAMP, + SupportStaffID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID), + FOREIGN KEY (SupportStaffID) REFERENCES User(UserID) + +); + -- Create table for Events DROP TABLE IF EXISTS Events; CREATE TABLE IF NOT EXISTS Events ( @@ -94,10 +94,6 @@ CREATE TABLE IF NOT EXISTS Events ( FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); --- Add foreign key to User table now that Chat is created -ALTER TABLE User -ADD FOREIGN KEY (ChatID) REFERENCES Chat(ChatID); - -- Create table for Feedback DROP TABLE IF EXISTS Feedback; CREATE TABLE IF NOT EXISTS Feedback ( @@ -135,7 +131,7 @@ CREATE TABLE IF NOT EXISTS Task ( DueDate DATE, Status VARCHAR(50), AdvisorID INT, - FOREIGN KEY (AssignedTo) REFERENCES User(UserID), + FOREIGN KEY (AssignedTo) REFERENCES Student(StudentID), FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID) ); From d6f1d084253400fdbe30e822e7e6fa35b3767b0f Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 11:46:41 -0500 Subject: [PATCH 038/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index e69de29bb2..c60c907cc9 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -0,0 +1,53 @@ +-- CityCommunity Data + +-- Housing Data +insert into Housing (HousingID, Availability, Style, Location) values (1, 'occupied', 'Yurt', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (2, 'occupied', 'Yurt', 'Midtown'); +insert into Housing (HousingID, Availability, Style, Location) values (3, 'vacant', 'Mobile Home', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (4, 'under contract', 'Fraternity/Sorority House', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (5, 'coming soon', 'Apartment', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (6, 'pending inspection', 'Apartment', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (7, 'occupied', 'Tiny House', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (8, 'under contract', 'Loft', 'Downtown'); +insert into Housing (HousingID, Availability, Style, Location) values (9, 'for sale', 'Mobile Home', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (10, 'leased', 'Mobile Home', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (11, 'pending inspection', 'Townhouse', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (12, 'vacant', 'Treehouse', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (13, 'vacant', 'Fraternity/Sorority House', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (14, 'under contract', 'Townhouse', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (15, 'off market', 'Fraternity/Sorority House', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (16, 'under contract', 'Loft', 'Downtown'); +insert into Housing (HousingID, Availability, Style, Location) values (17, 'off market', 'Tiny House', 'Midtown'); +insert into Housing (HousingID, Availability, Style, Location) values (18, 'occupied', 'Apartment', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (19, 'coming soon', 'Cottage', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (20, 'for sale', 'Treehouse', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (21, 'leased', 'Treehouse', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (22, 'for sale', 'Yurt', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (23, 'for sale', 'Yurt', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (24, 'occupied', 'Apartment', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (25, 'occupied', 'Cottage', 'Downtown'); +insert into Housing (HousingID, Availability, Style, Location) values (26, 'off market', 'Apartment', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (27, 'vacant', 'Loft', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (28, 'under contract', 'Tiny House', 'Midtown'); +insert into Housing (HousingID, Availability, Style, Location) values (29, 'leased', 'Yurt', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (30, 'for sale', 'Dormitory', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (31, 'occupied', 'Mobile Home', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (32, 'leased', 'Dormitory', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (33, 'occupied', 'Cottage', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (34, 'off market', 'Yurt', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (35, 'occupied', 'Loft', 'Uptown'); +insert into Housing (HousingID, Availability, Style, Location) values (36, 'pending inspection', 'Tiny House', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (37, 'occupied', 'Fraternity/Sorority House', 'Uptown'); +insert into Housing (HousingID, Availability, Style, Location) values (38, 'under contract', 'Yurt', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (39, 'leased', 'Dormitory', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (40, 'coming soon', 'Tiny House', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (41, 'available', 'Tiny House', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (42, 'available', 'Loft', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (43, 'available', 'Tiny House', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (44, 'pending inspection', 'Yurt', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (45, 'available', 'Townhouse', 'West End'); +insert into Housing (HousingID, Availability, Style, Location) values (46, 'occupied', 'Cottage', 'North End'); +insert into Housing (HousingID, Availability, Style, Location) values (47, 'vacant', 'Townhouse', 'South Side'); +insert into Housing (HousingID, Availability, Style, Location) values (48, 'coming soon', 'Townhouse', 'Midtown'); +insert into Housing (HousingID, Availability, Style, Location) values (49, 'under renovation', 'Cottage', 'Downtown'); +insert into Housing (HousingID, Availability, Style, Location) values (50, 'leased', 'Yurt', 'East Side'); From fef5dd40ea50c65bfdd1c8e02c756f31f32ebdbf Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 12:05:14 -0500 Subject: [PATCH 039/305] generating data inserts --- database-files/SyncSpace-data.sql | 105 ++++++++++++++++++++++++++++ database-files/SyncSpaceUpdated.sql | 1 - 2 files changed, 105 insertions(+), 1 deletion(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index c60c907cc9..61a918f5c8 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -1,4 +1,34 @@ -- CityCommunity Data +insert into CityCommunity (CommunityID, Location) values (1, 'East Side'); +insert into CityCommunity (CommunityID, Location) values (2, 'Midtown'); +insert into CityCommunity (CommunityID, Location) values (3, 'West End'); +insert into CityCommunity (CommunityID, Location) values (4, 'West End'); +insert into CityCommunity (CommunityID, Location) values (5, 'Downtown'); +insert into CityCommunity (CommunityID, Location) values (6, 'Midtown'); +insert into CityCommunity (CommunityID, Location) values (7, 'Uptown'); +insert into CityCommunity (CommunityID, Location) values (8, 'West End'); +insert into CityCommunity (CommunityID, Location) values (9, 'Downtown'); +insert into CityCommunity (CommunityID, Location) values (10, 'West End'); +insert into CityCommunity (CommunityID, Location) values (11, 'East Side'); +insert into CityCommunity (CommunityID, Location) values (12, 'East Side'); +insert into CityCommunity (CommunityID, Location) values (13, 'West End'); +insert into CityCommunity (CommunityID, Location) values (14, 'West End'); +insert into CityCommunity (CommunityID, Location) values (15, 'Downtown'); +insert into CityCommunity (CommunityID, Location) values (16, 'Downtown'); +insert into CityCommunity (CommunityID, Location) values (17, 'West End'); +insert into CityCommunity (CommunityID, Location) values (18, 'West End'); +insert into CityCommunity (CommunityID, Location) values (19, 'Uptown'); +insert into CityCommunity (CommunityID, Location) values (20, 'East Side'); +insert into CityCommunity (CommunityID, Location) values (21, 'East Side'); +insert into CityCommunity (CommunityID, Location) values (22, 'Midtown'); +insert into CityCommunity (CommunityID, Location) values (23, 'Downtown'); +insert into CityCommunity (CommunityID, Location) values (24, 'Midtown'); +insert into CityCommunity (CommunityID, Location) values (25, 'Midtown'); +insert into CityCommunity (CommunityID, Location) values (26, 'Downtown'); +insert into CityCommunity (CommunityID, Location) values (27, 'West End'); +insert into CityCommunity (CommunityID, Location) values (28, 'Midtown'); +insert into CityCommunity (CommunityID, Location) values (29, 'West End'); +insert into CityCommunity (CommunityID, Location) values (30, 'Uptown'); -- Housing Data insert into Housing (HousingID, Availability, Style, Location) values (1, 'occupied', 'Yurt', 'North End'); @@ -51,3 +81,78 @@ insert into Housing (HousingID, Availability, Style, Location) values (47, 'vaca insert into Housing (HousingID, Availability, Style, Location) values (48, 'coming soon', 'Townhouse', 'Midtown'); insert into Housing (HousingID, Availability, Style, Location) values (49, 'under renovation', 'Cottage', 'Downtown'); insert into Housing (HousingID, Availability, Style, Location) values (50, 'leased', 'Yurt', 'East Side'); + +-- User data +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (1, 'Letizia Cabell', 'lcabell0@wikispaces.com', 'IT Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (2, 'Mira Lynock', 'mlynock1@webnode.com', 'IT Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (3, 'Caro Molnar', 'cmolnar2@digg.com', 'IT Administrator', 'limited'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (4, 'Christos Boulsher', 'cboulsher3@admin.ch', 'System Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (5, 'Jess Leneve', 'jleneve4@archive.org', 'IT Administrator', 'user'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (6, 'Jordan Harfoot', 'jharfoot5@1688.com', 'IT Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (7, 'Yorke Leyzell', 'yleyzell6@cmu.edu', 'Network Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (8, 'Sigrid Kigelman', 'skigelman7@washington.edu', 'System Administrator', 'user'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (9, 'Feodora Blackaller', 'fblackaller8@usnews.com', 'Network Administrator', 'user'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (10, 'Ambrose Jeandon', 'ajeandon9@unicef.org', 'Network Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (11, 'Spence Chastey', 'schasteya@china.com.cn', 'System Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (12, 'Eartha Colqueran', 'ecolqueranb@apple.com', 'System Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (13, 'Kinna Woolsey', 'kwoolseyc@homestead.com', 'IT Administrator', 'moderator'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (14, 'Nathan Tolworthie', 'ntolworthied@spotify.com', 'System Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (15, 'Diane Cancellieri', 'dcancellierie@qq.com', 'Network Administrator', 'limited'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (16, 'Horatio Purdon', 'hpurdonf@histats.com', 'IT Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (17, 'Elvin Danes', 'edanesg@japanpost.jp', 'Network Administrator', 'moderator'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (18, 'Dori Callow', 'dcallowh@mac.com', 'IT Administrator', 'user'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (19, 'Ediva Malter', 'emalteri@craigslist.org', 'IT Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (20, 'Lyn Paskerful', 'lpaskerfulj@yellowpages.com', 'System Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (21, 'Arleta Clayden', 'aclaydenk@discovery.com', 'System Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (22, 'Marietta Ropars', 'mroparsl@purevolume.com', 'Network Administrator', 'moderator'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (23, 'Brade O''Rodane', 'borodanem@sohu.com', 'Network Administrator', 'admin'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (24, 'Cammy Crichmere', 'ccrichmeren@mediafire.com', 'Network Administrator', 'user'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (25, 'Elwira Szymanzyk', 'eszymanzyko@noaa.gov', 'System Administrator', 'limited'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (26, 'Lorenzo Duerdin', 'lduerdinp@java.com', 'System Administrator', 'moderator'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (27, 'Austin Latchmore', 'alatchmoreq@pen.io', 'IT Administrator', 'user'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (28, 'Park Brettell', 'pbrettellr@reddit.com', 'Network Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (29, 'Bess MacMichael', 'bmacmichaels@spotify.com', 'System Administrator', 'user'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (30, 'Pedro Gatherer', 'pgatherert@vkontakte.ru', 'IT Administrator', 'user'); + +-- Ticket +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (1, 1, 'search function not working', 'completed', 'Medium', '4/5/2024', '2/4/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (2, 2, 'payment processing error', 'completed', 'Medium', '10/2/2024', '5/15/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (3, 3, 'video playback issue', 'cancelled', 'Low', '5/21/2024', '6/8/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (4, 4, 'page not loading', 'cancelled', 'High', '5/30/2024', '3/22/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (5, 5, 'broken link', 'cancelled', 'High', '12/26/2023', '11/23/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (6, 6, 'payment processing error', 'pending', 'High', '2/12/2024', '1/19/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (7, 7, 'missing images', 'pending', 'Low', '7/18/2024', '6/13/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (8, 8, 'incorrect password', 'pending', 'Medium', '7/29/2024', '1/2/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (9, 9, 'login error', 'completed', 'Medium', '2/22/2024', '9/28/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (10, 10, 'page not loading', 'pending', 'High', '7/24/2024', '5/24/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (11, 11, 'search function not working', 'pending', 'High', '1/25/2024', '7/7/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (12, 12, 'payment processing error', 'cancelled', 'Low', '5/25/2024', '5/22/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (13, 13, 'formatting problem', 'pending', 'Low', '1/12/2024', '9/8/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (14, 14, 'missing images', 'cancelled', 'Low', '1/12/2024', '1/18/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (15, 15, 'search function not working', 'cancelled', 'Medium', '1/3/2024', '5/23/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (16, 16, 'slow performance', 'completed', 'Low', '2/16/2024', '9/30/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (17, 17, 'slow performance', 'pending', 'High', '3/27/2024', '7/2/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (18, 18, 'payment processing error', 'pending', 'Medium', '8/14/2024', '10/16/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (19, 19, 'payment processing error', 'pending', 'Medium', '8/20/2024', '10/6/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (20, 20, 'missing images', 'pending', 'High', '8/12/2024', '11/14/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (21, 21, 'broken link', 'pending', 'Medium', '1/15/2024', '4/20/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (22, 22, 'payment processing error', 'pending', 'Low', '12/9/2023', '1/23/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (23, 23, 'search function not working', 'completed', 'Medium', '2/5/2024', '2/18/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (24, 24, 'formatting problem', 'completed', 'Low', '4/6/2024', '8/9/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (25, 25, 'video playback issue', 'pending', 'High', '8/22/2024', '8/19/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (26, 26, 'search function not working', 'pending', 'Medium', '7/19/2024', '9/25/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (27, 27, 'broken link', 'cancelled', 'High', '5/20/2024', '1/22/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (28, 28, 'broken link', 'cancelled', 'High', '7/23/2024', '12/3/2023'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (29, 29, 'broken link', 'pending', 'Low', '10/16/2024', '7/15/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (30, 30, 'login error', 'completed', 'Low', '7/8/2024', '3/14/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (31, 31, 'formatting problem', 'cancelled', 'High', '11/2/2024', '2/13/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (32, 32, 'incorrect password', 'cancelled', 'Medium', '5/2/2024', '1/2/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (33, 33, 'missing images', 'completed', 'Low', '3/28/2024', '3/10/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (34, 34, 'slow performance', 'completed', 'High', '7/4/2024', '3/22/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '3/20/2024', '6/17/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (36, 36, 'incorrect password', 'completed', 'Low', '12/28/2023', '5/24/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (37, 37, 'formatting problem', 'cancelled', 'High', '5/16/2024', '8/2/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (38, 38, 'slow performance', 'pending', 'High', '1/5/2024', '1/2/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (39, 39, 'page not loading', 'completed', 'Medium', '5/21/2024', '6/8/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (40, 40, 'incorrect password', 'cancelled', 'High', '2/18/2024', '11/18/2024'); + diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 69fed184c3..0c3b8d141c 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -24,7 +24,6 @@ CREATE TABLE IF NOT EXISTS Housing ( DROP TABLE IF EXISTS User; CREATE TABLE IF NOT EXISTS User ( UserID INT AUTO_INCREMENT PRIMARY KEY, - ChatID INT, Name VARCHAR(100), Email VARCHAR(100), Role VARCHAR(50), From 4f1c5fb3d40b5915cca0d7c7096e1b58c2567c66 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 12:36:33 -0500 Subject: [PATCH 040/305] data updates --- database-files/SyncSpace-data.sql | 124 +++++++++++++++++++++++----- database-files/SyncSpaceUpdated.sql | 6 +- 2 files changed, 105 insertions(+), 25 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 61a918f5c8..72c25392a7 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -9,26 +9,7 @@ insert into CityCommunity (CommunityID, Location) values (7, 'Uptown'); insert into CityCommunity (CommunityID, Location) values (8, 'West End'); insert into CityCommunity (CommunityID, Location) values (9, 'Downtown'); insert into CityCommunity (CommunityID, Location) values (10, 'West End'); -insert into CityCommunity (CommunityID, Location) values (11, 'East Side'); -insert into CityCommunity (CommunityID, Location) values (12, 'East Side'); -insert into CityCommunity (CommunityID, Location) values (13, 'West End'); -insert into CityCommunity (CommunityID, Location) values (14, 'West End'); -insert into CityCommunity (CommunityID, Location) values (15, 'Downtown'); -insert into CityCommunity (CommunityID, Location) values (16, 'Downtown'); -insert into CityCommunity (CommunityID, Location) values (17, 'West End'); -insert into CityCommunity (CommunityID, Location) values (18, 'West End'); -insert into CityCommunity (CommunityID, Location) values (19, 'Uptown'); -insert into CityCommunity (CommunityID, Location) values (20, 'East Side'); -insert into CityCommunity (CommunityID, Location) values (21, 'East Side'); -insert into CityCommunity (CommunityID, Location) values (22, 'Midtown'); -insert into CityCommunity (CommunityID, Location) values (23, 'Downtown'); -insert into CityCommunity (CommunityID, Location) values (24, 'Midtown'); -insert into CityCommunity (CommunityID, Location) values (25, 'Midtown'); -insert into CityCommunity (CommunityID, Location) values (26, 'Downtown'); -insert into CityCommunity (CommunityID, Location) values (27, 'West End'); -insert into CityCommunity (CommunityID, Location) values (28, 'Midtown'); -insert into CityCommunity (CommunityID, Location) values (29, 'West End'); -insert into CityCommunity (CommunityID, Location) values (30, 'Uptown'); + -- Housing Data insert into Housing (HousingID, Availability, Style, Location) values (1, 'occupied', 'Yurt', 'North End'); @@ -156,3 +137,106 @@ insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (39, 39, 'page not loading', 'completed', 'Medium', '5/21/2024', '6/8/2024'); insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (40, 40, 'incorrect password', 'cancelled', 'High', '2/18/2024', '11/18/2024'); +-- Student data +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (1, 'Rhett Pepperell', 'Biology', 'Seattle', 'Innotype', 'Not interested', 'Has Car', '$1200', '6 months', 'Neat', 'Night-Owl', 40, 6, 'Enjoys gardening and growing own vegetables', '3', 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (2, 'Tuesday Passie', 'Physics', 'London', 'Babbleset', 'Has Housing', 'Not interested', '$1000', '1 year', 'Minimal', 'Independent', 15, 7, 'Enjoys reading mystery novels and solving puzzles', '10', 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (3, 'Lorenzo Eyre', 'Sociology', 'Chicago', 'Aimbo', 'Looking for Roommates', 'Offering Carpool', '$300', '6 months', 'Minimal', 'Quiet', 40, 2, 'Passionate about cooking and trying new recipes', '2', 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (4, 'Gavrielle Devennie', 'Psychology', 'New York City', 'Mycat', 'Not interested', 'Not interested', '$1300', '4 months', 'Cluttered', 'Active', 30, 6, 'Passionate about volunteering and giving back to the community', '7', 27); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (5, 'Gordan Lucio', 'Psychology', 'Chicago', 'Realfire', 'Has Housing', 'Looking for Carpool', '$1400', '6 months', 'Minimal', 'Independent', 40, 4, 'Loves animals and volunteering at animal shelters', '9', 34); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (6, 'Rona Readie', 'Psychology', 'New York City', 'Chatterbridge', 'Offering Housing', 'Not interested', '$1200', '6 months', 'Neat', 'Night-Owl', 10, 5, 'Fascinated by astronomy and stargazing', '7', 31); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (7, 'Monica Fogden', 'Physics', 'San Francisco', 'Kayveo', 'Offering Housing', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Active', 25, 2, 'Passionate about environmental conservation and sustainability', '7', 50); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (8, 'Ramonda Presswell', 'Sociology', 'Seattle', 'Thoughtbeat', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Spotless', 'Independent', 45, 4, 'Adventurous spirit with a love for travel and experiencing new cultures', '4', 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (9, 'Jerrome Lathan', 'Physics', 'Seattle', 'Tagtune', 'Not interested', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Extroverted', 25, 4, 'Enjoys reading mystery novels and solving puzzles', '10', 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (10, 'Gerta Parfett', 'Sociology', 'Boston', 'Thoughtsphere', 'Offering Housing', 'Not interested', '$1400', '1 year', 'Organized', 'Independent', 15, 3, 'Passionate about environmental conservation and sustainability', '4', 1); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (11, 'Toiboid Caroll', 'Psychology', 'New York City', 'Devpoint', 'Offering Housing', 'Carpool Established', '$1600', '4 months', 'Neat', 'Introverted', 35, 5, 'Fascinated by technology and exploring new gadgets', '9', 40); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (12, 'Bryant Bradborne', 'Art', 'London', 'Meedoo', 'Looking for Roommates', 'Has Car', '$800', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Loves watching documentaries and learning about different topics', '', 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (13, 'Barnabe Whear', 'Biology', 'Boston', 'Livetube', 'Has Housing', 'Has Car', '$1100', '6 months', 'Minimal', 'Studious', 15, 1, 'Fascinated by history and visiting historical sites', '7', 13); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (14, 'Rossie Franzoli', 'Psychology', 'Seattle', 'Eare', 'Offering Housing', 'Carpool Established', '$300', '4 months', 'Messy', 'Extroverted', 20, 1, 'Enjoys reading mystery novels and solving puzzles', '4', 20); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (15, 'Anatola Catterill', 'Psychology', 'Seattle', 'Bluezoom', 'Has Housing', 'Not interested', '$900', '6 months', 'Neat', 'Introverted', 30, 6, 'Loves hiking and exploring new trails', '', 32); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (16, 'Hy Agglio', 'Biology', 'Chicago', 'Feedfish', 'Offering Housing', 'Not interested', '$2000', '1 year', 'Messy', 'Independent', 15, 3, 'Loves watching documentaries and learning about different topics', '2', 43); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (17, 'Mal Julien', 'Biology', 'Los Angeles', 'Rhycero', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Social', 15, 6, 'Fascinated by psychology and understanding human behavior', '7', 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (18, 'Odelia Willicott', 'Art', 'London', 'Yombu', 'Offering Housing', 'Looking for Carpool', '$1300', '6 months', 'Cluttered', 'Studious', 50, 4, 'Loves animals and volunteering at animal shelters', '3', 15); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (19, 'Hurlee Paynes', 'Mathematics', 'London', 'Jayo', 'Not interested', 'Carpool Established', '$900', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Fascinated by astronomy and stargazing', '', 5); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (20, 'Krysta Quinion', 'Mathematics', 'Seattle', 'Wordify', 'Offering Housing', 'Looking for Carpool', '$1600', '6 months', 'Minimal', 'Studious', 25, 7, 'Enjoys DIY projects and crafting handmade items', '4', 49); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (21, 'Shanda Feld', 'Physics', 'Chicago', 'Jamia', 'Offering Housing', 'Carpool Established', '$1200', '1 year', 'Organized', 'Night-Owl', 55, 3, 'Fascinated by history and visiting historical sites', '8', 24); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (22, 'Lari Panchen', 'Psychology', 'San Francisco', 'Youtags', 'Not interested', 'Carpool Established', '$1900', '1 year', 'Minimal', 'Extroverted', 25, 7, 'Fascinated by history and visiting historical sites', '7', 23); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (23, 'Stevie Atkin', 'Sociology', 'London', 'Ooba', 'Looking for Roommates', 'Not interested', '$1500', '4 months', 'Spotless', 'Social', 50, 1, 'Passionate about environmental conservation and sustainability', '', 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (24, 'Bobette Drohane', 'Biology', 'Los Angeles', 'Mybuzz', 'Not interested', 'Offering Carpool', '$1800', '4 months', 'Cluttered', 'Quiet', 20, 5, 'Loves hiking and exploring new trails', '9', 27); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (25, 'Boot Marushak', 'Finance', 'San Jose', 'Topicware', 'Has Housing', 'Looking for Carpool', '$600', '1 year', 'Neat', 'Social', 25, 2, 'Enjoys reading mystery novels and solving puzzles', '8', 19); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (26, 'Malory Cotgrave', 'Data Science', 'Boston', 'Jabberstorm', 'Looking for Roommates', 'Offering Carpool', '$900', '4 months', 'Spotless', 'Night-Owl', 35, 7, 'Enjoys photography and capturing beautiful moments', '8', 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (27, 'Jody Brownbridge', 'Psychology', 'London', 'Tavu', 'Looking for Roommates', 'Not interested', '$1700', '4 months', 'Cluttered', 'Night-Owl', 20, 7, 'Passionate about volunteering and giving back to the community', '3', 2); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (28, 'Bethanne Triggs', 'Computer Science', 'San Jose', 'Topdrive', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Quiet', 20, 6, 'Fascinated by psychology and understanding human behavior', '10', 39); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (29, 'Shelley Drohan', 'Finance', 'London', 'Omba', 'Has Housing', 'Has Car', '$800', '4 months', 'Cluttered', 'Night-Owl', 45, 1, 'Fascinated by technology and exploring new gadgets', '7', 42); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (30, 'Cris Roullier', 'Chemistry', 'San Jose', 'Shufflebeat', 'Not interested', 'Has Car', '$1500', '1 year', 'Cluttered', 'Social', 25, 5, 'Loves playing musical instruments and composing music', '4', 24); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (31, 'Mercie Dury', 'Computer Science', 'Seattle', 'Edgeblab', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Cluttered', 'Introverted', 45, 6, 'Loves animals and volunteering at animal shelters', '3', 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (32, 'Angelia Edgecombe', 'Mathematics', 'San Francisco', 'Youspan', 'Offering Housing', 'Has Car', '$900', '1 year', 'Messy', 'Studious', 35, 1, 'Enjoys painting and expressing creativity through art', '9', 6); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (33, 'Sigmund Adderley', 'Biology', 'D.C.', 'Divanoodle', 'Has Housing', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Extroverted', 15, 5, 'Passionate about environmental conservation and sustainability', '3', 21); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (34, 'Tedda Fincher', 'Finance', 'Chicago', 'Jaloo', 'Offering Housing', 'Not interested', '$900', '1 year', 'Neat', 'Active', 10, 4, 'Passionate about fitness and leading a healthy lifestyle', '1', 48); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (35, 'Vivian Kilgallen', 'Art', 'New York City', 'Dabshots', 'Looking for Roommates', 'Has Car', '$1100', '4 months', 'Messy', 'Active', 25, 4, 'Fascinated by psychology and understanding human behavior', '7', 13); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (36, 'Polly Danielut', 'Chemistry', 'Boston', 'Jabbersphere', 'Offering Housing', 'Offering Carpool', '$1700', '6 months', 'Organized', 'Studious', 25, 4, 'Loves hiking and exploring new trails', '10', 1); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (37, 'Carlina Berrow', 'Sociology', 'D.C.', 'Youspan', 'Looking for Roommates', 'Carpool Established', '$700', '6 months', 'Neat', 'Active', 30, 1, 'Fascinated by technology and exploring new gadgets', '1', 7); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (38, 'Caesar Belvin', 'Psychology', 'New York City', 'Topicshots', 'Looking for Housing', 'Has Car', '$2500', '6 months', 'Neat', 'Studious', 35, 2, 'Enjoys painting and expressing creativity through art', '10', 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (39, 'Maris Dark', 'Physics', 'Boston', 'Youspan', 'Looking for Roommates', 'Not interested', '$1200', '1 year', 'Spotless', 'Social', 55, 5, 'Enjoys photography and capturing beautiful moments', '', 42); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (40, 'Philippine Wrintmore', 'Sociology', 'Los Angeles', 'Flipbug', 'Offering Housing', 'Not interested', '$700', '4 months', 'Spotless', 'Introverted', 30, 7, 'Enjoys painting and expressing creativity through art', '10', 2); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (41, 'Niko Maidens', 'Biology', 'New York City', 'Yabox', 'Offering Housing', 'Looking for Carpool', '$1000', '4 months', 'Minimal', 'Studious', 45, 5, 'Loves animals and volunteering at animal shelters', '2', 3); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (42, 'Trey Poskitt', 'Art', 'D.C.', 'Pixope', 'Has Housing', 'Offering Carpool', '$400', '1 year', 'Cluttered', 'Studious', 55, 2, 'Loves playing musical instruments and composing music', '10', 18); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (43, 'El Wessing', 'Data Science', 'Boston', 'Yombu', 'Has Housing', 'Not interested', '$1800', '4 months', 'Neat', 'Social', 15, 3, 'Passionate about environmental conservation and sustainability', '1', 10); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (44, 'Opal Adel', 'Data Science', 'D.C.', 'Wordpedia', 'Not interested', 'Looking for Carpool', '$1800', '4 months', 'Spotless', 'Extroverted', 10, 3, 'Enjoys DIY projects and crafting handmade items', '8', 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (45, 'Gertrud Obeney', 'Finance', 'San Francisco', 'Eare', 'Looking for Roommates', 'Looking for Carpool', '$1900', '1 year', 'Spotless', 'Night-Owl', 45, 7, 'Fascinated by history and visiting historical sites', '9', 21); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (46, 'Mandel Raffeorty', 'Sociology', 'London', 'Yamia', 'Has Housing', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Active', 35, 4, 'Loves playing musical instruments and composing music', '4', 49); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (47, 'Chickie Handforth', 'Physics', 'Chicago', 'Zava', 'Offering Housing', 'Looking for Carpool', '$1700', '1 year', 'Organized', 'Independent', 50, 6, 'Enjoys photography and capturing beautiful moments', '2', 49); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (48, 'Kalie Moiser', 'Biology', 'New York City', 'Vimbo', 'Looking for Roommates', 'Looking for Carpool', '$1900', '4 months', 'Minimal', 'Night-Owl', 15, 3, 'Fascinated by astronomy and stargazing', '1', 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (49, 'Callida Tunno', 'Mathematics', 'London', 'Twiyo', 'Not interested', 'Carpool Established', '$1100', '1 year', 'Minimal', 'Studious', 35, 5, 'Enjoys photography and capturing beautiful moments', '1', 12); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (50, 'Elsy Karlowicz', 'Physics', 'San Jose', 'Flipstorm', 'Looking for Housing', 'Looking for Carpool', '$600', '6 months', 'Spotless', 'Extroverted', 30, 5, 'Loves hiking and exploring new trails', '3', 11); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (51, 'Corbin Ishaki', 'Sociology', 'Chicago', 'Buzzster', 'Not interested', 'Carpool Established', '$1000', '1 year', 'Minimal', 'Independent', 30, 1, 'Loves playing musical instruments and composing music', '9', 7); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (52, 'Aurie Wakeman', 'Computer Science', 'Los Angeles', 'Yozio', 'Looking for Roommates', 'Carpool Established', '$1200', '6 months', 'Organized', 'Independent', 25, 4, 'Enjoys photography and capturing beautiful moments', '2', 12); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (53, 'Kirstyn Busby', 'Biology', 'San Francisco', 'Fiveclub', 'Looking for Housing', 'Offering Carpool', '$800', '6 months', 'Cluttered', 'Introverted', 25, 7, 'Passionate about cooking and trying new recipes', '7', 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (54, 'Garreth Dusting', 'Mathematics', 'San Francisco', 'Voonte', 'Not interested', 'Has Car', '$2000', '1 year', 'Cluttered', 'Quiet', 55, 2, 'Passionate about volunteering and giving back to the community', '', 12); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (55, 'Kyle Gerardot', 'Chemistry', 'Boston', 'Roomm', 'Not interested', 'Offering Carpool', '$1300', '4 months', 'Cluttered', 'Introverted', 20, 4, 'Loves playing musical instruments and composing music', '2', 42); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (56, 'Dannel Reuben', 'Physics', 'D.C.', 'Thoughtblab', 'Looking for Housing', 'Carpool Established', '$1700', '4 months', 'Organized', 'Studious', 45, 2, 'Enjoys painting and expressing creativity through art', '6', 26); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (57, 'Ted Yukhnov', 'Chemistry', 'Los Angeles', 'Feedbug', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Spotless', 'Quiet', 15, 7, 'Loves hiking and exploring new trails', '5', 21); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (58, 'Ethe Alven', 'Data Science', 'San Jose', 'Edgeify', 'Offering Housing', 'Offering Carpool', '$1100', '4 months', 'Minimal', 'Extroverted', 30, 5, 'Passionate about volunteering and giving back to the community', '2', 7); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (59, 'Fernando Mouse', 'Chemistry', 'New York City', 'Voolia', 'Looking for Roommates', 'Carpool Established', '$900', '6 months', 'Messy', 'Active', 30, 3, 'Loves playing musical instruments and composing music', '8', 32); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (60, 'Rockie Elner', 'Psychology', 'Los Angeles', 'Yamia', 'Looking for Housing', 'Not interested', '$1400', '1 year', 'Spotless', 'Introverted', 35, 7, 'Loves playing musical instruments and composing music', '3', 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (61, 'Coretta Scarasbrick', 'Biology', 'Seattle', 'Photojam', 'Not interested', 'Looking for Carpool', '$700', '4 months', 'Minimal', 'Extroverted', 55, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', '1', 25); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (62, 'Consolata Danzelman', 'Biology', 'Seattle', 'Youbridge', 'Has Housing', 'Carpool Established', '$700', '6 months', 'Organized', 'Studious', 10, 6, 'Enjoys yoga and meditation for relaxation', '8', 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (63, 'Charles Server', 'Art', 'Los Angeles', 'Feedbug', 'Looking for Roommates', 'Not interested', '$1700', '6 months', 'Minimal', 'Social', 55, 7, 'Enjoys reading mystery novels and solving puzzles', '3', 13); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (64, 'Rosalynd Mowat', 'Computer Science', 'San Jose', 'Eamia', 'Has Housing', 'Offering Carpool', '$700', '1 year', 'Cluttered', 'Introverted', 10, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', '9', 31); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (65, 'Janeva Winton', 'Biology', 'Chicago', 'Dynazzy', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Neat', 'Independent', 30, 7, 'Passionate about cooking and trying new recipes', '5', 30); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (66, 'Blakeley McFayden', 'Psychology', 'New York City', 'Trunyx', 'Offering Housing', 'Has Car', '$1200', '4 months', 'Neat', 'Active', 20, 7, 'Enjoys photography and capturing beautiful moments', '10', 49); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (67, 'Marian Aguirre', 'Computer Science', 'San Francisco', 'Wikibox', 'Offering Housing', 'Carpool Established', '$300', '6 months', 'Messy', 'Extroverted', 10, 6, 'Fascinated by psychology and understanding human behavior', '3', 34); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (68, 'Sergei Piper', 'Biology', 'San Francisco', 'Topicshots', 'Not interested', 'Has Car', '$600', '1 year', 'Spotless', 'Social', 40, 7, 'Enjoys watching sports and playing recreational games', '10', 4); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (69, 'Dania Roust', 'Computer Science', 'Boston', 'Cogidoo', 'Looking for Roommates', 'Has Car', '$900', '1 year', 'Messy', 'Quiet', 30, 2, 'Passionate about cooking and trying new recipes', '3', 6); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (70, 'Joane Bavidge', 'Physics', 'San Francisco', 'Yakidoo', 'Looking for Roommates', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Independent', 55, 7, 'Passionate about fitness and leading a healthy lifestyle', '10', 50); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (71, 'Maisie Huyghe', 'Sociology', 'New York City', 'Linkbuzz', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Messy', 'Active', 55, 4, 'Passionate about environmental conservation and sustainability', '1', 47); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (72, 'Ulrich Grolle', 'Computer Science', 'Los Angeles', 'Thoughtbeat', 'Looking for Roommates', 'Carpool Established', '$1700', '4 months', 'Cluttered', 'Social', 10, 4, 'Loves playing musical instruments and composing music', '7', 41); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (73, 'Thor Symington', 'Data Science', 'New York City', 'Nlounge', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Minimal', 'Night-Owl', 55, 1, 'Passionate about environmental conservation and sustainability', '4', 10); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (74, 'Penelopa Peet', 'Chemistry', 'Seattle', 'Dazzlesphere', 'Looking for Housing', 'Not interested', '$900', '1 year', 'Organized', 'Active', 55, 6, 'Loves playing musical instruments and composing music', '5', 33); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (75, 'Sanson Shenley', 'Biology', 'Chicago', 'Myworks', 'Not interested', 'Looking for Carpool', '$300', '6 months', 'Neat', 'Social', 10, 2, 'Enjoys painting and expressing creativity through art', '3', 27); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (76, 'Dorian Ingry', 'Mathematics', 'Boston', 'Zoonder', 'Looking for Housing', 'Looking for Carpool', '$1300', '4 months', 'Spotless', 'Night-Owl', 45, 6, 'Loves animals and volunteering at animal shelters', '3', 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (77, 'Gerri De Ambrosis', 'Computer Science', 'Boston', 'Tagchat', 'Offering Housing', 'Has Car', '$1600', '1 year', 'Organized', 'Social', 40, 6, 'Fascinated by psychology and understanding human behavior', '9', 30); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (78, 'Delly Benediktovich', 'Psychology', 'San Francisco', 'Pixonyx', 'Looking for Housing', 'Carpool Established', '$1400', '4 months', 'Neat', 'Extroverted', 30, 6, 'Loves watching documentaries and learning about different topics', '8', 41); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (79, 'Maurie Silverman', 'Psychology', 'Chicago', 'Skajo', 'Offering Housing', 'Has Car', '$1300', '1 year', 'Messy', 'Active', 20, 2, 'Enjoys DIY projects and crafting handmade items', '8', 28); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (80, 'Yetty Lippo', 'Sociology', 'New York City', 'Oyoyo', 'Not interested', 'Has Car', '$2000', '4 months', 'Organized', 'Night-Owl', 25, 1, 'Enjoys DIY projects and crafting handmade items', '6', 33); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (81, 'Fredelia Pinck', 'Mathematics', 'San Francisco', 'Leexo', 'Looking for Housing', 'Has Car', '$1500', '4 months', 'Spotless', 'Introverted', 15, 6, 'Loves hiking and exploring new trails', '10', 30); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (82, 'Darius Bessent', 'Psychology', 'Boston', 'Devpoint', 'Not interested', 'Not interested', '$1300', '6 months', 'Cluttered', 'Active', 45, 4, 'Passionate about volunteering and giving back to the community', '3', 31); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (83, 'Micheal Goodluck', 'Chemistry', 'Boston', 'Jayo', 'Offering Housing', 'Not interested', '$800', '4 months', 'Minimal', 'Extroverted', 25, 6, 'Passionate about environmental conservation and sustainability', '9', 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (84, 'Jordan Marcq', 'Chemistry', 'Seattle', 'Tavu', 'Looking for Housing', 'Offering Carpool', '$400', '4 months', 'Cluttered', 'Introverted', 10, 5, 'Fascinated by astronomy and stargazing', '5', 37); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (85, 'Sibeal Stockhill', 'Computer Science', 'Boston', 'Mydo', 'Not interested', 'Not interested', '$800', '6 months', 'Neat', 'Quiet', 10, 1, 'Passionate about cooking and trying new recipes', '3', 41); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (86, 'Will Guerry', 'Data Science', 'Seattle', 'Quimm', 'Offering Housing', 'Offering Carpool', '$1700', '4 months', 'Organized', 'Introverted', 20, 6, 'Loves animals and volunteering at animal shelters', '3', 23); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (87, 'Abbe Macari', 'Data Science', 'Boston', 'Fivespan', 'Has Housing', 'Has Car', '$900', '6 months', 'Organized', 'Studious', 35, 2, 'Fascinated by astronomy and stargazing', '', 35); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (88, 'Hayward Kirvell', 'Data Science', 'New York City', 'Twitterlist', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Cluttered', 'Night-Owl', 35, 5, 'Loves hiking and exploring new trails', '6', 9); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (89, 'Hamnet Rosenkrantz', 'Psychology', 'Boston', 'Roombo', 'Not interested', 'Looking for Carpool', '$1100', '4 months', 'Organized', 'Extroverted', 40, 4, 'Enjoys watching sports and playing recreational games', '2', 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (90, 'Caria Trimming', 'Finance', 'New York City', 'Quamba', 'Offering Housing', 'Not interested', '$1000', '1 year', 'Messy', 'Night-Owl', 50, 1, 'Loves watching documentaries and learning about different topics', '4', 14); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (91, 'Eberto Lindbergh', 'Chemistry', 'Chicago', 'Thoughtbridge', 'Has Housing', 'Carpool Established', '$1500', '1 year', 'Cluttered', 'Independent', 55, 2, 'Loves watching documentaries and learning about different topics', '4', 1); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (92, 'Romeo Sheahan', 'Psychology', 'San Jose', 'Edgetag', 'Offering Housing', 'Not interested', '$1600', '1 year', 'Cluttered', 'Night-Owl', 20, 1, 'Enjoys DIY projects and crafting handmade items', '6', 24); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (93, 'Alli O''Downe', 'Finance', 'Seattle', 'Yombu', 'Looking for Roommates', 'Not interested', '$1700', '1 year', 'Minimal', 'Introverted', 20, 7, 'Passionate about environmental conservation and sustainability', '9', 6); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (94, 'Olag Hembling', 'Biology', 'Seattle', 'Riffpath', 'Looking for Roommates', 'Looking for Carpool', '$1500', '6 months', 'Organized', 'Introverted', 55, 7, 'Loves playing musical instruments and composing music', '4', 11); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (95, 'Waite Frediani', 'Sociology', 'New York City', 'Devshare', 'Offering Housing', 'Has Car', '$300', '1 year', 'Spotless', 'Extroverted', 40, 7, 'Passionate about volunteering and giving back to the community', '6', 16); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (96, 'Cynde Simeoli', 'Data Science', 'San Francisco', 'Youspan', 'Has Housing', 'Looking for Carpool', '$2000', '1 year', 'Messy', 'Active', 10, 2, 'Enjoys yoga and meditation for relaxation', '1', 43); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (97, 'Gonzalo Yeowell', 'Sociology', 'Seattle', 'Zoomlounge', 'Offering Housing', 'Looking for Carpool', '$2000', '4 months', 'Minimal', 'Quiet', 10, 6, 'Enjoys watching sports and playing recreational games', '1', 15); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (98, 'Darlene Baillie', 'Art', 'San Jose', 'Meembee', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Extroverted', 35, 1, 'Passionate about fitness and leading a healthy lifestyle', '2', 25); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (99, 'Emmalyn Kneaphsey', 'Art', 'Boston', 'Jayo', 'Offering Housing', 'Looking for Carpool', '$1500', '4 months', 'Organized', 'Night-Owl', 35, 6, 'Enjoys reading mystery novels and solving puzzles', '2', 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (100, 'Farlay Mathivon', 'Sociology', 'San Jose', 'Eare', 'Not interested', 'Not interested', '$400', '4 months', 'Cluttered', 'Active', 40, 2, 'Loves playing musical instruments and composing music', '4', 1); + + diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 0c3b8d141c..6d03b3be18 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -59,12 +59,9 @@ CREATE TABLE IF NOT EXISTS Student ( Lifestyle VARCHAR(50), CommuteTime INT, CommuteDays INT, - Interests TEXT, + Bio TEXT, CommunityID INT, HousingID INT, - GroupID INT, - FeedbackID INT, - ChatID INT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), FOREIGN KEY (HousingID) REFERENCES Housing(HousingID) ); @@ -79,7 +76,6 @@ CREATE TABLE IF NOT EXISTS Chat ( SupportStaffID INT, FOREIGN KEY (StudentID) REFERENCES Student(StudentID), FOREIGN KEY (SupportStaffID) REFERENCES User(UserID) - ); -- Create table for Events From 598ca07e266c699443ab823e943086a72cec72c4 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:08:49 -0500 Subject: [PATCH 041/305] updates --- database-files/SyncSpace-data.sql | 283 ++++++++++++++++++++++------ database-files/SyncSpaceUpdated.sql | 2 +- 2 files changed, 224 insertions(+), 61 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 72c25392a7..fc761d6473 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -1,67 +1,67 @@ -- CityCommunity Data -insert into CityCommunity (CommunityID, Location) values (1, 'East Side'); -insert into CityCommunity (CommunityID, Location) values (2, 'Midtown'); -insert into CityCommunity (CommunityID, Location) values (3, 'West End'); -insert into CityCommunity (CommunityID, Location) values (4, 'West End'); -insert into CityCommunity (CommunityID, Location) values (5, 'Downtown'); -insert into CityCommunity (CommunityID, Location) values (6, 'Midtown'); -insert into CityCommunity (CommunityID, Location) values (7, 'Uptown'); -insert into CityCommunity (CommunityID, Location) values (8, 'West End'); -insert into CityCommunity (CommunityID, Location) values (9, 'Downtown'); -insert into CityCommunity (CommunityID, Location) values (10, 'West End'); +insert into CityCommunity (CommunityID, Location) values (1, 'San Francisco'); +insert into CityCommunity (CommunityID, Location) values (2, 'San Jose'); +insert into CityCommunity (CommunityID, Location) values (3, 'Los Angeles'); +insert into CityCommunity (CommunityID, Location) values (4, 'London'); +insert into CityCommunity (CommunityID, Location) values (5, 'Boston'); +insert into CityCommunity (CommunityID, Location) values (6, 'New York City'); +insert into CityCommunity (CommunityID, Location) values (7, 'Chicago'); +insert into CityCommunity (CommunityID, Location) values (8, 'Seattle'); +insert into CityCommunity (CommunityID, Location) values (9, 'D.C.'); +insert into CityCommunity (CommunityID, Location) values (10, 'Atlanta'); -- Housing Data -insert into Housing (HousingID, Availability, Style, Location) values (1, 'occupied', 'Yurt', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (2, 'occupied', 'Yurt', 'Midtown'); -insert into Housing (HousingID, Availability, Style, Location) values (3, 'vacant', 'Mobile Home', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (4, 'under contract', 'Fraternity/Sorority House', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (5, 'coming soon', 'Apartment', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (6, 'pending inspection', 'Apartment', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (7, 'occupied', 'Tiny House', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (8, 'under contract', 'Loft', 'Downtown'); -insert into Housing (HousingID, Availability, Style, Location) values (9, 'for sale', 'Mobile Home', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (10, 'leased', 'Mobile Home', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (11, 'pending inspection', 'Townhouse', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (12, 'vacant', 'Treehouse', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (13, 'vacant', 'Fraternity/Sorority House', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (14, 'under contract', 'Townhouse', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (15, 'off market', 'Fraternity/Sorority House', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (16, 'under contract', 'Loft', 'Downtown'); -insert into Housing (HousingID, Availability, Style, Location) values (17, 'off market', 'Tiny House', 'Midtown'); -insert into Housing (HousingID, Availability, Style, Location) values (18, 'occupied', 'Apartment', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (19, 'coming soon', 'Cottage', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (20, 'for sale', 'Treehouse', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (21, 'leased', 'Treehouse', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (22, 'for sale', 'Yurt', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (23, 'for sale', 'Yurt', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (24, 'occupied', 'Apartment', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (25, 'occupied', 'Cottage', 'Downtown'); -insert into Housing (HousingID, Availability, Style, Location) values (26, 'off market', 'Apartment', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (27, 'vacant', 'Loft', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (28, 'under contract', 'Tiny House', 'Midtown'); -insert into Housing (HousingID, Availability, Style, Location) values (29, 'leased', 'Yurt', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (30, 'for sale', 'Dormitory', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (31, 'occupied', 'Mobile Home', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (32, 'leased', 'Dormitory', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (33, 'occupied', 'Cottage', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (34, 'off market', 'Yurt', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (35, 'occupied', 'Loft', 'Uptown'); -insert into Housing (HousingID, Availability, Style, Location) values (36, 'pending inspection', 'Tiny House', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (37, 'occupied', 'Fraternity/Sorority House', 'Uptown'); -insert into Housing (HousingID, Availability, Style, Location) values (38, 'under contract', 'Yurt', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (39, 'leased', 'Dormitory', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (40, 'coming soon', 'Tiny House', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (41, 'available', 'Tiny House', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (42, 'available', 'Loft', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (43, 'available', 'Tiny House', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (44, 'pending inspection', 'Yurt', 'East Side'); -insert into Housing (HousingID, Availability, Style, Location) values (45, 'available', 'Townhouse', 'West End'); -insert into Housing (HousingID, Availability, Style, Location) values (46, 'occupied', 'Cottage', 'North End'); -insert into Housing (HousingID, Availability, Style, Location) values (47, 'vacant', 'Townhouse', 'South Side'); -insert into Housing (HousingID, Availability, Style, Location) values (48, 'coming soon', 'Townhouse', 'Midtown'); -insert into Housing (HousingID, Availability, Style, Location) values (49, 'under renovation', 'Cottage', 'Downtown'); -insert into Housing (HousingID, Availability, Style, Location) values (50, 'leased', 'Yurt', 'East Side'); +insert into Housing (HousingID, Availability, Style, Location) values (1, 'Vacant', 'Dormitory', 'San Francisco'); +insert into Housing (HousingID, Availability, Style, Location) values (2, 'Occupied', 'Apartment', 'San Jose'); +insert into Housing (HousingID, Availability, Style, Location) values (3, 'Pending approval', 'Fraternity/Sorority House', 'Los Angeles'); +insert into Housing (HousingID, Availability, Style, Location) values (4, 'Vacant', 'Off-Campus House', 'London'); +insert into Housing (HousingID, Availability, Style, Location) values (5, 'Occupied', 'Townhouse', 'Boston'); +insert into Housing (HousingID, Availability, Style, Location) values (6, 'Pending approval', 'Co-op Housing', 'New York City'); +insert into Housing (HousingID, Availability, Style, Location) values (7, 'Vacant', 'Tiny House', 'Chicago'); +insert into Housing (HousingID, Availability, Style, Location) values (8, 'Occupied', 'Loft', 'Seattle'); +insert into Housing (HousingID, Availability, Style, Location) values (9, 'Pending approval', 'Studio Apartment', 'D.C.'); +insert into Housing (HousingID, Availability, Style, Location) values (10, 'Vacant', 'Shared Room', 'San Francisco'); +insert into Housing (HousingID, Availability, Style, Location) values (11, 'Occupied', 'Dormitory', 'San Jose'); +insert into Housing (HousingID, Availability, Style, Location) values (12, 'Pending approval', 'Apartment', 'Los Angeles'); +insert into Housing (HousingID, Availability, Style, Location) values (13, 'Vacant', 'Fraternity/Sorority House', 'London'); +insert into Housing (HousingID, Availability, Style, Location) values (14, 'Occupied', 'Off-Campus House', 'Boston'); +insert into Housing (HousingID, Availability, Style, Location) values (15, 'Pending approval', 'Townhouse', 'New York City'); +insert into Housing (HousingID, Availability, Style, Location) values (16, 'Vacant', 'Co-op Housing', 'Chicago'); +insert into Housing (HousingID, Availability, Style, Location) values (17, 'Occupied', 'Tiny House', 'Seattle'); +insert into Housing (HousingID, Availability, Style, Location) values (18, 'Pending approval', 'Loft', 'D.C.'); +insert into Housing (HousingID, Availability, Style, Location) values (19, 'Vacant', 'Studio Apartment', 'San Francisco'); +insert into Housing (HousingID, Availability, Style, Location) values (20, 'Occupied', 'Shared Room', 'San Jose'); +insert into Housing (HousingID, Availability, Style, Location) values (21, 'Pending approval', 'Dormitory', 'Los Angeles'); +insert into Housing (HousingID, Availability, Style, Location) values (22, 'Vacant', 'Apartment', 'London'); +insert into Housing (HousingID, Availability, Style, Location) values (23, 'Occupied', 'Fraternity/Sorority House', 'Boston'); +insert into Housing (HousingID, Availability, Style, Location) values (24, 'Pending approval', 'Off-Campus House', 'New York City'); +insert into Housing (HousingID, Availability, Style, Location) values (25, 'Vacant', 'Townhouse', 'Chicago'); +insert into Housing (HousingID, Availability, Style, Location) values (26, 'Occupied', 'Co-op Housing', 'Seattle'); +insert into Housing (HousingID, Availability, Style, Location) values (27, 'Pending approval', 'Tiny House', 'D.C.'); +insert into Housing (HousingID, Availability, Style, Location) values (28, 'Vacant', 'Loft', 'San Francisco'); +insert into Housing (HousingID, Availability, Style, Location) values (29, 'Occupied', 'Studio Apartment', 'San Jose'); +insert into Housing (HousingID, Availability, Style, Location) values (30, 'Pending approval', 'Shared Room', 'Los Angeles'); +insert into Housing (HousingID, Availability, Style, Location) values (31, 'Vacant', 'Dormitory', 'London'); +insert into Housing (HousingID, Availability, Style, Location) values (32, 'Occupied', 'Apartment', 'Boston'); +insert into Housing (HousingID, Availability, Style, Location) values (33, 'Pending approval', 'Fraternity/Sorority House', 'New York City'); +insert into Housing (HousingID, Availability, Style, Location) values (34, 'Vacant', 'Off-Campus House', 'Chicago'); +insert into Housing (HousingID, Availability, Style, Location) values (35, 'Occupied', 'Townhouse', 'Seattle'); +insert into Housing (HousingID, Availability, Style, Location) values (36, 'Pending approval', 'Co-op Housing', 'D.C.'); +insert into Housing (HousingID, Availability, Style, Location) values (37, 'Vacant', 'Tiny House', 'San Francisco'); +insert into Housing (HousingID, Availability, Style, Location) values (38, 'Occupied', 'Loft', 'San Jose'); +insert into Housing (HousingID, Availability, Style, Location) values (39, 'Pending approval', 'Studio Apartment', 'Los Angeles'); +insert into Housing (HousingID, Availability, Style, Location) values (40, 'Vacant', 'Shared Room', 'London'); +insert into Housing (HousingID, Availability, Style, Location) values (41, 'Occupied', 'Dormitory', 'Boston'); +insert into Housing (HousingID, Availability, Style, Location) values (42, 'Pending approval', 'Apartment', 'New York City'); +insert into Housing (HousingID, Availability, Style, Location) values (43, 'Vacant', 'Fraternity/Sorority House', 'Chicago'); +insert into Housing (HousingID, Availability, Style, Location) values (44, 'Occupied', 'Off-Campus House', 'Seattle'); +insert into Housing (HousingID, Availability, Style, Location) values (45, 'Pending approval', 'Townhouse', 'D.C.'); +insert into Housing (HousingID, Availability, Style, Location) values (46, 'Vacant', 'Co-op Housing', 'San Francisco'); +insert into Housing (HousingID, Availability, Style, Location) values (47, 'Occupied', 'Tiny House', 'San Jose'); +insert into Housing (HousingID, Availability, Style, Location) values (48, 'Pending approval', 'Loft', 'Los Angeles'); +insert into Housing (HousingID, Availability, Style, Location) values (49, 'Vacant', 'Studio Apartment', 'London'); +insert into Housing (HousingID, Availability, Style, Location) values (50, 'Occupied', 'Shared Room', 'Boston'); -- User data insert into User (UserID, Name, Email, Role, PermissionsLevel) values (1, 'Letizia Cabell', 'lcabell0@wikispaces.com', 'IT Administrator', 'guest'); @@ -239,4 +239,167 @@ insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, C insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (99, 'Emmalyn Kneaphsey', 'Art', 'Boston', 'Jayo', 'Offering Housing', 'Looking for Carpool', '$1500', '4 months', 'Organized', 'Night-Owl', 35, 6, 'Enjoys reading mystery novels and solving puzzles', '2', 29); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (100, 'Farlay Mathivon', 'Sociology', 'San Jose', 'Eare', 'Not interested', 'Not interested', '$400', '4 months', 'Cluttered', 'Active', 40, 2, 'Loves playing musical instruments and composing music', '4', 1); +-- Chat +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (1, 3, 'Network connectivity issues', '2024-04-10 00:27:14', 5); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (2, 20, 'Issue with login credentials', '2024-02-28 09:42:13', 12); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (3, 63, 'Lost files', '2024-01-30 12:56:56', 18); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (4, 41, 'Device not turning on', '2024-03-26 07:02:15', 3); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (5, 54, 'Email not sending', '2024-11-15 05:29:27', 27); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (6, 35, 'Billing inquiry', '2024-02-22 05:26:47', 9); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (7, 47, 'Slow internet connection', '2024-03-25 04:55:29', 14); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (8, 74, 'Network connectivity issues', '2024-03-17 21:17:57', 22); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (9, 56, 'Data backup request', '2024-06-07 10:54:55', 1); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (10, 27, 'Printer not working', '2024-07-17 08:32:42', 30); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (11, 84, 'Forgot password', '2024-08-29 17:46:54', 8); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (12, 17, 'Network connectivity issues', '2024-07-19 09:36:34', 20); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (13, 47, 'Need help setting up new device', '2024-05-23 10:49:46', 11); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (14, 11, 'Billing inquiry', '2024-01-12 23:01:17', 25); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (15, 18, 'Virus detected on device', '2024-03-05 20:24:13', 7); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (16, 22, 'Trouble accessing website', '2024-03-21 09:53:30', 15); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (17, 40, 'Forgot password', '2024-03-09 02:31:51', 29); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (18, 14, 'Need help setting up new device', '2024-03-14 01:05:34', 4); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (19, 79, 'Forgot password', '2024-02-17 07:49:46', 19); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (20, 50, 'Account locked', '2024-04-01 03:43:25', 10); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (21, 80, 'Trouble accessing website', '2024-08-31 22:17:10', 26); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (22, 13, 'Network connectivity issues', '2024-05-26 03:23:54', 6); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (23, 84, 'Forgot password', '2024-11-04 20:27:45', 13); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (24, 38, 'Device not turning on', '2024-11-14 09:07:15', 21); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (25, 45, 'Email not sending', '2024-11-17 08:59:33', 2); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (26, 47, 'Network connectivity issues', '2023-12-31 15:40:05', 28); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (27, 31, 'Issue with login credentials', '2024-09-12 22:29:38', 17); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (28, 81, 'Need help setting up new device', '2024-03-22 15:32:19', 24); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (29, 46, 'Network connectivity issues', '2024-06-19 19:16:20', 16); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (30, 39, 'Lost files', '2024-10-21 21:48:55', 23); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (31, 22, 'Software update needed', '2024-10-18 13:41:46', 5); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (32, 80, 'Data backup request', '2024-07-03 07:46:01', 12); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (33, 35, 'Email not syncing', '2024-10-31 12:28:35', 18); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (34, 45, 'Error message on screen', '2024-03-21 23:01:22', 3); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (35, 63, 'Printer not working', '2024-03-31 09:18:41', 27); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (36, 35, 'Data backup request', '2024-01-01 14:19:33', 9); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (37, 94, 'Data backup request', '2024-01-22 02:11:10', 14); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (38, 36, 'Virus detected on device', '2024-04-21 20:32:07', 22); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (39, 37, 'Need help setting up new device', '2023-12-14 19:54:52', 1); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (40, 65, 'Need help with troubleshooting', '2024-05-23 17:51:25', 30); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (41, 92, 'Account locked', '2024-11-23 02:47:21', 8); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (42, 80, 'Issue with login credentials', '2024-10-22 06:51:05', 20); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (43, 85, 'Need help setting up new device', '2024-07-11 14:32:57', 11); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (44, 22, 'Email not sending', '2024-11-02 23:03:10', 25); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (45, 49, 'Device not turning on', '2024-11-11 06:37:15', 7); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (46, 15, 'Error message on screen', '2024-04-01 19:44:01', 15); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (47, 70, 'Account locked', '2023-12-05 15:00:08', 29); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (48, 87, 'Software update needed', '2024-08-22 03:59:14', 4); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (49, 82, 'Device not turning on', '2024-03-26 07:03:27', 19); +insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (50, 2, 'Virus detected on device', '2024-03-01 14:51:56', 10); + +-- Events +insert into Events (EventID, CommunityID, Date, Name, Description) values (1, 10, '4/21/2024', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (2, 1, '6/1/2024', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (3, 4, '9/25/2024', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (4, 5, '5/21/2024', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (5, 6, '2/24/2024', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (6, 1, '2/25/2024', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (7, 9, '6/7/2024', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (8, 2, '1/11/2024', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (9, 6, '8/12/2024', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (10, 2, '2/19/2024', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (11, 2, '12/24/2023', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (12, 6, '5/26/2024', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (13, 3, '10/24/2024', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (14, 5, '4/15/2024', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (15, 4, '2/17/2024', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (16, 3, '7/3/2024', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (17, 9, '7/2/2024', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (18, 9, '7/30/2024', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (19, 1, '4/10/2024', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (20, 8, '1/9/2024', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (21, 7, '9/27/2024', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (22, 2, '4/27/2024', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (23, 10, '7/12/2024', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (24, 3, '9/1/2024', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (25, 1, '9/23/2024', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (26, 9, '9/21/2024', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (27, 3, '1/24/2024', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (28, 6, '1/17/2024', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (29, 6, '1/12/2024', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (30, 3, '10/24/2024', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (31, 3, '8/10/2024', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (32, 7, '7/14/2024', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (33, 3, '12/13/2023', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (34, 2, '10/8/2024', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (35, 10, '1/13/2024', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (36, 2, '1/9/2024', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (37, 4, '3/12/2024', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (38, 4, '10/12/2024', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (39, 6, '2/8/2024', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (40, 2, '9/26/2024', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (41, 7, '1/14/2024', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (42, 10, '8/12/2024', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (43, 6, '9/18/2024', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (44, 1, '8/13/2024', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (45, 8, '8/7/2024', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (46, 8, '9/6/2024', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (47, 9, '10/5/2024', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (48, 8, '12/20/2023', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (49, 7, '11/24/2024', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (50, 6, '2/23/2024', 'Internship Opportunities Panel', 'Networking scavenger hunt'); + +-- Feedback +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (1, 'Still looking for housing', '2024-08-01', '1', 18, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (2, 'Thank you for this recommendation!', '2024-05-02', '2', 83, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (3, 'Thank you for your help', '2024-08-20', '', 35, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (4, 'Still searching for roommates', '2024-01-02', '3', 80, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (5, 'Still searching for roommates', '2024-06-20', '4', 6, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (6, 'Thank you for your help', '2024-07-16', '5', 23, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (7, 'Housing is in a good area', '2024-01-31', '1', 2, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (8, 'Still looking for housing', '2024-05-10', '2', 73, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (9, 'Thank you for this recommendation!', '2024-05-23', '', 90, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (10, 'still searching for carpool', '2024-04-27', '3', 93, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (11, 'Still searching for roommates', '2024-04-02', '4', 60, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (12, 'Enjoying my co-op experience', '2024-08-07', '5', 17, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (13, 'Enjoying my co-op experience', '2024-08-05', '1', 81, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (14, 'still searching for carpool', '2024-11-14', '2', 15, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (15, 'Still looking for housing', '2024-07-17', '', 98, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (16, 'Still looking for housing', '2024-08-22', '3', 39, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (17, 'I appreciate your assistance!', '2024-01-09', '4', 95, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (18, 'Housing is in a good area', '2024-11-09', '5', 30, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (19, 'Still searching for roommates', '2024-06-19', '1', 84, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (20, 'Still looking for housing', '2023-12-09', '2', 15, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (21, 'I appreciate your assistance!', '2024-01-27', '', 15, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (22, 'Thank you for this recommendation!', '2024-01-12', '3', 5, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (23, 'still searching for carpool', '2024-10-15', '4', 9, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (24, 'still searching for carpool', '2024-09-16', '5', 56, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (25, 'Housing is in a good area', '2024-09-17', '1', 70, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (26, 'I appreciate your assistance!', '2024-11-02', '2', 45, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (27, 'Currently enjoying this co-op', '2024-02-26', '', 60, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (28, 'Still searching for roommates', '2024-07-30', '3', 68, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (29, 'Currently enjoying this co-op', '2024-09-27', '4', 24, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (30, 'Still searching for roommates', '2024-11-09', '5', 36, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (31, 'I appreciate your assistance!', '2024-07-14', '1', 33, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (32, 'still searching for carpool', '2024-05-04', '2', 45, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (33, 'Enjoying my co-op experience', '2024-11-22', '', 62, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (34, 'Housing is in a good area', '2024-01-12', '3', 81, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (35, 'I appreciate your assistance!', '2024-09-07', '4', 3, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (36, 'Enjoying my co-op experience', '2024-10-06', '5', 52, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (37, 'Currently enjoying this co-op', '2024-06-01', '1', 20, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (38, 'still searching for carpool', '2024-07-11', '2', 93, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (39, 'Thank you for this recommendation!', '2024-05-04', '', 43, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (40, 'Still searching for roommates', '2024-04-16', '3', 70, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (41, 'still searching for carpool', '2024-06-28', '4', 7, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (42, 'I appreciate your assistance!', '2024-06-14', '5', 87, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (43, 'Enjoying my co-op experience', '2024-10-14', '1', 73, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (44, 'Currently enjoying this co-op', '2024-05-31', '2', 35, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (45, 'Still looking for housing', '2024-03-29', '', 3, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (46, 'Thank you for your help', '2024-01-07', '3', 2, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (47, 'Currently enjoying this co-op', '2023-12-28', '4', 86, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (48, 'Thank you for your help', '2024-11-16', '5', 54, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (49, 'Currently enjoying this co-op', '2024-05-19', '1', 32, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (50, 'I appreciate your assistance!', '2024-03-05', '2', 95, 10); + +-- Advisor + +-- Task + +-- SystemLog + +-- SystemHealth diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 6d03b3be18..fc619857b5 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS Chat ( ChatID INT AUTO_INCREMENT PRIMARY KEY, StudentID INT, Content TEXT, - Time TIMESTAMP, + Time DATETIME, SupportStaffID INT, FOREIGN KEY (StudentID) REFERENCES Student(StudentID), FOREIGN KEY (SupportStaffID) REFERENCES User(UserID) From f46652a6742f9eb5073fe02411a1eb3d5f0d39ed Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:18:34 -0500 Subject: [PATCH 042/305] changes to create tables stmtnt anf more data --- database-files/SyncSpace-data.sql | 10 ++++++++++ database-files/SyncSpaceUpdated.sql | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index fc761d6473..a6b559c848 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -396,6 +396,16 @@ insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (50, 'I appreciate your assistance!', '2024-03-05', '2', 95, 10); -- Advisor +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (1, 'Georgine McCard', 'gmccard0@nps.gov', 'Khoury College', 8); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (2, 'Babbette Marle', 'bmarle1@bbc.co.uk', 'College of Engineering', 50); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (3, 'Lena Graver', 'lgraver2@creativecommons.org', 'D''Amore Mc-Kim', 99); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (4, 'Kevina Garden', 'kgarden3@sina.com.cn', 'College of Science', 38); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (5, 'Cathryn Tatershall', 'ctatershall4@free.fr', 'Bouve College', 14); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (6, 'Domingo Stanlick', 'dstanlick5@arstechnica.com', 'College of Science', 77); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (7, 'Joyous Ferby', 'jferby6@yahoo.com', 'Khoury College', 91); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (8, 'Thibaut Biles', 'tbiles7@4shared.com', 'College of Engineering', 17); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (9, 'Tana Roblou', 'troblou8@cargocollective.com', 'D''Amore Mc-Kim', 26); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (10, 'Sheridan Gunny', 'sgunny9@arizona.edu', 'College of Science', 65); -- Task diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index fc619857b5..794c18f228 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -109,13 +109,15 @@ CREATE TABLE IF NOT EXISTS Advisor ( Email VARCHAR(100), Department VARCHAR(100), StudentID INT, - FOREIGN KEY (StudentID) REFERENCES Student(StudentID) ); -- Add foreign key to Feedback for Advisor after Advisor is created ALTER TABLE Feedback ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); +ALTER TABLE Student +ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); + -- Create table for Task DROP TABLE IF EXISTS Task; CREATE TABLE IF NOT EXISTS Task ( From 59e87993ed7983c45763b412eec12ed814d34273 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:28:59 -0500 Subject: [PATCH 043/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index a6b559c848..6ab4715043 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -408,6 +408,56 @@ insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (9, ' insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (10, 'Sheridan Gunny', 'sgunny9@arizona.edu', 'College of Science', 65); -- Task +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-02-27', 22, '2024-08-03', 'In Progress', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-05-09', 89, '2024-03-09', 'In Progress', 10); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-07-08', 37, '2024-05-01', 'Completed', 8); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-11-26', 55, '2024-02-20', 'Completed', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2024-06-02', 50, '2024-04-09', 'Received', 9); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-05-03', 50, '2024-11-24', 'Completed', 4); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-09-07', 69, '2024-08-22', 'Completed', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-03-25', 84, '2024-06-23', 'In Progress', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-05-26', 86, '2024-08-25', 'Received', 10); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2023-12-04', 65, '2024-11-30', 'Completed', 10); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2024-03-26', 26, '2024-04-04', 'Received', 2); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-05-14', 12, '2024-10-24', 'In Progress', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-03-05', 73, '2024-01-06', 'Completed', 7); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-04-18', 82, '2024-08-28', 'Received', 2); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-11-27', 53, '2024-08-26', 'Received', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-09-25', 96, '2024-11-30', 'Received', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2024-07-05', 81, '2024-01-27', 'In Progress', 7); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-09-16', 50, '2023-12-15', 'In Progress', 5); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-10-18', 80, '2024-04-15', 'Received', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-09-21', 69, '2024-04-27', 'Completed', 3); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-02-21', 26, '2024-07-21', 'Completed', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-10-24', 69, '2024-09-30', 'Received', 4); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2024-07-20', 15, '2024-02-28', 'Received', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-11-03', 44, '2024-04-28', 'Completed', 5); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-03-04', 32, '2024-02-14', 'Received', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-03-02', 44, '2024-06-16', 'In Progress', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-04-01', 2, '2024-02-22', 'Received', 6); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-06-06', 14, '2023-12-14', 'In Progress', 7); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2023-12-19', 24, '2024-04-14', 'Received', 5); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-01-28', 40, '2023-12-20', 'Completed', 2); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-07-16', 51, '2024-02-29', 'Received', 9); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-10-16', 34, '2024-07-31', 'In Progress', 9); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-05-27', 89, '2024-10-10', 'Received', 8); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-09-26', 13, '2024-09-23', 'Received', 5); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2023-12-21', 47, '2024-11-20', 'Completed', 5); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-06-05', 40, '2024-02-04', 'In Progress', 10); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-10-07', 35, '2024-03-11', 'Completed', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-04-08', 23, '2024-03-18', 'Completed', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-03-26', 36, '2024-05-10', 'Completed', 4); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-07-14', 68, '2024-10-09', 'In Progress', 5); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2024-09-03', 94, '2024-06-20', 'In Progress', 7); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-04-11', 23, '2024-02-11', 'In Progress', 9); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2023-12-10', 86, '2024-05-04', 'Received', 8); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-11-08', 77, '2024-10-07', 'Completed', 4); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2023-12-07', 11, '2024-02-15', 'In Progress', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-04-07', 73, '2024-04-16', 'In Progress', 3); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Bouve College', '2024-08-28', 3, '2024-04-05', 'Received', 3); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Science', '2024-07-28', 16, '2024-01-17', 'Completed', 3); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-02-21', 73, '2024-11-12', 'Completed', 1); +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-08-21', 40, '2024-09-04', 'Completed', 6); -- SystemLog From 6d37e5a92fafcf8d821af8d5c9281e27241c38de Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:35:49 -0500 Subject: [PATCH 044/305] upodate --- database-files/SyncSpace-data.sql | 50 +++++++++++++++++++++++++++++ database-files/SyncSpaceUpdated.sql | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 6ab4715043..895f27434e 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -460,6 +460,56 @@ insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-08-21', 40, '2024-09-04', 'Completed', 6); -- SystemLog +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-27 09:10:45', 'User logged in', 'CPU Usage', 'Data Minimization Compliance', 'Intrusion Detection Alerts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-08-18 13:56:45', 'User viewed dashboard', 'System Load', 'Data Retention Policy Compliance', 'Authentication Failures'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-04-02 21:27:13', 'User updated profile', 'System Uptime', 'Data Retention Policy Compliance', 'Encryption Key Rotation'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-09-07 19:30:18', 'User logged out', 'Incident Resolution Time', 'Data Sharing Permissions', 'Access Control Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-05-23 17:18:14', 'User logged out', 'Error Rate', 'Data Anonymization Compliance', 'Access Control Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2023-12-06 17:34:34', 'User logged out', 'System Uptime', 'User Consent Management', 'Two-Factor Authentication (2FA) Usage'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-05-02 19:55:05', 'User logged out', 'Network Latency', 'Sensitive Data Exposure', 'Two-Factor Authentication (2FA) Usage'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-10-19 13:04:17', 'User logged out', 'Patch Management', 'Data Collection Transparency', 'Firewall Activity'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-07-07 11:36:15', 'User logged in', 'Error Rate', 'Data Retention Policy Compliance', 'Unauthorized Access Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-04-22 10:57:34', 'User logged in', 'Error Rate', 'Data Access Audits', 'Unauthorized Access Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-08-12 00:43:26', 'User made a purchase', 'System Load', 'Data Minimization Compliance', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-05-27 19:41:32', 'User viewed dashboard', 'Error Rate', 'Sensitive Data Exposure', 'Authentication Failures'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-09-18 01:52:11', 'User viewed dashboard', 'Service Downtime', 'Data Anonymization Compliance', 'Security Vulnerability Scans'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-03-20 22:24:55', 'User logged in', 'Backup Success Rate', 'Data Collection Transparency', 'Audit Log Entries'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-05-08 00:23:35', 'User logged in', 'Compliance Rate', 'User Data Access Requests', 'Unauthorized Access Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2023-12-15 15:12:20', 'User updated profile', 'Database Backup Frequency', 'Data Minimization Compliance', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-09-09 22:04:23', 'User searched for products', 'Data Throughput', 'Sensitive Data Exposure', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-10-29 16:55:37', 'User searched for products', 'System Scalability', 'Data Retention Policy Compliance', 'Audit Log Entries'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-08-24 17:11:28', 'User logged in', 'System Scalability', 'Data Anonymization Compliance', 'Audit Log Entries'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-05-30 22:40:11', 'User searched for products', 'Memory Usage', 'Sensitive Data Exposure', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-10-08 14:54:43', 'User logged in', 'Database Query Time', 'Data Anonymization Compliance', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2023-12-11 09:22:34', 'User added item to cart', 'User Login Attempts', 'Data Sharing Permissions', 'Unauthorized Access Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-01-07 12:43:32', 'User requested password reset', 'Disk Space', 'User Data Access Requests', 'Security Patch Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-07-04 01:21:21', 'User added item to cart', 'Response Time', 'Data Sharing Permissions', 'Unauthorized Access Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-01-31 02:41:53', 'User updated profile', 'Security Events', 'Privacy Policy Compliance', 'Password Strength Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-03-25 08:42:17', 'User logged out', 'Error Rate', 'Privacy Policy Compliance', 'Unauthorized Access Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-10-16 00:54:25', 'User added item to cart', 'User Login Attempts', 'Privacy Policy Compliance', 'Password Strength Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-02-14 15:58:24', 'User updated profile', 'Error Rate', 'Data Collection Transparency', 'Password Strength Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-10-05 12:35:21', 'User made a purchase', 'User Login Attempts', 'Data Anonymization Compliance', 'Access Requests'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-01-15 10:46:13', 'User logged out', 'System Scalability', 'Data Collection Transparency', 'Security Breach Incidents'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-08 04:42:51', 'User logged in', 'Patch Management', 'Data Access Audits', 'Access Requests'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-08-23 02:36:45', 'User made a purchase', 'User Login Attempts', 'Data Access Audits', 'Audit Log Entries'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-01-14 22:57:14', 'User made a purchase', 'System Uptime', 'Data Retention Policy Compliance', 'Security Patch Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-07-08 23:42:30', 'User logged out', 'Database Backup Frequency', 'Sensitive Data Exposure', 'Data Encryption Status'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-08-03 00:09:08', 'User added item to cart', 'System Uptime', 'Privacy Policy Compliance', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-04-08 14:22:41', 'User changed password', 'Response Time', 'Data Minimization Compliance', 'Data Encryption Status'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-10-26 13:44:57', 'User made a purchase', 'Incident Resolution Time', 'User Data Access Requests', 'Data Encryption Status'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-01-31 01:47:53', 'User added item to cart', 'Compliance Rate', 'Sensitive Data Exposure', 'Encryption Key Rotation'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-04-10 15:29:05', 'User searched for products', 'Database Backup Frequency', 'Data Retention Policy Compliance', 'Access Control Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-06-16 23:55:27', 'User logged in', 'CPU Usage', 'Data Sharing Permissions', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-01-30 08:58:05', 'User logged out', 'Service Downtime', 'Data Access Audits', 'Encryption Key Rotation'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-06-09 19:10:09', 'User requested password reset', 'Memory Usage', 'Data Retention Policy Compliance', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-31 06:09:19', 'User logged out', 'Network Latency', 'Privacy Policy Compliance', 'Encryption Key Rotation'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-08-15 23:14:31', 'User searched for products', 'Compliance Rate', 'User Data Access Requests', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-05-06 17:10:56', 'User added item to cart', 'Disk Space', 'Data Retention Policy Compliance', 'Password Strength Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-02-04 01:54:22', 'User made a purchase', 'Response Time', 'User Data Access Requests', 'Unauthorized Access Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-11-28 21:06:43', 'User logged in', 'Security Events', 'Data Anonymization Compliance', 'Security Patch Compliance'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-06-15 13:53:17', 'User logged in', 'Database Backup Frequency', 'Data Retention Policy Compliance', 'Phishing Attempts'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-19 04:19:05', 'User added item to cart', 'System Load', 'Privacy Policy Compliance', 'Data Encryption Status'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-01-28 09:04:12', 'User changed password', 'Active Connections', 'Sensitive Data Exposure', 'Firewall Activity'); -- SystemHealth diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 794c18f228..8f474c4c57 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -137,7 +137,7 @@ DROP TABLE IF EXISTS SystemLog; CREATE TABLE IF NOT EXISTS SystemLog ( LogID INT AUTO_INCREMENT PRIMARY KEY, TicketID INT, - Timestamp TIMESTAMP, + Timestamp DATETIME, Activity TEXT, MetricType VARCHAR(50), Privacy VARCHAR(50), From e0de7b4989f68155e10918b37fd9711da94e99df Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:37:37 -0500 Subject: [PATCH 045/305] Update SyncSpaceUpdated.sql --- database-files/SyncSpaceUpdated.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 8f474c4c57..557cbd730d 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -150,7 +150,7 @@ DROP TABLE IF EXISTS SystemHealth; CREATE TABLE IF NOT EXISTS SystemHealth ( SystemHealthID INT AUTO_INCREMENT PRIMARY KEY, LogID INT, - Timestamp TIMESTAMP, + Timestamp DATETIME, Status VARCHAR(50), MetricType VARCHAR(50), FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) From 5306acce20602474cd9e40d70dc302397600a6bb Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:39:51 -0500 Subject: [PATCH 046/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 51 ++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 895f27434e..ecf5a700ac 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -512,4 +512,53 @@ insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Secur insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-01-28 09:04:12', 'User changed password', 'Active Connections', 'Sensitive Data Exposure', 'Firewall Activity'); -- SystemHealth - +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (12, '2023-12-08 03:13:57', 'Normal', 'Security Events'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (34, '2023-12-02 23:34:00', 'Active', 'Network Latency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (7, '2024-06-20 11:47:06', 'Operational', 'Service Downtime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (23, '2024-02-26 08:05:29', 'Recovered', 'Data Throughput'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (45, '2024-06-29 11:52:55', 'Operational', 'Backup Success Rate'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (18, '2024-05-21 12:15:08', 'Operational', 'Incident Resolution Time'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (31, '2023-12-20 16:19:30', 'Recovered', 'Service Downtime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (9, '2023-12-25 09:35:03', 'Normal', 'Database Backup Frequency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (27, '2024-01-11 21:42:14', 'Complete', 'System Uptime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (50, '2024-06-08 16:58:41', 'Recovered', 'Service Downtime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (14, '2024-10-25 20:48:26', 'Complete', 'Disk Space'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (39, '2024-05-14 09:39:44', 'Recovered', 'System Uptime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (5, '2024-06-24 02:45:26', 'Active', 'User Login Attempts'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (20, '2024-07-24 13:11:47', 'Normal', 'System Scalability'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (42, '2024-07-17 13:01:47', 'Complete', 'Error Rate'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (3, '2024-11-05 13:29:34', 'Recovered', 'CPU Usage'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (36, '2024-03-25 07:56:21', 'Operational', 'Service Downtime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (10, '2024-03-22 07:01:50', 'Complete', 'Response Time'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (25, '2024-05-16 19:39:19', 'Complete', 'Data Throughput'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (48, '2024-11-05 10:44:02', 'Complete', 'Patch Management'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (16, '2024-05-01 15:17:33', 'Normal', 'CPU Usage'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (41, '2024-03-21 17:26:03', 'Normal', 'Security Events'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (8, '2024-04-09 02:34:09', 'Recovered', 'User Login Attempts'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (30, '2024-11-21 15:10:52', 'Active', 'System Scalability'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (47, '2024-11-20 22:30:35', 'Active', 'Backup Success Rate'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (13, '2024-08-31 10:17:14', 'Recovered', 'Network Latency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (38, '2024-03-10 16:47:48', 'Normal', 'System Uptime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (6, '2024-11-18 07:29:51', 'Active', 'Network Latency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (21, '2024-08-23 20:03:42', 'Operational', 'Data Throughput'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (44, '2024-10-22 18:03:39', 'Operational', 'Disk Space'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (2, '2024-06-10 10:19:24', 'Active', 'Data Throughput'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (35, '2024-09-24 13:11:15', 'Recovered', 'User Login Attempts'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (11, '2024-10-30 09:38:08', 'Operational', 'Database Backup Frequency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (26, '2024-05-20 00:54:29', 'Recovered', 'Network Latency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (49, '2024-11-09 18:50:06', 'Active', 'Database Backup Frequency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (15, '2024-07-25 12:48:28', 'Normal', 'Disk Space'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (40, '2023-12-31 12:28:57', 'Recovered', 'Error Rate'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (4, '2024-02-01 03:15:07', 'Operational', 'Active Connections'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (19, '2024-08-18 07:34:13', 'Recovered', 'System Uptime'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (43, '2024-11-11 05:01:35', 'Normal', 'System Load'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (1, '2023-12-10 23:28:13', 'Active', 'Response Time'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (37, '2024-05-17 12:57:33', 'Complete', 'Disk Space'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (24, '2024-08-05 23:12:30', 'Normal', 'Database Query Time'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (46, '2024-03-07 08:42:21', 'Active', 'Database Backup Frequency'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (17, '2024-05-06 10:13:32', 'Normal', 'Patch Management'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (32, '2024-09-22 01:10:12', 'Complete', 'CPU Usage'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (22, '2024-01-30 03:51:19', 'Normal', 'Data Throughput'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (33, '2024-06-11 12:00:15', 'Operational', 'Disk Space'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (28, '2024-05-26 08:55:01', 'Complete', 'Patch Management'); +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); From a55df5691a53027806a88543dacfda94bdc43679 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:42:38 -0500 Subject: [PATCH 047/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 111 ++++++++++++++---------------- 1 file changed, 53 insertions(+), 58 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index ecf5a700ac..ac3ed63fa7 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -96,66 +96,61 @@ insert into User (UserID, Name, Email, Role, PermissionsLevel) values (29, 'Bess insert into User (UserID, Name, Email, Role, PermissionsLevel) values (30, 'Pedro Gatherer', 'pgatherert@vkontakte.ru', 'IT Administrator', 'user'); -- Ticket -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (1, 1, 'search function not working', 'completed', 'Medium', '4/5/2024', '2/4/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (2, 2, 'payment processing error', 'completed', 'Medium', '10/2/2024', '5/15/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (3, 3, 'video playback issue', 'cancelled', 'Low', '5/21/2024', '6/8/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (4, 4, 'page not loading', 'cancelled', 'High', '5/30/2024', '3/22/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (5, 5, 'broken link', 'cancelled', 'High', '12/26/2023', '11/23/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (6, 6, 'payment processing error', 'pending', 'High', '2/12/2024', '1/19/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (7, 7, 'missing images', 'pending', 'Low', '7/18/2024', '6/13/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (8, 8, 'incorrect password', 'pending', 'Medium', '7/29/2024', '1/2/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (9, 9, 'login error', 'completed', 'Medium', '2/22/2024', '9/28/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (10, 10, 'page not loading', 'pending', 'High', '7/24/2024', '5/24/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (11, 11, 'search function not working', 'pending', 'High', '1/25/2024', '7/7/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (12, 12, 'payment processing error', 'cancelled', 'Low', '5/25/2024', '5/22/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (13, 13, 'formatting problem', 'pending', 'Low', '1/12/2024', '9/8/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (14, 14, 'missing images', 'cancelled', 'Low', '1/12/2024', '1/18/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (15, 15, 'search function not working', 'cancelled', 'Medium', '1/3/2024', '5/23/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (16, 16, 'slow performance', 'completed', 'Low', '2/16/2024', '9/30/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (17, 17, 'slow performance', 'pending', 'High', '3/27/2024', '7/2/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (18, 18, 'payment processing error', 'pending', 'Medium', '8/14/2024', '10/16/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (19, 19, 'payment processing error', 'pending', 'Medium', '8/20/2024', '10/6/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (20, 20, 'missing images', 'pending', 'High', '8/12/2024', '11/14/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (21, 21, 'broken link', 'pending', 'Medium', '1/15/2024', '4/20/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (22, 22, 'payment processing error', 'pending', 'Low', '12/9/2023', '1/23/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (23, 23, 'search function not working', 'completed', 'Medium', '2/5/2024', '2/18/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (24, 24, 'formatting problem', 'completed', 'Low', '4/6/2024', '8/9/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (25, 25, 'video playback issue', 'pending', 'High', '8/22/2024', '8/19/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (26, 26, 'search function not working', 'pending', 'Medium', '7/19/2024', '9/25/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (27, 27, 'broken link', 'cancelled', 'High', '5/20/2024', '1/22/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (28, 28, 'broken link', 'cancelled', 'High', '7/23/2024', '12/3/2023'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (29, 29, 'broken link', 'pending', 'Low', '10/16/2024', '7/15/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (30, 30, 'login error', 'completed', 'Low', '7/8/2024', '3/14/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (31, 31, 'formatting problem', 'cancelled', 'High', '11/2/2024', '2/13/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (32, 32, 'incorrect password', 'cancelled', 'Medium', '5/2/2024', '1/2/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (33, 33, 'missing images', 'completed', 'Low', '3/28/2024', '3/10/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (34, 34, 'slow performance', 'completed', 'High', '7/4/2024', '3/22/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '3/20/2024', '6/17/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (36, 36, 'incorrect password', 'completed', 'Low', '12/28/2023', '5/24/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (37, 37, 'formatting problem', 'cancelled', 'High', '5/16/2024', '8/2/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (38, 38, 'slow performance', 'pending', 'High', '1/5/2024', '1/2/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (39, 39, 'page not loading', 'completed', 'Medium', '5/21/2024', '6/8/2024'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (40, 40, 'incorrect password', 'cancelled', 'High', '2/18/2024', '11/18/2024'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (1, 1, 'search function not working', 'completed', 'Medium', '2024-04-05', '2024-02-04'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (2, 2, 'payment processing error', 'completed', 'Medium', '2024-10-02', '2024-05-15'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (3, 3, 'video playback issue', 'cancelled', 'Low', '2024-05-21', '2024-06-08'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (4, 4, 'page not loading', 'cancelled', 'High', '2024-05-30', '2024-03-22'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (5, 5, 'broken link', 'cancelled', 'High', '2023-12-26', '2024-11-23'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (6, 6, 'payment processing error', 'pending', 'High', '2024-02-12', '2024-01-19'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (7, 7, 'missing images', 'pending', 'Low', '2024-07-18', '2024-06-13'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (8, 8, 'incorrect password', 'pending', 'Medium', '2024-07-29', '2024-01-02'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (9, 9, 'login error', 'completed', 'Medium', '2024-02-22', '2024-09-28'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (10, 10, 'page not loading', 'pending', 'High', '2024-07-24', '2024-05-24'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (11, 11, 'search function not working', 'pending', 'High', '2024-01-25', '2024-07-07'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (12, 12, 'payment processing error', 'cancelled', 'Low', '2024-05-25', '2024-05-22'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (13, 13, 'formatting problem', 'pending', 'Low', '2024-01-12', '2024-09-08'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (14, 14, 'missing images', 'cancelled', 'Low', '2024-01-12', '2024-01-18'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (15, 15, 'search function not working', 'cancelled', 'Medium', '2024-01-03', '2024-05-23'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (16, 16, 'slow performance', 'completed', 'Low', '2024-02-16', '2024-09-30'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (17, 17, 'slow performance', 'pending', 'High', '2024-03-27', '2024-07-02'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (18, 18, 'payment processing error', 'pending', 'Medium', '2024-08-14', '2024-10-16'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (19, 19, 'payment processing error', 'pending', 'Medium', '2024-08-20', '2024-10-06'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (20, 20, 'missing images', 'pending', 'High', '2024-08-12', '2024-11-14'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (21, 21, 'broken link', 'pending', 'Medium', '2024-01-15', '2024-04-20'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (22, 22, 'payment processing error', 'pending', 'Low', '2023-12-09', '2024-01-23'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (23, 23, 'search function not working', 'completed', 'Medium', '2024-02-05', '2024-02-18'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (24, 24, 'formatting problem', 'completed', 'Low', '2024-04-06', '2024-08-09'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (25, 25, 'video playback issue', 'pending', 'High', '2024-08-22', '2024-08-19'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (26, 26, 'search function not working', 'pending', 'Medium', '2024-07-19', '2024-09-25'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (27, 27, 'broken link', 'cancelled', 'High', '2024-05-20', '2024-01-22'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (28, 28, 'broken link', 'cancelled', 'High', '2024-07-23', '2023-12-03'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (29, 29, 'broken link', 'pending', 'Low', '2024-10-16', '2024-07-15'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (30, 30, 'login error', 'completed', 'Low', '2024-07-08', '2024-03-14'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (31, 31, 'formatting problem', 'cancelled', 'High', '2024-11-02', '2024-02-13'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (32, 32, 'incorrect password', 'cancelled', 'Medium', '2024-05-02', '2024-01-02'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (33, 33, 'missing images', 'completed', 'Low', '2024-03-28', '2024-03-10'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (34, 34, 'slow performance', 'completed', 'High', '2024-07-04', '2024-03-22'); +insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); -- Student data -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (1, 'Rhett Pepperell', 'Biology', 'Seattle', 'Innotype', 'Not interested', 'Has Car', '$1200', '6 months', 'Neat', 'Night-Owl', 40, 6, 'Enjoys gardening and growing own vegetables', '3', 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (2, 'Tuesday Passie', 'Physics', 'London', 'Babbleset', 'Has Housing', 'Not interested', '$1000', '1 year', 'Minimal', 'Independent', 15, 7, 'Enjoys reading mystery novels and solving puzzles', '10', 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (3, 'Lorenzo Eyre', 'Sociology', 'Chicago', 'Aimbo', 'Looking for Roommates', 'Offering Carpool', '$300', '6 months', 'Minimal', 'Quiet', 40, 2, 'Passionate about cooking and trying new recipes', '2', 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (4, 'Gavrielle Devennie', 'Psychology', 'New York City', 'Mycat', 'Not interested', 'Not interested', '$1300', '4 months', 'Cluttered', 'Active', 30, 6, 'Passionate about volunteering and giving back to the community', '7', 27); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (5, 'Gordan Lucio', 'Psychology', 'Chicago', 'Realfire', 'Has Housing', 'Looking for Carpool', '$1400', '6 months', 'Minimal', 'Independent', 40, 4, 'Loves animals and volunteering at animal shelters', '9', 34); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (6, 'Rona Readie', 'Psychology', 'New York City', 'Chatterbridge', 'Offering Housing', 'Not interested', '$1200', '6 months', 'Neat', 'Night-Owl', 10, 5, 'Fascinated by astronomy and stargazing', '7', 31); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (7, 'Monica Fogden', 'Physics', 'San Francisco', 'Kayveo', 'Offering Housing', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Active', 25, 2, 'Passionate about environmental conservation and sustainability', '7', 50); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (8, 'Ramonda Presswell', 'Sociology', 'Seattle', 'Thoughtbeat', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Spotless', 'Independent', 45, 4, 'Adventurous spirit with a love for travel and experiencing new cultures', '4', 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (9, 'Jerrome Lathan', 'Physics', 'Seattle', 'Tagtune', 'Not interested', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Extroverted', 25, 4, 'Enjoys reading mystery novels and solving puzzles', '10', 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (10, 'Gerta Parfett', 'Sociology', 'Boston', 'Thoughtsphere', 'Offering Housing', 'Not interested', '$1400', '1 year', 'Organized', 'Independent', 15, 3, 'Passionate about environmental conservation and sustainability', '4', 1); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (11, 'Toiboid Caroll', 'Psychology', 'New York City', 'Devpoint', 'Offering Housing', 'Carpool Established', '$1600', '4 months', 'Neat', 'Introverted', 35, 5, 'Fascinated by technology and exploring new gadgets', '9', 40); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (12, 'Bryant Bradborne', 'Art', 'London', 'Meedoo', 'Looking for Roommates', 'Has Car', '$800', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Loves watching documentaries and learning about different topics', '', 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (13, 'Barnabe Whear', 'Biology', 'Boston', 'Livetube', 'Has Housing', 'Has Car', '$1100', '6 months', 'Minimal', 'Studious', 15, 1, 'Fascinated by history and visiting historical sites', '7', 13); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (14, 'Rossie Franzoli', 'Psychology', 'Seattle', 'Eare', 'Offering Housing', 'Carpool Established', '$300', '4 months', 'Messy', 'Extroverted', 20, 1, 'Enjoys reading mystery novels and solving puzzles', '4', 20); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (15, 'Anatola Catterill', 'Psychology', 'Seattle', 'Bluezoom', 'Has Housing', 'Not interested', '$900', '6 months', 'Neat', 'Introverted', 30, 6, 'Loves hiking and exploring new trails', '', 32); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (16, 'Hy Agglio', 'Biology', 'Chicago', 'Feedfish', 'Offering Housing', 'Not interested', '$2000', '1 year', 'Messy', 'Independent', 15, 3, 'Loves watching documentaries and learning about different topics', '2', 43); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (17, 'Mal Julien', 'Biology', 'Los Angeles', 'Rhycero', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Social', 15, 6, 'Fascinated by psychology and understanding human behavior', '7', 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (18, 'Odelia Willicott', 'Art', 'London', 'Yombu', 'Offering Housing', 'Looking for Carpool', '$1300', '6 months', 'Cluttered', 'Studious', 50, 4, 'Loves animals and volunteering at animal shelters', '3', 15); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (1, 'Rhett Pepperell', 'Biology', 'Seattle', 'Innotype', 'Not interested', 'Has Car', '$1200', '6 months', 'Neat', 'Night-Owl', 40, 6, 'Enjoys gardening and growing own vegetables', 3, 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (2, 'Tuesday Passie', 'Physics', 'London', 'Babbleset', 'Has Housing', 'Not interested', '$1000', '1 year', 'Minimal', 'Independent', 15, 7, 'Enjoys reading mystery novels and solving puzzles', 10, 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (3, 'Lorenzo Eyre', 'Sociology', 'Chicago', 'Aimbo', 'Looking for Roommates', 'Offering Carpool', '$300', '6 months', 'Minimal', 'Quiet', 40, 2, 'Passionate about cooking and trying new recipes', 2, 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (4, 'Gavrielle Devennie', 'Psychology', 'New York City', 'Mycat', 'Not interested', 'Not interested', '$1300', '4 months', 'Cluttered', 'Active', 30, 6, 'Passionate about volunteering and giving back to the community', 7, 27); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (5, 'Gordan Lucio', 'Psychology', 'Chicago', 'Realfire', 'Has Housing', 'Looking for Carpool', '$1400', '6 months', 'Minimal', 'Independent', 40, 4, 'Loves animals and volunteering at animal shelters', 9, 34); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (6, 'Rona Readie', 'Psychology', 'New York City', 'Chatterbridge', 'Offering Housing', 'Not interested', '$1200', '6 months', 'Neat', 'Night-Owl', 10, 5, 'Fascinated by astronomy and stargazing', 7, 31); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (7, 'Monica Fogden', 'Physics', 'San Francisco', 'Kayveo', 'Offering Housing', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Active', 25, 2, 'Passionate about environmental conservation and sustainability', 7, 50); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (8, 'Ramonda Presswell', 'Sociology', 'Seattle', 'Thoughtbeat', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Spotless', 'Independent', 45, 4, 'Adventurous spirit with a love for travel and experiencing new cultures', 4, 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (9, 'Jerrome Lathan', 'Physics', 'Seattle', 'Tagtune', 'Not interested', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Extroverted', 25, 4, 'Enjoys reading mystery novels and solving puzzles', 10, 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (10, 'Gerta Parfett', 'Sociology', 'Boston', 'Thoughtsphere', 'Offering Housing', 'Not interested', '$1400', '1 year', 'Organized', 'Independent', 15, 3, 'Passionate about environmental conservation and sustainability', 4, 1); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (11, 'Toiboid Caroll', 'Psychology', 'New York City', 'Devpoint', 'Offering Housing', 'Carpool Established', '$1600', '4 months', 'Neat', 'Introverted', 35, 5, 'Fascinated by technology and exploring new gadgets', 9, 40); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (12, 'Bryant Bradborne', 'Art', 'London', 'Meedoo', 'Looking for Roommates', 'Has Car', '$800', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Loves watching documentaries and learning about different topics', 8, 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (13, 'Barnabe Whear', 'Biology', 'Boston', 'Livetube', 'Has Housing', 'Has Car', '$1100', '6 months', 'Minimal', 'Studious', 15, 1, 'Fascinated by history and visiting historical sites', 7, 13); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (14, 'Rossie Franzoli', 'Psychology', 'Seattle', 'Eare', 'Offering Housing', 'Carpool Established', '$300', '4 months', 'Messy', 'Extroverted', 20, 1, 'Enjoys reading mystery novels and solving puzzles', 4, 20); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (15, 'Anatola Catterill', 'Psychology', 'Seattle', 'Bluezoom', 'Has Housing', 'Not interested', '$900', '6 months', 'Neat', 'Introverted', 30, 6, 'Loves hiking and exploring new trails', 8, 32); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (16, 'Hy Agglio', 'Biology', 'Chicago', 'Feedfish', 'Offering Housing', 'Not interested', '$2000', '1 year', 'Messy', 'Independent', 15, 3, 'Loves watching documentaries and learning about different topics', 2, 43); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (17, 'Mal Julien', 'Biology', 'Los Angeles', 'Rhycero', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Social', 15, 6, 'Fascinated by psychology and understanding human behavior', 7, 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (18, 'Odelia Willicott', 'Art', 'London', 'Yombu', 'Offering Housing', 'Looking for Carpool', '$1300', '6 months', 'Cluttered', 'Studious', 50, 4, 'Loves animals and volunteering at animal shelters', 3, 15); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (19, 'Hurlee Paynes', 'Mathematics', 'London', 'Jayo', 'Not interested', 'Carpool Established', '$900', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Fascinated by astronomy and stargazing', '', 5); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (20, 'Krysta Quinion', 'Mathematics', 'Seattle', 'Wordify', 'Offering Housing', 'Looking for Carpool', '$1600', '6 months', 'Minimal', 'Studious', 25, 7, 'Enjoys DIY projects and crafting handmade items', '4', 49); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (21, 'Shanda Feld', 'Physics', 'Chicago', 'Jamia', 'Offering Housing', 'Carpool Established', '$1200', '1 year', 'Organized', 'Night-Owl', 55, 3, 'Fascinated by history and visiting historical sites', '8', 24); From e566c2493c606bfef1ca48074078628fb3bf5067 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:47:08 -0500 Subject: [PATCH 048/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 160 +++++++++++++++--------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index ac3ed63fa7..0dbcb17ab1 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -151,88 +151,88 @@ insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, C insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (16, 'Hy Agglio', 'Biology', 'Chicago', 'Feedfish', 'Offering Housing', 'Not interested', '$2000', '1 year', 'Messy', 'Independent', 15, 3, 'Loves watching documentaries and learning about different topics', 2, 43); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (17, 'Mal Julien', 'Biology', 'Los Angeles', 'Rhycero', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Social', 15, 6, 'Fascinated by psychology and understanding human behavior', 7, 17); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (18, 'Odelia Willicott', 'Art', 'London', 'Yombu', 'Offering Housing', 'Looking for Carpool', '$1300', '6 months', 'Cluttered', 'Studious', 50, 4, 'Loves animals and volunteering at animal shelters', 3, 15); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (19, 'Hurlee Paynes', 'Mathematics', 'London', 'Jayo', 'Not interested', 'Carpool Established', '$900', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Fascinated by astronomy and stargazing', '', 5); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (20, 'Krysta Quinion', 'Mathematics', 'Seattle', 'Wordify', 'Offering Housing', 'Looking for Carpool', '$1600', '6 months', 'Minimal', 'Studious', 25, 7, 'Enjoys DIY projects and crafting handmade items', '4', 49); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (21, 'Shanda Feld', 'Physics', 'Chicago', 'Jamia', 'Offering Housing', 'Carpool Established', '$1200', '1 year', 'Organized', 'Night-Owl', 55, 3, 'Fascinated by history and visiting historical sites', '8', 24); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (22, 'Lari Panchen', 'Psychology', 'San Francisco', 'Youtags', 'Not interested', 'Carpool Established', '$1900', '1 year', 'Minimal', 'Extroverted', 25, 7, 'Fascinated by history and visiting historical sites', '7', 23); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (23, 'Stevie Atkin', 'Sociology', 'London', 'Ooba', 'Looking for Roommates', 'Not interested', '$1500', '4 months', 'Spotless', 'Social', 50, 1, 'Passionate about environmental conservation and sustainability', '', 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (24, 'Bobette Drohane', 'Biology', 'Los Angeles', 'Mybuzz', 'Not interested', 'Offering Carpool', '$1800', '4 months', 'Cluttered', 'Quiet', 20, 5, 'Loves hiking and exploring new trails', '9', 27); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (25, 'Boot Marushak', 'Finance', 'San Jose', 'Topicware', 'Has Housing', 'Looking for Carpool', '$600', '1 year', 'Neat', 'Social', 25, 2, 'Enjoys reading mystery novels and solving puzzles', '8', 19); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (26, 'Malory Cotgrave', 'Data Science', 'Boston', 'Jabberstorm', 'Looking for Roommates', 'Offering Carpool', '$900', '4 months', 'Spotless', 'Night-Owl', 35, 7, 'Enjoys photography and capturing beautiful moments', '8', 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (27, 'Jody Brownbridge', 'Psychology', 'London', 'Tavu', 'Looking for Roommates', 'Not interested', '$1700', '4 months', 'Cluttered', 'Night-Owl', 20, 7, 'Passionate about volunteering and giving back to the community', '3', 2); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (28, 'Bethanne Triggs', 'Computer Science', 'San Jose', 'Topdrive', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Quiet', 20, 6, 'Fascinated by psychology and understanding human behavior', '10', 39); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (29, 'Shelley Drohan', 'Finance', 'London', 'Omba', 'Has Housing', 'Has Car', '$800', '4 months', 'Cluttered', 'Night-Owl', 45, 1, 'Fascinated by technology and exploring new gadgets', '7', 42); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (30, 'Cris Roullier', 'Chemistry', 'San Jose', 'Shufflebeat', 'Not interested', 'Has Car', '$1500', '1 year', 'Cluttered', 'Social', 25, 5, 'Loves playing musical instruments and composing music', '4', 24); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (31, 'Mercie Dury', 'Computer Science', 'Seattle', 'Edgeblab', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Cluttered', 'Introverted', 45, 6, 'Loves animals and volunteering at animal shelters', '3', 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (32, 'Angelia Edgecombe', 'Mathematics', 'San Francisco', 'Youspan', 'Offering Housing', 'Has Car', '$900', '1 year', 'Messy', 'Studious', 35, 1, 'Enjoys painting and expressing creativity through art', '9', 6); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (33, 'Sigmund Adderley', 'Biology', 'D.C.', 'Divanoodle', 'Has Housing', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Extroverted', 15, 5, 'Passionate about environmental conservation and sustainability', '3', 21); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (34, 'Tedda Fincher', 'Finance', 'Chicago', 'Jaloo', 'Offering Housing', 'Not interested', '$900', '1 year', 'Neat', 'Active', 10, 4, 'Passionate about fitness and leading a healthy lifestyle', '1', 48); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (35, 'Vivian Kilgallen', 'Art', 'New York City', 'Dabshots', 'Looking for Roommates', 'Has Car', '$1100', '4 months', 'Messy', 'Active', 25, 4, 'Fascinated by psychology and understanding human behavior', '7', 13); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (36, 'Polly Danielut', 'Chemistry', 'Boston', 'Jabbersphere', 'Offering Housing', 'Offering Carpool', '$1700', '6 months', 'Organized', 'Studious', 25, 4, 'Loves hiking and exploring new trails', '10', 1); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (37, 'Carlina Berrow', 'Sociology', 'D.C.', 'Youspan', 'Looking for Roommates', 'Carpool Established', '$700', '6 months', 'Neat', 'Active', 30, 1, 'Fascinated by technology and exploring new gadgets', '1', 7); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (38, 'Caesar Belvin', 'Psychology', 'New York City', 'Topicshots', 'Looking for Housing', 'Has Car', '$2500', '6 months', 'Neat', 'Studious', 35, 2, 'Enjoys painting and expressing creativity through art', '10', 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (39, 'Maris Dark', 'Physics', 'Boston', 'Youspan', 'Looking for Roommates', 'Not interested', '$1200', '1 year', 'Spotless', 'Social', 55, 5, 'Enjoys photography and capturing beautiful moments', '', 42); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (40, 'Philippine Wrintmore', 'Sociology', 'Los Angeles', 'Flipbug', 'Offering Housing', 'Not interested', '$700', '4 months', 'Spotless', 'Introverted', 30, 7, 'Enjoys painting and expressing creativity through art', '10', 2); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (41, 'Niko Maidens', 'Biology', 'New York City', 'Yabox', 'Offering Housing', 'Looking for Carpool', '$1000', '4 months', 'Minimal', 'Studious', 45, 5, 'Loves animals and volunteering at animal shelters', '2', 3); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (42, 'Trey Poskitt', 'Art', 'D.C.', 'Pixope', 'Has Housing', 'Offering Carpool', '$400', '1 year', 'Cluttered', 'Studious', 55, 2, 'Loves playing musical instruments and composing music', '10', 18); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (43, 'El Wessing', 'Data Science', 'Boston', 'Yombu', 'Has Housing', 'Not interested', '$1800', '4 months', 'Neat', 'Social', 15, 3, 'Passionate about environmental conservation and sustainability', '1', 10); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (44, 'Opal Adel', 'Data Science', 'D.C.', 'Wordpedia', 'Not interested', 'Looking for Carpool', '$1800', '4 months', 'Spotless', 'Extroverted', 10, 3, 'Enjoys DIY projects and crafting handmade items', '8', 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (19, 'Hurlee Paynes', 'Mathematics', 'London', 'Jayo', 'Not interested', 'Carpool Established', '$900', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Fascinated by astronomy and stargazing', 3, 5); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (20, 'Krysta Quinion', 'Mathematics', 'Seattle', 'Wordify', 'Offering Housing', 'Looking for Carpool', '$1600', '6 months', 'Minimal', 'Studious', 25, 7, 'Enjoys DIY projects and crafting handmade items', 4, 49); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (21, 'Shanda Feld', 'Physics', 'Chicago', 'Jamia', 'Offering Housing', 'Carpool Established', '$1200', '1 year', 'Organized', 'Night-Owl', 55, 3, 'Fascinated by history and visiting historical sites', 8, 24); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (22, 'Lari Panchen', 'Psychology', 'San Francisco', 'Youtags', 'Not interested', 'Carpool Established', '$1900', '1 year', 'Minimal', 'Extroverted', 25, 7, 'Fascinated by history and visiting historical sites', 7, 23); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (23, 'Stevie Atkin', 'Sociology', 'London', 'Ooba', 'Looking for Roommates', 'Not interested', '$1500', '4 months', 'Spotless', 'Social', 50, 1, 'Passionate about environmental conservation and sustainability', 8, 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (24, 'Bobette Drohane', 'Biology', 'Los Angeles', 'Mybuzz', 'Not interested', 'Offering Carpool', '$1800', '4 months', 'Cluttered', 'Quiet', 20, 5, 'Loves hiking and exploring new trails', 9, 27); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (25, 'Boot Marushak', 'Finance', 'San Jose', 'Topicware', 'Has Housing', 'Looking for Carpool', '$600', '1 year', 'Neat', 'Social', 25, 2, 'Enjoys reading mystery novels and solving puzzles', 8, 19); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (26, 'Malory Cotgrave', 'Data Science', 'Boston', 'Jabberstorm', 'Looking for Roommates', 'Offering Carpool', '$900', '4 months', 'Spotless', 'Night-Owl', 35, 7, 'Enjoys photography and capturing beautiful moments', 8, 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (27, 'Jody Brownbridge', 'Psychology', 'London', 'Tavu', 'Looking for Roommates', 'Not interested', '$1700', '4 months', 'Cluttered', 'Night-Owl', 20, 7, 'Passionate about volunteering and giving back to the community', 3, 2); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (28, 'Bethanne Triggs', 'Computer Science', 'San Jose', 'Topdrive', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Quiet', 20, 6, 'Fascinated by psychology and understanding human behavior', 10, 39); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (29, 'Shelley Drohan', 'Finance', 'London', 'Omba', 'Has Housing', 'Has Car', '$800', '4 months', 'Cluttered', 'Night-Owl', 45, 1, 'Fascinated by technology and exploring new gadgets', 7, 42); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (30, 'Cris Roullier', 'Chemistry', 'San Jose', 'Shufflebeat', 'Not interested', 'Has Car', '$1500', '1 year', 'Cluttered', 'Social', 25, 5, 'Loves playing musical instruments and composing music', 4, 24); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (31, 'Mercie Dury', 'Computer Science', 'Seattle', 'Edgeblab', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Cluttered', 'Introverted', 45, 6, 'Loves animals and volunteering at animal shelters', 3, 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (32, 'Angelia Edgecombe', 'Mathematics', 'San Francisco', 'Youspan', 'Offering Housing', 'Has Car', '$900', '1 year', 'Messy', 'Studious', 35, 1, 'Enjoys painting and expressing creativity through art', 9, 6); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (33, 'Sigmund Adderley', 'Biology', 'D.C.', 'Divanoodle', 'Has Housing', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Extroverted', 15, 5, 'Passionate about environmental conservation and sustainability', 3, 21); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (34, 'Tedda Fincher', 'Finance', 'Chicago', 'Jaloo', 'Offering Housing', 'Not interested', '$900', '1 year', 'Neat', 'Active', 10, 4, 'Passionate about fitness and leading a healthy lifestyle', 1, 48); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (35, 'Vivian Kilgallen', 'Art', 'New York City', 'Dabshots', 'Looking for Roommates', 'Has Car', '$1100', '4 months', 'Messy', 'Active', 25, 4, 'Fascinated by psychology and understanding human behavior', 7, 13); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (36, 'Polly Danielut', 'Chemistry', 'Boston', 'Jabbersphere', 'Offering Housing', 'Offering Carpool', '$1700', '6 months', 'Organized', 'Studious', 25, 4, 'Loves hiking and exploring new trails', 10, 1); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (37, 'Carlina Berrow', 'Sociology', 'D.C.', 'Youspan', 'Looking for Roommates', 'Carpool Established', '$700', '6 months', 'Neat', 'Active', 30, 1, 'Fascinated by technology and exploring new gadgets', 1, 7); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (38, 'Caesar Belvin', 'Psychology', 'New York City', 'Topicshots', 'Looking for Housing', 'Has Car', '$2500', '6 months', 'Neat', 'Studious', 35, 2, 'Enjoys painting and expressing creativity through art', 10, 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (39, 'Maris Dark', 'Physics', 'Boston', 'Youspan', 'Looking for Roommates', 'Not interested', '$1200', '1 year', 'Spotless', 'Social', 55, 5, 'Enjoys photography and capturing beautiful moments', 9, 42); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (40, 'Philippine Wrintmore', 'Sociology', 'Los Angeles', 'Flipbug', 'Offering Housing', 'Not interested', '$700', '4 months', 'Spotless', 'Introverted', 30, 7, 'Enjoys painting and expressing creativity through art', 10, 2); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (41, 'Niko Maidens', 'Biology', 'New York City', 'Yabox', 'Offering Housing', 'Looking for Carpool', '$1000', '4 months', 'Minimal', 'Studious', 45, 5, 'Loves animals and volunteering at animal shelters', 2, 3); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (42, 'Trey Poskitt', 'Art', 'D.C.', 'Pixope', 'Has Housing', 'Offering Carpool', '$400', '1 year', 'Cluttered', 'Studious', 55, 2, 'Loves playing musical instruments and composing music', 10, 18); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (43, 'El Wessing', 'Data Science', 'Boston', 'Yombu', 'Has Housing', 'Not interested', '$1800', '4 months', 'Neat', 'Social', 15, 3, 'Passionate about environmental conservation and sustainability', 2, 10); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (44, 'Opal Adel', 'Data Science', 'D.C.', 'Wordpedia', 'Not interested', 'Looking for Carpool', '$1800', '4 months', 'Spotless', 'Extroverted', 10, 3, 'Enjoys DIY projects and crafting handmade items', 8, 29); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (45, 'Gertrud Obeney', 'Finance', 'San Francisco', 'Eare', 'Looking for Roommates', 'Looking for Carpool', '$1900', '1 year', 'Spotless', 'Night-Owl', 45, 7, 'Fascinated by history and visiting historical sites', '9', 21); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (46, 'Mandel Raffeorty', 'Sociology', 'London', 'Yamia', 'Has Housing', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Active', 35, 4, 'Loves playing musical instruments and composing music', '4', 49); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (46, 'Mandel Raffeorty', 'Sociology', 'London', 'Yamia', 'Has Housing', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Active', 35, 4, 'Loves playing musical instruments and composing music', 4, 49); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (47, 'Chickie Handforth', 'Physics', 'Chicago', 'Zava', 'Offering Housing', 'Looking for Carpool', '$1700', '1 year', 'Organized', 'Independent', 50, 6, 'Enjoys photography and capturing beautiful moments', '2', 49); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (48, 'Kalie Moiser', 'Biology', 'New York City', 'Vimbo', 'Looking for Roommates', 'Looking for Carpool', '$1900', '4 months', 'Minimal', 'Night-Owl', 15, 3, 'Fascinated by astronomy and stargazing', '1', 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (49, 'Callida Tunno', 'Mathematics', 'London', 'Twiyo', 'Not interested', 'Carpool Established', '$1100', '1 year', 'Minimal', 'Studious', 35, 5, 'Enjoys photography and capturing beautiful moments', '1', 12); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (50, 'Elsy Karlowicz', 'Physics', 'San Jose', 'Flipstorm', 'Looking for Housing', 'Looking for Carpool', '$600', '6 months', 'Spotless', 'Extroverted', 30, 5, 'Loves hiking and exploring new trails', '3', 11); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (51, 'Corbin Ishaki', 'Sociology', 'Chicago', 'Buzzster', 'Not interested', 'Carpool Established', '$1000', '1 year', 'Minimal', 'Independent', 30, 1, 'Loves playing musical instruments and composing music', '9', 7); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (52, 'Aurie Wakeman', 'Computer Science', 'Los Angeles', 'Yozio', 'Looking for Roommates', 'Carpool Established', '$1200', '6 months', 'Organized', 'Independent', 25, 4, 'Enjoys photography and capturing beautiful moments', '2', 12); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (53, 'Kirstyn Busby', 'Biology', 'San Francisco', 'Fiveclub', 'Looking for Housing', 'Offering Carpool', '$800', '6 months', 'Cluttered', 'Introverted', 25, 7, 'Passionate about cooking and trying new recipes', '7', 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (54, 'Garreth Dusting', 'Mathematics', 'San Francisco', 'Voonte', 'Not interested', 'Has Car', '$2000', '1 year', 'Cluttered', 'Quiet', 55, 2, 'Passionate about volunteering and giving back to the community', '', 12); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (55, 'Kyle Gerardot', 'Chemistry', 'Boston', 'Roomm', 'Not interested', 'Offering Carpool', '$1300', '4 months', 'Cluttered', 'Introverted', 20, 4, 'Loves playing musical instruments and composing music', '2', 42); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (56, 'Dannel Reuben', 'Physics', 'D.C.', 'Thoughtblab', 'Looking for Housing', 'Carpool Established', '$1700', '4 months', 'Organized', 'Studious', 45, 2, 'Enjoys painting and expressing creativity through art', '6', 26); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (57, 'Ted Yukhnov', 'Chemistry', 'Los Angeles', 'Feedbug', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Spotless', 'Quiet', 15, 7, 'Loves hiking and exploring new trails', '5', 21); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (58, 'Ethe Alven', 'Data Science', 'San Jose', 'Edgeify', 'Offering Housing', 'Offering Carpool', '$1100', '4 months', 'Minimal', 'Extroverted', 30, 5, 'Passionate about volunteering and giving back to the community', '2', 7); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (59, 'Fernando Mouse', 'Chemistry', 'New York City', 'Voolia', 'Looking for Roommates', 'Carpool Established', '$900', '6 months', 'Messy', 'Active', 30, 3, 'Loves playing musical instruments and composing music', '8', 32); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (60, 'Rockie Elner', 'Psychology', 'Los Angeles', 'Yamia', 'Looking for Housing', 'Not interested', '$1400', '1 year', 'Spotless', 'Introverted', 35, 7, 'Loves playing musical instruments and composing music', '3', 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (61, 'Coretta Scarasbrick', 'Biology', 'Seattle', 'Photojam', 'Not interested', 'Looking for Carpool', '$700', '4 months', 'Minimal', 'Extroverted', 55, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', '1', 25); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (62, 'Consolata Danzelman', 'Biology', 'Seattle', 'Youbridge', 'Has Housing', 'Carpool Established', '$700', '6 months', 'Organized', 'Studious', 10, 6, 'Enjoys yoga and meditation for relaxation', '8', 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (63, 'Charles Server', 'Art', 'Los Angeles', 'Feedbug', 'Looking for Roommates', 'Not interested', '$1700', '6 months', 'Minimal', 'Social', 55, 7, 'Enjoys reading mystery novels and solving puzzles', '3', 13); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (64, 'Rosalynd Mowat', 'Computer Science', 'San Jose', 'Eamia', 'Has Housing', 'Offering Carpool', '$700', '1 year', 'Cluttered', 'Introverted', 10, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', '9', 31); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (65, 'Janeva Winton', 'Biology', 'Chicago', 'Dynazzy', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Neat', 'Independent', 30, 7, 'Passionate about cooking and trying new recipes', '5', 30); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (66, 'Blakeley McFayden', 'Psychology', 'New York City', 'Trunyx', 'Offering Housing', 'Has Car', '$1200', '4 months', 'Neat', 'Active', 20, 7, 'Enjoys photography and capturing beautiful moments', '10', 49); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (67, 'Marian Aguirre', 'Computer Science', 'San Francisco', 'Wikibox', 'Offering Housing', 'Carpool Established', '$300', '6 months', 'Messy', 'Extroverted', 10, 6, 'Fascinated by psychology and understanding human behavior', '3', 34); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (68, 'Sergei Piper', 'Biology', 'San Francisco', 'Topicshots', 'Not interested', 'Has Car', '$600', '1 year', 'Spotless', 'Social', 40, 7, 'Enjoys watching sports and playing recreational games', '10', 4); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (69, 'Dania Roust', 'Computer Science', 'Boston', 'Cogidoo', 'Looking for Roommates', 'Has Car', '$900', '1 year', 'Messy', 'Quiet', 30, 2, 'Passionate about cooking and trying new recipes', '3', 6); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (70, 'Joane Bavidge', 'Physics', 'San Francisco', 'Yakidoo', 'Looking for Roommates', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Independent', 55, 7, 'Passionate about fitness and leading a healthy lifestyle', '10', 50); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (71, 'Maisie Huyghe', 'Sociology', 'New York City', 'Linkbuzz', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Messy', 'Active', 55, 4, 'Passionate about environmental conservation and sustainability', '1', 47); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (72, 'Ulrich Grolle', 'Computer Science', 'Los Angeles', 'Thoughtbeat', 'Looking for Roommates', 'Carpool Established', '$1700', '4 months', 'Cluttered', 'Social', 10, 4, 'Loves playing musical instruments and composing music', '7', 41); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (73, 'Thor Symington', 'Data Science', 'New York City', 'Nlounge', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Minimal', 'Night-Owl', 55, 1, 'Passionate about environmental conservation and sustainability', '4', 10); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (74, 'Penelopa Peet', 'Chemistry', 'Seattle', 'Dazzlesphere', 'Looking for Housing', 'Not interested', '$900', '1 year', 'Organized', 'Active', 55, 6, 'Loves playing musical instruments and composing music', '5', 33); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (75, 'Sanson Shenley', 'Biology', 'Chicago', 'Myworks', 'Not interested', 'Looking for Carpool', '$300', '6 months', 'Neat', 'Social', 10, 2, 'Enjoys painting and expressing creativity through art', '3', 27); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (76, 'Dorian Ingry', 'Mathematics', 'Boston', 'Zoonder', 'Looking for Housing', 'Looking for Carpool', '$1300', '4 months', 'Spotless', 'Night-Owl', 45, 6, 'Loves animals and volunteering at animal shelters', '3', 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (77, 'Gerri De Ambrosis', 'Computer Science', 'Boston', 'Tagchat', 'Offering Housing', 'Has Car', '$1600', '1 year', 'Organized', 'Social', 40, 6, 'Fascinated by psychology and understanding human behavior', '9', 30); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (78, 'Delly Benediktovich', 'Psychology', 'San Francisco', 'Pixonyx', 'Looking for Housing', 'Carpool Established', '$1400', '4 months', 'Neat', 'Extroverted', 30, 6, 'Loves watching documentaries and learning about different topics', '8', 41); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (79, 'Maurie Silverman', 'Psychology', 'Chicago', 'Skajo', 'Offering Housing', 'Has Car', '$1300', '1 year', 'Messy', 'Active', 20, 2, 'Enjoys DIY projects and crafting handmade items', '8', 28); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (80, 'Yetty Lippo', 'Sociology', 'New York City', 'Oyoyo', 'Not interested', 'Has Car', '$2000', '4 months', 'Organized', 'Night-Owl', 25, 1, 'Enjoys DIY projects and crafting handmade items', '6', 33); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (81, 'Fredelia Pinck', 'Mathematics', 'San Francisco', 'Leexo', 'Looking for Housing', 'Has Car', '$1500', '4 months', 'Spotless', 'Introverted', 15, 6, 'Loves hiking and exploring new trails', '10', 30); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (82, 'Darius Bessent', 'Psychology', 'Boston', 'Devpoint', 'Not interested', 'Not interested', '$1300', '6 months', 'Cluttered', 'Active', 45, 4, 'Passionate about volunteering and giving back to the community', '3', 31); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (83, 'Micheal Goodluck', 'Chemistry', 'Boston', 'Jayo', 'Offering Housing', 'Not interested', '$800', '4 months', 'Minimal', 'Extroverted', 25, 6, 'Passionate about environmental conservation and sustainability', '9', 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (84, 'Jordan Marcq', 'Chemistry', 'Seattle', 'Tavu', 'Looking for Housing', 'Offering Carpool', '$400', '4 months', 'Cluttered', 'Introverted', 10, 5, 'Fascinated by astronomy and stargazing', '5', 37); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (85, 'Sibeal Stockhill', 'Computer Science', 'Boston', 'Mydo', 'Not interested', 'Not interested', '$800', '6 months', 'Neat', 'Quiet', 10, 1, 'Passionate about cooking and trying new recipes', '3', 41); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (86, 'Will Guerry', 'Data Science', 'Seattle', 'Quimm', 'Offering Housing', 'Offering Carpool', '$1700', '4 months', 'Organized', 'Introverted', 20, 6, 'Loves animals and volunteering at animal shelters', '3', 23); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (87, 'Abbe Macari', 'Data Science', 'Boston', 'Fivespan', 'Has Housing', 'Has Car', '$900', '6 months', 'Organized', 'Studious', 35, 2, 'Fascinated by astronomy and stargazing', '', 35); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (88, 'Hayward Kirvell', 'Data Science', 'New York City', 'Twitterlist', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Cluttered', 'Night-Owl', 35, 5, 'Loves hiking and exploring new trails', '6', 9); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (89, 'Hamnet Rosenkrantz', 'Psychology', 'Boston', 'Roombo', 'Not interested', 'Looking for Carpool', '$1100', '4 months', 'Organized', 'Extroverted', 40, 4, 'Enjoys watching sports and playing recreational games', '2', 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (90, 'Caria Trimming', 'Finance', 'New York City', 'Quamba', 'Offering Housing', 'Not interested', '$1000', '1 year', 'Messy', 'Night-Owl', 50, 1, 'Loves watching documentaries and learning about different topics', '4', 14); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (91, 'Eberto Lindbergh', 'Chemistry', 'Chicago', 'Thoughtbridge', 'Has Housing', 'Carpool Established', '$1500', '1 year', 'Cluttered', 'Independent', 55, 2, 'Loves watching documentaries and learning about different topics', '4', 1); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (92, 'Romeo Sheahan', 'Psychology', 'San Jose', 'Edgetag', 'Offering Housing', 'Not interested', '$1600', '1 year', 'Cluttered', 'Night-Owl', 20, 1, 'Enjoys DIY projects and crafting handmade items', '6', 24); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (93, 'Alli O''Downe', 'Finance', 'Seattle', 'Yombu', 'Looking for Roommates', 'Not interested', '$1700', '1 year', 'Minimal', 'Introverted', 20, 7, 'Passionate about environmental conservation and sustainability', '9', 6); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (94, 'Olag Hembling', 'Biology', 'Seattle', 'Riffpath', 'Looking for Roommates', 'Looking for Carpool', '$1500', '6 months', 'Organized', 'Introverted', 55, 7, 'Loves playing musical instruments and composing music', '4', 11); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (95, 'Waite Frediani', 'Sociology', 'New York City', 'Devshare', 'Offering Housing', 'Has Car', '$300', '1 year', 'Spotless', 'Extroverted', 40, 7, 'Passionate about volunteering and giving back to the community', '6', 16); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (96, 'Cynde Simeoli', 'Data Science', 'San Francisco', 'Youspan', 'Has Housing', 'Looking for Carpool', '$2000', '1 year', 'Messy', 'Active', 10, 2, 'Enjoys yoga and meditation for relaxation', '1', 43); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (97, 'Gonzalo Yeowell', 'Sociology', 'Seattle', 'Zoomlounge', 'Offering Housing', 'Looking for Carpool', '$2000', '4 months', 'Minimal', 'Quiet', 10, 6, 'Enjoys watching sports and playing recreational games', '1', 15); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (98, 'Darlene Baillie', 'Art', 'San Jose', 'Meembee', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Extroverted', 35, 1, 'Passionate about fitness and leading a healthy lifestyle', '2', 25); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (99, 'Emmalyn Kneaphsey', 'Art', 'Boston', 'Jayo', 'Offering Housing', 'Looking for Carpool', '$1500', '4 months', 'Organized', 'Night-Owl', 35, 6, 'Enjoys reading mystery novels and solving puzzles', '2', 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (100, 'Farlay Mathivon', 'Sociology', 'San Jose', 'Eare', 'Not interested', 'Not interested', '$400', '4 months', 'Cluttered', 'Active', 40, 2, 'Loves playing musical instruments and composing music', '4', 1); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (48, 'Kalie Moiser', 'Biology', 'New York City', 'Vimbo', 'Looking for Roommates', 'Looking for Carpool', '$1900', '4 months', 'Minimal', 'Night-Owl', 15, 3, 'Fascinated by astronomy and stargazing',1, 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (49, 'Callida Tunno', 'Mathematics', 'London', 'Twiyo', 'Not interested', 'Carpool Established', '$1100', '1 year', 'Minimal', 'Studious', 35, 5, 'Enjoys photography and capturing beautiful moments', 1, 12); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (50, 'Elsy Karlowicz', 'Physics', 'San Jose', 'Flipstorm', 'Looking for Housing', 'Looking for Carpool', '$600', '6 months', 'Spotless', 'Extroverted', 30, 5, 'Loves hiking and exploring new trails', 3, 11); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (51, 'Corbin Ishaki', 'Sociology', 'Chicago', 'Buzzster', 'Not interested', 'Carpool Established', '$1000', '1 year', 'Minimal', 'Independent', 30, 1, 'Loves playing musical instruments and composing music', 9, 7); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (52, 'Aurie Wakeman', 'Computer Science', 'Los Angeles', 'Yozio', 'Looking for Roommates', 'Carpool Established', '$1200', '6 months', 'Organized', 'Independent', 25, 4, 'Enjoys photography and capturing beautiful moments', 2, 12); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (53, 'Kirstyn Busby', 'Biology', 'San Francisco', 'Fiveclub', 'Looking for Housing', 'Offering Carpool', '$800', '6 months', 'Cluttered', 'Introverted', 25, 7, 'Passionate about cooking and trying new recipes', 7, 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (54, 'Garreth Dusting', 'Mathematics', 'San Francisco', 'Voonte', 'Not interested', 'Has Car', '$2000', '1 year', 'Cluttered', 'Quiet', 55, 2, 'Passionate about volunteering and giving back to the community', 8, 12); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (55, 'Kyle Gerardot', 'Chemistry', 'Boston', 'Roomm', 'Not interested', 'Offering Carpool', '$1300', '4 months', 'Cluttered', 'Introverted', 20, 4, 'Loves playing musical instruments and composing music', 2, 42); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (56, 'Dannel Reuben', 'Physics', 'D.C.', 'Thoughtblab', 'Looking for Housing', 'Carpool Established', '$1700', '4 months', 'Organized', 'Studious', 45, 2, 'Enjoys painting and expressing creativity through art', 6, 26); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (57, 'Ted Yukhnov', 'Chemistry', 'Los Angeles', 'Feedbug', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Spotless', 'Quiet', 15, 7, 'Loves hiking and exploring new trails', 5, 21); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (58, 'Ethe Alven', 'Data Science', 'San Jose', 'Edgeify', 'Offering Housing', 'Offering Carpool', '$1100', '4 months', 'Minimal', 'Extroverted', 30, 5, 'Passionate about volunteering and giving back to the community', 2, 7); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (59, 'Fernando Mouse', 'Chemistry', 'New York City', 'Voolia', 'Looking for Roommates', 'Carpool Established', '$900', '6 months', 'Messy', 'Active', 30, 3, 'Loves playing musical instruments and composing music', 8, 32); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (60, 'Rockie Elner', 'Psychology', 'Los Angeles', 'Yamia', 'Looking for Housing', 'Not interested', '$1400', '1 year', 'Spotless', 'Introverted', 35, 7, 'Loves playing musical instruments and composing music', 3, 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (61, 'Coretta Scarasbrick', 'Biology', 'Seattle', 'Photojam', 'Not interested', 'Looking for Carpool', '$700', '4 months', 'Minimal', 'Extroverted', 55, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', 1, 25); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (62, 'Consolata Danzelman', 'Biology', 'Seattle', 'Youbridge', 'Has Housing', 'Carpool Established', '$700', '6 months', 'Organized', 'Studious', 10, 6, 'Enjoys yoga and meditation for relaxation', 8, 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (63, 'Charles Server', 'Art', 'Los Angeles', 'Feedbug', 'Looking for Roommates', 'Not interested', '$1700', '6 months', 'Minimal', 'Social', 55, 7, 'Enjoys reading mystery novels and solving puzzles', 3, 13); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (64, 'Rosalynd Mowat', 'Computer Science', 'San Jose', 'Eamia', 'Has Housing', 'Offering Carpool', '$700', '1 year', 'Cluttered', 'Introverted', 10, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', 9, 31); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (65, 'Janeva Winton', 'Biology', 'Chicago', 'Dynazzy', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Neat', 'Independent', 30, 7, 'Passionate about cooking and trying new recipes', 5, 30); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (66, 'Blakeley McFayden', 'Psychology', 'New York City', 'Trunyx', 'Offering Housing', 'Has Car', '$1200', '4 months', 'Neat', 'Active', 20, 7, 'Enjoys photography and capturing beautiful moments', 10, 49); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (67, 'Marian Aguirre', 'Computer Science', 'San Francisco', 'Wikibox', 'Offering Housing', 'Carpool Established', '$300', '6 months', 'Messy', 'Extroverted', 10, 6, 'Fascinated by psychology and understanding human behavior', 3, 34); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (68, 'Sergei Piper', 'Biology', 'San Francisco', 'Topicshots', 'Not interested', 'Has Car', '$600', '1 year', 'Spotless', 'Social', 40, 7, 'Enjoys watching sports and playing recreational games', 10, 4); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (69, 'Dania Roust', 'Computer Science', 'Boston', 'Cogidoo', 'Looking for Roommates', 'Has Car', '$900', '1 year', 'Messy', 'Quiet', 30, 2, 'Passionate about cooking and trying new recipes', 3, 6); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (70, 'Joane Bavidge', 'Physics', 'San Francisco', 'Yakidoo', 'Looking for Roommates', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Independent', 55, 7, 'Passionate about fitness and leading a healthy lifestyle', 10, 50); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (71, 'Maisie Huyghe', 'Sociology', 'New York City', 'Linkbuzz', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Messy', 'Active', 55, 4, 'Passionate about environmental conservation and sustainability', 1, 47); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (72, 'Ulrich Grolle', 'Computer Science', 'Los Angeles', 'Thoughtbeat', 'Looking for Roommates', 'Carpool Established', '$1700', '4 months', 'Cluttered', 'Social', 10, 4, 'Loves playing musical instruments and composing music', 7, 41); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (73, 'Thor Symington', 'Data Science', 'New York City', 'Nlounge', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Minimal', 'Night-Owl', 55, 1, 'Passionate about environmental conservation and sustainability', 4, 10); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (74, 'Penelopa Peet', 'Chemistry', 'Seattle', 'Dazzlesphere', 'Looking for Housing', 'Not interested', '$900', '1 year', 'Organized', 'Active', 55, 6, 'Loves playing musical instruments and composing music', 5, 33); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (75, 'Sanson Shenley', 'Biology', 'Chicago', 'Myworks', 'Not interested', 'Looking for Carpool', '$300', '6 months', 'Neat', 'Social', 10, 2, 'Enjoys painting and expressing creativity through art', 3, 27); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (76, 'Dorian Ingry', 'Mathematics', 'Boston', 'Zoonder', 'Looking for Housing', 'Looking for Carpool', '$1300', '4 months', 'Spotless', 'Night-Owl', 45, 6, 'Loves animals and volunteering at animal shelters', 3, 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (77, 'Gerri De Ambrosis', 'Computer Science', 'Boston', 'Tagchat', 'Offering Housing', 'Has Car', '$1600', '1 year', 'Organized', 'Social', 40, 6, 'Fascinated by psychology and understanding human behavior', 9, 30); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (78, 'Delly Benediktovich', 'Psychology', 'San Francisco', 'Pixonyx', 'Looking for Housing', 'Carpool Established', '$1400', '4 months', 'Neat', 'Extroverted', 30, 6, 'Loves watching documentaries and learning about different topics', 8, 41); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (79, 'Maurie Silverman', 'Psychology', 'Chicago', 'Skajo', 'Offering Housing', 'Has Car', '$1300', '1 year', 'Messy', 'Active', 20, 2, 'Enjoys DIY projects and crafting handmade items', 8, 28); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (80, 'Yetty Lippo', 'Sociology', 'New York City', 'Oyoyo', 'Not interested', 'Has Car', '$2000', '4 months', 'Organized', 'Night-Owl', 25, 1, 'Enjoys DIY projects and crafting handmade items', 6, 33); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (81, 'Fredelia Pinck', 'Mathematics', 'San Francisco', 'Leexo', 'Looking for Housing', 'Has Car', '$1500', '4 months', 'Spotless', 'Introverted', 15, 6, 'Loves hiking and exploring new trails', 10, 30); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (82, 'Darius Bessent', 'Psychology', 'Boston', 'Devpoint', 'Not interested', 'Not interested', '$1300', '6 months', 'Cluttered', 'Active', 45, 4, 'Passionate about volunteering and giving back to the community', 3, 31); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (83, 'Micheal Goodluck', 'Chemistry', 'Boston', 'Jayo', 'Offering Housing', 'Not interested', '$800', '4 months', 'Minimal', 'Extroverted', 25, 6, 'Passionate about environmental conservation and sustainability', 9, 44); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (84, 'Jordan Marcq', 'Chemistry', 'Seattle', 'Tavu', 'Looking for Housing', 'Offering Carpool', '$400', '4 months', 'Cluttered', 'Introverted', 10, 5, 'Fascinated by astronomy and stargazing', 5, 37); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (85, 'Sibeal Stockhill', 'Computer Science', 'Boston', 'Mydo', 'Not interested', 'Not interested', '$800', '6 months', 'Neat', 'Quiet', 10, 1, 'Passionate about cooking and trying new recipes', 3, 41); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (86, 'Will Guerry', 'Data Science', 'Seattle', 'Quimm', 'Offering Housing', 'Offering Carpool', '$1700', '4 months', 'Organized', 'Introverted', 20, 6, 'Loves animals and volunteering at animal shelters', 3, 23); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (87, 'Abbe Macari', 'Data Science', 'Boston', 'Fivespan', 'Has Housing', 'Has Car', '$900', '6 months', 'Organized', 'Studious', 35, 2, 'Fascinated by astronomy and stargazing', 7, 35); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (88, 'Hayward Kirvell', 'Data Science', 'New York City', 'Twitterlist', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Cluttered', 'Night-Owl', 35, 5, 'Loves hiking and exploring new trails', 6, 9); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (89, 'Hamnet Rosenkrantz', 'Psychology', 'Boston', 'Roombo', 'Not interested', 'Looking for Carpool', '$1100', '4 months', 'Organized', 'Extroverted', 40, 4, 'Enjoys watching sports and playing recreational games', 2, 17); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (90, 'Caria Trimming', 'Finance', 'New York City', 'Quamba', 'Offering Housing', 'Not interested', '$1000', '1 year', 'Messy', 'Night-Owl', 50, 1, 'Loves watching documentaries and learning about different topics', 4, 14); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (91, 'Eberto Lindbergh', 'Chemistry', 'Chicago', 'Thoughtbridge', 'Has Housing', 'Carpool Established', '$1500', '1 year', 'Cluttered', 'Independent', 55, 2, 'Loves watching documentaries and learning about different topics', 4, 1); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (92, 'Romeo Sheahan', 'Psychology', 'San Jose', 'Edgetag', 'Offering Housing', 'Not interested', '$1600', '1 year', 'Cluttered', 'Night-Owl', 20, 1, 'Enjoys DIY projects and crafting handmade items', 6, 24); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (93, 'Alli O''Downe', 'Finance', 'Seattle', 'Yombu', 'Looking for Roommates', 'Not interested', '$1700', '1 year', 'Minimal', 'Introverted', 20, 7, 'Passionate about environmental conservation and sustainability', 9, 6); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (94, 'Olag Hembling', 'Biology', 'Seattle', 'Riffpath', 'Looking for Roommates', 'Looking for Carpool', '$1500', '6 months', 'Organized', 'Introverted', 55, 7, 'Loves playing musical instruments and composing music', 4, 11); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (95, 'Waite Frediani', 'Sociology', 'New York City', 'Devshare', 'Offering Housing', 'Has Car', '$300', '1 year', 'Spotless', 'Extroverted', 40, 7, 'Passionate about volunteering and giving back to the community', 6, 16); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (96, 'Cynde Simeoli', 'Data Science', 'San Francisco', 'Youspan', 'Has Housing', 'Looking for Carpool', '$2000', '1 year', 'Messy', 'Active', 10, 2, 'Enjoys yoga and meditation for relaxation', 1, 43); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (97, 'Gonzalo Yeowell', 'Sociology', 'Seattle', 'Zoomlounge', 'Offering Housing', 'Looking for Carpool', '$2000', '4 months', 'Minimal', 'Quiet', 10, 6, 'Enjoys watching sports and playing recreational games', 1, 15); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (98, 'Darlene Baillie', 'Art', 'San Jose', 'Meembee', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Extroverted', 35, 1, 'Passionate about fitness and leading a healthy lifestyle', 2, 25); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (99, 'Emmalyn Kneaphsey', 'Art', 'Boston', 'Jayo', 'Offering Housing', 'Looking for Carpool', '$1500', '4 months', 'Organized', 'Night-Owl', 35, 6, 'Enjoys reading mystery novels and solving puzzles', 2, 29); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (100, 'Farlay Mathivon', 'Sociology', 'San Jose', 'Eare', 'Not interested', 'Not interested', '$400', '4 months', 'Cluttered', 'Active', 40, 2, 'Loves playing musical instruments and composing music', 4, 1); -- Chat insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (1, 3, 'Network connectivity issues', '2024-04-10 00:27:14', 5); From 41f781c5daf357cd00011418d0ee241708f044e0 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 13:58:04 -0500 Subject: [PATCH 049/305] updates --- database-files/SyncSpace-data.sql | 204 ++++++++++++++-------------- database-files/SyncSpaceUpdated.sql | 1 + 2 files changed, 104 insertions(+), 101 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 0dbcb17ab1..00cdbc0b83 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -133,7 +133,7 @@ insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); -- Student data -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (1, 'Rhett Pepperell', 'Biology', 'Seattle', 'Innotype', 'Not interested', 'Has Car', '$1200', '6 months', 'Neat', 'Night-Owl', 40, 6, 'Enjoys gardening and growing own vegetables', 3, 8); +insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values (1, 'Rhett Pepperell', 'Biology', 'Seattle', 'Innotype', 'Not interested', 'Has Car', '$1200', '6 months', 'Neat', 'Night-Owl', 40, 6, 'Enjoys gardening and growing own vegetables', 3, 8); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (2, 'Tuesday Passie', 'Physics', 'London', 'Babbleset', 'Has Housing', 'Not interested', '$1000', '1 year', 'Minimal', 'Independent', 15, 7, 'Enjoys reading mystery novels and solving puzzles', 10, 17); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (3, 'Lorenzo Eyre', 'Sociology', 'Chicago', 'Aimbo', 'Looking for Roommates', 'Offering Carpool', '$300', '6 months', 'Minimal', 'Quiet', 40, 2, 'Passionate about cooking and trying new recipes', 2, 8); insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (4, 'Gavrielle Devennie', 'Psychology', 'New York City', 'Mycat', 'Not interested', 'Not interested', '$1300', '4 months', 'Cluttered', 'Active', 30, 6, 'Passionate about volunteering and giving back to the community', 7, 27); @@ -287,108 +287,110 @@ insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (49, insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (50, 2, 'Virus detected on device', '2024-03-01 14:51:56', 10); -- Events -insert into Events (EventID, CommunityID, Date, Name, Description) values (1, 10, '4/21/2024', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (2, 1, '6/1/2024', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (3, 4, '9/25/2024', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (4, 5, '5/21/2024', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (5, 6, '2/24/2024', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (6, 1, '2/25/2024', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (7, 9, '6/7/2024', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (8, 2, '1/11/2024', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (9, 6, '8/12/2024', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (10, 2, '2/19/2024', 'Internship Opportunities Panel', 'Networking scavenger hunt'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (11, 2, '12/24/2023', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (12, 6, '5/26/2024', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (13, 3, '10/24/2024', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (14, 5, '4/15/2024', 'Women in STEM Networking Event', 'Networking roundtable discussions'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (15, 4, '2/17/2024', 'Professional Headshot Day', 'Professional headshot photo booth'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (16, 3, '7/3/2024', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (17, 9, '7/2/2024', 'Start-Up Pitch Night', 'Networking book club discussion'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (18, 9, '7/30/2024', 'Career Fair Prep Workshop', 'Networking yoga session'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (19, 1, '4/10/2024', 'Graduate School Info Session', 'Networking cooking class'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (20, 8, '1/9/2024', 'Industry Trends Roundtable', 'Networking hike and picnic'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (21, 7, '9/27/2024', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (22, 2, '4/27/2024', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (23, 10, '7/12/2024', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (24, 3, '9/1/2024', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (25, 1, '9/23/2024', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (26, 9, '9/21/2024', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (27, 3, '1/24/2024', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (28, 6, '1/17/2024', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (29, 6, '1/12/2024', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (30, 3, '10/24/2024', 'Internship Opportunities Panel', 'Networking scavenger hunt'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (31, 3, '8/10/2024', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (32, 7, '7/14/2024', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (33, 3, '12/13/2023', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (34, 2, '10/8/2024', 'Women in STEM Networking Event', 'Networking roundtable discussions'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (35, 10, '1/13/2024', 'Professional Headshot Day', 'Professional headshot photo booth'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (36, 2, '1/9/2024', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (37, 4, '3/12/2024', 'Start-Up Pitch Night', 'Networking book club discussion'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (38, 4, '10/12/2024', 'Career Fair Prep Workshop', 'Networking yoga session'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (39, 6, '2/8/2024', 'Graduate School Info Session', 'Networking cooking class'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (40, 2, '9/26/2024', 'Industry Trends Roundtable', 'Networking hike and picnic'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (41, 7, '1/14/2024', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (42, 10, '8/12/2024', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (43, 6, '9/18/2024', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (44, 1, '8/13/2024', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (45, 8, '8/7/2024', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (46, 8, '9/6/2024', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (47, 9, '10/5/2024', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (48, 8, '12/20/2023', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (49, 7, '11/24/2024', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (50, 6, '2/23/2024', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (1, 10, '2024-04-21', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (2, 1, '2024-06-01', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (3, 4, '2024-09-25', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (4, 5, '2024-05-21', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (5, 6, '2024-02-24', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (6, 1, '2024-02-25', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (7, 9, '2024-06-07', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (8, 2, '2024-01-11', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (9, 6, '2024-08-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (10, 2, '2024-02-19', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (11, 2, '2023-12-24', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (12, 6, '2024-05-26', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (13, 3, '2024-10-24', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (14, 5, '2024-04-15', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (15, 4, '2024-02-17', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (16, 3, '2024-07-03', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (17, 9, '2024-07-02', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (18, 9, '2024-07-30', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (19, 1, '2024-04-10', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (20, 8, '2024-01-09', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (21, 7, '2024-09-27', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (22, 2, '2024-04-27', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (23, 10, '2024-07-12', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (24, 3, '2024-09-01', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (25, 1, '2024-09-23', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (26, 9, '2024-09-21', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (27, 3, '2024-01-24', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (28, 6, '2024-01-17', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (29, 6, '2024-01-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (30, 3, '2024-10-24', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (31, 3, '2024-08-10', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (32, 7, '2024-07-14', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (33, 3, '2023-12-13', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (34, 2, '2024-10-08', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (35, 10, '2024-01-13', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (36, 2, '2024-01-09', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (37, 4, '2024-03-12', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (38, 4, '2024-10-12', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (39, 6, '2024-02-08', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (40, 2, '2024-09-26', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (41, 7, '2024-01-14', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (42, 10, '2024-08-12', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (43, 6, '2024-09-18', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (44, 1, '2024-08-13', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (45, 8, '2024-08-07', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (46, 8, '2024-09-06', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (46, 8, '2024-09-06', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (47, 9, '2024-10-05', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (48, 8, '2024-10-06', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (49, 7, '2024-11-24', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (EventID, CommunityID, Date, Name, Description) values (50, 6, '2024-11-08', 'Internship Opportunities Panel', 'Networking scavenger hunt'); + -- Feedback -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (1, 'Still looking for housing', '2024-08-01', '1', 18, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (2, 'Thank you for this recommendation!', '2024-05-02', '2', 83, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (3, 'Thank you for your help', '2024-08-20', '', 35, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (4, 'Still searching for roommates', '2024-01-02', '3', 80, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (5, 'Still searching for roommates', '2024-06-20', '4', 6, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (6, 'Thank you for your help', '2024-07-16', '5', 23, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (7, 'Housing is in a good area', '2024-01-31', '1', 2, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (8, 'Still looking for housing', '2024-05-10', '2', 73, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (9, 'Thank you for this recommendation!', '2024-05-23', '', 90, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (10, 'still searching for carpool', '2024-04-27', '3', 93, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (11, 'Still searching for roommates', '2024-04-02', '4', 60, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (12, 'Enjoying my co-op experience', '2024-08-07', '5', 17, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (13, 'Enjoying my co-op experience', '2024-08-05', '1', 81, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (14, 'still searching for carpool', '2024-11-14', '2', 15, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (15, 'Still looking for housing', '2024-07-17', '', 98, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (16, 'Still looking for housing', '2024-08-22', '3', 39, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (17, 'I appreciate your assistance!', '2024-01-09', '4', 95, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (18, 'Housing is in a good area', '2024-11-09', '5', 30, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (19, 'Still searching for roommates', '2024-06-19', '1', 84, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (20, 'Still looking for housing', '2023-12-09', '2', 15, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (21, 'I appreciate your assistance!', '2024-01-27', '', 15, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (22, 'Thank you for this recommendation!', '2024-01-12', '3', 5, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (23, 'still searching for carpool', '2024-10-15', '4', 9, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (24, 'still searching for carpool', '2024-09-16', '5', 56, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (25, 'Housing is in a good area', '2024-09-17', '1', 70, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (26, 'I appreciate your assistance!', '2024-11-02', '2', 45, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (27, 'Currently enjoying this co-op', '2024-02-26', '', 60, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (28, 'Still searching for roommates', '2024-07-30', '3', 68, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (29, 'Currently enjoying this co-op', '2024-09-27', '4', 24, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (30, 'Still searching for roommates', '2024-11-09', '5', 36, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (31, 'I appreciate your assistance!', '2024-07-14', '1', 33, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (32, 'still searching for carpool', '2024-05-04', '2', 45, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (33, 'Enjoying my co-op experience', '2024-11-22', '', 62, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (34, 'Housing is in a good area', '2024-01-12', '3', 81, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (35, 'I appreciate your assistance!', '2024-09-07', '4', 3, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (36, 'Enjoying my co-op experience', '2024-10-06', '5', 52, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (37, 'Currently enjoying this co-op', '2024-06-01', '1', 20, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (38, 'still searching for carpool', '2024-07-11', '2', 93, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (39, 'Thank you for this recommendation!', '2024-05-04', '', 43, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (40, 'Still searching for roommates', '2024-04-16', '3', 70, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (41, 'still searching for carpool', '2024-06-28', '4', 7, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (42, 'I appreciate your assistance!', '2024-06-14', '5', 87, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (43, 'Enjoying my co-op experience', '2024-10-14', '1', 73, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (44, 'Currently enjoying this co-op', '2024-05-31', '2', 35, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (45, 'Still looking for housing', '2024-03-29', '', 3, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (46, 'Thank you for your help', '2024-01-07', '3', 2, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (47, 'Currently enjoying this co-op', '2023-12-28', '4', 86, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (48, 'Thank you for your help', '2024-11-16', '5', 54, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (49, 'Currently enjoying this co-op', '2024-05-19', '1', 32, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (50, 'I appreciate your assistance!', '2024-03-05', '2', 95, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (1, 'Still looking for housing', '2024-08-01', 1, 18, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (2, 'Thank you for this recommendation!', '2024-05-02', 2, 83, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (3, 'Thank you for your help', '2024-08-20', 4, 35, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (4, 'Still searching for roommates', '2024-01-02', 3, 80, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (5, 'Still searching for roommates', '2024-06-20', 4, 6, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (6, 'Thank you for your help', '2024-07-16', 5, 23, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (7, 'Housing is in a good area', '2024-01-31', 4, 2, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (8, 'Still looking for housing', '2024-05-10', 2, 73, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (9, 'Thank you for this recommendation!', '2024-05-23', 5, 90, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (10, 'still searching for carpool', '2024-04-27', 3, 93, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (11, 'Still searching for roommates', '2024-04-02', 4, 60, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (12, 'Enjoying my co-op experience', '2024-08-07', 5, 17, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (13, 'Enjoying my co-op experience', '2024-08-05', 4, 81, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (14, 'still searching for carpool', '2024-11-14', 2, 15, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (15, 'Still looking for housing', '2024-07-17', 2, 98, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (16, 'Still looking for housing', '2024-08-22', 3, 39, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (17, 'I appreciate your assistance!', '2024-01-09',4, 95, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (18, 'Housing is in a good area', '2024-11-09', 5, 30, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (19, 'Still searching for roommates', '2024-06-19', 1, 84, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (20, 'Still looking for housing', '2023-12-09', 2, 15, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (21, 'I appreciate your assistance!', '2024-01-27', 3, 15, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (22, 'Thank you for this recommendation!', '2024-01-12', 3, 5, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (23, 'still searching for carpool', '2024-10-15', 4, 9, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (24, 'still searching for carpool', '2024-09-16', 5, 56, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (25, 'Housing is in a good area', '2024-09-17', 1, 70, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (26, 'I appreciate your assistance!', '2024-11-02', 2, 45, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (27, 'Currently enjoying this co-op', '2024-02-26', 3, 60, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (28, 'Still searching for roommates', '2024-07-30', 3, 68, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (29, 'Currently enjoying this co-op', '2024-09-27', 4, 24, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (30, 'Still searching for roommates', '2024-11-09', 5, 36, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (31, 'I appreciate your assistance!', '2024-07-14', 1, 33, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (32, 'still searching for carpool', '2024-05-04', 2, 45, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (33, 'Enjoying my co-op experience', '2024-11-22', 4, 62, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (34, 'Housing is in a good area', '2024-01-12', 3, 81, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (35, 'I appreciate your assistance!', '2024-09-07', 4, 3, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (36, 'Enjoying my co-op experience', '2024-10-06', 5, 52, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (37, 'Currently enjoying this co-op', '2024-06-01', 5, 20, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (38, 'still searching for carpool', '2024-07-11', 2, 93, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (39, 'Thank you for this recommendation!', '2024-05-04', 5, 43, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (40, 'Still searching for roommates', '2024-04-16', 3, 70, 10); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (41, 'still searching for carpool', '2024-06-28', 4, 7, 3); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (42, 'I appreciate your assistance!', '2024-06-14', 5, 87, 7); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (43, 'Enjoying my co-op experience', '2024-10-14', 1, 73, 1); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (44, 'Currently enjoying this co-op', '2024-05-31', 2, 35, 9); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (45, 'Still looking for housing', '2024-03-29', 4, 3, 5); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (46, 'Thank you for your help', '2024-01-07', 3, 2, 2); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (47, 'Currently enjoying this co-op', '2023-12-28', 4, 86, 8); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (48, 'Thank you for your help', '2024-11-16', 5, 54, 6); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (49, 'Currently enjoying this co-op', '2024-05-19', 5, 32, 4); +insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (50, 'I appreciate your assistance!', '2024-03-05', 2, 95, 10); -- Advisor insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (1, 'Georgine McCard', 'gmccard0@nps.gov', 'Khoury College', 8); diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 557cbd730d..e9421d0b87 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -62,6 +62,7 @@ CREATE TABLE IF NOT EXISTS Student ( Bio TEXT, CommunityID INT, HousingID INT, + AdvisorID INT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), FOREIGN KEY (HousingID) REFERENCES Housing(HousingID) ); From 4164d845a12f6df736c721a814af4745477cb168 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 14:06:36 -0500 Subject: [PATCH 050/305] updats --- database-files/SyncSpace-data.sql | 105 +--------------------------- database-files/SyncSpaceUpdated.sql | 30 ++++++++ 2 files changed, 33 insertions(+), 102 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 00cdbc0b83..9e742f2415 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -64,7 +64,7 @@ insert into Housing (HousingID, Availability, Style, Location) values (49, 'Vaca insert into Housing (HousingID, Availability, Style, Location) values (50, 'Occupied', 'Shared Room', 'Boston'); -- User data -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (1, 'Letizia Cabell', 'lcabell0@wikispaces.com', 'IT Administrator', 'guest'); +insert into User (UserID, Name, Email, Role, PermissionsLevel) values (1, 'Michael Ortega', 'miortega@wikispaces.com', 'System Administrator', 'admin'); insert into User (UserID, Name, Email, Role, PermissionsLevel) values (2, 'Mira Lynock', 'mlynock1@webnode.com', 'IT Administrator', 'admin'); insert into User (UserID, Name, Email, Role, PermissionsLevel) values (3, 'Caro Molnar', 'cmolnar2@digg.com', 'IT Administrator', 'limited'); insert into User (UserID, Name, Email, Role, PermissionsLevel) values (4, 'Christos Boulsher', 'cboulsher3@admin.ch', 'System Administrator', 'guest'); @@ -133,106 +133,7 @@ insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); -- Student data -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values (1, 'Rhett Pepperell', 'Biology', 'Seattle', 'Innotype', 'Not interested', 'Has Car', '$1200', '6 months', 'Neat', 'Night-Owl', 40, 6, 'Enjoys gardening and growing own vegetables', 3, 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (2, 'Tuesday Passie', 'Physics', 'London', 'Babbleset', 'Has Housing', 'Not interested', '$1000', '1 year', 'Minimal', 'Independent', 15, 7, 'Enjoys reading mystery novels and solving puzzles', 10, 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (3, 'Lorenzo Eyre', 'Sociology', 'Chicago', 'Aimbo', 'Looking for Roommates', 'Offering Carpool', '$300', '6 months', 'Minimal', 'Quiet', 40, 2, 'Passionate about cooking and trying new recipes', 2, 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (4, 'Gavrielle Devennie', 'Psychology', 'New York City', 'Mycat', 'Not interested', 'Not interested', '$1300', '4 months', 'Cluttered', 'Active', 30, 6, 'Passionate about volunteering and giving back to the community', 7, 27); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (5, 'Gordan Lucio', 'Psychology', 'Chicago', 'Realfire', 'Has Housing', 'Looking for Carpool', '$1400', '6 months', 'Minimal', 'Independent', 40, 4, 'Loves animals and volunteering at animal shelters', 9, 34); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (6, 'Rona Readie', 'Psychology', 'New York City', 'Chatterbridge', 'Offering Housing', 'Not interested', '$1200', '6 months', 'Neat', 'Night-Owl', 10, 5, 'Fascinated by astronomy and stargazing', 7, 31); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (7, 'Monica Fogden', 'Physics', 'San Francisco', 'Kayveo', 'Offering Housing', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Active', 25, 2, 'Passionate about environmental conservation and sustainability', 7, 50); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (8, 'Ramonda Presswell', 'Sociology', 'Seattle', 'Thoughtbeat', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Spotless', 'Independent', 45, 4, 'Adventurous spirit with a love for travel and experiencing new cultures', 4, 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (9, 'Jerrome Lathan', 'Physics', 'Seattle', 'Tagtune', 'Not interested', 'Offering Carpool', '$1500', '4 months', 'Neat', 'Extroverted', 25, 4, 'Enjoys reading mystery novels and solving puzzles', 10, 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (10, 'Gerta Parfett', 'Sociology', 'Boston', 'Thoughtsphere', 'Offering Housing', 'Not interested', '$1400', '1 year', 'Organized', 'Independent', 15, 3, 'Passionate about environmental conservation and sustainability', 4, 1); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (11, 'Toiboid Caroll', 'Psychology', 'New York City', 'Devpoint', 'Offering Housing', 'Carpool Established', '$1600', '4 months', 'Neat', 'Introverted', 35, 5, 'Fascinated by technology and exploring new gadgets', 9, 40); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (12, 'Bryant Bradborne', 'Art', 'London', 'Meedoo', 'Looking for Roommates', 'Has Car', '$800', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Loves watching documentaries and learning about different topics', 8, 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (13, 'Barnabe Whear', 'Biology', 'Boston', 'Livetube', 'Has Housing', 'Has Car', '$1100', '6 months', 'Minimal', 'Studious', 15, 1, 'Fascinated by history and visiting historical sites', 7, 13); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (14, 'Rossie Franzoli', 'Psychology', 'Seattle', 'Eare', 'Offering Housing', 'Carpool Established', '$300', '4 months', 'Messy', 'Extroverted', 20, 1, 'Enjoys reading mystery novels and solving puzzles', 4, 20); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (15, 'Anatola Catterill', 'Psychology', 'Seattle', 'Bluezoom', 'Has Housing', 'Not interested', '$900', '6 months', 'Neat', 'Introverted', 30, 6, 'Loves hiking and exploring new trails', 8, 32); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (16, 'Hy Agglio', 'Biology', 'Chicago', 'Feedfish', 'Offering Housing', 'Not interested', '$2000', '1 year', 'Messy', 'Independent', 15, 3, 'Loves watching documentaries and learning about different topics', 2, 43); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (17, 'Mal Julien', 'Biology', 'Los Angeles', 'Rhycero', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Social', 15, 6, 'Fascinated by psychology and understanding human behavior', 7, 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (18, 'Odelia Willicott', 'Art', 'London', 'Yombu', 'Offering Housing', 'Looking for Carpool', '$1300', '6 months', 'Cluttered', 'Studious', 50, 4, 'Loves animals and volunteering at animal shelters', 3, 15); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (19, 'Hurlee Paynes', 'Mathematics', 'London', 'Jayo', 'Not interested', 'Carpool Established', '$900', '4 months', 'Cluttered', 'Extroverted', 45, 7, 'Fascinated by astronomy and stargazing', 3, 5); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (20, 'Krysta Quinion', 'Mathematics', 'Seattle', 'Wordify', 'Offering Housing', 'Looking for Carpool', '$1600', '6 months', 'Minimal', 'Studious', 25, 7, 'Enjoys DIY projects and crafting handmade items', 4, 49); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (21, 'Shanda Feld', 'Physics', 'Chicago', 'Jamia', 'Offering Housing', 'Carpool Established', '$1200', '1 year', 'Organized', 'Night-Owl', 55, 3, 'Fascinated by history and visiting historical sites', 8, 24); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (22, 'Lari Panchen', 'Psychology', 'San Francisco', 'Youtags', 'Not interested', 'Carpool Established', '$1900', '1 year', 'Minimal', 'Extroverted', 25, 7, 'Fascinated by history and visiting historical sites', 7, 23); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (23, 'Stevie Atkin', 'Sociology', 'London', 'Ooba', 'Looking for Roommates', 'Not interested', '$1500', '4 months', 'Spotless', 'Social', 50, 1, 'Passionate about environmental conservation and sustainability', 8, 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (24, 'Bobette Drohane', 'Biology', 'Los Angeles', 'Mybuzz', 'Not interested', 'Offering Carpool', '$1800', '4 months', 'Cluttered', 'Quiet', 20, 5, 'Loves hiking and exploring new trails', 9, 27); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (25, 'Boot Marushak', 'Finance', 'San Jose', 'Topicware', 'Has Housing', 'Looking for Carpool', '$600', '1 year', 'Neat', 'Social', 25, 2, 'Enjoys reading mystery novels and solving puzzles', 8, 19); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (26, 'Malory Cotgrave', 'Data Science', 'Boston', 'Jabberstorm', 'Looking for Roommates', 'Offering Carpool', '$900', '4 months', 'Spotless', 'Night-Owl', 35, 7, 'Enjoys photography and capturing beautiful moments', 8, 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (27, 'Jody Brownbridge', 'Psychology', 'London', 'Tavu', 'Looking for Roommates', 'Not interested', '$1700', '4 months', 'Cluttered', 'Night-Owl', 20, 7, 'Passionate about volunteering and giving back to the community', 3, 2); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (28, 'Bethanne Triggs', 'Computer Science', 'San Jose', 'Topdrive', 'Offering Housing', 'Has Car', '$900', '1 year', 'Spotless', 'Quiet', 20, 6, 'Fascinated by psychology and understanding human behavior', 10, 39); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (29, 'Shelley Drohan', 'Finance', 'London', 'Omba', 'Has Housing', 'Has Car', '$800', '4 months', 'Cluttered', 'Night-Owl', 45, 1, 'Fascinated by technology and exploring new gadgets', 7, 42); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (30, 'Cris Roullier', 'Chemistry', 'San Jose', 'Shufflebeat', 'Not interested', 'Has Car', '$1500', '1 year', 'Cluttered', 'Social', 25, 5, 'Loves playing musical instruments and composing music', 4, 24); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (31, 'Mercie Dury', 'Computer Science', 'Seattle', 'Edgeblab', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Cluttered', 'Introverted', 45, 6, 'Loves animals and volunteering at animal shelters', 3, 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (32, 'Angelia Edgecombe', 'Mathematics', 'San Francisco', 'Youspan', 'Offering Housing', 'Has Car', '$900', '1 year', 'Messy', 'Studious', 35, 1, 'Enjoys painting and expressing creativity through art', 9, 6); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (33, 'Sigmund Adderley', 'Biology', 'D.C.', 'Divanoodle', 'Has Housing', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Extroverted', 15, 5, 'Passionate about environmental conservation and sustainability', 3, 21); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (34, 'Tedda Fincher', 'Finance', 'Chicago', 'Jaloo', 'Offering Housing', 'Not interested', '$900', '1 year', 'Neat', 'Active', 10, 4, 'Passionate about fitness and leading a healthy lifestyle', 1, 48); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (35, 'Vivian Kilgallen', 'Art', 'New York City', 'Dabshots', 'Looking for Roommates', 'Has Car', '$1100', '4 months', 'Messy', 'Active', 25, 4, 'Fascinated by psychology and understanding human behavior', 7, 13); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (36, 'Polly Danielut', 'Chemistry', 'Boston', 'Jabbersphere', 'Offering Housing', 'Offering Carpool', '$1700', '6 months', 'Organized', 'Studious', 25, 4, 'Loves hiking and exploring new trails', 10, 1); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (37, 'Carlina Berrow', 'Sociology', 'D.C.', 'Youspan', 'Looking for Roommates', 'Carpool Established', '$700', '6 months', 'Neat', 'Active', 30, 1, 'Fascinated by technology and exploring new gadgets', 1, 7); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (38, 'Caesar Belvin', 'Psychology', 'New York City', 'Topicshots', 'Looking for Housing', 'Has Car', '$2500', '6 months', 'Neat', 'Studious', 35, 2, 'Enjoys painting and expressing creativity through art', 10, 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (39, 'Maris Dark', 'Physics', 'Boston', 'Youspan', 'Looking for Roommates', 'Not interested', '$1200', '1 year', 'Spotless', 'Social', 55, 5, 'Enjoys photography and capturing beautiful moments', 9, 42); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (40, 'Philippine Wrintmore', 'Sociology', 'Los Angeles', 'Flipbug', 'Offering Housing', 'Not interested', '$700', '4 months', 'Spotless', 'Introverted', 30, 7, 'Enjoys painting and expressing creativity through art', 10, 2); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (41, 'Niko Maidens', 'Biology', 'New York City', 'Yabox', 'Offering Housing', 'Looking for Carpool', '$1000', '4 months', 'Minimal', 'Studious', 45, 5, 'Loves animals and volunteering at animal shelters', 2, 3); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (42, 'Trey Poskitt', 'Art', 'D.C.', 'Pixope', 'Has Housing', 'Offering Carpool', '$400', '1 year', 'Cluttered', 'Studious', 55, 2, 'Loves playing musical instruments and composing music', 10, 18); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (43, 'El Wessing', 'Data Science', 'Boston', 'Yombu', 'Has Housing', 'Not interested', '$1800', '4 months', 'Neat', 'Social', 15, 3, 'Passionate about environmental conservation and sustainability', 2, 10); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (44, 'Opal Adel', 'Data Science', 'D.C.', 'Wordpedia', 'Not interested', 'Looking for Carpool', '$1800', '4 months', 'Spotless', 'Extroverted', 10, 3, 'Enjoys DIY projects and crafting handmade items', 8, 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (45, 'Gertrud Obeney', 'Finance', 'San Francisco', 'Eare', 'Looking for Roommates', 'Looking for Carpool', '$1900', '1 year', 'Spotless', 'Night-Owl', 45, 7, 'Fascinated by history and visiting historical sites', '9', 21); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (46, 'Mandel Raffeorty', 'Sociology', 'London', 'Yamia', 'Has Housing', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Active', 35, 4, 'Loves playing musical instruments and composing music', 4, 49); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (47, 'Chickie Handforth', 'Physics', 'Chicago', 'Zava', 'Offering Housing', 'Looking for Carpool', '$1700', '1 year', 'Organized', 'Independent', 50, 6, 'Enjoys photography and capturing beautiful moments', '2', 49); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (48, 'Kalie Moiser', 'Biology', 'New York City', 'Vimbo', 'Looking for Roommates', 'Looking for Carpool', '$1900', '4 months', 'Minimal', 'Night-Owl', 15, 3, 'Fascinated by astronomy and stargazing',1, 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (49, 'Callida Tunno', 'Mathematics', 'London', 'Twiyo', 'Not interested', 'Carpool Established', '$1100', '1 year', 'Minimal', 'Studious', 35, 5, 'Enjoys photography and capturing beautiful moments', 1, 12); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (50, 'Elsy Karlowicz', 'Physics', 'San Jose', 'Flipstorm', 'Looking for Housing', 'Looking for Carpool', '$600', '6 months', 'Spotless', 'Extroverted', 30, 5, 'Loves hiking and exploring new trails', 3, 11); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (51, 'Corbin Ishaki', 'Sociology', 'Chicago', 'Buzzster', 'Not interested', 'Carpool Established', '$1000', '1 year', 'Minimal', 'Independent', 30, 1, 'Loves playing musical instruments and composing music', 9, 7); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (52, 'Aurie Wakeman', 'Computer Science', 'Los Angeles', 'Yozio', 'Looking for Roommates', 'Carpool Established', '$1200', '6 months', 'Organized', 'Independent', 25, 4, 'Enjoys photography and capturing beautiful moments', 2, 12); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (53, 'Kirstyn Busby', 'Biology', 'San Francisco', 'Fiveclub', 'Looking for Housing', 'Offering Carpool', '$800', '6 months', 'Cluttered', 'Introverted', 25, 7, 'Passionate about cooking and trying new recipes', 7, 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (54, 'Garreth Dusting', 'Mathematics', 'San Francisco', 'Voonte', 'Not interested', 'Has Car', '$2000', '1 year', 'Cluttered', 'Quiet', 55, 2, 'Passionate about volunteering and giving back to the community', 8, 12); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (55, 'Kyle Gerardot', 'Chemistry', 'Boston', 'Roomm', 'Not interested', 'Offering Carpool', '$1300', '4 months', 'Cluttered', 'Introverted', 20, 4, 'Loves playing musical instruments and composing music', 2, 42); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (56, 'Dannel Reuben', 'Physics', 'D.C.', 'Thoughtblab', 'Looking for Housing', 'Carpool Established', '$1700', '4 months', 'Organized', 'Studious', 45, 2, 'Enjoys painting and expressing creativity through art', 6, 26); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (57, 'Ted Yukhnov', 'Chemistry', 'Los Angeles', 'Feedbug', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Spotless', 'Quiet', 15, 7, 'Loves hiking and exploring new trails', 5, 21); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (58, 'Ethe Alven', 'Data Science', 'San Jose', 'Edgeify', 'Offering Housing', 'Offering Carpool', '$1100', '4 months', 'Minimal', 'Extroverted', 30, 5, 'Passionate about volunteering and giving back to the community', 2, 7); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (59, 'Fernando Mouse', 'Chemistry', 'New York City', 'Voolia', 'Looking for Roommates', 'Carpool Established', '$900', '6 months', 'Messy', 'Active', 30, 3, 'Loves playing musical instruments and composing music', 8, 32); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (60, 'Rockie Elner', 'Psychology', 'Los Angeles', 'Yamia', 'Looking for Housing', 'Not interested', '$1400', '1 year', 'Spotless', 'Introverted', 35, 7, 'Loves playing musical instruments and composing music', 3, 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (61, 'Coretta Scarasbrick', 'Biology', 'Seattle', 'Photojam', 'Not interested', 'Looking for Carpool', '$700', '4 months', 'Minimal', 'Extroverted', 55, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', 1, 25); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (62, 'Consolata Danzelman', 'Biology', 'Seattle', 'Youbridge', 'Has Housing', 'Carpool Established', '$700', '6 months', 'Organized', 'Studious', 10, 6, 'Enjoys yoga and meditation for relaxation', 8, 8); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (63, 'Charles Server', 'Art', 'Los Angeles', 'Feedbug', 'Looking for Roommates', 'Not interested', '$1700', '6 months', 'Minimal', 'Social', 55, 7, 'Enjoys reading mystery novels and solving puzzles', 3, 13); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (64, 'Rosalynd Mowat', 'Computer Science', 'San Jose', 'Eamia', 'Has Housing', 'Offering Carpool', '$700', '1 year', 'Cluttered', 'Introverted', 10, 5, 'Adventurous spirit with a love for travel and experiencing new cultures', 9, 31); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (65, 'Janeva Winton', 'Biology', 'Chicago', 'Dynazzy', 'Looking for Housing', 'Offering Carpool', '$300', '4 months', 'Neat', 'Independent', 30, 7, 'Passionate about cooking and trying new recipes', 5, 30); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (66, 'Blakeley McFayden', 'Psychology', 'New York City', 'Trunyx', 'Offering Housing', 'Has Car', '$1200', '4 months', 'Neat', 'Active', 20, 7, 'Enjoys photography and capturing beautiful moments', 10, 49); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (67, 'Marian Aguirre', 'Computer Science', 'San Francisco', 'Wikibox', 'Offering Housing', 'Carpool Established', '$300', '6 months', 'Messy', 'Extroverted', 10, 6, 'Fascinated by psychology and understanding human behavior', 3, 34); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (68, 'Sergei Piper', 'Biology', 'San Francisco', 'Topicshots', 'Not interested', 'Has Car', '$600', '1 year', 'Spotless', 'Social', 40, 7, 'Enjoys watching sports and playing recreational games', 10, 4); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (69, 'Dania Roust', 'Computer Science', 'Boston', 'Cogidoo', 'Looking for Roommates', 'Has Car', '$900', '1 year', 'Messy', 'Quiet', 30, 2, 'Passionate about cooking and trying new recipes', 3, 6); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (70, 'Joane Bavidge', 'Physics', 'San Francisco', 'Yakidoo', 'Looking for Roommates', 'Offering Carpool', '$1500', '1 year', 'Neat', 'Independent', 55, 7, 'Passionate about fitness and leading a healthy lifestyle', 10, 50); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (71, 'Maisie Huyghe', 'Sociology', 'New York City', 'Linkbuzz', 'Has Housing', 'Carpool Established', '$2500', '4 months', 'Messy', 'Active', 55, 4, 'Passionate about environmental conservation and sustainability', 1, 47); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (72, 'Ulrich Grolle', 'Computer Science', 'Los Angeles', 'Thoughtbeat', 'Looking for Roommates', 'Carpool Established', '$1700', '4 months', 'Cluttered', 'Social', 10, 4, 'Loves playing musical instruments and composing music', 7, 41); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (73, 'Thor Symington', 'Data Science', 'New York City', 'Nlounge', 'Has Housing', 'Carpool Established', '$300', '6 months', 'Minimal', 'Night-Owl', 55, 1, 'Passionate about environmental conservation and sustainability', 4, 10); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (74, 'Penelopa Peet', 'Chemistry', 'Seattle', 'Dazzlesphere', 'Looking for Housing', 'Not interested', '$900', '1 year', 'Organized', 'Active', 55, 6, 'Loves playing musical instruments and composing music', 5, 33); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (75, 'Sanson Shenley', 'Biology', 'Chicago', 'Myworks', 'Not interested', 'Looking for Carpool', '$300', '6 months', 'Neat', 'Social', 10, 2, 'Enjoys painting and expressing creativity through art', 3, 27); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (76, 'Dorian Ingry', 'Mathematics', 'Boston', 'Zoonder', 'Looking for Housing', 'Looking for Carpool', '$1300', '4 months', 'Spotless', 'Night-Owl', 45, 6, 'Loves animals and volunteering at animal shelters', 3, 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (77, 'Gerri De Ambrosis', 'Computer Science', 'Boston', 'Tagchat', 'Offering Housing', 'Has Car', '$1600', '1 year', 'Organized', 'Social', 40, 6, 'Fascinated by psychology and understanding human behavior', 9, 30); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (78, 'Delly Benediktovich', 'Psychology', 'San Francisco', 'Pixonyx', 'Looking for Housing', 'Carpool Established', '$1400', '4 months', 'Neat', 'Extroverted', 30, 6, 'Loves watching documentaries and learning about different topics', 8, 41); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (79, 'Maurie Silverman', 'Psychology', 'Chicago', 'Skajo', 'Offering Housing', 'Has Car', '$1300', '1 year', 'Messy', 'Active', 20, 2, 'Enjoys DIY projects and crafting handmade items', 8, 28); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (80, 'Yetty Lippo', 'Sociology', 'New York City', 'Oyoyo', 'Not interested', 'Has Car', '$2000', '4 months', 'Organized', 'Night-Owl', 25, 1, 'Enjoys DIY projects and crafting handmade items', 6, 33); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (81, 'Fredelia Pinck', 'Mathematics', 'San Francisco', 'Leexo', 'Looking for Housing', 'Has Car', '$1500', '4 months', 'Spotless', 'Introverted', 15, 6, 'Loves hiking and exploring new trails', 10, 30); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (82, 'Darius Bessent', 'Psychology', 'Boston', 'Devpoint', 'Not interested', 'Not interested', '$1300', '6 months', 'Cluttered', 'Active', 45, 4, 'Passionate about volunteering and giving back to the community', 3, 31); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (83, 'Micheal Goodluck', 'Chemistry', 'Boston', 'Jayo', 'Offering Housing', 'Not interested', '$800', '4 months', 'Minimal', 'Extroverted', 25, 6, 'Passionate about environmental conservation and sustainability', 9, 44); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (84, 'Jordan Marcq', 'Chemistry', 'Seattle', 'Tavu', 'Looking for Housing', 'Offering Carpool', '$400', '4 months', 'Cluttered', 'Introverted', 10, 5, 'Fascinated by astronomy and stargazing', 5, 37); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (85, 'Sibeal Stockhill', 'Computer Science', 'Boston', 'Mydo', 'Not interested', 'Not interested', '$800', '6 months', 'Neat', 'Quiet', 10, 1, 'Passionate about cooking and trying new recipes', 3, 41); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (86, 'Will Guerry', 'Data Science', 'Seattle', 'Quimm', 'Offering Housing', 'Offering Carpool', '$1700', '4 months', 'Organized', 'Introverted', 20, 6, 'Loves animals and volunteering at animal shelters', 3, 23); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (87, 'Abbe Macari', 'Data Science', 'Boston', 'Fivespan', 'Has Housing', 'Has Car', '$900', '6 months', 'Organized', 'Studious', 35, 2, 'Fascinated by astronomy and stargazing', 7, 35); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (88, 'Hayward Kirvell', 'Data Science', 'New York City', 'Twitterlist', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Cluttered', 'Night-Owl', 35, 5, 'Loves hiking and exploring new trails', 6, 9); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (89, 'Hamnet Rosenkrantz', 'Psychology', 'Boston', 'Roombo', 'Not interested', 'Looking for Carpool', '$1100', '4 months', 'Organized', 'Extroverted', 40, 4, 'Enjoys watching sports and playing recreational games', 2, 17); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (90, 'Caria Trimming', 'Finance', 'New York City', 'Quamba', 'Offering Housing', 'Not interested', '$1000', '1 year', 'Messy', 'Night-Owl', 50, 1, 'Loves watching documentaries and learning about different topics', 4, 14); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (91, 'Eberto Lindbergh', 'Chemistry', 'Chicago', 'Thoughtbridge', 'Has Housing', 'Carpool Established', '$1500', '1 year', 'Cluttered', 'Independent', 55, 2, 'Loves watching documentaries and learning about different topics', 4, 1); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (92, 'Romeo Sheahan', 'Psychology', 'San Jose', 'Edgetag', 'Offering Housing', 'Not interested', '$1600', '1 year', 'Cluttered', 'Night-Owl', 20, 1, 'Enjoys DIY projects and crafting handmade items', 6, 24); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (93, 'Alli O''Downe', 'Finance', 'Seattle', 'Yombu', 'Looking for Roommates', 'Not interested', '$1700', '1 year', 'Minimal', 'Introverted', 20, 7, 'Passionate about environmental conservation and sustainability', 9, 6); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (94, 'Olag Hembling', 'Biology', 'Seattle', 'Riffpath', 'Looking for Roommates', 'Looking for Carpool', '$1500', '6 months', 'Organized', 'Introverted', 55, 7, 'Loves playing musical instruments and composing music', 4, 11); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (95, 'Waite Frediani', 'Sociology', 'New York City', 'Devshare', 'Offering Housing', 'Has Car', '$300', '1 year', 'Spotless', 'Extroverted', 40, 7, 'Passionate about volunteering and giving back to the community', 6, 16); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (96, 'Cynde Simeoli', 'Data Science', 'San Francisco', 'Youspan', 'Has Housing', 'Looking for Carpool', '$2000', '1 year', 'Messy', 'Active', 10, 2, 'Enjoys yoga and meditation for relaxation', 1, 43); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (97, 'Gonzalo Yeowell', 'Sociology', 'Seattle', 'Zoomlounge', 'Offering Housing', 'Looking for Carpool', '$2000', '4 months', 'Minimal', 'Quiet', 10, 6, 'Enjoys watching sports and playing recreational games', 1, 15); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (98, 'Darlene Baillie', 'Art', 'San Jose', 'Meembee', 'Not interested', 'Looking for Carpool', '$600', '4 months', 'Spotless', 'Extroverted', 35, 1, 'Passionate about fitness and leading a healthy lifestyle', 2, 25); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (99, 'Emmalyn Kneaphsey', 'Art', 'Boston', 'Jayo', 'Offering Housing', 'Looking for Carpool', '$1500', '4 months', 'Organized', 'Night-Owl', 35, 6, 'Enjoys reading mystery novels and solving puzzles', 2, 29); -insert into Student (StudentID, Name, Major, Location, Company, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID) values (100, 'Farlay Mathivon', 'Sociology', 'San Jose', 'Eare', 'Not interested', 'Not interested', '$400', '4 months', 'Cluttered', 'Active', 40, 2, 'Loves playing musical instruments and composing music', 4, 1); + -- Chat insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (1, 3, 'Network connectivity issues', '2024-04-10 00:27:14', 5); @@ -393,7 +294,7 @@ insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (50, 'I appreciate your assistance!', '2024-03-05', 2, 95, 10); -- Advisor -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (1, 'Georgine McCard', 'gmccard0@nps.gov', 'Khoury College', 8); +insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (1, 'Jessica Doofenshmirtz', 'gmccard0@nps.gov', 'Khoury College', 8); insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (2, 'Babbette Marle', 'bmarle1@bbc.co.uk', 'College of Engineering', 50); insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (3, 'Lena Graver', 'lgraver2@creativecommons.org', 'D''Amore Mc-Kim', 99); insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (4, 'Kevina Garden', 'kgarden3@sina.com.cn', 'College of Science', 38); diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index e9421d0b87..1e99a3b2e0 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -156,3 +156,33 @@ CREATE TABLE IF NOT EXISTS SystemHealth ( MetricType VARCHAR(50), FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) ); + +-- 1.4 +UPDATE Ticket +SET Priority = 'Critical' +WHERE TicketID = 1; + +-- 2.5 +UPDATE Task +SET Status = 'Completed' +WHERE TaskID = 5; + +-- 3.2 +INSERT INTO Student (Name, Major, Location, HousingStatus, Budget, Cleanliness, Lifestyle, CommuteTime, Interests) +VALUES ( + 'Kevin Chen', + 'Data Science and Business', + 'San Jose, California', + 'Searching', + 1200.00, + 'Very Clean', + 'Quiet', + 30, + 'Hiking, Basketball, Technology' +); + +-- 4.3 +INSERT INTO Housing (Style, Availability, Location) +VALUES ('Apartment', 'Available', 'New York City'); + + From 278ac72e2a239b692a76e08de7a45c8d98017621 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 14:18:15 -0500 Subject: [PATCH 051/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 101 +++++++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 9e742f2415..b23d6eabca 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -133,7 +133,106 @@ insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); -- Student data - +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leland Izaks', 'Computer Science', 'Eire', 'San Jose', 'Searching for Housing', 'Not Interested', 1350, '1 year', 'Cluttered', 'Social', 15, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 7, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Demetris Dury', 'Computer Science', 'Photospace', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1800, '4 months', 'Moderate', 'Active', 75, 2, 'Music festival organizer planning and coordinating live music events', 6, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Zelig Matuszinski', 'Physics', 'Podcat', 'London', 'Not Interested', 'Not Interested', 3000, '4 months', 'Moderate', 'Quiet', 55, 1, 'Wine connoisseur tasting and collecting fine wines', 5, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Lonni Duke', 'Business', 'Jabbercube', 'Boston', 'Searching for Housing', 'Not Interested', 1150, '4 months', 'Disorganized', 'Introverted', 45, 3, 'Avid collector of vintage vinyl records', 9, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gannie Dearness', 'Business', 'Youspan', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 2000, '6 months', 'Cluttered', 'Extroverted', 75, 1, 'Sailing captain leading sailing expeditions and charters', 4, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Garnet Mathieson', 'Chemistry', 'Realbuzz', 'London', 'Complete', 'Searching for Carpool', 1350, '6 months', 'Clean', 'Adventurous', 45, 7, 'Vintage car collector restoring classic automobiles', 2, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Valeria Algore', 'Psychology', 'Quimba', 'Seattle', 'Searching for Housing', 'Has Car', 1600, '6 months', 'Very Clean', 'Adventurous', 40, 4, 'Travel photographer capturing stunning landscapes and cultures', 7, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Lita Delahunty', 'Biology', 'Fivebridge', 'Los Angeles', 'Searching for Roommates', 'Not Interested', 1800, '4 months', 'Moderate', 'Quiet', 40, 7, 'Tech geek experimenting with the latest gadgets and software', 3, null, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Tanitansy Wallhead', 'Computer Science', 'Kanoodle', 'London', 'Searching for Housing', 'Searching for Carpool', 1200, '6 months', 'Moderate', 'Outdoorsy', 55, 4, 'Dance studio owner providing classes in various dance styles', 1, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fleur Vitet', 'Psychology', 'Shuffledrive', 'D.C.', 'Searching for Housing', 'Has Car', 2000, '4 months', 'Disorganized', 'Quiet', 10, 4, 'Soccer player training for matches and tournaments', 3, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Celie Franchi', 'Finance', 'Jaxspan', 'Seattle', 'Searching for Housing', 'Has Car', 2500, '1 year', 'Messy', 'Extroverted', 5, 5, 'Dance choreographer creating routines for performances', 9, null, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Thaddus Pettiford', 'Business', 'Meejo', 'San Francisco', 'Not Interested', 'Has Car', 2500, '4 months', 'Disorganized', 'Active', 55, 7, 'Comic book store owner selling rare and collectible comics', 1, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Aprilette Kidd', 'Computer Science', 'Kaymbo', 'San Francisco', 'Not Interested', 'Complete', 2000, '6 months', 'Disorganized', 'Extroverted', 75, 6, 'Chess master competing in international tournaments and championships', 2, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Simone Fishbourne', 'Art', 'Gigabox', 'Los Angeles', 'Searching for Roommates', 'Complete', 1600, '6 months', 'Disorganized', 'Adventurous', 30, 7, 'Music aficionado attending concerts and music festivals', 5, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jonis MacAlaster', 'Finance', 'Babbleblab', 'San Jose', 'Searching for Roommates', 'Has Car', 170, '6 months', 'Messy', 'Quiet', 40, 3, 'Yoga studio owner providing classes in relaxation and mindfulness', 2, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Collette Lazenby', 'Finance', 'Gigaclub', 'D.C.', 'Searching for Housing', 'Has Car', 3000, '4 months', 'Cluttered', 'Quiet', 15, 4, 'Firefighter captain leading a team in emergency response and rescue', 10, null, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Conn Dullard', 'Business', 'Feednation', 'New York City', 'Not Interested', 'Searching for Carpool', 2500, '6 months', 'Moderate', 'Adventurous', 55, 7, 'Cycling coach developing training programs for cyclists', 9, null, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Everard Benedito', 'Computer Science', 'Zoomcast', 'San Francisco', 'Searching for Housing', 'Complete', 1600, '6 months', 'Messy', 'Outdoorsy', 20, 1, 'Dance choreographer creating routines for performances', 7, null, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Roman Wais', 'Law', 'Eire', 'Atlanta', 'Complete', 'Has Car', 1350, '1 year', 'Very Clean', 'Introverted', 5, 5, 'Loves hiking and exploring nature trails', 3, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wynne Codrington', 'Art', 'Topiczoom', 'San Jose', 'Not Interested', 'Not Interested', 1200, '4 months', 'Messy', 'Social', 60, 3, 'Hiking tour guide leading groups on scenic hikes and treks', 9, null, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Paten Paskell', 'Art', 'Plambee', 'New York City', 'Searching for Roommates', 'Has Car', 1800, '1 year', 'Cluttered', 'Extroverted', 30, 7, 'Fashion designer creating unique clothing and accessories', 8, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dewey Tubby', 'Mathematics', 'Miboo', 'Los Angeles', 'Not Interested', 'Has Car', 170, '6 months', 'Cluttered', 'Active', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 10, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Banky Tapenden', 'Computer Science', 'Yozio', 'Atlanta', 'Complete', 'Searching for Carpool', 1800, '6 months', 'Messy', 'Active', 45, 6, 'Motorcycle rider exploring scenic routes on two wheels', 4, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Worden Gansbuhler', 'Biology', 'Zoomlounge', 'New York City', 'Searching for Housing', 'Searching for Carpool', 1900, '1 year', 'Cluttered', 'Introverted', 15, 6, 'Travel blogger sharing adventures and tips with readers', 8, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Barbara Brenneke', 'Computer Science', 'Meetz', 'Seattle', 'Searching for Housing', 'Complete', 1200, '6 months', 'Clean', 'Active', 5, 6, 'Dedicated yogi practicing mindfulness and meditation', 8, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kimbra Absolon', 'Mathematics', 'Shuffletag', 'San Francisco', 'Not Interested', 'Not Interested', 1350, '1 year', 'Moderate', 'Active', 75, 5, 'Environmental advocate promoting conservation and eco-friendly practices', 9, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jayson Eitter', 'Business', 'Brainlounge', 'Atlanta', 'Searching for Housing', 'Has Car', 1150, '6 months', 'Moderate', 'Adventurous', 15, 4, 'Astrologer providing readings and insights based on celestial movements', 3, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leonie McGenn', 'Finance', 'Mita', 'Boston', 'Searching for Housing', 'Complete', 170, '1 year', 'Moderate', 'Social', 25, 1, 'Comic book collector preserving rare editions and memorabilia', 2, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Andriette Playhill', 'Art', 'Roombo', 'London', 'Not Interested', 'Complete', 1150, '4 months', 'Messy', 'Outdoorsy', 35, 5, 'Antique dealer specializing in unique and valuable antiques', 9, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Deena Peirce', 'Physics', 'Yodel', 'Boston', 'Complete', 'Has Car', 1600, '4 months', 'Messy', 'Outdoorsy', 45, 2, 'Vintage car collector restoring classic automobiles', 10, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Worthy Schreurs', 'Chemistry', 'Topicblab', 'Chicago', 'Complete', 'Not Interested', 1000, '4 months', 'Clean', 'Extroverted', 10, 3, 'Foodie exploring different cuisines and restaurants', 2, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gabriel Dedrick', 'Business', 'Flipbug', 'Atlanta', 'Searching for Housing', 'Searching for Carpool', 3000, '1 year', 'Moderate', 'Quiet', 20, 6, 'Dance choreographer creating routines for performances', 4, null, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dixie Delgardo', 'Computer Science', 'Trunyx', 'D.C.', 'Searching for Housing', 'Not Interested', 2000, '6 months', 'Clean', 'Introverted', 40, 1, 'Crafting enthusiast creating handmade gifts and decorations', 6, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Amargo Weatherill', 'Finance', 'Browsecat', 'San Francisco', 'Not Interested', 'Searching for Carpool', 1150, '6 months', 'Moderate', 'Adventurous', 10, 3, 'Antique dealer specializing in unique and valuable antiques', 2, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jack Amos', 'Finance', 'Eimbee', 'San Jose', 'Not Interested', 'Complete', 1900, '1 year', 'Clean', 'Quiet', 60, 7, 'Scuba diver exploring underwater ecosystems and marine life', 9, null, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Alis Trimbey', 'Law', 'Devpulse', 'New York City', 'Searching for Roommates', 'Searching for Carpool', 1000, '6 months', 'Cluttered', 'Quiet', 25, 1, 'Hiking guide leading groups on challenging mountain trails', 5, null, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kacey Outram', 'Computer Science', 'Gigazoom', 'San Jose', 'Complete', 'Searching for Carpool', 1000, '6 months', 'Disorganized', 'Outdoorsy', 35, 6, 'Devoted animal lover volunteering at shelters', 8, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Maddie Rodda', 'Mathematics', 'Dabjam', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Extroverted', 35, 1, 'Dedicated yogi practicing mindfulness and meditation', 7, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Vivianna Propper', 'Computer Science', 'Thoughtmix', 'London', 'Searching for Roommates', 'Searching for Carpool', 170, '4 months', 'Messy', 'Introverted', 35, 6, 'Marathon runner training for long-distance races', 4, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Hebert Jurries', 'Physics', 'Avamm', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1200, '4 months', 'Moderate', 'Extroverted', 15, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dorothee Tomaini', 'Biology', 'Rhybox', 'Chicago', 'Not Interested', 'Not Interested', 1000, '1 year', 'Disorganized', 'Introverted', 45, 5, 'Book publisher releasing new titles and bestsellers', 1, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kaiser Chitter', 'Physics', 'Thoughtbridge', 'Seattle', 'Searching for Housing', 'Complete', 1800, '1 year', 'Messy', 'Extroverted', 10, 1, 'Surfing school owner offering lessons and rentals for surfers', 1, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jerry Himsworth', 'Mathematics', 'Quatz', 'Boston', 'Searching for Housing', 'Not Interested', 3000, '6 months', 'Very Clean', 'Quiet', 5, 1, 'Rock climbing coach training climbers on techniques and safety', 2, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Delcina Lies', 'Psychology', 'Dynabox', 'San Francisco', 'Not Interested', 'Has Car', 1150, '4 months', 'Clean', 'Extroverted', 30, 3, 'Passionate about cooking and trying new recipes', 6, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Britni Cowden', 'Finance', 'Tagtune', 'Atlanta', 'Not Interested', 'Searching for Carpool', 1200, '6 months', 'Very Clean', 'Social', 20, 7, 'Birdwatching guide leading tours to spot rare and exotic birds', 2, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Reinald Swancock', 'Finance', 'Thoughtstorm', 'San Jose', 'Searching for Roommates', 'Has Car', 1600, '6 months', 'Clean', 'Outdoorsy', 30, 3, 'Gardening expert cultivating a lush and vibrant garden', 8, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Adel Gatsby', 'Business', 'Yodo', 'Atlanta', 'Searching for Roommates', 'Searching for Carpool', 2500, '6 months', 'Very Clean', 'Outdoorsy', 40, 7, 'Sports journalist reporting on games and athletes', 4, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Stace Muffett', 'Psychology', 'Midel', 'San Francisco', 'Not Interested', 'Searching for Carpool', 3000, '4 months', 'Very Clean', 'Extroverted', 15, 4, 'Dance studio owner providing classes in various dance styles', 3, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ardelis Benoey', 'Art', 'Aimbu', 'Seattle', 'Complete', 'Searching for Carpool', 1150, '4 months', 'Disorganized', 'Quiet', 5, 1, 'Dance enthusiast taking classes in various styles', 10, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Allan Ivoshin', 'Computer Science', 'JumpXS', 'Los Angeles', 'Not Interested', 'Complete', 1800, '6 months', 'Cluttered', 'Outdoorsy', 10, 2, 'Dedicated yogi practicing mindfulness and meditation', 4, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Brandea Blance', 'Finance', 'Meembee', 'San Jose', 'Searching for Housing', 'Not Interested', 1200, '6 months', 'Disorganized', 'Outdoorsy', 60, 2, 'Motorcycle racer competing in races and rallies', 3, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Charil Staresmeare', 'Biology', 'Meembee', 'San Francisco', 'Not Interested', 'Not Interested', 1600, '4 months', 'Moderate', 'Active', 35, 3, 'Birdwatcher spotting rare species in their natural habitats', 5, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fleming Wardlow', 'Physics', 'Youopia', 'Seattle', 'Complete', 'Complete', 1900, '6 months', 'Disorganized', 'Social', 5, 4, 'Fitness instructor leading group exercise classes', 2, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marillin Peasnone', 'Computer Science', 'Wordpedia', 'Seattle', 'Searching for Housing', 'Searching for Carpool', 1200, '4 months', 'Disorganized', 'Social', 40, 1, 'Travel blogger sharing adventures and tips with readers', 7, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fidel Dootson', 'Mathematics', 'Flipstorm', 'D.C.', 'Searching for Housing', 'Not Interested', 2000, '6 months', 'Disorganized', 'Introverted', 45, 1, 'Tech geek experimenting with the latest gadgets and software', 9, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Arturo Gerling', 'Physics', 'Photojam', 'D.C.', 'Not Interested', 'Complete', 3000, '1 year', 'Very Clean', 'Introverted', 30, 1, 'Dance choreographer creating routines for performances', 1, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leopold Tremble', 'Chemistry', 'Pixope', 'London', 'Searching for Roommates', 'Not Interested', 2500, '4 months', 'Messy', 'Outdoorsy', 10, 6, 'Sailing captain leading sailing expeditions and charters', 3, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Channa Pitrelli', 'Art', 'Dabvine', 'San Francisco', 'Searching for Roommates', 'Complete', 170, '6 months', 'Cluttered', 'Quiet', 75, 4, 'Art collector acquiring works from emerging and established artists', 4, null, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Rochella Ranns', 'Chemistry', 'JumpXS', 'Los Angeles', 'Searching for Housing', 'Complete', 2000, '4 months', 'Messy', 'Introverted', 75, 3, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fae Maffione', 'Computer Science', 'Twitternation', 'D.C.', 'Searching for Housing', 'Complete', 1150, '6 months', 'Cluttered', 'Quiet', 55, 5, 'Vintage car restorer refurbishing classic vehicles to their former glory', 9, null, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nealson Coundley', 'Art', 'Linkbuzz', 'London', 'Complete', 'Has Car', 2000, '1 year', 'Very Clean', 'Adventurous', 30, 7, 'History buff visiting museums and historical sites', 1, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jaimie Tappin', 'Biology', 'Gigaclub', 'San Jose', 'Not Interested', 'Searching for Carpool', 2000, '4 months', 'Clean', 'Social', 45, 7, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 3, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Susanna Pykerman', 'Law', 'Centidel', 'Chicago', 'Not Interested', 'Searching for Carpool', 2000, '6 months', 'Clean', 'Adventurous', 30, 3, 'Avid collector of vintage vinyl records', 7, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leda Standish-Brooks', 'Law', 'Eabox', 'Los Angeles', 'Complete', 'Has Car', 2500, '1 year', 'Messy', 'Introverted', 60, 1, 'Sports fan cheering for their favorite teams at games', 9, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Alfredo Verling', 'Physics', 'Livetube', 'San Jose', 'Complete', 'Not Interested', 1200, '4 months', 'Very Clean', 'Social', 55, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kristina Orteu', 'Chemistry', 'Skiptube', 'Los Angeles', 'Not Interested', 'Complete', 1600, '4 months', 'Moderate', 'Introverted', 15, 5, 'Crafting enthusiast creating handmade gifts and decorations', 3, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Darcee Itzkowicz', 'Chemistry', 'Fadeo', 'Chicago', 'Not Interested', 'Has Car', 170, '6 months', 'Very Clean', 'Introverted', 5, 2, 'Chess master competing in international tournaments and championships', 10, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Brigg Braidley', 'Biology', 'Twimbo', 'Los Angeles', 'Complete', 'Searching for Carpool', 1600, '4 months', 'Very Clean', 'Introverted', 55, 1, 'Environmental advocate promoting conservation and eco-friendly practices', 7, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jade Waplington', 'Finance', 'Innotype', 'Atlanta', 'Not Interested', 'Has Car', 2500, '4 months', 'Very Clean', 'Introverted', 30, 6, 'Environmental advocate promoting conservation and eco-friendly practices', 4, null, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Claire Mallender', 'Biology', 'Roombo', 'Chicago', 'Complete', 'Has Car', 1200, '6 months', 'Disorganized', 'Active', 10, 6, 'Vintage car restorer refurbishing classic vehicles to their former glory', 1, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wileen Loveman', 'Biology', 'Abata', 'Atlanta', 'Searching for Housing', 'Complete', 3000, '4 months', 'Very Clean', 'Social', 20, 6, 'History professor researching and teaching historical events', 2, null, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Shannon Eagar', 'Chemistry', 'Skibox', 'London', 'Complete', 'Searching for Carpool', 1000, '1 year', 'Cluttered', 'Adventurous', 30, 2, 'Sailing captain leading sailing expeditions and charters', 8, null, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nikita Ferronet', 'Computer Science', 'Fadeo', 'Boston', 'Complete', 'Searching for Carpool', 2000, '6 months', 'Clean', 'Social', 5, 1, 'Vintage car collector restoring classic automobiles', 3, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Quinn Corner', 'Biology', 'Meevee', 'New York City', 'Searching for Roommates', 'Has Car', 1800, '1 year', 'Cluttered', 'Active', 20, 1, 'Gaming streamer broadcasting gameplay and interacting with viewers', 3, null, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Hewie Speek', 'Art', 'Einti', 'Seattle', 'Not Interested', 'Complete', 2000, '1 year', 'Moderate', 'Adventurous', 75, 1, 'Antique dealer specializing in unique and valuable antiques', 5, null, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ronica Maplethorp', 'Law', 'Skiba', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 1800, '4 months', 'Cluttered', 'Social', 10, 2, 'Travel blogger sharing adventures and tips with readers', 10, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Blair Shedden', 'Physics', 'Fanoodle', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2000, '6 months', 'Disorganized', 'Extroverted', 25, 4, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nolly Petry', 'Law', 'Buzzster', 'Atlanta', 'Searching for Roommates', 'Complete', 1000, '6 months', 'Disorganized', 'Social', 55, 5, 'Fashion designer creating unique clothing and accessories', 5, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Flemming Gatecliffe', 'Computer Science', 'Yombu', 'New York City', 'Not Interested', 'Complete', 170, '1 year', 'Cluttered', 'Introverted', 75, 2, 'Tech entrepreneur developing innovative solutions and products', 9, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Prince Stickells', 'Finance', 'Dabfeed', 'Atlanta', 'Not Interested', 'Has Car', 2500, '4 months', 'Cluttered', 'Social', 30, 1, 'Dance choreographer creating routines for performances', 9, null, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Moselle Huddy', 'Biology', 'Kare', 'Los Angeles', 'Searching for Housing', 'Complete', 1350, '4 months', 'Disorganized', 'Social', 5, 2, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 4, null, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fraser Crippill', 'Physics', 'Dynazzy', 'Los Angeles', 'Searching for Roommates', 'Not Interested', 1900, '1 year', 'Disorganized', 'Extroverted', 15, 2, 'Environmental advocate promoting conservation and eco-friendly practices', 10, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jenda Wrinch', 'Psychology', 'Twinder', 'San Jose', 'Complete', 'Complete', 1000, '6 months', 'Very Clean', 'Outdoorsy', 35, 1, 'Gardening expert cultivating a lush and vibrant garden', 9, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Corliss Lavallie', 'Chemistry', 'Geba', 'Boston', 'Searching for Housing', 'Has Car', 2500, '6 months', 'Clean', 'Social', 55, 2, 'History buff visiting museums and historical sites', 1, null, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ivonne Wickrath', 'Art', 'Divavu', 'London', 'Complete', 'Complete', 3000, '4 months', 'Moderate', 'Quiet', 75, 7, 'Keen gardener growing a variety of fruits and vegetables', 7, null, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Pearline Grumell', 'Chemistry', 'Feedfish', 'Seattle', 'Not Interested', 'Complete', 3000, '6 months', 'Messy', 'Social', 30, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 5, null, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Susannah Raddan', 'Art', 'Tazzy', 'D.C.', 'Complete', 'Has Car', 1800, '4 months', 'Clean', 'Adventurous', 75, 5, 'Book publisher releasing new titles and bestsellers', 5, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Delila Coulbeck', 'Psychology', 'Demimbu', 'D.C.', 'Searching for Roommates', 'Complete', 2500, '4 months', 'Cluttered', 'Active', 45, 2, 'Wine connoisseur tasting and collecting fine wines', 2, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Berton Harmeston', 'Biology', 'Janyx', 'Chicago', 'Searching for Roommates', 'Has Car', 1000, '1 year', 'Moderate', 'Quiet', 60, 1, 'Vintage car collector restoring classic automobiles', 8, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Donalt Gunning', 'Finance', 'Riffpedia', 'Atlanta', 'Searching for Roommates', 'Not Interested', 1200, '4 months', 'Clean', 'Quiet', 30, 2, 'Astrologer providing readings and insights based on celestial movements', 9, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Tymon Neilus', 'Biology', 'Pixope', 'New York City', 'Complete', 'Searching for Carpool', 1600, '4 months', 'Cluttered', 'Quiet', 30, 7, 'Soccer coach training players on skills and strategies for the game', 9, null, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leoine Oswell', 'Art', 'Skimia', 'Chicago', 'Complete', 'Not Interested', 1150, '1 year', 'Messy', 'Social', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 9, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gerry Gatecliff', 'Finance', 'Shufflebeat', 'San Jose', 'Searching for Housing', 'Searching for Carpool', 1600, '1 year', 'Clean', 'Outdoorsy', 45, 6, 'Sports commentator providing analysis and commentary on games', 9, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marissa Broun', 'Finance', 'Quire', 'Seattle', 'Searching for Housing', 'Complete', 3000, '1 year', 'Cluttered', 'Extroverted', 45, 1, 'Obsessed with DIY home improvement projects', 6, null, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Letty Mewton', 'Physics', 'Jabberbean', 'Atlanta', 'Complete', 'Searching for Carpool', 1150, '4 months', 'Moderate', 'Quiet', 45, 5, 'Music festival organizer planning and coordinating live music events', 9, null, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Arthur Gave', 'Business', 'Blogspan', 'San Francisco', 'Complete', 'Not Interested', 2500, '6 months', 'Disorganized', 'Extroverted', 40, 3, 'Fitness influencer inspiring followers with workout routines and tips', 3, null, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Joleen Satterly', 'Physics', 'Oodoo', 'Chicago', 'Searching for Housing', 'Searching for Carpool', 1600, '6 months', 'Moderate', 'Adventurous', 75, 4, 'Rock climbing coach training climbers on techniques and safety', 9, null, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wheeler Martynka', 'Business', 'Rhynyx', 'London', 'Searching for Housing', 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Adventurous', 10, 5, 'Rock climbing coach training climbers on techniques and safety', 5, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marys Hannaby', 'Art', 'Zazio', 'London', 'Searching for Housing', 'Not Interested', 170, '1 year', 'Cluttered', 'Active', 30, 6, 'Surfing enthusiast catching waves at the beach', 10, null, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ariel Gabotti', 'Biology', 'Latz', 'San Jose', 'Complete', 'Complete', 3000, '1 year', 'Moderate', 'Introverted', 60, 6, 'Soccer coach training players on skills and strategies for the game', 1, null, 9); -- Chat insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (1, 3, 'Network connectivity issues', '2024-04-10 00:27:14', 5); From 17f9026d56319ff934b3ea07d2006ece58ce9473 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 14:29:47 -0500 Subject: [PATCH 052/305] Update SyncSpaceUpdated.sql --- database-files/SyncSpaceUpdated.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 1e99a3b2e0..0daf8e8292 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -115,6 +115,7 @@ CREATE TABLE IF NOT EXISTS Advisor ( -- Add foreign key to Feedback for Advisor after Advisor is created ALTER TABLE Feedback ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); +-- Add foreign key to Student for Advisor after Advisor is created ALTER TABLE Student ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); From 8d7a7437b87e4dc5dc8c749fb374b82610567919 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Sun, 1 Dec 2024 15:29:40 -0500 Subject: [PATCH 053/305] 1 --- app/src/pages/10_Co-op_Advisor_Home.py | 92 ++++++++++++++++--- .../{11_Prediction.py => 11_Notification.py} | 0 app/src/pages/{12_API_Test.py => 12_Form.py} | 0 .../{13_Classification.py => 13_Housing.py} | 0 4 files changed, 79 insertions(+), 13 deletions(-) rename app/src/pages/{11_Prediction.py => 11_Notification.py} (100%) rename app/src/pages/{12_API_Test.py => 12_Form.py} (100%) rename app/src/pages/{13_Classification.py => 13_Housing.py} (100%) diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 35066d1db5..4217b75fd4 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -2,29 +2,95 @@ logger = logging.getLogger(__name__) import streamlit as st +import pandas as pd +from st_aggrid import AgGrid, GridOptionsBuilder +import sqlite3 from modules.nav import SideBarLinks -st.set_page_config(layout = 'wide') +# Check if user is logged in +if 'logged_in' not in st.session_state or not st.session_state['logged_in']: + st.error("Please login to access this page") + st.stop() + +# Page config +st.set_page_config(layout="wide") # Show appropriate sidebar links for the role of the currently logged in user SideBarLinks() +# Title and welcome message st.title(f"Welcome Co-op Advisor, {st.session_state['first_name']}.") st.write('') st.write('') st.write('### What would you like to do today?') -if st.button('Predict the Values Based on Regression Model', - type='primary', - use_container_width=True): - st.switch_page('pages/11_Prediction.py') +# Create top row of metric cards with some padding +st.write('') +col1, col2, col3, col4 = st.columns([1, 1, 1, 1]) + + +with col1: + st.button("🔔 NOTIFICATION\n9 Unread Notifications", + key="notification_btn", + on_click=lambda: st.switch_page("pages/11_Notification.py")) + +with col2: + st.button("📝 FORMS\n4 Student Forms Update", + key="forms_btn", + on_click=lambda: st.switch_page("pages/12_Form.py")) + +with col3: + st.button("🏠 HOUSING\n6 Students Waiting", + key="housing_btn", + on_click=lambda: st.switch_page("pages/13_Housing.py")) + +with col4: + st.button("➕ CREATE NEW\nCase", + key="create_btn") + +# Database connection and student data retrieval +@st.cache_data +def load_student_data(): + conn = sqlite3.connect('ScyncSpace-data.sql') + query = """ + SELECT + student_id, + first_name || ' ' || last_name as student_name, + location as co_op_location, + company_name, + start_date + FROM students + ORDER BY start_date DESC + """ + df = pd.read_sql_query(query, conn) + conn.close() + return df + +# Load student data +df = load_student_data() + +# Replace the grid configuration and display code with this: +st.subheader(f"Student List ({len(df)})") + +# Add a search box +search = st.text_input("Search students", "") -if st.button('View the Simple API Demo', - type='primary', - use_container_width=True): - st.switch_page('pages/12_API_Test.py') +# Filter dataframe based on search term +if search: + df = df[ + df.apply(lambda row: search.lower() in str(row).lower(), axis=1) + ] -if st.button("View Classification Demo", - type='primary', - use_container_width=True): - st.switch_page('pages/13_Classification.py') \ No newline at end of file +# Display the dataframe with built-in Streamlit functionality +st.dataframe( + df, + hide_index=True, + column_config={ + "student_id": None, # Hide the student_id column + "student_name": "Name", + "co_op_location": "Co-op Location", + "company_name": "Company", + "start_date": "Start Date" + }, + use_container_width=True +) \ No newline at end of file diff --git a/app/src/pages/11_Prediction.py b/app/src/pages/11_Notification.py similarity index 100% rename from app/src/pages/11_Prediction.py rename to app/src/pages/11_Notification.py diff --git a/app/src/pages/12_API_Test.py b/app/src/pages/12_Form.py similarity index 100% rename from app/src/pages/12_API_Test.py rename to app/src/pages/12_Form.py diff --git a/app/src/pages/13_Classification.py b/app/src/pages/13_Housing.py similarity index 100% rename from app/src/pages/13_Classification.py rename to app/src/pages/13_Housing.py From 2e9ffc785e9da1638e0ec277584ab978181347fb Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Sun, 1 Dec 2024 16:55:05 -0500 Subject: [PATCH 054/305] 2 --- app/src/Home.py | 4 +- app/src/ScyncSpace-data2.sql | 0 app/src/SyncSpace.2sql | 0 app/src/SyncSpace.sql | 0 app/src/modules/nav.py | 6 +- app/src/pages/10_Co-op_Advisor_Home.py | 103 ++++++++++++------------- 6 files changed, 54 insertions(+), 59 deletions(-) create mode 100644 app/src/ScyncSpace-data2.sql create mode 100644 app/src/SyncSpace.2sql create mode 100644 app/src/SyncSpace.sql diff --git a/app/src/Home.py b/app/src/Home.py index 0cd7e9404b..6f6e433251 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -58,9 +58,9 @@ st.switch_page('pages/00_Tech_Support_Analyst_Home.py') if st.button('Act as Co-op Advisor - Jessica Doofenshmirtz', - type = 'primary', + type='primary', use_container_width=True): - st.session_state['authenticated'] = True + st.session_state['logged_in'] = True st.session_state['role'] = 'Advisor' st.session_state['first_name'] = 'Jessica' st.switch_page('pages/10_Co-op_Advisor_Home.py') diff --git a/app/src/ScyncSpace-data2.sql b/app/src/ScyncSpace-data2.sql new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/SyncSpace.2sql b/app/src/SyncSpace.2sql new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/SyncSpace.sql b/app/src/SyncSpace.sql new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 62fd89ae69..2fe2ab4518 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -33,18 +33,18 @@ def MapDemoNav(): ## ------------------------ Examples for Role of usaid_worker ------------------------ def ApiTestNav(): - st.sidebar.page_link("pages/12_API_Test.py", label="Test the API", icon="🛜") + st.sidebar.page_link("pages/12_Form.py", label="Test the API", icon="🛜") def PredictionNav(): st.sidebar.page_link( - "pages/11_Prediction.py", label="Regression Prediction", icon="📈" + "pages/11_Notification.py", label="Regression Prediction", icon="📈" ) def ClassificationNav(): st.sidebar.page_link( - "pages/13_Classification.py", label="Classification Demo", icon="🌺" + "pages/13_Housing.py", label="Classification Demo", icon="🌺" ) diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 4217b75fd4..2a3554bfc1 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -2,95 +2,90 @@ logger = logging.getLogger(__name__) import streamlit as st -import pandas as pd -from st_aggrid import AgGrid, GridOptionsBuilder -import sqlite3 from modules.nav import SideBarLinks +import sqlite3 +import pandas as pd -# Check if user is logged in -if 'logged_in' not in st.session_state or not st.session_state['logged_in']: - st.error("Please login to access this page") - st.stop() - -# Page config +# Set Streamlit page configuration st.set_page_config(layout="wide") -# Show appropriate sidebar links for the role of the currently logged in user +# Add navigation sidebar SideBarLinks() -# Title and welcome message -st.title(f"Welcome Co-op Advisor, {st.session_state['first_name']}.") -st.write('') +# Page title and welcome message +st.title('Co-op Advisor Home Page') +st.write(f"Welcome, {st.session_state.get('first_name', 'Advisor')}!") + st.write('') st.write('### What would you like to do today?') -# Create top row of metric cards with some padding -st.write('') +# Create top row of metric cards col1, col2, col3, col4 = st.columns([1, 1, 1, 1]) - with col1: - st.button("🔔 NOTIFICATION\n9 Unread Notifications", - key="notification_btn", - on_click=lambda: st.switch_page("pages/11_Notification.py")) + if st.button("🔔 NOTIFICATION\n9 Unread Notifications", key="notification_btn"): + st.write("Redirecting to Notifications...") with col2: - st.button("📝 FORMS\n4 Student Forms Update", - key="forms_btn", - on_click=lambda: st.switch_page("pages/12_Form.py")) + if st.button("📝 FORMS\n4 Student Forms Update", key="forms_btn"): + st.write("Redirecting to Forms...") with col3: - st.button("🏠 HOUSING\n6 Students Waiting", - key="housing_btn", - on_click=lambda: st.switch_page("pages/13_Housing.py")) + if st.button("🏠 HOUSING\n6 Students Waiting", key="housing_btn"): + st.write("Redirecting to Housing...") with col4: - st.button("➕ CREATE NEW\nCase", - key="create_btn") + if st.button("➕ CREATE NEW\nCase", key="create_btn"): + st.write("Redirecting to Create New Case...") # Database connection and student data retrieval @st.cache_data def load_student_data(): - conn = sqlite3.connect('ScyncSpace-data.sql') - query = """ - SELECT - student_id, - first_name || ' ' || last_name as student_name, - location as co_op_location, - company_name, - start_date - FROM students - ORDER BY start_date DESC - """ - df = pd.read_sql_query(query, conn) - conn.close() - return df + try: + # Connect to SQLite database (using .db extension) + conn = sqlite3.connect('database-files/SyncSpace.db') + query = """ + SELECT + StudentID AS student_id, + Name AS student_name, + Location AS co_op_location, + Company AS company_name, + Major AS major + FROM Student + ORDER BY student_id ASC + """ + df = pd.read_sql_query(query, conn) + conn.close() + return df + except sqlite3.Error as e: + st.error(f"Database error: {e}") + st.info("Please ensure the database is properly initialized") + return pd.DataFrame() # Load student data df = load_student_data() -# Replace the grid configuration and display code with this: +# Display the student list st.subheader(f"Student List ({len(df)})") # Add a search box -search = st.text_input("Search students", "") +search = st.text_input("Search students by name, location, or company", "") -# Filter dataframe based on search term +# Filter the DataFrame based on search input if search: - df = df[ - df.apply(lambda row: search.lower() in str(row).lower(), axis=1) - ] + df = df[df.apply(lambda row: search.lower() in str(row).lower(), axis=1)] -# Display the dataframe with built-in Streamlit functionality +# Display the DataFrame with Streamlit's built-in table display st.dataframe( df, - hide_index=True, + use_container_width=True, column_config={ - "student_id": None, # Hide the student_id column + "student_id": "Student ID", "student_name": "Name", "co_op_location": "Co-op Location", "company_name": "Company", - "start_date": "Start Date" - }, - use_container_width=True -) \ No newline at end of file + "major": "Major" + } +) + + From 9d17005f70e549f7105fb36aeb24bf07ec82c1fd Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 16:59:49 -0500 Subject: [PATCH 055/305] kevin streamlit pages --- app/src/pages/22_Housing.py | 0 app/src/pages/23_Carpool.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 app/src/pages/22_Housing.py create mode 100644 app/src/pages/23_Carpool.py diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/pages/23_Carpool.py b/app/src/pages/23_Carpool.py new file mode 100644 index 0000000000..e69de29bb2 From b3121f049d5b7ebb3ca06df3c455099e797514ae Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 17:01:44 -0500 Subject: [PATCH 056/305] renaming --- .../pages/{40_Student_Sarah_Home.py => 30_Student_Sarah_Home.py} | 0 .../pages/{41_Browse_Profiles.py => 31_Professional_Events.py} | 0 .../pages/{42_Professional_Events.py => 32_Browse_Profiles.py} | 0 app/src/pages/{43_Other_Page.py => 33_Other_Page.py} | 0 app/src/pages/{30_About.py => 50_About.py} | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename app/src/pages/{40_Student_Sarah_Home.py => 30_Student_Sarah_Home.py} (100%) rename app/src/pages/{41_Browse_Profiles.py => 31_Professional_Events.py} (100%) rename app/src/pages/{42_Professional_Events.py => 32_Browse_Profiles.py} (100%) rename app/src/pages/{43_Other_Page.py => 33_Other_Page.py} (100%) rename app/src/pages/{30_About.py => 50_About.py} (100%) diff --git a/app/src/pages/40_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py similarity index 100% rename from app/src/pages/40_Student_Sarah_Home.py rename to app/src/pages/30_Student_Sarah_Home.py diff --git a/app/src/pages/41_Browse_Profiles.py b/app/src/pages/31_Professional_Events.py similarity index 100% rename from app/src/pages/41_Browse_Profiles.py rename to app/src/pages/31_Professional_Events.py diff --git a/app/src/pages/42_Professional_Events.py b/app/src/pages/32_Browse_Profiles.py similarity index 100% rename from app/src/pages/42_Professional_Events.py rename to app/src/pages/32_Browse_Profiles.py diff --git a/app/src/pages/43_Other_Page.py b/app/src/pages/33_Other_Page.py similarity index 100% rename from app/src/pages/43_Other_Page.py rename to app/src/pages/33_Other_Page.py diff --git a/app/src/pages/30_About.py b/app/src/pages/50_About.py similarity index 100% rename from app/src/pages/30_About.py rename to app/src/pages/50_About.py From bda222db1bd2cf8273a33a69841772fe010c16f0 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 17:03:14 -0500 Subject: [PATCH 057/305] Update 20_Student_Kevin_Home.py --- app/src/pages/20_Student_Kevin_Home.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index ed7f519eb5..b45e8c0725 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -9,7 +9,10 @@ SideBarLinks() -st.title('Student Home Page') +st.title(f"Welcome Student, {st.session_state['first_name']}.") +st.write('') +st.write('') +st.write('### What would you like to do today?') if st.button('View Advisor Feedback', type='primary', From cfa73e9c318465cff1b496823e608f7ee5c17ea1 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 17:04:27 -0500 Subject: [PATCH 058/305] Update Home.py --- app/src/Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Home.py b/app/src/Home.py index 0cd7e9404b..491114a703 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -78,7 +78,7 @@ use_container_width=True): st.session_state['authenticated'] = True st.session_state['role'] = 'Student' - st.switch_page('pages/40_Student_Sarah_Home.py') + st.switch_page('pages/30_Student_Sarah_Home.py') # Add a button for the Warehouse Manager Portal if st.button('Act as Warehouse Manager', From 381321ed60321d4f4f42ac484b1192f1d652f033 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 17:05:30 -0500 Subject: [PATCH 059/305] Update nav.py --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 62fd89ae69..0fc47e7a26 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -11,7 +11,7 @@ def HomeNav(): def AboutPageNav(): - st.sidebar.page_link("pages/30_About.py", label="About", icon="🧠") + st.sidebar.page_link("pages/50_About.py", label="About", icon="🧠") #### ------------------------ Examples for Role of pol_strat_advisor ------------------------ From 52c53ad13a8c86c2b40ee3d00204d1156b4e7c40 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 17:09:20 -0500 Subject: [PATCH 060/305] note --- app/src/modules/nav.py | 2 +- database-files/SyncSpaceUpdated.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 0fc47e7a26..17d773b627 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -48,7 +48,7 @@ def ClassificationNav(): ) -#### ------------------------ System Admin Role ------------------------ +#### ------------------------ Student Housing/Carpool Role ------------------------ def AdminPageNav(): st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student - Kevin Chen", icon="🖥️") st.sidebar.page_link( diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpaceUpdated.sql index 0daf8e8292..19e3c991af 100644 --- a/database-files/SyncSpaceUpdated.sql +++ b/database-files/SyncSpaceUpdated.sql @@ -158,6 +158,8 @@ CREATE TABLE IF NOT EXISTS SystemHealth ( FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) ); +-- NOTE - need to add in data for our personas + -- 1.4 UPDATE Ticket SET Priority = 'Critical' From 97502e06ae9f4ac8375bbad5b26f8e6d32004943 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 17:46:40 -0500 Subject: [PATCH 061/305] Updating michael_routes GET tickets route with data --- api/backend/products/michael_routes.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 81cd95164b..800f56c580 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -21,12 +21,14 @@ @tech_support_analyst.route('/tickets', methods=['GET']) def get_tickets(): query = ''' - SELECT id, - product_code, - product_name, - list_price, - category - FROM products + SELECT TicketID, + UserID, + IssueType, + Status, + Priority, + ReceivedDate, + ResolvedDate + FROM ticket ''' # get a cursor object from the database From 8564ee9443da9417fb4bfb2973f5509025e74151 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 17:55:33 -0500 Subject: [PATCH 062/305] Updating michael_routes with our chat data --- api/backend/products/michael_routes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 800f56c580..c516857b87 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -151,8 +151,8 @@ def add_new_chats(): #extracting the variable name = the_data['product_name'] - description = the_data['product_description'] - price = the_data['product_price'] + content = the_data['chat_content'] + time = the_data['chat_time'] category = the_data['product_category'] query = f''' @@ -160,7 +160,7 @@ def add_new_chats(): description, category, list_price) - VALUES ('{name}', '{description}', '{category}', {str(price)}) + VALUES ('{name}', '{content}', '{category}', {str(time)}) ''' # TODO: Make sure the version of the query above works properly # Constructing the query @@ -176,7 +176,7 @@ def add_new_chats(): cursor.execute(query) db.get_db().commit() - response = make_response("Successfully added product") + response = make_response("Successfully initiated chat") response.status_code = 200 return response From 3888cc6848013131885f79d8678ade77628e47f8 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:05:14 -0500 Subject: [PATCH 063/305] Update nav.py --- app/src/modules/nav.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 17d773b627..5e7d4f50d8 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -49,12 +49,15 @@ def ClassificationNav(): #### ------------------------ Student Housing/Carpool Role ------------------------ -def AdminPageNav(): - st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student - Kevin Chen", icon="🖥️") +def FeedbackNav(): + st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Advisor Feedeback", icon="🖥️") st.sidebar.page_link( - "pages/21_ML_Model_Mgmt.py", label="ML Model Management", icon="🏢" + "pages/21_Advisor_Feedback.py", label="ML Model Management", icon="🏢" ) +#def HousingNav(): + # st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label =) + # --------------------------------Links Function ----------------------------------------------- def SideBarLinks(show_home=False): @@ -91,7 +94,7 @@ def SideBarLinks(show_home=False): # If the user is an administrator, give them access to the administrator pages if st.session_state["role"] == "Student": - AdminPageNav() + StudentPageNav() # Always show the About page at the bottom of the list of links AboutPageNav() From fe872b52fe496b8de1a3f2448333df0f494e8cc5 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:06:37 -0500 Subject: [PATCH 064/305] Update nav.py --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 5e7d4f50d8..8ebf9c1290 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -94,7 +94,7 @@ def SideBarLinks(show_home=False): # If the user is an administrator, give them access to the administrator pages if st.session_state["role"] == "Student": - StudentPageNav() + Feedback() # Always show the About page at the bottom of the list of links AboutPageNav() From 4edb4709ff958f3bea04c50f61083d5a2be293b0 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:07:16 -0500 Subject: [PATCH 065/305] Update nav.py --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 8ebf9c1290..8485b83674 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -94,7 +94,7 @@ def SideBarLinks(show_home=False): # If the user is an administrator, give them access to the administrator pages if st.session_state["role"] == "Student": - Feedback() + FeedbackNav() # Always show the About page at the bottom of the list of links AboutPageNav() From 267014fceccaf2a6ed15875f9ab99d2e57051293 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:14:23 -0500 Subject: [PATCH 066/305] Update nav.py --- app/src/modules/nav.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 8485b83674..ea78804aa4 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -49,11 +49,11 @@ def ClassificationNav(): #### ------------------------ Student Housing/Carpool Role ------------------------ -def FeedbackNav(): - st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Advisor Feedeback", icon="🖥️") - st.sidebar.page_link( - "pages/21_Advisor_Feedback.py", label="ML Model Management", icon="🏢" - ) +def KevinPageNav(): + st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="👤") + st.sidebar.page_link("pages/21_Advisor_Feedback.py", label="Advisor Feedback", icon="🏢") + st.sidebar.page_link("pages/22_Housing.py", label="Housing Search") + st.sidebar.page_link("pages/23_Carpool.py", label="Carpool Search") #def HousingNav(): # st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label =) @@ -94,7 +94,7 @@ def SideBarLinks(show_home=False): # If the user is an administrator, give them access to the administrator pages if st.session_state["role"] == "Student": - FeedbackNav() + KevinPageNav() # Always show the About page at the bottom of the list of links AboutPageNav() From e44e3d51480d42dc2b1be2ee2a4d420643399520 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:20:54 -0500 Subject: [PATCH 067/305] Update nav.py --- app/src/modules/nav.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index ea78804aa4..7d8df70dae 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -52,11 +52,8 @@ def ClassificationNav(): def KevinPageNav(): st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="👤") st.sidebar.page_link("pages/21_Advisor_Feedback.py", label="Advisor Feedback", icon="🏢") - st.sidebar.page_link("pages/22_Housing.py", label="Housing Search") - st.sidebar.page_link("pages/23_Carpool.py", label="Carpool Search") - -#def HousingNav(): - # st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label =) + st.sidebar.page_link("pages/22_Housing.py", label="Housing Search", icon=🏘️) + st.sidebar.page_link("pages/23_Carpool.py", label="Carpool Search", icon=🚗) # --------------------------------Links Function ----------------------------------------------- From 7d4fb0e26c617109ed3a7e1e443e9f8bf7b90809 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:25:13 -0500 Subject: [PATCH 068/305] test --- app/src/pages/22_Housing.py | 15 +++++++++++++++ app/src/pages/23_Carpool.py | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index e69de29bb2..17afeec08d 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -0,0 +1,15 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Housing Search') + +st.write('\n\n') +st.write('## Model 1 Maintenance') +st.write("Test") diff --git a/app/src/pages/23_Carpool.py b/app/src/pages/23_Carpool.py index e69de29bb2..351285292d 100644 --- a/app/src/pages/23_Carpool.py +++ b/app/src/pages/23_Carpool.py @@ -0,0 +1,15 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Carpool Search') + +st.write('\n\n') +st.write('## test') +st.write("Test") From 1c934d46600ecef7f51434bd18e8e74de50a2119 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:25:54 -0500 Subject: [PATCH 069/305] Update nav.py --- app/src/modules/nav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 7d8df70dae..20af733dd1 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -52,8 +52,8 @@ def ClassificationNav(): def KevinPageNav(): st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="👤") st.sidebar.page_link("pages/21_Advisor_Feedback.py", label="Advisor Feedback", icon="🏢") - st.sidebar.page_link("pages/22_Housing.py", label="Housing Search", icon=🏘️) - st.sidebar.page_link("pages/23_Carpool.py", label="Carpool Search", icon=🚗) + st.sidebar.page_link("pages/22_Housing.py", label="Housing Search", icon="🏘️") + st.sidebar.page_link("pages/23_Carpool.py", label="Carpool Search", icon="🚗") # --------------------------------Links Function ----------------------------------------------- From 9152c6bdade20eefc21a014fb24e9fc46abe9070 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:36:18 -0500 Subject: [PATCH 070/305] Delete .py --- app/src/pages/.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 app/src/pages/.py diff --git a/app/src/pages/.py b/app/src/pages/.py deleted file mode 100644 index e69de29bb2..0000000000 From f2631d32675e0568fda8b9a3d370092f63ac7069 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:40:05 -0500 Subject: [PATCH 071/305] Update 20_Student_Kevin_Home.py --- app/src/pages/20_Student_Kevin_Home.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index b45e8c0725..8579d27e27 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -17,4 +17,12 @@ if st.button('View Advisor Feedback', type='primary', use_container_width=True): - st.switch_page('pages/21_Advisor_Feedback.py') \ No newline at end of file + st.switch_page('pages/21_Advisor_Feedback.py') + +if st.button('Access Housing Search', type=primary, use_container_width=True): + + st.switch_page('pages/22_Housing.py') + +if st.buttton('Access Carpool Search', type=primary, use_container_width=True): + st.switch_page('pages/23_Carpool.py') + From 6ee1c9be19d7bef3725ac8c78960232e865a0021 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:41:21 -0500 Subject: [PATCH 072/305] Update 20_Student_Kevin_Home.py --- app/src/pages/20_Student_Kevin_Home.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 8579d27e27..3d2fea778a 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -19,10 +19,9 @@ use_container_width=True): st.switch_page('pages/21_Advisor_Feedback.py') -if st.button('Access Housing Search', type=primary, use_container_width=True): - +if st.button('Access Housing Search', type='primary', use_container_width=True): st.switch_page('pages/22_Housing.py') -if st.buttton('Access Carpool Search', type=primary, use_container_width=True): +if st.buttton('Access Carpool Search', type='primary', use_container_width=True): st.switch_page('pages/23_Carpool.py') From 3bf146b84abb080099e6b6dde2bd8ce9dc54f45b Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:42:06 -0500 Subject: [PATCH 073/305] Update 20_Student_Kevin_Home.py --- app/src/pages/20_Student_Kevin_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 3d2fea778a..01b3344144 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -22,6 +22,6 @@ if st.button('Access Housing Search', type='primary', use_container_width=True): st.switch_page('pages/22_Housing.py') -if st.buttton('Access Carpool Search', type='primary', use_container_width=True): +if st.button('Access Carpool Search', type='primary', use_container_width=True): st.switch_page('pages/23_Carpool.py') From 8b98b29823e05ba22954f6ddb09d554fc649ce06 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 19:55:05 -0500 Subject: [PATCH 074/305] Create community_routes.py --- api/backend/community/community_routes.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 api/backend/community/community_routes.py diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py new file mode 100644 index 0000000000..e69de29bb2 From ada6631084ad4708288250898a02b968a5239fc5 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 19:55:42 -0500 Subject: [PATCH 075/305] format updates --- app/src/pages/20_Student_Kevin_Home.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 01b3344144..d7afbaa95c 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -19,9 +19,13 @@ use_container_width=True): st.switch_page('pages/21_Advisor_Feedback.py') -if st.button('Access Housing Search', type='primary', use_container_width=True): +if st.button('Access Housing Search', + type='primary', + use_container_width=True): st.switch_page('pages/22_Housing.py') -if st.button('Access Carpool Search', type='primary', use_container_width=True): +if st.button('Access Carpool Search', + type='primary', + use_container_width=True): st.switch_page('pages/23_Carpool.py') From 207caa8f3797ca9eb8b5255e98a4ef13b6282df8 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 19:57:10 -0500 Subject: [PATCH 076/305] adding on to create professional events hub --- app/src/pages/31_Professional_Events.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/pages/31_Professional_Events.py b/app/src/pages/31_Professional_Events.py index f8c3d83907..521b07633f 100644 --- a/app/src/pages/31_Professional_Events.py +++ b/app/src/pages/31_Professional_Events.py @@ -3,4 +3,14 @@ import streamlit as st import requests from streamlit_extras.app_logo import add_logo -from modules.nav import SideBarLinks \ No newline at end of file +from modules.nav import SideBarLinks + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Professional Events Hub') + +st.write('\n\n') +st.write('## test') +st.write("Test") \ No newline at end of file From 2c972b6bc30905dbbc220a6fe0784be736e8fe93 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 19:59:24 -0500 Subject: [PATCH 077/305] update to create browse profiles page --- app/src/pages/32_Browse_Profiles.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/pages/32_Browse_Profiles.py b/app/src/pages/32_Browse_Profiles.py index f8c3d83907..b394d831b0 100644 --- a/app/src/pages/32_Browse_Profiles.py +++ b/app/src/pages/32_Browse_Profiles.py @@ -3,4 +3,14 @@ import streamlit as st import requests from streamlit_extras.app_logo import add_logo -from modules.nav import SideBarLinks \ No newline at end of file +from modules.nav import SideBarLinks + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Browse Profiles') + +st.write('\n\n') +st.write('## test') +st.write("Test") \ No newline at end of file From fde4a2328e77bc72ac0cba560727b63803cd6cab Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 20:05:23 -0500 Subject: [PATCH 078/305] updates --- api/backend/community/community_routes.py | 24 +++++++++++++++++++++++ app/src/pages/21_Advisor_Feedback.py | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index e69de29bb2..e6df7c538c 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -0,0 +1,24 @@ +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response +from flask import current_app +from backend.db_connection import db + +community = Blueprint('community', __name__) + +@community.route('/community/', methods=['GET']) +# route for retrieving students in the same community +def get_community_students(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@community.route('/community') \ No newline at end of file diff --git a/app/src/pages/21_Advisor_Feedback.py b/app/src/pages/21_Advisor_Feedback.py index 859f117bcf..da873210fd 100644 --- a/app/src/pages/21_Advisor_Feedback.py +++ b/app/src/pages/21_Advisor_Feedback.py @@ -8,7 +8,7 @@ SideBarLinks() -st.title('Advisor Feedback Page') +st.title('Advisor Recommendations Page') st.write('\n\n') st.write('## Model 1 Maintenance') From 1dba8660d1ac94a455170de48af8b6cc3254b7c0 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 20:06:54 -0500 Subject: [PATCH 079/305] renaming --- app/src/pages/{21_Advisor_Feedback.py => 21_Advisor_Rec.py} | 0 app/src/pages/{33_Other_Page.py => 33_Advisor_Feedback.py} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename app/src/pages/{21_Advisor_Feedback.py => 21_Advisor_Rec.py} (100%) rename app/src/pages/{33_Other_Page.py => 33_Advisor_Feedback.py} (100%) diff --git a/app/src/pages/21_Advisor_Feedback.py b/app/src/pages/21_Advisor_Rec.py similarity index 100% rename from app/src/pages/21_Advisor_Feedback.py rename to app/src/pages/21_Advisor_Rec.py diff --git a/app/src/pages/33_Other_Page.py b/app/src/pages/33_Advisor_Feedback.py similarity index 100% rename from app/src/pages/33_Other_Page.py rename to app/src/pages/33_Advisor_Feedback.py From fd02e40f8b18c424b5bc7138c16fd448f94e5736 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 20:08:42 -0500 Subject: [PATCH 080/305] updating the PUT statement --- api/backend/products/michael_routes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index c516857b87..e73188370b 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -205,7 +205,8 @@ def get_all_categories(): @tech_support_analyst.route('/logs/{user_id}', methods = ['PUT']) def update_logs(): logs_info = request.json - current_app.logger.info(logs_info) - - return "Success" + if not logs_info: + return {"error": "Invalid JSON payload"}, 400 + current_app.logger.info(f"Updating logs for user {user_id}: {logs_info}") + return {"message": "Logs updated successfully"}, 200 From d415263d31a3e8ddc2bdd8e411ca5528c811ddb1 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 20:14:16 -0500 Subject: [PATCH 081/305] Update community_routes.py --- api/backend/community/community_routes.py | 59 ++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index e6df7c538c..f5750de6bd 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -7,6 +7,21 @@ community = Blueprint('community', __name__) +@community.route('/community', methods=['GET']) +# route for retreiving all student profiles +def get_students(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + + @community.route('/community/', methods=['GET']) # route for retrieving students in the same community def get_community_students(): @@ -21,4 +36,46 @@ def get_community_students(): response.status_code = 200 return response -@community.route('/community') \ No newline at end of file +@community.route('/community//events', methods=['GET']) +# route for retrieving events for students in the same community +def community_events(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@community.route('/community//carpools', methods=['GET']) +# route for retrieving carpools for the students in the same community +def community_carpools(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@community.route('/community//housing', methods=['GET']) +# route for retrieving carpools for the students in the same community +def community_housing(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + + From 35245a2884cde65016d69b435bc727954ff91f6c Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 20:17:26 -0500 Subject: [PATCH 082/305] Update community_routes.py --- api/backend/community/community_routes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index f5750de6bd..6aa1de07a9 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -52,7 +52,7 @@ def community_events(): @community.route('/community//carpools', methods=['GET']) # route for retrieving carpools for the students in the same community -def community_carpools(): +def community_carpool(): query = ''' ''' @@ -78,4 +78,6 @@ def community_housing(): response.status_code = 200 return response - + + + From caaf86462ecc863f9c552e96c869a89c12c9a118 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 20:17:27 -0500 Subject: [PATCH 083/305] creating DELETE route --- api/backend/products/michael_routes.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index e73188370b..fb9dcff8e8 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -210,3 +210,14 @@ def update_logs(): current_app.logger.info(f"Updating logs for user {user_id}: {logs_info}") return {"message": "Logs updated successfully"}, 200 +# ------------------------------------------------------------- +# This is a DELETE statement +@tech_support_analyst.route('/tickets/', methods=['DELETE']) +def archive_ticket(ticket_id): + ticket = TicketModel.query.filter_by(id=ticket_id, status="completed").first() + if not ticket: + return {"error": "Ticket not found or not completed"}, 404 + db.session.delete(ticket) + db.session.commit() + + return {"message": "Ticket archived successfully"}, 200 \ No newline at end of file From cb685271b40d7d46759320a6275756cff76e5693 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 20:19:54 -0500 Subject: [PATCH 084/305] more updates to DELETE --- api/backend/products/michael_routes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index fb9dcff8e8..27702fc5c3 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -211,7 +211,7 @@ def update_logs(): return {"message": "Logs updated successfully"}, 200 # ------------------------------------------------------------- -# This is a DELETE statement +# This is for archiving completed tickets. @tech_support_analyst.route('/tickets/', methods=['DELETE']) def archive_ticket(ticket_id): ticket = TicketModel.query.filter_by(id=ticket_id, status="completed").first() @@ -219,5 +219,4 @@ def archive_ticket(ticket_id): return {"error": "Ticket not found or not completed"}, 404 db.session.delete(ticket) db.session.commit() - return {"message": "Ticket archived successfully"}, 200 \ No newline at end of file From acdfc679b8c5f8be76422895b85ddcdf0ac5f9ef Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 20:31:29 -0500 Subject: [PATCH 085/305] Update community_routes.py --- api/backend/community/community_routes.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 6aa1de07a9..70ea20e61b 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -78,6 +78,21 @@ def community_housing(): response.status_code = 200 return response - +@community.route('/community', methods=['PUT']) +# route to update student profiles +def update_profile(): + current_app.logger.info('PUT /community route') + cust_info = request.json + cust_id = cust_info['id'] + first = cust_info['first_name'] + last = cust_info['last_name'] + company = cust_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cust_id) + cursor = db.get_db().cursor() + r = cursor.execute(query, data) + db.get_db().commit() + return 'profile updated!' From ead8bf7f79440d47e321f9a7b6daa70ab7856874 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 20:32:24 -0500 Subject: [PATCH 086/305] another GET route for diagnostics --- api/backend/products/michael_routes.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 27702fc5c3..68be4585d7 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -55,16 +55,17 @@ def get_tickets(): # notice that the route takes and then you see id # as a parameter to the function. This is one way to send # parameterized information into the route handler. -@tech_support_analyst.route('/product/', methods=['GET']) -def get_product_detail (id): - - query = f'''SELECT id, - product_name, - description, - list_price, - category - FROM products - WHERE id = {str(id)} +@tech_support_analyst.route('diagnostics', methods=['GET']) +def get_diagnostics(): + query = ''' + SELECT TicketID, + UserID, + IssueType, + Status, + Priority, + ReceivedDate, + ResolvedDate + FROM ticket ''' # logging the query for debugging purposes. From 923fa7cb5e1226ce86b8f9b1594cd6019917445a Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 20:46:35 -0500 Subject: [PATCH 087/305] cleaning up the formatting --- api/backend/products/michael_routes.py | 100 +------------------------ 1 file changed, 3 insertions(+), 97 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 68be4585d7..8be69a5a17 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -1,8 +1,3 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## - from flask import Blueprint from flask import request from flask import jsonify @@ -10,14 +5,10 @@ from flask import current_app from backend.db_connection import db -#------------------------------------------------------------ -# Create a new Blueprint object, which is a collection of -# routes. + tech_support_analyst = Blueprint('tech_support_analyst', __name__) -#------------------------------------------------------------ -# Get all the products from the database, package them up, -# and return them to the client +# View all tickets and their statuses @tech_support_analyst.route('/tickets', methods=['GET']) def get_tickets(): query = ''' @@ -31,30 +22,14 @@ def get_tickets(): FROM ticket ''' - # get a cursor object from the database cursor = db.get_db().cursor() - - # use cursor to query the database for a list of products cursor.execute(query) - - # fetch all the data from the cursor - # The cursor will return the data as a - # Python Dictionary theData = cursor.fetchall() - - # Create a HTTP Response object and add results of the query to it - # after "jasonify"-ing it. response = make_response(jsonify(theData)) - # set the proper HTTP Status code of 200 (meaning all good) response.status_code = 200 - # send the response back to the client return response -# ------------------------------------------------------------ -# get product information about a specific product -# notice that the route takes and then you see id -# as a parameter to the function. This is one way to send -# parameterized information into the route handler. +# View real-time diagnostics on app performance @tech_support_analyst.route('diagnostics', methods=['GET']) def get_diagnostics(): query = ''' @@ -88,57 +63,7 @@ def get_diagnostics(): response.status_code = 200 return response -# ------------------------------------------------------------ -# Get the top 5 most expensive products from the database -@products.route('/mostExpensive') -def get_most_pop_products(): - - query = ''' - SELECT product_code, - product_name, - list_price, - reorder_level - FROM products - ORDER BY list_price DESC - LIMIT 5 - ''' - - # Same process as handler above - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response -# ------------------------------------------------------------ -# Route to get the 10 most expensive items from the -# database. -@products.route('/tenMostExpensive', methods=['GET']) -def get_10_most_expensive_products(): - - query = ''' - SELECT product_code, - product_name, - list_price, - reorder_level - FROM products - ORDER BY list_price DESC - LIMIT 10 - ''' - - # Same process as above - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - - -# ------------------------------------------------------------ # This is a POST route to add a new product. # Remember, we are using POST routes to create new entries # in the database. @@ -181,25 +106,6 @@ def add_new_chats(): response.status_code = 200 return response -# ------------------------------------------------------------ -### Get all product categories -@products.route('/categories', methods = ['GET']) -def get_all_categories(): - query = ''' - SELECT DISTINCT category AS label, category as value - FROM products - WHERE category IS NOT NULL - ORDER BY category - ''' - - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - # ------------------------------------------------------------ # This is a stubbed route to update a log in the catalog # The SQL query would be an UPDATE. From cf23cd71404caef4aee7d84aacc9c548046051ba Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 20:57:24 -0500 Subject: [PATCH 088/305] Update community_routes.py --- api/backend/community/community_routes.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 70ea20e61b..fa53ea7541 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -78,8 +78,22 @@ def community_housing(): response.status_code = 200 return response +@community.route('/community//housing-resources', methods=['GET']) +# route for retrieving carpools for the students in the same community +def community_housing_resources(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + @community.route('/community', methods=['PUT']) -# route to update student profiles +# route to update student profiles -- CODE NOT UPDATED YET def update_profile(): current_app.logger.info('PUT /community route') cust_info = request.json From 89b3bb7a85e7c6e03730bf37cf422db556f4e86b Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 21:03:34 -0500 Subject: [PATCH 089/305] Create student_routes.py --- api/backend/students/student_routes.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 api/backend/students/student_routes.py diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py new file mode 100644 index 0000000000..9700df52f4 --- /dev/null +++ b/api/backend/students/student_routes.py @@ -0,0 +1,22 @@ +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response +from flask import current_app +from backend.db_connection import db + +students = Blueprint('students', __name__) + +@students.route('/students', methods=['GET']) +# route for retreiving all student profiles +def get_students(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response From 4f918e4a5328ae955551fbedab06213606f04bc9 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:11:26 -0500 Subject: [PATCH 090/305] creating GET SystemLog route --- api/backend/products/michael_routes.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 8be69a5a17..1dea6bc19c 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -8,6 +8,27 @@ tech_support_analyst = Blueprint('tech_support_analyst', __name__) +# View real-time diagnostics on app performance +@tech_support_analyst.route('/SystemLog', methods=['GET']) +def get_systemlog(): + query = ''' + SELECT TicketID, + UserID, + IssueType, + Status, + Priority, + ReceivedDate, + ResolvedDate + FROM ticket + ''' + + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + # View all tickets and their statuses @tech_support_analyst.route('/tickets', methods=['GET']) def get_tickets(): From c868258484a4ceab23229bef43e6c2a49320b6a8 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:14:34 -0500 Subject: [PATCH 091/305] updating SystemLog with data --- api/backend/products/michael_routes.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 1dea6bc19c..97117065a9 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -10,16 +10,15 @@ # View real-time diagnostics on app performance @tech_support_analyst.route('/SystemLog', methods=['GET']) -def get_systemlog(): +def get_SystemLog(): query = ''' SELECT TicketID, - UserID, - IssueType, - Status, - Priority, - ReceivedDate, - ResolvedDate - FROM ticket + Timestamp, + Activity, + MetricType, + Privacy, + Security + FROM SystemLog ''' cursor = db.get_db().cursor() From 43dd5f717db1700ae2b99c12c4e2c238977fcbf5 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:17:24 -0500 Subject: [PATCH 092/305] creating GET route for SystemHealth resource --- api/backend/products/michael_routes.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 97117065a9..1756f0ef0c 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -28,6 +28,26 @@ def get_SystemLog(): response.status_code = 200 return response +# Review user activity logs for troubleshooting +@tech_support_analyst.route('/SystemHealth', methods=['GET']) +def get_SystemHealth(): + query = ''' + SELECT TicketID, + Timestamp, + Activity, + MetricType, + Privacy, + Security + FROM SystemLog + ''' + + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + # View all tickets and their statuses @tech_support_analyst.route('/tickets', methods=['GET']) def get_tickets(): From 5ab6e056b15891a0b8588e543fcbd9ffe47070fe Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:19:11 -0500 Subject: [PATCH 093/305] inputting data for SystemHealth --- api/backend/products/michael_routes.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 1756f0ef0c..198926b5b9 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -32,12 +32,10 @@ def get_SystemLog(): @tech_support_analyst.route('/SystemHealth', methods=['GET']) def get_SystemHealth(): query = ''' - SELECT TicketID, + SELECT LogID, Timestamp, - Activity, - MetricType, - Privacy, - Security + Status, + MetricType FROM SystemLog ''' From ad6cedb5a245b6fa152038ca22d71eb87e07ca9a Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:20:01 -0500 Subject: [PATCH 094/305] delete get_diagnostic --- api/backend/products/michael_routes.py | 34 -------------------------- 1 file changed, 34 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 198926b5b9..0bcc97d5ea 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -66,40 +66,6 @@ def get_tickets(): response = make_response(jsonify(theData)) response.status_code = 200 return response - -# View real-time diagnostics on app performance -@tech_support_analyst.route('diagnostics', methods=['GET']) -def get_diagnostics(): - query = ''' - SELECT TicketID, - UserID, - IssueType, - Status, - Priority, - ReceivedDate, - ResolvedDate - FROM ticket - ''' - - # logging the query for debugging purposes. - # The output will appear in the Docker logs output - # This line has nothing to do with actually executing the query... - # It is only for debugging purposes. - current_app.logger.info(f'GET /product/ query={query}') - - # get the database connection, execute the query, and - # fetch the results as a Python Dictionary - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - # Another example of logging for debugging purposes. - # You can see if the data you're getting back is what you expect. - current_app.logger.info(f'GET /product/ Result of query = {theData}') - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response # This is a POST route to add a new product. From b33d6e8f5420c3c6b91469c103d3525c87c956a1 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 21:20:28 -0500 Subject: [PATCH 095/305] Update student_routes.py --- api/backend/students/student_routes.py | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 9700df52f4..a78fa4f6fe 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -20,3 +20,31 @@ def get_students(): response = make_response(jsonify(theData)) response.status_code = 200 return response + +@students.route('/students//reminders', methods=['GET']) +# route for retrieving recommendation for specific student +def get_students(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@students.route('/students//feedback', methods=['GET']) +# route for retrieving feedback for specific student +def get_students(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response From 9851f48ef676226dfd3e01a89232157291033b97 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:21:54 -0500 Subject: [PATCH 096/305] organizing/cleaning up routes based on matrix --- api/backend/products/michael_routes.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 0bcc97d5ea..17790b8c82 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -110,9 +110,7 @@ def add_new_chats(): response.status_code = 200 return response -# ------------------------------------------------------------ -# This is a stubbed route to update a log in the catalog -# The SQL query would be an UPDATE. +# Mark a ticket as completed or update its status @tech_support_analyst.route('/logs/{user_id}', methods = ['PUT']) def update_logs(): logs_info = request.json @@ -121,8 +119,8 @@ def update_logs(): current_app.logger.info(f"Updating logs for user {user_id}: {logs_info}") return {"message": "Logs updated successfully"}, 200 -# ------------------------------------------------------------- -# This is for archiving completed tickets. + +# Archive completed tickets @tech_support_analyst.route('/tickets/', methods=['DELETE']) def archive_ticket(ticket_id): ticket = TicketModel.query.filter_by(id=ticket_id, status="completed").first() From 9f18e5ff18e24b5eda2f9cf0b33615a1a021d4e3 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:23:04 -0500 Subject: [PATCH 097/305] updating description for POST route --- api/backend/products/michael_routes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/backend/products/michael_routes.py b/api/backend/products/michael_routes.py index 17790b8c82..808216e3e7 100644 --- a/api/backend/products/michael_routes.py +++ b/api/backend/products/michael_routes.py @@ -68,9 +68,7 @@ def get_tickets(): return response -# This is a POST route to add a new product. -# Remember, we are using POST routes to create new entries -# in the database. +# Create a new ticket or prioritize tickets @tech_support_analyst.route('/chats', methods=['POST']) def add_new_chats(): From 39accb58d9d488b15180bc84287138f450a1535c Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:25:45 -0500 Subject: [PATCH 098/305] creating a separate folder for tech support analyst persona --- api/backend/{products => tech_support_analyst}/michael_routes.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename api/backend/{products => tech_support_analyst}/michael_routes.py (100%) diff --git a/api/backend/products/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py similarity index 100% rename from api/backend/products/michael_routes.py rename to api/backend/tech_support_analyst/michael_routes.py From 2a13929bd7abf4bf3ab62e6338eca2b27a9e721b Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:31:14 -0500 Subject: [PATCH 099/305] updating to 'run system logs' --- app/src/pages/00_Tech_Support_Analyst_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/00_Tech_Support_Analyst_Home.py b/app/src/pages/00_Tech_Support_Analyst_Home.py index 3285ea31c0..5262735b91 100644 --- a/app/src/pages/00_Tech_Support_Analyst_Home.py +++ b/app/src/pages/00_Tech_Support_Analyst_Home.py @@ -14,7 +14,7 @@ st.write('') st.write('### What would you like to do today?') -if st.button('Run Diagnostics', +if st.button('Run System Logs', type='primary', use_container_width=True): st.switch_page('pages/01_World_Bank_Viz.py') From 439af94901e70eefc46edf86bc3423190036f552 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:32:42 -0500 Subject: [PATCH 100/305] update to 'view advisor feedback' --- app/src/pages/33_Advisor_Feedback.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/pages/33_Advisor_Feedback.py b/app/src/pages/33_Advisor_Feedback.py index f8c3d83907..20304714b2 100644 --- a/app/src/pages/33_Advisor_Feedback.py +++ b/app/src/pages/33_Advisor_Feedback.py @@ -3,4 +3,14 @@ import streamlit as st import requests from streamlit_extras.app_logo import add_logo -from modules.nav import SideBarLinks \ No newline at end of file +from modules.nav import SideBarLinks + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('View Advisor Feedback') + +st.write('\n\n') +st.write('## test') +st.write("Test") \ No newline at end of file From 383c6c3952af64cc26859adaeead1b051ed8bfd0 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 21:34:17 -0500 Subject: [PATCH 101/305] Update community_routes.py --- api/backend/community/community_routes.py | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index fa53ea7541..682897e8cd 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -109,4 +109,39 @@ def update_profile(): db.get_db().commit() return 'profile updated!' +@products.route('/product', methods=['POST']) +def add_new_product(): + + # In a POST request, there is a + # collecting data from the request object + the_data = request.json + current_app.logger.info(the_data) + + #extracting the variable + name = the_data['product_name'] + description = the_data['product_description'] + price = the_data['product_price'] + category = the_data['product_category'] + + #INSERT statement + query = f''' + INSERT INTO products (product_name, + description, + category, + list_price) + VALUES ('{name}', '{description}', '{category}', {str(price)}) + ''' + + current_app.logger.info(query) + + # executing and committing the insert statement + cursor = db.get_db().cursor() + cursor.execute(query) + db.get_db().commit() + + response = make_response("Successfully added product") + response.status_code = 200 + return response + + From 660564535c176990187057ce79492cc016068b95 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:34:55 -0500 Subject: [PATCH 102/305] removing warehouse manager --- app/src/Home.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index 491114a703..aad1153d58 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -79,14 +79,4 @@ st.session_state['authenticated'] = True st.session_state['role'] = 'Student' st.switch_page('pages/30_Student_Sarah_Home.py') - -# Add a button for the Warehouse Manager Portal -if st.button('Act as Warehouse Manager', - type='primary', - use_container_width=True): - st.session_state['authenticated'] = True - st.session_state['role'] = 'warehouse_manager' - st.session_state['first_name'] = 'Warehouse Manager' - logger.info("Logging in as Warehouse Manager Persona") - st.switch_page('pages/40_Warehouse_Home.py') From e782243089215a2618e691505a7f390fee299aef Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:40:34 -0500 Subject: [PATCH 103/305] initial renaming for our project's readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 94291428ad..de11954883 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Fall 2024 CS 3200 Project Template Repository +# Fall 2024 CS 3200 SyncSpace Repository This repo is a template for your semester project. It includes most of the infrastructure setup (containers) and sample code and data throughout. Explore it fully and ask questions. From 70e97cfafa09241b930afdda61ab6151741869b2 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 21:41:47 -0500 Subject: [PATCH 104/305] Update nav.py --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 20af733dd1..af285986a1 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -51,7 +51,7 @@ def ClassificationNav(): #### ------------------------ Student Housing/Carpool Role ------------------------ def KevinPageNav(): st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="👤") - st.sidebar.page_link("pages/21_Advisor_Feedback.py", label="Advisor Feedback", icon="🏢") + st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Feedback", icon="🏢") st.sidebar.page_link("pages/22_Housing.py", label="Housing Search", icon="🏘️") st.sidebar.page_link("pages/23_Carpool.py", label="Carpool Search", icon="🚗") From a883e1a9a3d214c36c2bd85077d79713fa0ecec7 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Sun, 1 Dec 2024 21:43:24 -0500 Subject: [PATCH 105/305] Update 20_Student_Kevin_Home.py --- app/src/pages/20_Student_Kevin_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index d7afbaa95c..234c09416c 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -17,7 +17,7 @@ if st.button('View Advisor Feedback', type='primary', use_container_width=True): - st.switch_page('pages/21_Advisor_Feedback.py') + st.switch_page('pages/21_Advisor_Rec.py') if st.button('Access Housing Search', type='primary', From e6173b5c6806eaea10a6ff710d6e52df2aa36dd7 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:43:25 -0500 Subject: [PATCH 106/305] including team fontenators! --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index de11954883..0449b7d4c5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ This repo is a template for your semester project. It includes most of the infrastructure setup (containers) and sample code and data throughout. Explore it fully and ask questions. +Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu + ## Prerequisites - A GitHub Account From 5a649a0aaa80f0df02eca0a85b4e1467bb648bef Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:48:47 -0500 Subject: [PATCH 107/305] SyncSpace description in ReadMe --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 0449b7d4c5..53f8963ae6 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ This repo is a template for your semester project. It includes most of the infr Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu +## About SyncSpace (UPDATE TO FIT OUR MOST UDPATED MODEL) +Our app SyncSpace is a data-driven virtual community that aims to connect students going on co-ops and internships, helping them make the most of their experience. Students often feel isolated or overwhelmed when relocating for work, facing the challenges of finding housing, arranging transportation, and locating familiar faces nearby. SyncSpace solves this by using geolocation and shared interests/community forums to match students with ‘co-op buddies’ in their area, helping them form connections, navigate new cities, and share resources for housing and commuting. + +Designed for students and co-op advisors, SyncSpace offers real-time data insights that help students connect with each other and thrive professionally. With curated interest-based groups, housing and transportation discussion forums, and a hub for live events, students can access networking, guidance, and new friendships anytime they need it. Co-op advisors and system admin staff can effortlessly organize and track engagement, while gaining valuable data on student satisfaction, location trends, and engagement levels. By building a vibrant, supportive community, we hope to empower students to make meaningful connections and maximize their co-op and internship experiences. + ## Prerequisites - A GitHub Account From 68d3e8bfcc39e00853e2a90f9c19e2ca90c51394 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 21:56:22 -0500 Subject: [PATCH 108/305] more updates to describe our readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 53f8963ae6..11f6536501 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Fall 2024 CS 3200 SyncSpace Repository +# Welcome to our guidebook for everything and anything SyncSpace! +This guidebook is inclusive This repo is a template for your semester project. It includes most of the infrastructure setup (containers) and sample code and data throughout. Explore it fully and ask questions. Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu From 48f89f72c4824c65a9a8ce18c8df033cd6b653af Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 22:04:24 -0500 Subject: [PATCH 109/305] more updates to description --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11f6536501..9b503d6fa5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Fall 2024 CS 3200 SyncSpace Repository # Welcome to our guidebook for everything and anything SyncSpace! -This guidebook is inclusive +This guidebook is inclusive of the details of our project and all the information you need to build/start the containers. We hope you enjoy exploring! + This repo is a template for your semester project. It includes most of the infrastructure setup (containers) and sample code and data throughout. Explore it fully and ask questions. Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu From ca8d90957a48221103fdfca16f8003322e935411 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 22:07:30 -0500 Subject: [PATCH 110/305] creating blueprint for co-op advisor persona --- .../co-op_advisor/co-op_advisor_routes.py | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 api/backend/co-op_advisor/co-op_advisor_routes.py diff --git a/api/backend/co-op_advisor/co-op_advisor_routes.py b/api/backend/co-op_advisor/co-op_advisor_routes.py new file mode 100644 index 0000000000..213ddfa209 --- /dev/null +++ b/api/backend/co-op_advisor/co-op_advisor_routes.py @@ -0,0 +1,50 @@ +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response +from flask import current_app +from backend.db_connection import db + +advisor = Blueprint('advisor', __name__) + +@advisor.route('/advisor', methods=['GET']) +# route for retreiving all student profiles +def get_advisor(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@advisor.route('/students//reminders', methods=['GET']) +# route for retrieving recommendation for specific student +def get_students(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@advisor.route('/students//feedback', methods=['GET']) +# route for retrieving feedback for specific student +def get_students(): + query = ''' + + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response From 7f4b2bf7f85b982e7e82937d654d4e9ca7a5ac16 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 22:12:17 -0500 Subject: [PATCH 111/305] updating to input view professional events --- app/src/pages/30_Student_Sarah_Home.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index ed7f519eb5..2f837461b2 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -14,4 +14,9 @@ if st.button('View Advisor Feedback', type='primary', use_container_width=True): - st.switch_page('pages/21_Advisor_Feedback.py') \ No newline at end of file + st.switch_page('pages/21_Advisor_Feedback.py') + +if st.button('View Professional Events', + type='primary', + use_container_width=True): + st.switch_page('pages/31_Professional_Events.py') \ No newline at end of file From 0d4733987530c9452f775e1988253d25d4793457 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 22:13:17 -0500 Subject: [PATCH 112/305] updating to include access to alumni networks --- app/src/pages/30_Student_Sarah_Home.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index 2f837461b2..e4307d6ea3 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -19,4 +19,9 @@ if st.button('View Professional Events', type='primary', use_container_width=True): + st.switch_page('pages/31_Professional_Events.py') + +if st.button('View Alumni Board', + type='primary', + use_container_width=True): st.switch_page('pages/31_Professional_Events.py') \ No newline at end of file From fd934f52a2517eeda1ea78a81745afd32d705a10 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 22:15:53 -0500 Subject: [PATCH 113/305] updating to connect to correct data source --- app/src/pages/10_Co-op_Advisor_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 4217b75fd4..7a5c005e63 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -51,7 +51,7 @@ # Database connection and student data retrieval @st.cache_data def load_student_data(): - conn = sqlite3.connect('ScyncSpace-data.sql') + conn = sqlite3.connect('SyncSpace-data.sql') query = """ SELECT student_id, From 921dc26396b41ca54649eae6578ccfb7a66b9948 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 22:18:53 -0500 Subject: [PATCH 114/305] updating to fit 'ticket overview' button --- app/src/pages/{02_Map_Demo.py => 02_Ticket_Overview.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/src/pages/{02_Map_Demo.py => 02_Ticket_Overview.py} (100%) diff --git a/app/src/pages/02_Map_Demo.py b/app/src/pages/02_Ticket_Overview.py similarity index 100% rename from app/src/pages/02_Map_Demo.py rename to app/src/pages/02_Ticket_Overview.py From 4790847dc2d23f8566d2c45a1adc3dc0ae68afb0 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Sun, 1 Dec 2024 22:22:18 -0500 Subject: [PATCH 115/305] updating sarah's home page --- app/src/pages/30_Student_Sarah_Home.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index e4307d6ea3..02a357110e 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -9,7 +9,10 @@ SideBarLinks() -st.title('Student Home Page') +st.title(f"Welcome Student, {st.session_state['first_name']}.") +st.write('') +st.write('') +st.write('### What would you like to do today?') if st.button('View Advisor Feedback', type='primary', From b3a27de1856957eee6cc9be578285bb796470b95 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 10:18:25 -0500 Subject: [PATCH 116/305] 3 --- app/src/pages/10_Co-op_Advisor_Home.py | 62 +++++++++++++++++++++++--- docker-compose.yaml | 28 +++++++++--- 2 files changed, 79 insertions(+), 11 deletions(-) diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 2a3554bfc1..d94a9ba7a2 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -3,8 +3,9 @@ import streamlit as st from modules.nav import SideBarLinks -import sqlite3 +import mysql.connector import pandas as pd +from mysql.connector import Error # Set Streamlit page configuration st.set_page_config(layout="wide") @@ -42,8 +43,36 @@ @st.cache_data def load_student_data(): try: - # Connect to SQLite database (using .db extension) - conn = sqlite3.connect('database-files/SyncSpace.db') + # Connect to MySQL database + conn = mysql.connector.connect( + host='db', + user='root', + password='password123', + database='SyncSpace', + port=3306 + ) + + if conn.is_connected(): + st.write("Successfully connected to MySQL!") + cursor = conn.cursor() + + # Check if Student table exists + cursor.execute("SHOW TABLES") + tables = cursor.fetchall() + st.write("Available tables:") + for table in tables: + st.write(f"- {table[0]}") + + # Check Student table structure + try: + cursor.execute("DESCRIBE Student") + st.write("\nStudent table structure:") + columns = cursor.fetchall() + for col in columns: + st.write(f"- {col[0]}: {col[1]}") + except Error as e: + st.error("Couldn't get Student table structure. Table might not exist.") + query = """ SELECT StudentID AS student_id, @@ -54,13 +83,34 @@ def load_student_data(): FROM Student ORDER BY student_id ASC """ + df = pd.read_sql_query(query, conn) - conn.close() + st.write(f"\nFound {len(df)} students in database") + + # If table exists but no data, show sample query + if len(df) == 0: + cursor.execute("SELECT COUNT(*) FROM Student") + count = cursor.fetchone()[0] + st.write(f"Total rows in Student table: {count}") + + # Show a sample of raw data if any exists + cursor.execute("SELECT * FROM Student LIMIT 5") + sample = cursor.fetchall() + if sample: + st.write("\nSample data from Student table:") + for row in sample: + st.write(row) + return df - except sqlite3.Error as e: + + except Error as e: st.error(f"Database error: {e}") - st.info("Please ensure the database is properly initialized") + st.write(f"\nFull error: {str(e)}") return pd.DataFrame() + finally: + if 'conn' in locals() and conn.is_connected(): + conn.close() + st.write("MySQL connection closed") # Load student data df = load_student_data() diff --git a/docker-compose.yaml b/docker-compose.yaml index 72fb6ccbb9..ea05c08570 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,8 +4,14 @@ services: container_name: web-app hostname: web-app volumes: ['./app/src:/appcode'] + env_file: + - ./api/.env ports: - 8501:8501 + depends_on: + - db + networks: + - app-network api: build: ./api @@ -14,16 +20,28 @@ services: volumes: ['./api:/apicode'] ports: - 4000:4000 + depends_on: + - db + networks: + - app-network db: - env_file: - - ./api/.env - image: mysql:9 + image: mysql:8.0 container_name: mysql_db hostname: db + environment: + MYSQL_ROOT_PASSWORD: password123 + MYSQL_DATABASE: SyncSpace volumes: - - ./database-files:/docker-entrypoint-initdb.d/:ro + - ./SyncSpace.sql:/docker-entrypoint-initdb.d/01-SyncSpace.sql:ro + - ./SyncSpace-data.sql:/docker-entrypoint-initdb.d/02-SyncSpace-data.sql:ro ports: - - 3200:3306 + - 3307:3306 + networks: + - app-network + +networks: + app-network: + driver: bridge From d49a06bb3fcba7b1d74b38c1f520993472584cca Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 13:42:53 -0500 Subject: [PATCH 117/305] 3 --- app/src/pages/10_Co-op_Advisor_Home.py | 69 ++++---------------- "pages/10_\360\237\224\215_Query_Results.py" | 51 +++++++++++++++ 2 files changed, 64 insertions(+), 56 deletions(-) create mode 100644 "pages/10_\360\237\224\215_Query_Results.py" diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index d94a9ba7a2..8899114581 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -53,64 +53,29 @@ def load_student_data(): ) if conn.is_connected(): - st.write("Successfully connected to MySQL!") cursor = conn.cursor() - # Check if Student table exists - cursor.execute("SHOW TABLES") - tables = cursor.fetchall() - st.write("Available tables:") - for table in tables: - st.write(f"- {table[0]}") - - # Check Student table structure - try: - cursor.execute("DESCRIBE Student") - st.write("\nStudent table structure:") - columns = cursor.fetchall() - for col in columns: - st.write(f"- {col[0]}: {col[1]}") - except Error as e: - st.error("Couldn't get Student table structure. Table might not exist.") - - query = """ - SELECT - StudentID AS student_id, - Name AS student_name, - Location AS co_op_location, - Company AS company_name, - Major AS major - FROM Student - ORDER BY student_id ASC - """ - - df = pd.read_sql_query(query, conn) - st.write(f"\nFound {len(df)} students in database") - - # If table exists but no data, show sample query - if len(df) == 0: - cursor.execute("SELECT COUNT(*) FROM Student") - count = cursor.fetchone()[0] - st.write(f"Total rows in Student table: {count}") + # Query to get student data + query = """ + SELECT + StudentID AS student_id, + Name AS student_name, + Location AS co_op_location, + Company AS company_name, + Major AS major + FROM Student + ORDER BY student_id ASC + """ - # Show a sample of raw data if any exists - cursor.execute("SELECT * FROM Student LIMIT 5") - sample = cursor.fetchall() - if sample: - st.write("\nSample data from Student table:") - for row in sample: - st.write(row) - - return df + df = pd.read_sql_query(query, conn) + return df except Error as e: st.error(f"Database error: {e}") - st.write(f"\nFull error: {str(e)}") return pd.DataFrame() finally: if 'conn' in locals() and conn.is_connected(): conn.close() - st.write("MySQL connection closed") # Load student data df = load_student_data() @@ -118,13 +83,6 @@ def load_student_data(): # Display the student list st.subheader(f"Student List ({len(df)})") -# Add a search box -search = st.text_input("Search students by name, location, or company", "") - -# Filter the DataFrame based on search input -if search: - df = df[df.apply(lambda row: search.lower() in str(row).lower(), axis=1)] - # Display the DataFrame with Streamlit's built-in table display st.dataframe( df, @@ -138,4 +96,3 @@ def load_student_data(): } ) - diff --git "a/pages/10_\360\237\224\215_Query_Results.py" "b/pages/10_\360\237\224\215_Query_Results.py" new file mode 100644 index 0000000000..220a7e91c7 --- /dev/null +++ "b/pages/10_\360\237\224\215_Query_Results.py" @@ -0,0 +1,51 @@ +import streamlit as st +import mysql.connector +from mysql.connector import Error + +def create_connection(): + try: + connection = mysql.connector.connect( + host="db", + user="root", + password="password123", + database="SyncSpace" + ) + return connection + except Error as e: + st.error(f"Error connecting to MySQL: {e}") + return None + +def main(): + st.title("Student Data") + + # Create connection + connection = create_connection() + if connection is not None: + try: + cursor = connection.cursor() + + # Execute query to get student data + query = """ + SELECT Name, Major, Location, HousingStatus, Budget, Lifestyle + FROM Student + """ + cursor.execute(query) + results = cursor.fetchall() + + # Display results in a table + if results: + st.dataframe( + data=results, + columns=["Name", "Major", "Location", "Housing Status", "Budget", "Lifestyle"] + ) + else: + st.info("No student records found.") + + except Error as e: + st.error(f"Error executing query: {e}") + finally: + cursor.close() + connection.close() + +if __name__ == "__main__": + main() \ No newline at end of file From 0ba140f12da9bc08ea73b923f0da6ccdf45e3b4b Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 14:00:37 -0500 Subject: [PATCH 118/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index b23d6eabca..6bf6e6a496 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -1,3 +1,5 @@ +USE SyncSpace; + -- CityCommunity Data insert into CityCommunity (CommunityID, Location) values (1, 'San Francisco'); insert into CityCommunity (CommunityID, Location) values (2, 'San Jose'); From c414ba46725d27b241e584e3fc4562667e02a7cb Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 14:08:59 -0500 Subject: [PATCH 119/305] Update 10_Co-op_Advisor_Home.py --- app/src/pages/10_Co-op_Advisor_Home.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 6a39bc828b..8899114581 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -42,7 +42,6 @@ # Database connection and student data retrieval @st.cache_data def load_student_data(): -<<<<<<< HEAD try: # Connect to MySQL database conn = mysql.connector.connect( @@ -77,22 +76,6 @@ def load_student_data(): finally: if 'conn' in locals() and conn.is_connected(): conn.close() -======= - conn = sqlite3.connect('SyncSpace-data.sql') - query = """ - SELECT - student_id, - first_name || ' ' || last_name as student_name, - location as co_op_location, - company_name, - start_date - FROM students - ORDER BY start_date DESC - """ - df = pd.read_sql_query(query, conn) - conn.close() - return df ->>>>>>> 659f53a03b13feaff878f3e3cc8e442f81a925f2 # Load student data df = load_student_data() From d365859d32dbf9b4e381121aba5fc52c5363e86a Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 15:22:19 -0500 Subject: [PATCH 120/305] Delete SyncSpace.sql --- database-files/SyncSpace.sql | 213 ----------------------------------- 1 file changed, 213 deletions(-) delete mode 100644 database-files/SyncSpace.sql diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql deleted file mode 100644 index 1088085515..0000000000 --- a/database-files/SyncSpace.sql +++ /dev/null @@ -1,213 +0,0 @@ --- Drop and create the database -DROP DATABASE IF EXISTS SyncSpace; -CREATE DATABASE IF NOT EXISTS SyncSpace; - -USE SyncSpace; - --- Create table for City Community -DROP TABLE IF EXISTS CityCommunity; -CREATE TABLE IF NOT EXISTS CityCommunity ( - CommunityID INT AUTO_INCREMENT PRIMARY KEY, - Location VARCHAR(100) -); - --- Create table for Housing -DROP TABLE IF EXISTS Housing; -CREATE TABLE IF NOT EXISTS Housing ( - HousingID INT AUTO_INCREMENT PRIMARY KEY, - Availability VARCHAR(50), - Style VARCHAR(50), - Location VARCHAR(100) -); - --- Create table for Interest Group -DROP TABLE IF EXISTS InterestGroup; -CREATE TABLE IF NOT EXISTS InterestGroup ( - GroupID INT AUTO_INCREMENT PRIMARY KEY, - Description TEXT, - GroupName VARCHAR(100) -); - --- Create table for Ticket (needed before SystemHealth and SystemLog) -DROP TABLE IF EXISTS Ticket; -CREATE TABLE IF NOT EXISTS Ticket ( - TicketID INT AUTO_INCREMENT PRIMARY KEY, - UserID INT, - IssueType VARCHAR(50), - Status VARCHAR(50), - Priority VARCHAR(50), - ReceivedDate DATE, - ResolvedDate DATE -); - --- Create table for User -DROP TABLE IF EXISTS User; -CREATE TABLE IF NOT EXISTS User ( - UserID INT AUTO_INCREMENT PRIMARY KEY, - ChatID INT, - Name VARCHAR(100), - Email VARCHAR(100), - Role VARCHAR(50), - PermissionsLevel VARCHAR(50) -); - --- Create table for Chat -DROP TABLE IF EXISTS Chat; -CREATE TABLE IF NOT EXISTS Chat ( - ChatID INT AUTO_INCREMENT PRIMARY KEY, - SenderID INT, - ReceiverID INT, - Content TEXT, - Time TIMESTAMP, - SupportStaffID INT, - FOREIGN KEY (SenderID) REFERENCES User(UserID), - FOREIGN KEY (ReceiverID) REFERENCES User(UserID) -); - --- Create table for Student -DROP TABLE IF EXISTS Student; -CREATE TABLE IF NOT EXISTS Student ( - StudentID INT AUTO_INCREMENT PRIMARY KEY, - Name VARCHAR(100), - Major VARCHAR(100), - Company VARCHAR(100), - Location VARCHAR(100), - HousingStatus VARCHAR(50), - CarpoolStatus VARCHAR(50), - Budget DECIMAL(10, 2), - LeaseDuration VARCHAR(50), - Cleanliness VARCHAR(50), - Lifestyle VARCHAR(50), - CommuteTime INT, - CommuteDays INT, - Interests TEXT, - CommunityID INT, - HousingID INT, - GroupID INT, - FeedbackID INT, - ChatID INT, - BrowseTo VARCHAR(100), - FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), - FOREIGN KEY (HousingID) REFERENCES Housing(HousingID), - FOREIGN KEY (GroupID) REFERENCES InterestGroup(GroupID) -); - --- Create table for Community Post -DROP TABLE IF EXISTS CommunityPost; -CREATE TABLE IF NOT EXISTS CommunityPost ( - PostID INT AUTO_INCREMENT PRIMARY KEY, - StudentID INT, - CommunityID INT, - Title VARCHAR(200), - Date DATE, - FOREIGN KEY (StudentID) REFERENCES Student(StudentID), - FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) -); - --- Create table for Events -DROP TABLE IF EXISTS Events; -CREATE TABLE IF NOT EXISTS Events ( - EventID INT AUTO_INCREMENT PRIMARY KEY, - CommunityID INT, - Date DATE, - Name VARCHAR(100), - Description TEXT, - FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) -); - --- Add foreign key to User table now that Chat is created -ALTER TABLE User -ADD FOREIGN KEY (ChatID) REFERENCES Chat(ChatID); - --- Create table for Feedback -DROP TABLE IF EXISTS Feedback; -CREATE TABLE IF NOT EXISTS Feedback ( - FeedbackID INT AUTO_INCREMENT PRIMARY KEY, - Description TEXT, - Date DATE, - ProgressRating INT, - StudentID INT, - AdvisorID INT, - FOREIGN KEY (StudentID) REFERENCES Student(StudentID) -); - --- Create table for Advisor -DROP TABLE IF EXISTS Advisor; -CREATE TABLE IF NOT EXISTS Advisor ( - AdvisorID INT AUTO_INCREMENT PRIMARY KEY, - Name VARCHAR(100), - Email VARCHAR(100), - Department VARCHAR(100), - StudentID INT, - FOREIGN KEY (StudentID) REFERENCES Student(StudentID) -); - --- Add foreign key to Feedback for Advisor after Advisor is created -ALTER TABLE Feedback -ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); - --- Create table for Task -DROP TABLE IF EXISTS Task; -CREATE TABLE IF NOT EXISTS Task ( - TaskID INT AUTO_INCREMENT PRIMARY KEY, - Description TEXT, - Reminder DATE, - AssignedTo INT, - DueDate DATE, - Status VARCHAR(50), - AdvisorID INT, - FOREIGN KEY (AssignedTo) REFERENCES User(UserID), - FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID) -); - --- Create table for System Log -DROP TABLE IF EXISTS SystemLog; -CREATE TABLE IF NOT EXISTS SystemLog ( - LogID INT AUTO_INCREMENT PRIMARY KEY, - TicketID INT, - Timestamp TIMESTAMP, - Activity TEXT, - MetricType VARCHAR(50), - Privacy VARCHAR(50), - Security VARCHAR(50), - FOREIGN KEY (TicketID) REFERENCES Ticket(TicketID) -); - --- Create table for System Health -DROP TABLE IF EXISTS SystemHealth; -CREATE TABLE IF NOT EXISTS SystemHealth ( - SystemHealthID INT AUTO_INCREMENT PRIMARY KEY, - LogID INT, - Timestamp TIMESTAMP, - Status VARCHAR(50), - MetricType VARCHAR(50), - FOREIGN KEY (LogID) REFERENCES SystemLog(LogID) -); - --- 1.4 -UPDATE Ticket -SET Priority = 'Critical' -WHERE TicketID = 1; - --- 2.5 -UPDATE Task -SET Status = 'Completed' -WHERE TaskID = 5; - --- 3.2 -INSERT INTO Student (Name, Major, Location, HousingStatus, Budget, Cleanliness, Lifestyle, CommuteTime, Interests) -VALUES ( - 'Kevin Chen', - 'Data Science and Business', - 'San Jose, California', - 'Searching', - 1200.00, - 'Very Clean', - 'Quiet', - 30, - 'Hiking, Basketball, Technology' -); - --- 4.3 -INSERT INTO Housing (Style, Availability, Location) -VALUES ('Apartment', 'Available', 'New York City'); From b0cf97f8d5096c5b2b09adeaa4b800058298db40 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 15:23:04 -0500 Subject: [PATCH 121/305] file name change --- database-files/{SyncSpaceUpdated.sql => SyncSpace.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename database-files/{SyncSpaceUpdated.sql => SyncSpace.sql} (100%) diff --git a/database-files/SyncSpaceUpdated.sql b/database-files/SyncSpace.sql similarity index 100% rename from database-files/SyncSpaceUpdated.sql rename to database-files/SyncSpace.sql From 22c66fe0b573a6bb84c622da3c273e9cc06a47b8 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 15:23:54 -0500 Subject: [PATCH 122/305] qqq --- api/__init__.py | 0 api/app.py | 32 ++++++++ api/backend/__init__.py | 0 api/backend/rest_entry.py | 2 + api/backend/students/__init__.py | 0 api/backend/students/student_routes.py | 53 ++++++------ app/Dockerfile | 2 + app/src/pages/10_Co-op_Advisor_Home.py | 109 ++++++++++++++++--------- docker-compose.yaml | 18 +++- 9 files changed, 150 insertions(+), 66 deletions(-) create mode 100644 api/__init__.py create mode 100644 api/app.py create mode 100644 api/backend/__init__.py create mode 100644 api/backend/students/__init__.py diff --git a/api/__init__.py b/api/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/api/app.py b/api/app.py new file mode 100644 index 0000000000..2b62e4b106 --- /dev/null +++ b/api/app.py @@ -0,0 +1,32 @@ +from flask import Flask +from backend.students.student_routes import students # Correct import path + +app = Flask(__name__) + +# Add some debug endpoints +@app.route('/') +def hello(): + return {"message": "API is running"} + +@app.route('/debug/routes') +def list_routes(): + routes = [] + for rule in app.url_map.iter_rules(): + routes.append({ + "endpoint": rule.endpoint, + "methods": list(rule.methods), + "path": str(rule) + }) + return {"routes": routes} + +# Register the blueprint with a prefix +app.register_blueprint(students, url_prefix='/api') + +# Add debug logging +app.logger.setLevel('DEBUG') + +if __name__ == '__main__': + print("Available routes:") + for rule in app.url_map.iter_rules(): + print(f"{rule.endpoint}: {rule}") + app.run(host='0.0.0.0', port=4000, debug=True) \ No newline at end of file diff --git a/api/backend/__init__.py b/api/backend/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index d8d78502d9..7f9472189b 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -4,6 +4,7 @@ from backend.customers.customer_routes import customers from backend.products.products_routes import products from backend.simple.simple_routes import simple_routes +from backend.students.student_routes import students import os from dotenv import load_dotenv @@ -42,6 +43,7 @@ def create_app(): app.register_blueprint(simple_routes) app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(products, url_prefix='/p') + app.register_blueprint(students, url_prefix='/api') # Don't forget to return the app object return app diff --git a/api/backend/students/__init__.py b/api/backend/students/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index a78fa4f6fe..92190de958 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -1,31 +1,39 @@ -from flask import Blueprint -from flask import request -from flask import jsonify -from flask import make_response -from flask import current_app +from flask import Blueprint, jsonify, make_response from backend.db_connection import db students = Blueprint('students', __name__) @students.route('/students', methods=['GET']) -# route for retreiving all student profiles -def get_students(): - query = ''' - - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response +def get_all_students(): + try: + query = ''' + SELECT + StudentID AS student_id, + Name AS student_name, + Location AS co_op_location, + Company AS company_name, + Major AS major + FROM Student + ORDER BY student_id ASC + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + + # Convert the data to a list of dictionaries + columns = [column[0] for column in cursor.description] + results = [] + for row in cursor.fetchall(): + results.append(dict(zip(columns, row))) + + return jsonify(results), 200 + + except Exception as e: + return jsonify({"error": str(e)}), 500 @students.route('/students//reminders', methods=['GET']) -# route for retrieving recommendation for specific student -def get_students(): +def get_student_reminders(student_id): query = ''' - + -- Add your SQL query here ''' cursor = db.get_db().cursor() cursor.execute(query) @@ -36,10 +44,9 @@ def get_students(): return response @students.route('/students//feedback', methods=['GET']) -# route for retrieving feedback for specific student -def get_students(): +def get_student_feedback(student_id): query = ''' - + -- Add your SQL query here ''' cursor = db.get_db().cursor() cursor.execute(query) diff --git a/app/Dockerfile b/app/Dockerfile index 6eb11bff2e..3e4b80714d 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -16,6 +16,8 @@ COPY ./src/requirements.txt . RUN pip3 install -r requirements.txt +RUN pip install mysql-connector-python==8.0.33 + RUN ls EXPOSE 8501 diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 8899114581..53cc71655b 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -6,6 +6,7 @@ import mysql.connector import pandas as pd from mysql.connector import Error +import requests # Set Streamlit page configuration st.set_page_config(layout="wide") @@ -24,58 +25,86 @@ col1, col2, col3, col4 = st.columns([1, 1, 1, 1]) with col1: - if st.button("🔔 NOTIFICATION\n9 Unread Notifications", key="notification_btn"): - st.write("Redirecting to Notifications...") + if st.button("🔔 NOTIFICATION\n Unread Notifications", key="notification_btn"): + st.switch_page("pages/11_Notification.py") with col2: - if st.button("📝 FORMS\n4 Student Forms Update", key="forms_btn"): - st.write("Redirecting to Forms...") + if st.button("📝 FORMS\n Student Forms Update", key="forms_btn"): + st.switch_page("pages/12_Form.py") with col3: - if st.button("🏠 HOUSING\n6 Students Waiting", key="housing_btn"): - st.write("Redirecting to Housing...") + if st.button("🏠 HOUSING\n Students Waiting", key="housing_btn"): + st.switch_page("pages/13_Housing.py") with col4: if st.button("➕ CREATE NEW\nCase", key="create_btn"): - st.write("Redirecting to Create New Case...") + # Assuming you'll create this page later + st.switch_page("pages/14_Create_Case.py") -# Database connection and student data retrieval +# Add this near the top after imports +import requests + +# Add this debug section +st.write("### API Debug Info") +try: + st.write("Checking API status...") + + # Test root endpoint + root_url = 'http://api:4000/' + st.write(f"\nTrying root URL: {root_url}") + response = requests.get(root_url) + st.write(f"Root Status Code: {response.status_code}") + st.write(f"Root Response: {response.text}") + + # Test debug/routes endpoint + routes_url = 'http://api:4000/debug/routes' + st.write(f"\nTrying routes URL: {routes_url}") + response = requests.get(routes_url) + st.write(f"Routes Status Code: {response.status_code}") + st.write(f"Available Routes: {response.text}") + + # Original API test code... + st.write("\nTesting student endpoints...") + api_urls = [ + 'http://api:4000/api/students', + 'http://api:4000/students', + 'http://web-api:4000/api/students', + 'http://web-api:4000/students' + ] + + for url in api_urls: + st.write(f"\nTrying URL: {url}") + try: + response = requests.get(url) + st.write(f"Status Code: {response.status_code}") + st.write(f"Response Headers: {dict(response.headers)}") + st.write(f"Response: {response.text[:200]}") + if response.status_code == 200: + break + except requests.exceptions.ConnectionError: + st.write(f"Connection failed for {url}") + continue + +except Exception as e: + st.error(f"Other Error: {str(e)}") + +# Update the API URL to use the new blueprint route +api_url = 'http://api:4000/api/students' + +# Update the load_student_data function @st.cache_data def load_student_data(): try: - # Connect to MySQL database - conn = mysql.connector.connect( - host='db', - user='root', - password='password123', - database='SyncSpace', - port=3306 - ) - - if conn.is_connected(): - cursor = conn.cursor() - - # Query to get student data - query = """ - SELECT - StudentID AS student_id, - Name AS student_name, - Location AS co_op_location, - Company AS company_name, - Major AS major - FROM Student - ORDER BY student_id ASC - """ - - df = pd.read_sql_query(query, conn) - return df - - except Error as e: - st.error(f"Database error: {e}") + response = requests.get(api_url) + if response.status_code == 200: + return pd.DataFrame(response.json()) + else: + st.error(f"Failed to fetch student data. Status: {response.status_code}") + st.error(f"Error message: {response.text}") + return pd.DataFrame() + except Exception as e: + st.error(f"Error fetching data: {str(e)}") return pd.DataFrame() - finally: - if 'conn' in locals() and conn.is_connected(): - conn.close() # Load student data df = load_student_data() diff --git a/docker-compose.yaml b/docker-compose.yaml index ea05c08570..6a57708769 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -22,6 +22,12 @@ services: - 4000:4000 depends_on: - db + environment: + - DB_HOST=db + - DB_PORT=3306 + - DB_USER=root + - MYSQL_ROOT_PASSWORD=password123 + - DB_NAME=SyncSpace networks: - app-network @@ -33,10 +39,16 @@ services: MYSQL_ROOT_PASSWORD: password123 MYSQL_DATABASE: SyncSpace volumes: - - ./SyncSpace.sql:/docker-entrypoint-initdb.d/01-SyncSpace.sql:ro - - ./SyncSpace-data.sql:/docker-entrypoint-initdb.d/02-SyncSpace-data.sql:ro + - type: bind + source: ./database-files/SyncSpace.sql + target: /docker-entrypoint-initdb.d/01-SyncSpace.sql + read_only: true + - type: bind + source: ./database-files/SyncSpace-data.sql + target: /docker-entrypoint-initdb.d/02-SyncSpace-data.sql + read_only: true ports: - - 3307:3306 + - 3308:3306 networks: - app-network From 0e631a6af1017994ebd655c403d5723713ddc513 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 15:27:15 -0500 Subject: [PATCH 123/305] Update SyncSpace.sql --- database-files/SyncSpace.sql | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 19e3c991af..61846c9606 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -63,22 +63,11 @@ CREATE TABLE IF NOT EXISTS Student ( CommunityID INT, HousingID INT, AdvisorID INT, + Reminder INT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), FOREIGN KEY (HousingID) REFERENCES Housing(HousingID) ); --- Create table for Chat -DROP TABLE IF EXISTS Chat; -CREATE TABLE IF NOT EXISTS Chat ( - ChatID INT AUTO_INCREMENT PRIMARY KEY, - StudentID INT, - Content TEXT, - Time DATETIME, - SupportStaffID INT, - FOREIGN KEY (StudentID) REFERENCES Student(StudentID), - FOREIGN KEY (SupportStaffID) REFERENCES User(UserID) -); - -- Create table for Events DROP TABLE IF EXISTS Events; CREATE TABLE IF NOT EXISTS Events ( From 70411289a2c6cec38cc356227bd319326d79a72c Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 15:36:20 -0500 Subject: [PATCH 124/305] Update SyncSpace.sql --- database-files/SyncSpace.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 61846c9606..5b147a0162 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -18,6 +18,8 @@ CREATE TABLE IF NOT EXISTS Housing ( Availability VARCHAR(50), Style VARCHAR(50), Location VARCHAR(100) + CommunityID INT, + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); -- Create table for User @@ -61,11 +63,9 @@ CREATE TABLE IF NOT EXISTS Student ( CommuteDays INT, Bio TEXT, CommunityID INT, - HousingID INT, AdvisorID INT, Reminder INT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), - FOREIGN KEY (HousingID) REFERENCES Housing(HousingID) ); -- Create table for Events From 98c75019e0995c669c4f64d8c51b9257b1ef280b Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 15:43:05 -0500 Subject: [PATCH 125/305] Update SyncSpace.sql --- database-files/SyncSpace.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 5b147a0162..c3a82e9d4f 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -57,7 +57,7 @@ CREATE TABLE IF NOT EXISTS Student ( CarpoolStatus VARCHAR(50), Budget DECIMAL(10, 2), LeaseDuration VARCHAR(50), - Cleanliness VARCHAR(50), + Cleanliness INT, Lifestyle VARCHAR(50), CommuteTime INT, CommuteDays INT, From 068cadb322f57a63d027ec1703e803d0fd3da560 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 15:45:50 -0500 Subject: [PATCH 126/305] 22 --- SyncSpace.sql | 1 + database-files/SyncSpace.sql | 7 ++++--- docker-compose.yaml | 10 ++++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 SyncSpace.sql diff --git a/SyncSpace.sql b/SyncSpace.sql new file mode 100644 index 0000000000..0519ecba6e --- /dev/null +++ b/SyncSpace.sql @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 5b147a0162..0955f5f6df 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS Housing ( HousingID INT AUTO_INCREMENT PRIMARY KEY, Availability VARCHAR(50), Style VARCHAR(50), - Location VARCHAR(100) + Location VARCHAR(100), CommunityID INT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); @@ -65,7 +65,7 @@ CREATE TABLE IF NOT EXISTS Student ( CommunityID INT, AdvisorID INT, Reminder INT, - FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID), + FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); -- Create table for Events @@ -99,6 +99,7 @@ CREATE TABLE IF NOT EXISTS Advisor ( Email VARCHAR(100), Department VARCHAR(100), StudentID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) ); -- Add foreign key to Feedback for Advisor after Advisor is created @@ -160,7 +161,7 @@ SET Status = 'Completed' WHERE TaskID = 5; -- 3.2 -INSERT INTO Student (Name, Major, Location, HousingStatus, Budget, Cleanliness, Lifestyle, CommuteTime, Interests) +INSERT INTO Student (Name, Major, Location, HousingStatus, Budget, Cleanliness, Lifestyle, CommuteTime, Bio) VALUES ( 'Kevin Chen', 'Data Science and Business', diff --git a/docker-compose.yaml b/docker-compose.yaml index 6a57708769..73a4b0d836 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,7 +9,8 @@ services: ports: - 8501:8501 depends_on: - - db + db: + condition: service_healthy networks: - app-network @@ -21,7 +22,8 @@ services: ports: - 4000:4000 depends_on: - - db + db: + condition: service_healthy environment: - DB_HOST=db - DB_PORT=3306 @@ -51,6 +53,10 @@ services: - 3308:3306 networks: - app-network + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] + timeout: 5s + retries: 10 networks: app-network: From 3f4c77c67a428f77412f8c4d5431a43d336a1615 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 16:07:06 -0500 Subject: [PATCH 127/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 200 +++++++++++++++--------------- 1 file changed, 100 insertions(+), 100 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 6bf6e6a496..6469dc8e4b 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -135,106 +135,106 @@ insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); -- Student data -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leland Izaks', 'Computer Science', 'Eire', 'San Jose', 'Searching for Housing', 'Not Interested', 1350, '1 year', 'Cluttered', 'Social', 15, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 7, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Demetris Dury', 'Computer Science', 'Photospace', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1800, '4 months', 'Moderate', 'Active', 75, 2, 'Music festival organizer planning and coordinating live music events', 6, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Zelig Matuszinski', 'Physics', 'Podcat', 'London', 'Not Interested', 'Not Interested', 3000, '4 months', 'Moderate', 'Quiet', 55, 1, 'Wine connoisseur tasting and collecting fine wines', 5, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Lonni Duke', 'Business', 'Jabbercube', 'Boston', 'Searching for Housing', 'Not Interested', 1150, '4 months', 'Disorganized', 'Introverted', 45, 3, 'Avid collector of vintage vinyl records', 9, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gannie Dearness', 'Business', 'Youspan', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 2000, '6 months', 'Cluttered', 'Extroverted', 75, 1, 'Sailing captain leading sailing expeditions and charters', 4, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Garnet Mathieson', 'Chemistry', 'Realbuzz', 'London', 'Complete', 'Searching for Carpool', 1350, '6 months', 'Clean', 'Adventurous', 45, 7, 'Vintage car collector restoring classic automobiles', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Valeria Algore', 'Psychology', 'Quimba', 'Seattle', 'Searching for Housing', 'Has Car', 1600, '6 months', 'Very Clean', 'Adventurous', 40, 4, 'Travel photographer capturing stunning landscapes and cultures', 7, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Lita Delahunty', 'Biology', 'Fivebridge', 'Los Angeles', 'Searching for Roommates', 'Not Interested', 1800, '4 months', 'Moderate', 'Quiet', 40, 7, 'Tech geek experimenting with the latest gadgets and software', 3, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Tanitansy Wallhead', 'Computer Science', 'Kanoodle', 'London', 'Searching for Housing', 'Searching for Carpool', 1200, '6 months', 'Moderate', 'Outdoorsy', 55, 4, 'Dance studio owner providing classes in various dance styles', 1, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fleur Vitet', 'Psychology', 'Shuffledrive', 'D.C.', 'Searching for Housing', 'Has Car', 2000, '4 months', 'Disorganized', 'Quiet', 10, 4, 'Soccer player training for matches and tournaments', 3, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Celie Franchi', 'Finance', 'Jaxspan', 'Seattle', 'Searching for Housing', 'Has Car', 2500, '1 year', 'Messy', 'Extroverted', 5, 5, 'Dance choreographer creating routines for performances', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Thaddus Pettiford', 'Business', 'Meejo', 'San Francisco', 'Not Interested', 'Has Car', 2500, '4 months', 'Disorganized', 'Active', 55, 7, 'Comic book store owner selling rare and collectible comics', 1, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Aprilette Kidd', 'Computer Science', 'Kaymbo', 'San Francisco', 'Not Interested', 'Complete', 2000, '6 months', 'Disorganized', 'Extroverted', 75, 6, 'Chess master competing in international tournaments and championships', 2, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Simone Fishbourne', 'Art', 'Gigabox', 'Los Angeles', 'Searching for Roommates', 'Complete', 1600, '6 months', 'Disorganized', 'Adventurous', 30, 7, 'Music aficionado attending concerts and music festivals', 5, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jonis MacAlaster', 'Finance', 'Babbleblab', 'San Jose', 'Searching for Roommates', 'Has Car', 170, '6 months', 'Messy', 'Quiet', 40, 3, 'Yoga studio owner providing classes in relaxation and mindfulness', 2, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Collette Lazenby', 'Finance', 'Gigaclub', 'D.C.', 'Searching for Housing', 'Has Car', 3000, '4 months', 'Cluttered', 'Quiet', 15, 4, 'Firefighter captain leading a team in emergency response and rescue', 10, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Conn Dullard', 'Business', 'Feednation', 'New York City', 'Not Interested', 'Searching for Carpool', 2500, '6 months', 'Moderate', 'Adventurous', 55, 7, 'Cycling coach developing training programs for cyclists', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Everard Benedito', 'Computer Science', 'Zoomcast', 'San Francisco', 'Searching for Housing', 'Complete', 1600, '6 months', 'Messy', 'Outdoorsy', 20, 1, 'Dance choreographer creating routines for performances', 7, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Roman Wais', 'Law', 'Eire', 'Atlanta', 'Complete', 'Has Car', 1350, '1 year', 'Very Clean', 'Introverted', 5, 5, 'Loves hiking and exploring nature trails', 3, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wynne Codrington', 'Art', 'Topiczoom', 'San Jose', 'Not Interested', 'Not Interested', 1200, '4 months', 'Messy', 'Social', 60, 3, 'Hiking tour guide leading groups on scenic hikes and treks', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Paten Paskell', 'Art', 'Plambee', 'New York City', 'Searching for Roommates', 'Has Car', 1800, '1 year', 'Cluttered', 'Extroverted', 30, 7, 'Fashion designer creating unique clothing and accessories', 8, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dewey Tubby', 'Mathematics', 'Miboo', 'Los Angeles', 'Not Interested', 'Has Car', 170, '6 months', 'Cluttered', 'Active', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 10, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Banky Tapenden', 'Computer Science', 'Yozio', 'Atlanta', 'Complete', 'Searching for Carpool', 1800, '6 months', 'Messy', 'Active', 45, 6, 'Motorcycle rider exploring scenic routes on two wheels', 4, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Worden Gansbuhler', 'Biology', 'Zoomlounge', 'New York City', 'Searching for Housing', 'Searching for Carpool', 1900, '1 year', 'Cluttered', 'Introverted', 15, 6, 'Travel blogger sharing adventures and tips with readers', 8, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Barbara Brenneke', 'Computer Science', 'Meetz', 'Seattle', 'Searching for Housing', 'Complete', 1200, '6 months', 'Clean', 'Active', 5, 6, 'Dedicated yogi practicing mindfulness and meditation', 8, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kimbra Absolon', 'Mathematics', 'Shuffletag', 'San Francisco', 'Not Interested', 'Not Interested', 1350, '1 year', 'Moderate', 'Active', 75, 5, 'Environmental advocate promoting conservation and eco-friendly practices', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jayson Eitter', 'Business', 'Brainlounge', 'Atlanta', 'Searching for Housing', 'Has Car', 1150, '6 months', 'Moderate', 'Adventurous', 15, 4, 'Astrologer providing readings and insights based on celestial movements', 3, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leonie McGenn', 'Finance', 'Mita', 'Boston', 'Searching for Housing', 'Complete', 170, '1 year', 'Moderate', 'Social', 25, 1, 'Comic book collector preserving rare editions and memorabilia', 2, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Andriette Playhill', 'Art', 'Roombo', 'London', 'Not Interested', 'Complete', 1150, '4 months', 'Messy', 'Outdoorsy', 35, 5, 'Antique dealer specializing in unique and valuable antiques', 9, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Deena Peirce', 'Physics', 'Yodel', 'Boston', 'Complete', 'Has Car', 1600, '4 months', 'Messy', 'Outdoorsy', 45, 2, 'Vintage car collector restoring classic automobiles', 10, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Worthy Schreurs', 'Chemistry', 'Topicblab', 'Chicago', 'Complete', 'Not Interested', 1000, '4 months', 'Clean', 'Extroverted', 10, 3, 'Foodie exploring different cuisines and restaurants', 2, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gabriel Dedrick', 'Business', 'Flipbug', 'Atlanta', 'Searching for Housing', 'Searching for Carpool', 3000, '1 year', 'Moderate', 'Quiet', 20, 6, 'Dance choreographer creating routines for performances', 4, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dixie Delgardo', 'Computer Science', 'Trunyx', 'D.C.', 'Searching for Housing', 'Not Interested', 2000, '6 months', 'Clean', 'Introverted', 40, 1, 'Crafting enthusiast creating handmade gifts and decorations', 6, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Amargo Weatherill', 'Finance', 'Browsecat', 'San Francisco', 'Not Interested', 'Searching for Carpool', 1150, '6 months', 'Moderate', 'Adventurous', 10, 3, 'Antique dealer specializing in unique and valuable antiques', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jack Amos', 'Finance', 'Eimbee', 'San Jose', 'Not Interested', 'Complete', 1900, '1 year', 'Clean', 'Quiet', 60, 7, 'Scuba diver exploring underwater ecosystems and marine life', 9, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Alis Trimbey', 'Law', 'Devpulse', 'New York City', 'Searching for Roommates', 'Searching for Carpool', 1000, '6 months', 'Cluttered', 'Quiet', 25, 1, 'Hiking guide leading groups on challenging mountain trails', 5, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kacey Outram', 'Computer Science', 'Gigazoom', 'San Jose', 'Complete', 'Searching for Carpool', 1000, '6 months', 'Disorganized', 'Outdoorsy', 35, 6, 'Devoted animal lover volunteering at shelters', 8, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Maddie Rodda', 'Mathematics', 'Dabjam', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Extroverted', 35, 1, 'Dedicated yogi practicing mindfulness and meditation', 7, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Vivianna Propper', 'Computer Science', 'Thoughtmix', 'London', 'Searching for Roommates', 'Searching for Carpool', 170, '4 months', 'Messy', 'Introverted', 35, 6, 'Marathon runner training for long-distance races', 4, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Hebert Jurries', 'Physics', 'Avamm', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1200, '4 months', 'Moderate', 'Extroverted', 15, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dorothee Tomaini', 'Biology', 'Rhybox', 'Chicago', 'Not Interested', 'Not Interested', 1000, '1 year', 'Disorganized', 'Introverted', 45, 5, 'Book publisher releasing new titles and bestsellers', 1, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kaiser Chitter', 'Physics', 'Thoughtbridge', 'Seattle', 'Searching for Housing', 'Complete', 1800, '1 year', 'Messy', 'Extroverted', 10, 1, 'Surfing school owner offering lessons and rentals for surfers', 1, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jerry Himsworth', 'Mathematics', 'Quatz', 'Boston', 'Searching for Housing', 'Not Interested', 3000, '6 months', 'Very Clean', 'Quiet', 5, 1, 'Rock climbing coach training climbers on techniques and safety', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Delcina Lies', 'Psychology', 'Dynabox', 'San Francisco', 'Not Interested', 'Has Car', 1150, '4 months', 'Clean', 'Extroverted', 30, 3, 'Passionate about cooking and trying new recipes', 6, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Britni Cowden', 'Finance', 'Tagtune', 'Atlanta', 'Not Interested', 'Searching for Carpool', 1200, '6 months', 'Very Clean', 'Social', 20, 7, 'Birdwatching guide leading tours to spot rare and exotic birds', 2, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Reinald Swancock', 'Finance', 'Thoughtstorm', 'San Jose', 'Searching for Roommates', 'Has Car', 1600, '6 months', 'Clean', 'Outdoorsy', 30, 3, 'Gardening expert cultivating a lush and vibrant garden', 8, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Adel Gatsby', 'Business', 'Yodo', 'Atlanta', 'Searching for Roommates', 'Searching for Carpool', 2500, '6 months', 'Very Clean', 'Outdoorsy', 40, 7, 'Sports journalist reporting on games and athletes', 4, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Stace Muffett', 'Psychology', 'Midel', 'San Francisco', 'Not Interested', 'Searching for Carpool', 3000, '4 months', 'Very Clean', 'Extroverted', 15, 4, 'Dance studio owner providing classes in various dance styles', 3, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ardelis Benoey', 'Art', 'Aimbu', 'Seattle', 'Complete', 'Searching for Carpool', 1150, '4 months', 'Disorganized', 'Quiet', 5, 1, 'Dance enthusiast taking classes in various styles', 10, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Allan Ivoshin', 'Computer Science', 'JumpXS', 'Los Angeles', 'Not Interested', 'Complete', 1800, '6 months', 'Cluttered', 'Outdoorsy', 10, 2, 'Dedicated yogi practicing mindfulness and meditation', 4, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Brandea Blance', 'Finance', 'Meembee', 'San Jose', 'Searching for Housing', 'Not Interested', 1200, '6 months', 'Disorganized', 'Outdoorsy', 60, 2, 'Motorcycle racer competing in races and rallies', 3, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Charil Staresmeare', 'Biology', 'Meembee', 'San Francisco', 'Not Interested', 'Not Interested', 1600, '4 months', 'Moderate', 'Active', 35, 3, 'Birdwatcher spotting rare species in their natural habitats', 5, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fleming Wardlow', 'Physics', 'Youopia', 'Seattle', 'Complete', 'Complete', 1900, '6 months', 'Disorganized', 'Social', 5, 4, 'Fitness instructor leading group exercise classes', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marillin Peasnone', 'Computer Science', 'Wordpedia', 'Seattle', 'Searching for Housing', 'Searching for Carpool', 1200, '4 months', 'Disorganized', 'Social', 40, 1, 'Travel blogger sharing adventures and tips with readers', 7, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fidel Dootson', 'Mathematics', 'Flipstorm', 'D.C.', 'Searching for Housing', 'Not Interested', 2000, '6 months', 'Disorganized', 'Introverted', 45, 1, 'Tech geek experimenting with the latest gadgets and software', 9, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Arturo Gerling', 'Physics', 'Photojam', 'D.C.', 'Not Interested', 'Complete', 3000, '1 year', 'Very Clean', 'Introverted', 30, 1, 'Dance choreographer creating routines for performances', 1, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leopold Tremble', 'Chemistry', 'Pixope', 'London', 'Searching for Roommates', 'Not Interested', 2500, '4 months', 'Messy', 'Outdoorsy', 10, 6, 'Sailing captain leading sailing expeditions and charters', 3, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Channa Pitrelli', 'Art', 'Dabvine', 'San Francisco', 'Searching for Roommates', 'Complete', 170, '6 months', 'Cluttered', 'Quiet', 75, 4, 'Art collector acquiring works from emerging and established artists', 4, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Rochella Ranns', 'Chemistry', 'JumpXS', 'Los Angeles', 'Searching for Housing', 'Complete', 2000, '4 months', 'Messy', 'Introverted', 75, 3, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fae Maffione', 'Computer Science', 'Twitternation', 'D.C.', 'Searching for Housing', 'Complete', 1150, '6 months', 'Cluttered', 'Quiet', 55, 5, 'Vintage car restorer refurbishing classic vehicles to their former glory', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nealson Coundley', 'Art', 'Linkbuzz', 'London', 'Complete', 'Has Car', 2000, '1 year', 'Very Clean', 'Adventurous', 30, 7, 'History buff visiting museums and historical sites', 1, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jaimie Tappin', 'Biology', 'Gigaclub', 'San Jose', 'Not Interested', 'Searching for Carpool', 2000, '4 months', 'Clean', 'Social', 45, 7, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 3, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Susanna Pykerman', 'Law', 'Centidel', 'Chicago', 'Not Interested', 'Searching for Carpool', 2000, '6 months', 'Clean', 'Adventurous', 30, 3, 'Avid collector of vintage vinyl records', 7, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leda Standish-Brooks', 'Law', 'Eabox', 'Los Angeles', 'Complete', 'Has Car', 2500, '1 year', 'Messy', 'Introverted', 60, 1, 'Sports fan cheering for their favorite teams at games', 9, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Alfredo Verling', 'Physics', 'Livetube', 'San Jose', 'Complete', 'Not Interested', 1200, '4 months', 'Very Clean', 'Social', 55, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kristina Orteu', 'Chemistry', 'Skiptube', 'Los Angeles', 'Not Interested', 'Complete', 1600, '4 months', 'Moderate', 'Introverted', 15, 5, 'Crafting enthusiast creating handmade gifts and decorations', 3, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Darcee Itzkowicz', 'Chemistry', 'Fadeo', 'Chicago', 'Not Interested', 'Has Car', 170, '6 months', 'Very Clean', 'Introverted', 5, 2, 'Chess master competing in international tournaments and championships', 10, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Brigg Braidley', 'Biology', 'Twimbo', 'Los Angeles', 'Complete', 'Searching for Carpool', 1600, '4 months', 'Very Clean', 'Introverted', 55, 1, 'Environmental advocate promoting conservation and eco-friendly practices', 7, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jade Waplington', 'Finance', 'Innotype', 'Atlanta', 'Not Interested', 'Has Car', 2500, '4 months', 'Very Clean', 'Introverted', 30, 6, 'Environmental advocate promoting conservation and eco-friendly practices', 4, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Claire Mallender', 'Biology', 'Roombo', 'Chicago', 'Complete', 'Has Car', 1200, '6 months', 'Disorganized', 'Active', 10, 6, 'Vintage car restorer refurbishing classic vehicles to their former glory', 1, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wileen Loveman', 'Biology', 'Abata', 'Atlanta', 'Searching for Housing', 'Complete', 3000, '4 months', 'Very Clean', 'Social', 20, 6, 'History professor researching and teaching historical events', 2, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Shannon Eagar', 'Chemistry', 'Skibox', 'London', 'Complete', 'Searching for Carpool', 1000, '1 year', 'Cluttered', 'Adventurous', 30, 2, 'Sailing captain leading sailing expeditions and charters', 8, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nikita Ferronet', 'Computer Science', 'Fadeo', 'Boston', 'Complete', 'Searching for Carpool', 2000, '6 months', 'Clean', 'Social', 5, 1, 'Vintage car collector restoring classic automobiles', 3, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Quinn Corner', 'Biology', 'Meevee', 'New York City', 'Searching for Roommates', 'Has Car', 1800, '1 year', 'Cluttered', 'Active', 20, 1, 'Gaming streamer broadcasting gameplay and interacting with viewers', 3, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Hewie Speek', 'Art', 'Einti', 'Seattle', 'Not Interested', 'Complete', 2000, '1 year', 'Moderate', 'Adventurous', 75, 1, 'Antique dealer specializing in unique and valuable antiques', 5, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ronica Maplethorp', 'Law', 'Skiba', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 1800, '4 months', 'Cluttered', 'Social', 10, 2, 'Travel blogger sharing adventures and tips with readers', 10, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Blair Shedden', 'Physics', 'Fanoodle', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2000, '6 months', 'Disorganized', 'Extroverted', 25, 4, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nolly Petry', 'Law', 'Buzzster', 'Atlanta', 'Searching for Roommates', 'Complete', 1000, '6 months', 'Disorganized', 'Social', 55, 5, 'Fashion designer creating unique clothing and accessories', 5, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Flemming Gatecliffe', 'Computer Science', 'Yombu', 'New York City', 'Not Interested', 'Complete', 170, '1 year', 'Cluttered', 'Introverted', 75, 2, 'Tech entrepreneur developing innovative solutions and products', 9, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Prince Stickells', 'Finance', 'Dabfeed', 'Atlanta', 'Not Interested', 'Has Car', 2500, '4 months', 'Cluttered', 'Social', 30, 1, 'Dance choreographer creating routines for performances', 9, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Moselle Huddy', 'Biology', 'Kare', 'Los Angeles', 'Searching for Housing', 'Complete', 1350, '4 months', 'Disorganized', 'Social', 5, 2, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 4, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fraser Crippill', 'Physics', 'Dynazzy', 'Los Angeles', 'Searching for Roommates', 'Not Interested', 1900, '1 year', 'Disorganized', 'Extroverted', 15, 2, 'Environmental advocate promoting conservation and eco-friendly practices', 10, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jenda Wrinch', 'Psychology', 'Twinder', 'San Jose', 'Complete', 'Complete', 1000, '6 months', 'Very Clean', 'Outdoorsy', 35, 1, 'Gardening expert cultivating a lush and vibrant garden', 9, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Corliss Lavallie', 'Chemistry', 'Geba', 'Boston', 'Searching for Housing', 'Has Car', 2500, '6 months', 'Clean', 'Social', 55, 2, 'History buff visiting museums and historical sites', 1, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ivonne Wickrath', 'Art', 'Divavu', 'London', 'Complete', 'Complete', 3000, '4 months', 'Moderate', 'Quiet', 75, 7, 'Keen gardener growing a variety of fruits and vegetables', 7, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Pearline Grumell', 'Chemistry', 'Feedfish', 'Seattle', 'Not Interested', 'Complete', 3000, '6 months', 'Messy', 'Social', 30, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 5, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Susannah Raddan', 'Art', 'Tazzy', 'D.C.', 'Complete', 'Has Car', 1800, '4 months', 'Clean', 'Adventurous', 75, 5, 'Book publisher releasing new titles and bestsellers', 5, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Delila Coulbeck', 'Psychology', 'Demimbu', 'D.C.', 'Searching for Roommates', 'Complete', 2500, '4 months', 'Cluttered', 'Active', 45, 2, 'Wine connoisseur tasting and collecting fine wines', 2, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Berton Harmeston', 'Biology', 'Janyx', 'Chicago', 'Searching for Roommates', 'Has Car', 1000, '1 year', 'Moderate', 'Quiet', 60, 1, 'Vintage car collector restoring classic automobiles', 8, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Donalt Gunning', 'Finance', 'Riffpedia', 'Atlanta', 'Searching for Roommates', 'Not Interested', 1200, '4 months', 'Clean', 'Quiet', 30, 2, 'Astrologer providing readings and insights based on celestial movements', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Tymon Neilus', 'Biology', 'Pixope', 'New York City', 'Complete', 'Searching for Carpool', 1600, '4 months', 'Cluttered', 'Quiet', 30, 7, 'Soccer coach training players on skills and strategies for the game', 9, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leoine Oswell', 'Art', 'Skimia', 'Chicago', 'Complete', 'Not Interested', 1150, '1 year', 'Messy', 'Social', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gerry Gatecliff', 'Finance', 'Shufflebeat', 'San Jose', 'Searching for Housing', 'Searching for Carpool', 1600, '1 year', 'Clean', 'Outdoorsy', 45, 6, 'Sports commentator providing analysis and commentary on games', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marissa Broun', 'Finance', 'Quire', 'Seattle', 'Searching for Housing', 'Complete', 3000, '1 year', 'Cluttered', 'Extroverted', 45, 1, 'Obsessed with DIY home improvement projects', 6, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Letty Mewton', 'Physics', 'Jabberbean', 'Atlanta', 'Complete', 'Searching for Carpool', 1150, '4 months', 'Moderate', 'Quiet', 45, 5, 'Music festival organizer planning and coordinating live music events', 9, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Arthur Gave', 'Business', 'Blogspan', 'San Francisco', 'Complete', 'Not Interested', 2500, '6 months', 'Disorganized', 'Extroverted', 40, 3, 'Fitness influencer inspiring followers with workout routines and tips', 3, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Joleen Satterly', 'Physics', 'Oodoo', 'Chicago', 'Searching for Housing', 'Searching for Carpool', 1600, '6 months', 'Moderate', 'Adventurous', 75, 4, 'Rock climbing coach training climbers on techniques and safety', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wheeler Martynka', 'Business', 'Rhynyx', 'London', 'Searching for Housing', 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Adventurous', 10, 5, 'Rock climbing coach training climbers on techniques and safety', 5, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marys Hannaby', 'Art', 'Zazio', 'London', 'Searching for Housing', 'Not Interested', 170, '1 year', 'Cluttered', 'Active', 30, 6, 'Surfing enthusiast catching waves at the beach', 10, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ariel Gabotti', 'Biology', 'Latz', 'San Jose', 'Complete', 'Complete', 3000, '1 year', 'Moderate', 'Introverted', 60, 6, 'Soccer coach training players on skills and strategies for the game', 1, null, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Hodge Zelake', 'Business', 'Colgate-Palmolive', 'New York City', 'Searching for Roommates', 'Has Car', 1900, '4 months', 1, 'Cozy', 15, 5, 'Dedicated to learning about traditional crafts and artisanal techniques', 7, 7, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Melly Azema', 'Finance', 'BP', 'D.C.', 'Searching for Housing', 'Search Complete', 2100, '6 months', 1, 'Eco-friendly', 20, 4, 'Thrilled by attending music festivals and discovering new bands', 10, 7, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Pietro Mundford', 'Engineering', 'Lowe’s', 'Los Angeles', 'Searching for Housing', 'Has Car', 1200, '6 months', 4, 'Cozy', 10, 2, 'Passionate about writing poetry and expressing emotions through words', 2, 9, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lyndell Veare', 'Engineering', 'Coca-Cola', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2100, '1 year', 1, 'Energetic', 50, 1, 'Devoted to studying ancient mythology and folklore', 6, 2, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Malinda Lawland', 'Data Engineering', 'Johnson & Johnson', 'Boston', 'Search Complete', 'Search Complete', 2400, '6 months', 1, 'Vibrant', 30, 2, 'Obsessed with urban exploration and discovering hidden gems in cities', 3, 7, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ellette Atteridge', 'Engineering', 'Costco', 'Chicago', 'Searching for Roommates', 'Searching for Carpool', 2100, '4 months', 4, 'Outgoing', 40, 2, 'Fascinated by the world of virtual reality and immersive experiences', 2, 7, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Eran Sailor', 'Engineering', 'Home Depot', 'Seattle', 'Searching for Housing', 'Searching for Carpool', 1500, '6 months', 1, 'Minimalist', 45, 5, 'Passionate about writing poetry and expressing emotions through words', 6, 1, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Sonja McGorley', 'Data Engineering', 'Intel', 'Seattle', 'Searching for Roommates', 'Search Complete', 2000, '1 year', 2, 'Social', 20, 4, 'Thrilled by attending music festivals and discovering new bands', 1, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alexa Beahan', 'Finance', 'Bank of America', 'D.C.', 'Searching for Housing', 'Search Complete', 1500, '4 months', 1, 'Healthy', 25, 3, 'Obsessed with urban exploration and discovering hidden gems in cities', 2, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bob Ashe', 'Marketing', 'Hyundai', 'Boston', 'Searching for Roommates', 'Searching for Carpool', 1300, '6 months', 5, 'Relaxed', 35, 3, 'Fascinated by the art of tea ceremonies and traditional rituals', 10, 5, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Moria Scottrell', 'Finance', 'Mercedes-Benz', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 1300, '4 months', 3, 'Cozy', 70, 2, 'Passionate about painting and creating art', 3, 6, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ediva Glenny', 'Data Science', 'Johnson & Johnson', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 1400, '6 months', 4, 'Nomadic', 50, 5, 'Thrilled by attending music festivals and discovering new bands', 5, 2, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Flory Boggon', 'Marketing', 'ExxonMobil', 'London', 'Searching for Roommates', 'Has Car', 1600, '4 months', 2, 'Eco-friendly', 70, 4, 'Dedicated to practicing yoga and meditation for inner peace', 6, 5, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Dorelle Luke', 'Data Engineering', 'Roche', 'D.C.', 'Searching for Roommates', 'Search Complete', 1900, '4 months', 1, 'Carefree', 50, 2, 'Devoted to volunteering at animal shelters', 2, 8, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Moore MacTeggart', 'Finance', 'Costco', 'London', 'Searching for Roommates', 'Has Car', 1700, '6 months', 3, 'Relaxed', 20, 4, 'Obsessed with interior design and decorating living spaces', 3, 2, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Chancey Wixey', 'Biology', 'Moderna', 'Atlanta', 'Search Complete', 'Search Complete', 1200, '1 year', 5, 'Outgoing', 70, 3, 'Dedicated to wildlife conservation and protecting endangered species', 10, 8, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Carole Wisbey', 'Art', 'Siemens Energy', 'London', 'Search Complete', 'Searching for Carpool', 2300, '4 months', 2, 'Cozy', 30, 6, 'Enjoys participating in outdoor activities like camping and hiking', 1, 7, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bordie Buyers', 'Public Health', 'Chevron', 'New York City', 'Search Complete', 'Searching for Carpool', 1400, '6 months', 3, 'Nomadic', 60, 1, 'Thrilled by attending music festivals and discovering new bands', 5, 8, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lisa Oxteby', 'Chemistry', 'Intel', 'Atlanta', 'Searching for Housing', 'Has Car', 2000, '4 months', 5, 'Social', 10, 5, 'Addicted to attending film festivals and discovering independent cinema', 2, 9, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Noland Buckney', 'Public Health', 'Citigroup', 'San Francisco', 'Searching for Housing', 'Searching for Carpool', 2200, '1 year', 1, 'Relaxed', 25, 5, 'Enjoys playing musical instruments and composing music', 5, 10, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Katina Fuxman', 'Chemistry', 'Boeing', 'Boston', 'Searching for Roommates', 'Search Complete', 1300, '6 months', 2, 'Active', 60, 4, 'Obsessed with urban exploration and discovering hidden gems in cities', 4, 4, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gar Frift', 'Public Health', 'Coca-Cola', 'London', 'Searching for Roommates', 'Has Car', 1500, '1 year', 4, 'Nomadic', 30, 2, 'Thrilled by extreme weather phenomena and storm chasing', 7, 9, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Sharon Thomen', 'Public Health', 'General Motors', 'San Jose', 'Search Complete', 'Searching for Carpool', 1500, '4 months', 4, 'Holistic', 25, 5, 'Devoted to learning about different types of cuisine and cooking techniques', 6, 6, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Janenna Favelle', 'History', 'ExxonMobil', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1600, '4 months', 2, 'Vibrant', 50, 5, 'Obsessed with DIY projects and home improvement', 7, 6, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Glory Klimko', 'Computer Science', 'Procter & Gamble', 'San Francisco', 'Searching for Roommates', 'Search Complete', 1300, '1 year', 1, 'Balanced', 50, 4, 'Enjoys practicing mindfulness and meditation for mental clarity', 9, 9, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Heda Muckleston', 'Public Health', 'Siemens Energy', 'Chicago', 'Searching for Housing', 'Search Complete', 1500, '6 months', 4, 'Vibrant', 50, 2, 'Addicted to attending film festivals and discovering independent cinema', 7, 8, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bryn Littledyke', 'Finance', 'Morgan Stanley', 'New York City', 'Search Complete', 'Searching for Carpool', 2100, '1 year', 2, 'Active', 70, 2, 'Devoted to volunteering at animal shelters', 9, 5, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Augusta Dyerson', 'Data Engineering', 'BP', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 1400, '4 months', 5, 'Minimalist', 10, 1, 'Devoted to volunteering at animal shelters', 4, 3, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gardener Khidr', 'Art', 'Best Buy', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2100, '4 months', 5, 'Vibrant', 10, 3, 'Obsessed with collecting rare vinyl records and building a music collection', 3, 4, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gail Brende', 'Chemistry', 'General Motors', 'Boston', 'Searching for Housing', 'Has Car', 1700, '4 months', 4, 'Outgoing', 40, 6, 'Enjoys attending theater performances and musicals', 6, 5, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ardeen Forder', 'Chemistry', 'Walmart', 'Chicago', 'Searching for Housing', 'Has Car', 1900, '1 year', 3, 'Vibrant', 20, 2, 'Thrilled by attending comic conventions and cosplay events', 3, 6, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Darb Borgnol', 'History', 'Intel', 'Los Angeles', 'Searching for Housing', 'Searching for Carpool', 1100, '4 months', 5, 'Social', 45, 4, 'Passionate about photography and capturing beautiful moments', 2, 5, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Sadye Ashbrook', 'Computer Science', 'Johnson & Johnson', 'San Jose', 'Searching for Roommates', 'Has Car', 1500, '4 months', 1, 'Outgoing', 10, 4, 'Passionate about cooking and trying new recipes', 4, 5, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Verena Fost', 'Data Engineering', 'PepsiCo', 'D.C.', 'Search Complete', 'Has Car', 1100, '6 months', 2, 'Outgoing', 45, 3, 'Devoted to watching and analyzing classic movies', 7, 9, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Matilda Giovannini', 'Computer Science', 'Walt Disney Company', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 2000, '4 months', 2, 'Outgoing', 50, 2, 'Passionate about exploring abandoned buildings and urban decay', 3, 5, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Standford Bertolaccini', 'Finance', 'Honda', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1600, '4 months', 2, 'Carefree', 35, 1, 'Devoted to studying ancient mythology and folklore', 3, 9, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Dianne Orae', 'Data Science', 'Bank of America', 'Los Angeles', 'Search Complete', 'Search Complete', 1300, '1 year', 2, 'Social', 30, 1, 'Addicted to reading mystery novels and solving puzzles', 9, 1, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Nadya Wellesley', 'History', 'Netflix', 'Seattle', 'Search Complete', 'Has Car', 1600, '4 months', 5, 'Healthy', 70, 2, 'Devoted to studying psychology and understanding human behavior', 10, 3, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Darcie Weems', 'Data Science', 'Moderna', 'Los Angeles', 'Search Complete', 'Searching for Carpool', 2300, '6 months', 4, 'Nomadic', 10, 1, 'Fascinated by the world of virtual reality and immersive experiences', 4, 10, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Vinnie Tresvina', 'Chemistry', 'Google (Alphabet Inc.)', 'Boston', 'Search Complete', 'Search Complete', 1900, '1 year', 4, 'Outgoing', 20, 3, 'Dedicated to learning about traditional crafts and artisanal techniques', 5, 9, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Elvira Westhoff', 'Marketing', 'Johnson & Johnson', 'San Jose', 'Searching for Roommates', 'Has Car', 1700, '4 months', 2, 'Cozy', 50, 2, 'Thrilled by extreme weather phenomena and storm chasing', 4, 9, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fletch Hicken', 'Biology', 'Toyota', 'Seattle', 'Searching for Roommates', 'Has Car', 1500, '4 months', 5, 'Vibrant', 60, 1, 'Fascinated by astronomy and stargazing', 6, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Beatriz Braksper', 'Engineering', 'Hyundai', 'Los Angeles', 'Searching for Housing', 'Search Complete', 1300, '6 months', 2, 'Holistic', 50, 3, 'Devoted to learning about different types of cuisine and cooking techniques', 8, 1, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ronda Ten Broek', 'Business', 'Coca-Cola', 'San Jose', 'Search Complete', 'Searching for Carpool', 1300, '4 months', 5, 'Social', 40, 3, 'Thrilled by extreme sports like snowboarding and mountain biking', 5, 10, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fabien Arger', 'Art', 'Roche', 'Chicago', 'Searching for Roommates', 'Has Car', 1800, '1 year', 5, 'Energetic', 30, 3, 'Thrilled by extreme sports like skydiving and bungee jumping', 5, 1, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Stormie Beadel', 'Computer Science', 'Lowe’s', 'Los Angeles', 'Search Complete', 'Searching for Carpool', 1600, '6 months', 3, 'Balanced', 15, 3, 'Passionate about collecting rare books and first editions', 3, 3, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Carolina Goldbourn', 'Data Science', 'Intel', 'London', 'Searching for Housing', 'Searching for Carpool', 2400, '4 months', 2, 'Active', 15, 3, 'Enjoys attending theater performances and musicals', 5, 5, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Isac Veart', 'Data Engineering', 'Northrop Grumman', 'D.C.', 'Search Complete', 'Search Complete', 2100, '4 months', 4, 'Cozy', 25, 5, 'Fascinated by the world of competitive gaming and esports tournaments', 4, 8, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bayard Quidenham', 'Art', 'PepsiCo', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 1100, '4 months', 5, 'Vibrant', 60, 4, 'Passionate about sustainable fashion and ethical clothing brands', 4, 4, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Herbie Rain', 'Finance', 'Citigroup', 'San Francisco', 'Searching for Roommates', 'Search Complete', 2000, '6 months', 2, 'Carefree', 70, 3, 'Enjoys gardening and growing own fruits and vegetables', 6, 6, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lula Fulstow', 'Chemistry', 'Citigroup', 'Chicago', 'Searching for Roommates', 'Search Complete', 1300, '1 year', 1, 'Carefree', 30, 1, 'Addicted to exploring abandoned places and urban exploration', 7, 3, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Mildred Sandwich', 'Computer Science', 'Wells Fargo', 'Chicago', 'Search Complete', 'Has Car', 1400, '1 year', 1, 'Social', 45, 3, 'Intrigued by the world of professional gaming and esports competitions', 9, 10, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Marcello Barlass', 'Computer Science', 'Mercedes-Benz', 'San Jose', 'Searching for Housing', 'Has Car', 1400, '1 year', 1, 'Healthy', 30, 5, 'Intrigued by the art of bonsai cultivation and creating miniature landscapes', 8, 9, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Raye McGuff', 'History', 'Siemens Energy', 'Seattle', 'Search Complete', 'Searching for Carpool', 1900, '1 year', 3, 'Outgoing', 45, 1, 'Enjoys practicing mindfulness and meditation for mental clarity', 2, 3, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alida Hallad', 'Chemistry', 'Honda', 'San Francisco', 'Searching for Housing', 'Has Car', 2200, '4 months', 3, 'Minimalist', 45, 2, 'Fascinated by marine biology and scuba diving', 2, 2, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Cati Girauld', 'Engineering', 'Boeing', 'Los Angeles', 'Searching for Roommates', 'Search Complete', 1200, '1 year', 5, 'Eco-friendly', 60, 5, 'Addicted to vintage shopping and finding unique retro treasures', 5, 5, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Forrester Keller', 'Marketing', 'Chevron', 'San Jose', 'Search Complete', 'Searching for Carpool', 1400, '6 months', 5, 'Eco-friendly', 30, 2, 'Dedicated to studying ancient civilizations and archaeological discoveries', 10, 8, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Smitty Emmitt', 'Data Engineering', 'Morgan Stanley', 'London', 'Searching for Housing', 'Searching for Carpool', 2200, '4 months', 4, 'Relaxed', 45, 5, 'Passionate about attending art exhibitions and supporting local artists', 1, 8, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Neddie Castagne', 'Data Engineering', 'Goldman Sachs', 'London', 'Searching for Housing', 'Has Car', 1700, '6 months', 4, 'Nomadic', 20, 6, 'Intrigued by the art of mixology and creating signature cocktails', 10, 7, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fiann Gavan', 'Chemistry', 'Novartis', 'San Francisco', 'Searching for Roommates', 'Has Car', 2300, '6 months', 5, 'Vibrant', 20, 3, 'Devoted to volunteering at animal shelters', 2, 9, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Roxi Beefon', 'Computer Science', 'Citigroup', 'New York City', 'Searching for Roommates', 'Has Car', 2400, '6 months', 2, 'Eco-friendly', 25, 3, 'Enjoys participating in outdoor activities like camping and hiking', 3, 10, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Brandi Mickleborough', 'Engineering', 'Best Buy', 'Los Angeles', 'Search Complete', 'Searching for Carpool', 2100, '4 months', 1, 'Minimalist', 70, 3, 'Passionate about cooking and trying new recipes', 8, 6, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Nappie Yerrill', 'Marketing', 'Walmart', 'New York City', 'Searching for Roommates', 'Has Car', 2000, '6 months', 1, 'Outgoing', 70, 4, 'Enjoys playing musical instruments and composing music', 7, 2, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Pavlov Flag', 'Data Science', 'Amazon', 'Seattle', 'Search Complete', 'Searching for Carpool', 1200, '6 months', 2, 'Energetic', 70, 5, 'Intrigued by the art of mixology and creating signature cocktails', 6, 8, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Yolande Tale', 'Finance', 'Siemens Energy', 'Seattle', 'Search Complete', 'Search Complete', 2200, '4 months', 1, 'Social', 10, 6, 'Dedicated to studying ancient civilizations and archaeological discoveries', 7, 8, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Rubetta Neale', 'Public Health', 'Lowe’s', 'Atlanta', 'Searching for Housing', 'Searching for Carpool', 1400, '6 months', 5, 'Balanced', 15, 2, 'Fascinated by the world of virtual reality and immersive experiences', 6, 9, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Amara McGerr', 'Marketing', 'PepsiCo', 'New York City', 'Searching for Roommates', 'Search Complete', 2000, '6 months', 3, 'Balanced', 15, 4, 'Thrilled by attending comic conventions and cosplay events', 2, 10, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Maxie Cowely', 'Finance', 'Moderna', 'Atlanta', 'Searching for Housing', 'Search Complete', 2200, '1 year', 2, 'Energetic', 50, 3, 'Devoted to studying philosophy and exploring existential questions', 1, 8, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gabby Dearl', 'Biology', 'Lockheed Martin', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 2300, '6 months', 5, 'Minimalist', 10, 1, 'Addicted to attending film festivals and discovering independent cinema', 6, 6, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Heddi Barstock', 'Engineering', 'Morgan Stanley', 'Boston', 'Searching for Roommates', 'Has Car', 1100, '1 year', 1, 'Vibrant', 30, 1, 'Passionate about writing poetry and expressing emotions through words', 2, 5, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Seth Moukes', 'Data Engineering', 'JPMorgan Chase', 'Boston', 'Searching for Roommates', 'Search Complete', 1500, '6 months', 4, 'Balanced', 40, 1, 'Fascinated by astronomy and stargazing', 3, 7, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lydon Soldi', 'Business', 'Siemens Energy', 'Boston', 'Searching for Housing', 'Search Complete', 2400, '1 year', 2, 'Balanced', 35, 4, 'Loves hiking and exploring nature trails', 1, 6, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Rufus Chiplin', 'Biology', 'Chevron', 'Los Angeles', 'Searching for Housing', 'Searching for Carpool', 2400, '6 months', 4, 'Vibrant', 70, 6, 'Thrilled by extreme sports like snowboarding and mountain biking', 4, 8, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Zelda Hengoed', 'Finance', 'Pfizer', 'Chicago', 'Searching for Roommates', 'Search Complete', 2400, '6 months', 4, 'Relaxed', 35, 3, 'Thrilled by attending comic conventions and cosplay events', 2, 8, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alissa Shurey', 'Finance', 'Lockheed Martin', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 1400, '4 months', 3, 'Minimalist', 25, 4, 'Dedicated to learning about sustainable agriculture and organic farming', 4, 5, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Brod Skamell', 'Computer Science', 'Meta (Facebook)', 'Chicago', 'Search Complete', 'Searching for Carpool', 1500, '1 year', 1, 'Healthy', 40, 5, 'Enjoys playing musical instruments and composing music', 7, 3, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Melisenda Skehan', 'Data Engineering', 'Wells Fargo', 'London', 'Searching for Roommates', 'Search Complete', 2100, '6 months', 4, 'Nomadic', 20, 4, 'Passionate about attending art exhibitions and supporting local artists', 7, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ravi Kilgrove', 'Art', 'Hyundai', 'Chicago', 'Searching for Housing', 'Searching for Carpool', 1600, '4 months', 1, 'Sustainable', 40, 1, 'Intrigued by the art of storytelling and creating compelling narratives', 6, 2, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Dav Birtwhistle', 'Art', 'Boeing', 'Atlanta', 'Searching for Roommates', 'Search Complete', 1500, '6 months', 1, 'Balanced', 30, 6, 'Dedicated to learning martial arts and self-defense techniques', 2, 1, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ambur Harmour', 'Finance', 'Honda', 'San Jose', 'Search Complete', 'Has Car', 2000, '6 months', 3, 'Cozy', 10, 3, 'Intrigued by the art of storytelling and creating compelling narratives', 10, 5, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Cyndy Eckersall', 'Marketing', 'Northrop Grumman', 'London', 'Searching for Housing', 'Has Car', 2400, '1 year', 2, 'Holistic', 15, 6, 'Obsessed with collecting rare vinyl records and building a music collection', 10, 8, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lia Veillard', 'Finance', 'NBCUniversal', 'Chicago', 'Search Complete', 'Has Car', 2400, '1 year', 4, 'Minimalist', 50, 5, 'Passionate about attending art exhibitions and supporting local artists', 10, 9, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gustave Toffoloni', 'Data Engineering', 'Best Buy', 'Seattle', 'Search Complete', 'Searching for Carpool', 1200, '4 months', 3, 'Minimalist', 20, 2, 'Passionate about painting and creating art', 6, 5, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Stace Semble', 'Biology', 'Citigroup', 'San Francisco', 'Searching for Housing', 'Searching for Carpool', 1900, '6 months', 4, 'Cozy', 60, 6, 'Fascinated by the world of magic and illusion', 9, 1, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('April Djurevic', 'Data Engineering', 'BP', 'Chicago', 'Searching for Roommates', 'Searching for Carpool', 2100, '6 months', 1, 'Relaxed', 60, 3, 'Devoted to studying ancient mythology and folklore', 2, 6, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Kora Parradye', 'History', 'Northrop Grumman', 'Atlanta', 'Search Complete', 'Searching for Carpool', 1100, '1 year', 4, 'Active', 30, 3, 'Addicted to attending science fiction conventions and meeting favorite authors', 8, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bridget Dartnell', 'Computer Science', 'General Motors', 'Los Angeles', 'Searching for Roommates', 'Has Car', 1900, '4 months', 1, 'Energetic', 40, 2, 'Obsessed with urban exploration and discovering hidden gems in cities', 7, 8, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Phelia Nother', 'Finance', 'Johnson & Johnson', 'London', 'Searching for Roommates', 'Search Complete', 1500, '6 months', 4, 'Energetic', 25, 4, 'Addicted to attending film festivals and discovering independent cinema', 8, 7, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Camila Gronauer', 'Finance', 'Tesla', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2400, '4 months', 4, 'Healthy', 35, 1, 'Obsessed with collecting rare vinyl records and building a music collection', 10, 4, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Teador Capron', 'History', 'Unilever', 'Atlanta', 'Search Complete', 'Has Car', 2200, '6 months', 5, 'Relaxed', 60, 5, 'Devoted to studying psychology and understanding human behavior', 10, 9, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Husein Despenser', 'Data Science', 'Meta (Facebook)', 'Atlanta', 'Searching for Roommates', 'Has Car', 1200, '1 year', 4, 'Relaxed', 45, 3, 'Fascinated by the art of tea ceremonies and traditional rituals', 3, 6, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Carmen Rollett', 'History', 'Ford', 'London', 'Searching for Roommates', 'Search Complete', 1400, '1 year', 1, 'Nomadic', 20, 3, 'Dedicated to learning about sustainable agriculture and organic farming', 2, 2, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Nana Richings', 'Data Science', 'Pfizer', 'Boston', 'Searching for Housing', 'Search Complete', 1000, '4 months', 1, 'Eco-friendly', 40, 1, 'Addicted to collecting rare coins and currency from around the world', 1, 7, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Rafaelita Hodge', 'Public Health', 'Costco', 'San Jose', 'Search Complete', 'Has Car', 1900, '6 months', 4, 'Relaxed', 70, 5, 'Passionate about exploring abandoned buildings and urban decay', 3, 7, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alfonse Tuttle', 'Finance', 'Boeing', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 1500, '1 year', 3, 'Social', 50, 2, 'Fascinated by the world of virtual reality and immersive experiences', 2, 8, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fran Cuss', 'Data Science', 'Meta (Facebook)', 'San Jose', 'Searching for Housing', 'Searching for Carpool', 1300, '1 year', 4, 'Nomadic', 20, 4, 'Passionate about attending art exhibitions and supporting local artists', 9, 5, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alvy Garley', 'Public Health', 'Honda', 'New York City', 'Search Complete', 'Searching for Carpool', 1100, '4 months', 2, 'Social', 60, 3, 'Passionate about collecting rare books and first editions', 6, 5, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Marcela Rutherfoord', 'History', 'Pfizer', 'Chicago', 'Searching for Roommates', 'Searching for Carpool', 2200, '6 months', 4, 'Sustainable', 15, 3, 'Devoted to studying philosophy and exploring existential questions', 8, 6, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Marji Towell', 'Art', 'Johnson & Johnson', 'Seattle', 'Searching for Housing', 'Search Complete', 1900, '4 months', 4, 'Balanced', 35, 5, 'Fascinated by astronomy and stargazing', 1, 1, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Jillie Leivesley', 'Data Engineering', 'Best Buy', 'Boston', 'Search Complete', 'Has Car', 2200, '4 months', 4, 'Active', 40, 4, 'Devoted to learning about different types of cuisine and cooking techniques', 6, 7, 3); -- Chat insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (1, 3, 'Network connectivity issues', '2024-04-10 00:27:14', 5); From 1015f19c53beee0323c5bf3c4c88d11f0d8c22db Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 16:08:26 -0500 Subject: [PATCH 128/305] Update SyncSpace-data.sql --- database-files/SyncSpace-data.sql | 52 ------------------------------- 1 file changed, 52 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 6469dc8e4b..d904066e62 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -236,58 +236,6 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Marji Towell', 'Art', 'Johnson & Johnson', 'Seattle', 'Searching for Housing', 'Search Complete', 1900, '4 months', 4, 'Balanced', 35, 5, 'Fascinated by astronomy and stargazing', 1, 1, 3); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Jillie Leivesley', 'Data Engineering', 'Best Buy', 'Boston', 'Search Complete', 'Has Car', 2200, '4 months', 4, 'Active', 40, 4, 'Devoted to learning about different types of cuisine and cooking techniques', 6, 7, 3); --- Chat -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (1, 3, 'Network connectivity issues', '2024-04-10 00:27:14', 5); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (2, 20, 'Issue with login credentials', '2024-02-28 09:42:13', 12); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (3, 63, 'Lost files', '2024-01-30 12:56:56', 18); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (4, 41, 'Device not turning on', '2024-03-26 07:02:15', 3); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (5, 54, 'Email not sending', '2024-11-15 05:29:27', 27); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (6, 35, 'Billing inquiry', '2024-02-22 05:26:47', 9); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (7, 47, 'Slow internet connection', '2024-03-25 04:55:29', 14); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (8, 74, 'Network connectivity issues', '2024-03-17 21:17:57', 22); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (9, 56, 'Data backup request', '2024-06-07 10:54:55', 1); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (10, 27, 'Printer not working', '2024-07-17 08:32:42', 30); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (11, 84, 'Forgot password', '2024-08-29 17:46:54', 8); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (12, 17, 'Network connectivity issues', '2024-07-19 09:36:34', 20); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (13, 47, 'Need help setting up new device', '2024-05-23 10:49:46', 11); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (14, 11, 'Billing inquiry', '2024-01-12 23:01:17', 25); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (15, 18, 'Virus detected on device', '2024-03-05 20:24:13', 7); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (16, 22, 'Trouble accessing website', '2024-03-21 09:53:30', 15); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (17, 40, 'Forgot password', '2024-03-09 02:31:51', 29); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (18, 14, 'Need help setting up new device', '2024-03-14 01:05:34', 4); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (19, 79, 'Forgot password', '2024-02-17 07:49:46', 19); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (20, 50, 'Account locked', '2024-04-01 03:43:25', 10); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (21, 80, 'Trouble accessing website', '2024-08-31 22:17:10', 26); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (22, 13, 'Network connectivity issues', '2024-05-26 03:23:54', 6); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (23, 84, 'Forgot password', '2024-11-04 20:27:45', 13); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (24, 38, 'Device not turning on', '2024-11-14 09:07:15', 21); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (25, 45, 'Email not sending', '2024-11-17 08:59:33', 2); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (26, 47, 'Network connectivity issues', '2023-12-31 15:40:05', 28); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (27, 31, 'Issue with login credentials', '2024-09-12 22:29:38', 17); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (28, 81, 'Need help setting up new device', '2024-03-22 15:32:19', 24); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (29, 46, 'Network connectivity issues', '2024-06-19 19:16:20', 16); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (30, 39, 'Lost files', '2024-10-21 21:48:55', 23); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (31, 22, 'Software update needed', '2024-10-18 13:41:46', 5); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (32, 80, 'Data backup request', '2024-07-03 07:46:01', 12); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (33, 35, 'Email not syncing', '2024-10-31 12:28:35', 18); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (34, 45, 'Error message on screen', '2024-03-21 23:01:22', 3); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (35, 63, 'Printer not working', '2024-03-31 09:18:41', 27); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (36, 35, 'Data backup request', '2024-01-01 14:19:33', 9); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (37, 94, 'Data backup request', '2024-01-22 02:11:10', 14); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (38, 36, 'Virus detected on device', '2024-04-21 20:32:07', 22); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (39, 37, 'Need help setting up new device', '2023-12-14 19:54:52', 1); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (40, 65, 'Need help with troubleshooting', '2024-05-23 17:51:25', 30); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (41, 92, 'Account locked', '2024-11-23 02:47:21', 8); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (42, 80, 'Issue with login credentials', '2024-10-22 06:51:05', 20); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (43, 85, 'Need help setting up new device', '2024-07-11 14:32:57', 11); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (44, 22, 'Email not sending', '2024-11-02 23:03:10', 25); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (45, 49, 'Device not turning on', '2024-11-11 06:37:15', 7); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (46, 15, 'Error message on screen', '2024-04-01 19:44:01', 15); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (47, 70, 'Account locked', '2023-12-05 15:00:08', 29); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (48, 87, 'Software update needed', '2024-08-22 03:59:14', 4); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (49, 82, 'Device not turning on', '2024-03-26 07:03:27', 19); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (50, 2, 'Virus detected on device', '2024-03-01 14:51:56', 10); - -- Events insert into Events (EventID, CommunityID, Date, Name, Description) values (1, 10, '2024-04-21', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); insert into Events (EventID, CommunityID, Date, Name, Description) values (2, 1, '2024-06-01', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); From c68c70c68aadddfad4e227ef8d2a65ef863e7393 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 16:09:32 -0500 Subject: [PATCH 129/305] 223 --- SyncSpace.sql | 1 - api/app.py | 30 +- api/backend/db_connection/__init__.py | 27 +- api/backend/db_connection/db_config.py | 14 + api/backend/rest_entry.py | 53 +- api/backend/students/student_routes.py | 10 +- api/backend_app.py | 13 +- api/requirements.txt | 2 + database-files/SyncSpace-data.sql | 1222 ++++++++++++++++-------- database-files/SyncSpace.sql | 2 +- 10 files changed, 887 insertions(+), 487 deletions(-) delete mode 100644 SyncSpace.sql create mode 100644 api/backend/db_connection/db_config.py diff --git a/SyncSpace.sql b/SyncSpace.sql deleted file mode 100644 index 0519ecba6e..0000000000 --- a/SyncSpace.sql +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/api/app.py b/api/app.py index 2b62e4b106..34e7d11ce2 100644 --- a/api/app.py +++ b/api/app.py @@ -1,32 +1,14 @@ from flask import Flask -from backend.students.student_routes import students # Correct import path +from backend.db_connection import init_app +from backend.students.student_routes import students app = Flask(__name__) -# Add some debug endpoints -@app.route('/') -def hello(): - return {"message": "API is running"} +# Initialize database +init_app(app) -@app.route('/debug/routes') -def list_routes(): - routes = [] - for rule in app.url_map.iter_rules(): - routes.append({ - "endpoint": rule.endpoint, - "methods": list(rule.methods), - "path": str(rule) - }) - return {"routes": routes} - -# Register the blueprint with a prefix +# Register blueprints app.register_blueprint(students, url_prefix='/api') -# Add debug logging -app.logger.setLevel('DEBUG') - if __name__ == '__main__': - print("Available routes:") - for rule in app.url_map.iter_rules(): - print(f"{rule.endpoint}: {rule}") - app.run(host='0.0.0.0', port=4000, debug=True) \ No newline at end of file + app.run(host='0.0.0.0', port=4000) \ No newline at end of file diff --git a/api/backend/db_connection/__init__.py b/api/backend/db_connection/__init__.py index fe568586a1..b7a5fb690c 100644 --- a/api/backend/db_connection/__init__.py +++ b/api/backend/db_connection/__init__.py @@ -3,8 +3,29 @@ #------------------------------------------------------------ from flaskext.mysql import MySQL from pymysql import cursors +from flask import current_app +print("Loading db_connection/__init__.py...") -# the parameter instructs the connection to return data -# as a dictionary object. -db = MySQL(cursorclass=cursors.DictCursor) \ No newline at end of file +try: + from .db_config import DB_CONFIG + print("Successfully imported DB_CONFIG") +except ImportError as e: + print(f"Error importing DB_CONFIG: {e}") + raise + +# Initialize MySQL with dictionary cursor +db = MySQL(cursorclass=cursors.DictCursor) + +def init_app(app): + print("Initializing database connection...") + # Configure database connection + app.config['MYSQL_DATABASE_HOST'] = DB_CONFIG['host'] + app.config['MYSQL_DATABASE_USER'] = DB_CONFIG['user'] + app.config['MYSQL_DATABASE_PASSWORD'] = DB_CONFIG['password'] + app.config['MYSQL_DATABASE_PORT'] = DB_CONFIG['port'] + app.config['MYSQL_DATABASE_DB'] = DB_CONFIG['database'] + + # Initialize the MySQL connection + db.init_app(app) + print("Database connection initialized") \ No newline at end of file diff --git a/api/backend/db_connection/db_config.py b/api/backend/db_connection/db_config.py new file mode 100644 index 0000000000..9fa6750cfb --- /dev/null +++ b/api/backend/db_connection/db_config.py @@ -0,0 +1,14 @@ +from os import getenv + +print("Loading db_config.py...") + +# Database configuration +DB_CONFIG = { + 'host': getenv('DB_HOST', 'db'), + 'user': getenv('DB_USER', 'root'), + 'password': getenv('MYSQL_ROOT_PASSWORD', 'password123'), + 'port': int(getenv('DB_PORT', 3306)), + 'database': getenv('DB_NAME', 'SyncSpace') +} + +print(f"DB_CONFIG loaded: {DB_CONFIG}") \ No newline at end of file diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 7f9472189b..94c279daa7 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -1,50 +1,17 @@ from flask import Flask - -from backend.db_connection import db -from backend.customers.customer_routes import customers -from backend.products.products_routes import products -from backend.simple.simple_routes import simple_routes +from flask_cors import CORS +from backend.db_connection import init_app from backend.students.student_routes import students -import os -from dotenv import load_dotenv def create_app(): app = Flask(__name__) - - # Load environment variables - # This function reads all the values from inside - # the .env file (in the parent folder) so they - # are available in this file. See the MySQL setup - # commands below to see how they're being used. - load_dotenv() - - # secret key that will be used for securely signing the session - # cookie and can be used for any other security related needs by - # extensions or your application - # app.config['SECRET_KEY'] = 'someCrazyS3cR3T!Key.!' - app.config['SECRET_KEY'] = os.getenv('SECRET_KEY') - - # # these are for the DB object to be able to connect to MySQL. - # app.config['MYSQL_DATABASE_USER'] = 'root' - app.config['MYSQL_DATABASE_USER'] = os.getenv('DB_USER').strip() - app.config['MYSQL_DATABASE_PASSWORD'] = os.getenv('MYSQL_ROOT_PASSWORD').strip() - app.config['MYSQL_DATABASE_HOST'] = os.getenv('DB_HOST').strip() - app.config['MYSQL_DATABASE_PORT'] = int(os.getenv('DB_PORT').strip()) - app.config['MYSQL_DATABASE_DB'] = os.getenv('DB_NAME').strip() # Change this to your DB name - - # Initialize the database object with the settings above. - app.logger.info('current_app(): starting the database connection') - db.init_app(app) - - - # Register the routes from each Blueprint with the app object - # and give a url prefix to each - app.logger.info('current_app(): registering blueprints with Flask app object.') - app.register_blueprint(simple_routes) - app.register_blueprint(customers, url_prefix='/c') - app.register_blueprint(products, url_prefix='/p') - app.register_blueprint(students, url_prefix='/api') - - # Don't forget to return the app object + CORS(app) + + # Initialize database + init_app(app) + + # Register blueprints + app.register_blueprint(students, url_prefix='/api') + return app diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 92190de958..fe5f0ae6aa 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -25,10 +25,18 @@ def get_all_students(): for row in cursor.fetchall(): results.append(dict(zip(columns, row))) + # Add debug logging + print(f"Query results: {results}") + return jsonify(results), 200 except Exception as e: - return jsonify({"error": str(e)}), 500 + # Enhanced error logging + print(f"Database error: {str(e)}") + return jsonify({ + "error": str(e), + "type": type(e).__name__ + }), 500 @students.route('/students//reminders', methods=['GET']) def get_student_reminders(student_id): diff --git a/api/backend_app.py b/api/backend_app.py index d8c57c27eb..b3acee0fb5 100644 --- a/api/backend_app.py +++ b/api/backend_app.py @@ -1,17 +1,6 @@ -### -# Main application interface -### - -# import the create app function -# that lives in src/__init__.py from backend.rest_entry import create_app -# create the app object app = create_app() if __name__ == '__main__': - # we want to run in debug mode (for hot reloading) - # this app will be bound to port 4000. - # Take a look at the docker-compose.yml to see - # what port this might be mapped to... - app.run(debug = True, host = '0.0.0.0', port = 4000) + app.run(host='0.0.0.0', port=4000, debug=True) diff --git a/api/requirements.txt b/api/requirements.txt index 00befef797..22506ef6ca 100644 --- a/api/requirements.txt +++ b/api/requirements.txt @@ -6,3 +6,5 @@ flask-mysql==1.5.2 cryptography==38.0.1 python-dotenv==1.0.1 numpy==1.26.4 +flask-cors +pymysql diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 6bf6e6a496..0b210f522c 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -1,412 +1,776 @@ USE SyncSpace; --- CityCommunity Data -insert into CityCommunity (CommunityID, Location) values (1, 'San Francisco'); -insert into CityCommunity (CommunityID, Location) values (2, 'San Jose'); -insert into CityCommunity (CommunityID, Location) values (3, 'Los Angeles'); -insert into CityCommunity (CommunityID, Location) values (4, 'London'); -insert into CityCommunity (CommunityID, Location) values (5, 'Boston'); -insert into CityCommunity (CommunityID, Location) values (6, 'New York City'); -insert into CityCommunity (CommunityID, Location) values (7, 'Chicago'); -insert into CityCommunity (CommunityID, Location) values (8, 'Seattle'); -insert into CityCommunity (CommunityID, Location) values (9, 'D.C.'); -insert into CityCommunity (CommunityID, Location) values (10, 'Atlanta'); +-- 1. CityCommunity Data (no dependencies) +insert into CityCommunity (Location) values ('San Francisco'); +insert into CityCommunity (Location) values ('San Jose'); +insert into CityCommunity (Location) values ('Los Angeles'); +insert into CityCommunity (Location) values ('London'); +insert into CityCommunity (Location) values ('Boston'); +insert into CityCommunity (Location) values ('New York City'); +insert into CityCommunity (Location) values ('Chicago'); +insert into CityCommunity (Location) values ('Seattle'); +insert into CityCommunity (Location) values ('D.C.'); +insert into CityCommunity (Location) values ('Atlanta'); +-- 2. Housing Data (depends on CityCommunity) +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Dormitory', 'San Francisco', 1); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Apartment', 'San Jose', 2); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Fraternity/Sorority House', 'Los Angeles', 3); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Off-Campus House', 'London', 4); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Townhouse', 'Boston', 5); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Co-op Housing', 'New York City', 6); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Tiny House', 'Chicago', 7); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Loft', 'Seattle', 8); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Studio Apartment', 'D.C.', 9); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Shared Room', 'San Francisco', 10); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Dormitory', 'San Jose', 11); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Apartment', 'Los Angeles', 12); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Fraternity/Sorority House', 'London', 13); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Off-Campus House', 'Boston', 14); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Townhouse', 'New York City', 15); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Co-op Housing', 'Chicago', 16); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Tiny House', 'Seattle', 17); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Loft', 'D.C.', 18); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Studio Apartment', 'San Francisco', 19); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Shared Room', 'San Jose', 20); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Dormitory', 'Los Angeles', 21); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Apartment', 'London', 22); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Fraternity/Sorority House', 'Boston', 23); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Off-Campus House', 'New York City', 24); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Townhouse', 'Chicago', 25); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Co-op Housing', 'Seattle', 26); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Tiny House', 'D.C.', 27); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Loft', 'San Francisco', 28); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Studio Apartment', 'San Jose', 29); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Shared Room', 'Los Angeles', 30); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Dormitory', 'London', 31); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Apartment', 'Boston', 32); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Fraternity/Sorority House', 'New York City', 33); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Off-Campus House', 'Chicago', 34); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Townhouse', 'Seattle', 35); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Co-op Housing', 'D.C.', 36); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Tiny House', 'San Francisco', 37); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Loft', 'San Jose', 38); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Studio Apartment', 'Los Angeles', 39); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Shared Room', 'London', 40); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Dormitory', 'Boston', 41); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Apartment', 'New York City', 42); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Fraternity/Sorority House', 'Chicago', 43); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Off-Campus House', 'Seattle', 44); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Townhouse', 'D.C.', 45); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Co-op Housing', 'San Francisco', 46); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Tiny House', 'San Jose', 47); +insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Loft', 'Los Angeles', 48); +insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Studio Apartment', 'London', 49); +insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Shared Room', 'Boston', 50); --- Housing Data -insert into Housing (HousingID, Availability, Style, Location) values (1, 'Vacant', 'Dormitory', 'San Francisco'); -insert into Housing (HousingID, Availability, Style, Location) values (2, 'Occupied', 'Apartment', 'San Jose'); -insert into Housing (HousingID, Availability, Style, Location) values (3, 'Pending approval', 'Fraternity/Sorority House', 'Los Angeles'); -insert into Housing (HousingID, Availability, Style, Location) values (4, 'Vacant', 'Off-Campus House', 'London'); -insert into Housing (HousingID, Availability, Style, Location) values (5, 'Occupied', 'Townhouse', 'Boston'); -insert into Housing (HousingID, Availability, Style, Location) values (6, 'Pending approval', 'Co-op Housing', 'New York City'); -insert into Housing (HousingID, Availability, Style, Location) values (7, 'Vacant', 'Tiny House', 'Chicago'); -insert into Housing (HousingID, Availability, Style, Location) values (8, 'Occupied', 'Loft', 'Seattle'); -insert into Housing (HousingID, Availability, Style, Location) values (9, 'Pending approval', 'Studio Apartment', 'D.C.'); -insert into Housing (HousingID, Availability, Style, Location) values (10, 'Vacant', 'Shared Room', 'San Francisco'); -insert into Housing (HousingID, Availability, Style, Location) values (11, 'Occupied', 'Dormitory', 'San Jose'); -insert into Housing (HousingID, Availability, Style, Location) values (12, 'Pending approval', 'Apartment', 'Los Angeles'); -insert into Housing (HousingID, Availability, Style, Location) values (13, 'Vacant', 'Fraternity/Sorority House', 'London'); -insert into Housing (HousingID, Availability, Style, Location) values (14, 'Occupied', 'Off-Campus House', 'Boston'); -insert into Housing (HousingID, Availability, Style, Location) values (15, 'Pending approval', 'Townhouse', 'New York City'); -insert into Housing (HousingID, Availability, Style, Location) values (16, 'Vacant', 'Co-op Housing', 'Chicago'); -insert into Housing (HousingID, Availability, Style, Location) values (17, 'Occupied', 'Tiny House', 'Seattle'); -insert into Housing (HousingID, Availability, Style, Location) values (18, 'Pending approval', 'Loft', 'D.C.'); -insert into Housing (HousingID, Availability, Style, Location) values (19, 'Vacant', 'Studio Apartment', 'San Francisco'); -insert into Housing (HousingID, Availability, Style, Location) values (20, 'Occupied', 'Shared Room', 'San Jose'); -insert into Housing (HousingID, Availability, Style, Location) values (21, 'Pending approval', 'Dormitory', 'Los Angeles'); -insert into Housing (HousingID, Availability, Style, Location) values (22, 'Vacant', 'Apartment', 'London'); -insert into Housing (HousingID, Availability, Style, Location) values (23, 'Occupied', 'Fraternity/Sorority House', 'Boston'); -insert into Housing (HousingID, Availability, Style, Location) values (24, 'Pending approval', 'Off-Campus House', 'New York City'); -insert into Housing (HousingID, Availability, Style, Location) values (25, 'Vacant', 'Townhouse', 'Chicago'); -insert into Housing (HousingID, Availability, Style, Location) values (26, 'Occupied', 'Co-op Housing', 'Seattle'); -insert into Housing (HousingID, Availability, Style, Location) values (27, 'Pending approval', 'Tiny House', 'D.C.'); -insert into Housing (HousingID, Availability, Style, Location) values (28, 'Vacant', 'Loft', 'San Francisco'); -insert into Housing (HousingID, Availability, Style, Location) values (29, 'Occupied', 'Studio Apartment', 'San Jose'); -insert into Housing (HousingID, Availability, Style, Location) values (30, 'Pending approval', 'Shared Room', 'Los Angeles'); -insert into Housing (HousingID, Availability, Style, Location) values (31, 'Vacant', 'Dormitory', 'London'); -insert into Housing (HousingID, Availability, Style, Location) values (32, 'Occupied', 'Apartment', 'Boston'); -insert into Housing (HousingID, Availability, Style, Location) values (33, 'Pending approval', 'Fraternity/Sorority House', 'New York City'); -insert into Housing (HousingID, Availability, Style, Location) values (34, 'Vacant', 'Off-Campus House', 'Chicago'); -insert into Housing (HousingID, Availability, Style, Location) values (35, 'Occupied', 'Townhouse', 'Seattle'); -insert into Housing (HousingID, Availability, Style, Location) values (36, 'Pending approval', 'Co-op Housing', 'D.C.'); -insert into Housing (HousingID, Availability, Style, Location) values (37, 'Vacant', 'Tiny House', 'San Francisco'); -insert into Housing (HousingID, Availability, Style, Location) values (38, 'Occupied', 'Loft', 'San Jose'); -insert into Housing (HousingID, Availability, Style, Location) values (39, 'Pending approval', 'Studio Apartment', 'Los Angeles'); -insert into Housing (HousingID, Availability, Style, Location) values (40, 'Vacant', 'Shared Room', 'London'); -insert into Housing (HousingID, Availability, Style, Location) values (41, 'Occupied', 'Dormitory', 'Boston'); -insert into Housing (HousingID, Availability, Style, Location) values (42, 'Pending approval', 'Apartment', 'New York City'); -insert into Housing (HousingID, Availability, Style, Location) values (43, 'Vacant', 'Fraternity/Sorority House', 'Chicago'); -insert into Housing (HousingID, Availability, Style, Location) values (44, 'Occupied', 'Off-Campus House', 'Seattle'); -insert into Housing (HousingID, Availability, Style, Location) values (45, 'Pending approval', 'Townhouse', 'D.C.'); -insert into Housing (HousingID, Availability, Style, Location) values (46, 'Vacant', 'Co-op Housing', 'San Francisco'); -insert into Housing (HousingID, Availability, Style, Location) values (47, 'Occupied', 'Tiny House', 'San Jose'); -insert into Housing (HousingID, Availability, Style, Location) values (48, 'Pending approval', 'Loft', 'Los Angeles'); -insert into Housing (HousingID, Availability, Style, Location) values (49, 'Vacant', 'Studio Apartment', 'London'); -insert into Housing (HousingID, Availability, Style, Location) values (50, 'Occupied', 'Shared Room', 'Boston'); +-- 3. User Data (no dependencies) +insert into User (Name, Email, Role, PermissionsLevel) values ('Michael Ortega', 'miortega@wikispaces.com', 'System Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Mira Lynock', 'mlynock1@webnode.com', 'IT Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Caro Molnar', 'cmolnar2@digg.com', 'IT Administrator', 'limited'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Christos Boulsher', 'cboulsher3@admin.ch', 'System Administrator', 'guest'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jess Leneve', 'jleneve4@archive.org', 'IT Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jordan Harfoot', 'jharfoot5@1688.com', 'IT Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Yorke Leyzell', 'yleyzell6@cmu.edu', 'Network Administrator', 'guest'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Sigrid Kigelman', 'skigelman7@washington.edu', 'System Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Feodora Blackaller', 'fblackaller8@usnews.com', 'Network Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Ambrose Jeandon', 'ajeandon9@unicef.org', 'Network Administrator', 'guest'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Spence Chastey', 'schasteya@china.com.cn', 'System Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Eartha Colqueran', 'ecolqueranb@apple.com', 'System Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Kinna Woolsey', 'kwoolseyc@homestead.com', 'IT Administrator', 'moderator'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Nathan Tolworthie', 'ntolworthied@spotify.com', 'System Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Diane Cancellieri', 'dcancellierie@qq.com', 'Network Administrator', 'limited'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Horatio Purdon', 'hpurdonf@histats.com', 'IT Administrator', 'guest'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Elvin Danes', 'edanesg@japanpost.jp', 'Network Administrator', 'moderator'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Dori Callow', 'dcallowh@mac.com', 'IT Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Ediva Malter', 'emalteri@craigslist.org', 'IT Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Lyn Paskerful', 'lpaskerfulj@yellowpages.com', 'System Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Arleta Clayden', 'aclaydenk@discovery.com', 'System Administrator', 'guest'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Marietta Ropars', 'mroparsl@purevolume.com', 'Network Administrator', 'moderator'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Brade O''Rodane', 'borodanem@sohu.com', 'Network Administrator', 'admin'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Cammy Crichmere', 'ccrichmeren@mediafire.com', 'Network Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Elwira Szymanzyk', 'eszymanzyko@noaa.gov', 'System Administrator', 'limited'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Lorenzo Duerdin', 'lduerdinp@java.com', 'System Administrator', 'moderator'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Austin Latchmore', 'alatchmoreq@pen.io', 'IT Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Park Brettell', 'pbrettellr@reddit.com', 'Network Administrator', 'guest'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Bess MacMichael', 'bmacmichaels@spotify.com', 'System Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Pedro Gatherer', 'pgatherert@vkontakte.ru', 'IT Administrator', 'user'); +insert into User (Name, Email, Role, PermissionsLevel) values ('Thaddus Pettiford', 'bpettiford@cargocollective.com', 'Business', 'hasCar', 2500, '4 months', 'Disorganized', 'Active', 55, 7, 'Comic book store owner selling rare and collectible comics', 1, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Aprilette Kidd', 'akidd@cargocollective.com', 'Computer Science', 'notInterested', 2000, '6 months', 'Disorganized', 'Extroverted', 75, 6, 'Chess master competing in international tournaments and championships', 2, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Simone Fishbourne', 'sfishbourne@cargocollective.com', 'Art', 'complete', 1600, '6 months', 'Disorganized', 'Adventurous', 30, 7, 'Music aficionado attending concerts and music festivals', 5, null, 5); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jonis MacAlaster', 'jmacalaster@cargocollective.com', 'Finance', 'hasCar', 170, '6 months', 'Messy', 'Quiet', 40, 3, 'Yoga studio owner providing classes in relaxation and mindfulness', 2, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Collette Lazenby', 'clazenby@cargocollective.com', 'Finance', 'hasCar', 3000, '4 months', 'Cluttered', 'Quiet', 15, 4, 'Firefighter captain leading a team in emergency response and rescue', 10, null, 6); +insert into User (Name, Email, Role, PermissionsLevel) values ('Conn Dullard', 'cdullard@cargocollective.com', 'Business', 'searchingForCarpool', 2500, '6 months', 'Moderate', 'Adventurous', 55, 7, 'Cycling coach developing training programs for cyclists', 9, null, 1); +insert into User (Name, Email, Role, PermissionsLevel) values ('Everard Benedito', 'ebenedito@cargocollective.com', 'Computer Science', 'complete', 1600, '6 months', 'Messy', 'Outdoorsy', 20, 1, 'Dance choreographer creating routines for performances', 7, null, 9); +insert into User (Name, Email, Role, PermissionsLevel) values ('Roman Wais', 'rwais@cargocollective.com', 'Law', 'hasCar', 1350, '1 year', 'Very Clean', 'Introverted', 5, 5, 'Loves hiking and exploring nature trails', 3, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Wynne Codrington', 'wcodrington@cargocollective.com', 'Art', 'notInterested', 1200, '4 months', 'Messy', 'Social', 60, 3, 'Hiking tour guide leading groups on scenic hikes and treks', 9, null, 1); +insert into User (Name, Email, Role, PermissionsLevel) values ('Paten Paskell', 'ppaskell@cargocollective.com', 'Art', 'hasCar', 1800, '1 year', 'Cluttered', 'Extroverted', 30, 7, 'Fashion designer creating unique clothing and accessories', 8, null, 5); +insert into User (Name, Email, Role, PermissionsLevel) values ('Dewey Tubby', 'dtubby@cargocollective.com', 'Mathematics', 'hasCar', 170, '6 months', 'Cluttered', 'Active', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 10, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Banky Tapenden', 'btapenden@cargocollective.com', 'Computer Science', 'complete', 1800, '6 months', 'Messy', 'Active', 45, 6, 'Motorcycle rider exploring scenic routes on two wheels', 4, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Worden Gansbuhler', 'wgansbuhler@cargocollective.com', 'Biology', 'searchingForCarpool', 1900, '1 year', 'Cluttered', 'Introverted', 15, 6, 'Travel blogger sharing adventures and tips with readers', 8, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Barbara Brenneke', 'bbrenneke@cargocollective.com', 'Computer Science', 'complete', 1200, '6 months', 'Clean', 'Active', 5, 6, 'Dedicated yogi practicing mindfulness and meditation', 8, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Kimbra Absolon', 'kabsolon@cargocollective.com', 'Mathematics', 'notInterested', 1350, '1 year', 'Moderate', 'Active', 75, 5, 'Environmental advocate promoting conservation and eco-friendly practices', 9, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jayson Eitter', 'jeitter@cargocollective.com', 'Business', 'hasCar', 1150, '6 months', 'Moderate', 'Adventurous', 15, 4, 'Astrologer providing readings and insights based on celestial movements', 3, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Leonie McGenn', 'lmcgenn@cargocollective.com', 'Finance', 'complete', 170, '1 year', 'Moderate', 'Social', 25, 1, 'Comic book collector preserving rare editions and memorabilia', 2, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Andriette Playhill', 'aplayhill@cargocollective.com', 'Art', 'complete', 1150, '4 months', 'Messy', 'Outdoorsy', 35, 5, 'Antique dealer specializing in unique and valuable antiques', 9, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Deena Peirce', 'dpeirce@cargocollective.com', 'Physics', 'hasCar', 1600, '4 months', 'Messy', 'Outdoorsy', 45, 2, 'Vintage car collector restoring classic automobiles', 10, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Worthy Schreurs', 'wschreurs@cargocollective.com', 'Chemistry', 'notInterested', 1000, '4 months', 'Clean', 'Extroverted', 10, 3, 'Foodie exploring different cuisines and restaurants', 2, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Gabriel Dedrick', 'gdedrick@cargocollective.com', 'Business', 'searchingForCarpool', 3000, '1 year', 'Moderate', 'Quiet', 20, 6, 'Dance choreographer creating routines for performances', 4, null, 9); +insert into User (Name, Email, Role, PermissionsLevel) values ('Dixie Delgardo', 'ddelgardo@cargocollective.com', 'Computer Science', 'notInterested', 2000, '6 months', 'Clean', 'Introverted', 40, 1, 'Crafting enthusiast creating handmade gifts and decorations', 6, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Amargo Weatherill', 'aweatherill@cargocollective.com', 'Finance', 'searchingForCarpool', 1150, '6 months', 'Moderate', 'Adventurous', 10, 3, 'Antique dealer specializing in unique and valuable antiques', 2, null, 5); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jack Amos', 'jamos@cargocollective.com', 'Finance', 'complete', 1900, '1 year', 'Clean', 'Quiet', 60, 7, 'Scuba diver exploring underwater ecosystems and marine life', 9, null, 9); +insert into User (Name, Email, Role, PermissionsLevel) values ('Alis Trimbey', 'atrimbey@cargocollective.com', 'Law', 'searchingForCarpool', 1000, '6 months', 'Cluttered', 'Quiet', 25, 1, 'Hiking guide leading groups on challenging mountain trails', 5, null, 6); +insert into User (Name, Email, Role, PermissionsLevel) values ('Kacey Outram', 'koutram@cargocollective.com', 'Computer Science', 'complete', 1000, '6 months', 'Disorganized', 'Outdoorsy', 35, 6, 'Devoted animal lover volunteering at shelters', 8, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Maddie Rodda', 'mrodda@cargocollective.com', 'Mathematics', 'searchingForCarpool', 1350, '6 months', 'Disorganized', 'Extroverted', 35, 1, 'Dedicated yogi practicing mindfulness and meditation', 7, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Vivianna Propper', 'vpropper@cargocollective.com', 'Computer Science', 'searchingForRoommates', 170, '4 months', 'Messy', 'Introverted', 35, 6, 'Marathon runner training for long-distance races', 4, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Hebert Jurries', 'hjurries@cargocollective.com', 'Physics', 'searchingForCarpool', 1200, '4 months', 'Moderate', 'Extroverted', 15, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Dorothee Tomaini', 'dtomaini@cargocollective.com', 'Biology', 'notInterested', 1000, '1 year', 'Disorganized', 'Introverted', 45, 5, 'Book publisher releasing new titles and bestsellers', 1, null, 5); +insert into User (Name, Email, Role, PermissionsLevel) values ('Kaiser Chitter', 'kchitter@cargocollective.com', 'Physics', 'complete', 1800, '1 year', 'Messy', 'Extroverted', 10, 1, 'Surfing school owner offering lessons and rentals for surfers', 1, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jerry Himsworth', 'jhimsworth@cargocollective.com', 'Mathematics', 'notInterested', 3000, '6 months', 'Very Clean', 'Quiet', 5, 1, 'Rock climbing coach training climbers on techniques and safety', 2, null, 5); +insert into User (Name, Email, Role, PermissionsLevel) values ('Delcina Lies', 'dlies@cargocollective.com', 'Psychology', 'hasCar', 1150, '4 months', 'Clean', 'Extroverted', 30, 3, 'Passionate about cooking and trying new recipes', 6, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Britni Cowden', 'bcowden@cargocollective.com', 'Finance', 'searchingForCarpool', 1200, '6 months', 'Very Clean', 'Social', 20, 7, 'Birdwatching guide leading tours to spot rare and exotic birds', 2, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Reinald Swancock', 'rswancock@cargocollective.com', 'Finance', 'hasCar', 1600, '6 months', 'Clean', 'Outdoorsy', 30, 3, 'Gardening expert cultivating a lush and vibrant garden', 8, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Adel Gatsby', 'agatsby@cargocollective.com', 'Business', 'searchingForRoommates', 2500, '6 months', 'Very Clean', 'Outdoorsy', 40, 7, 'Sports journalist reporting on games and athletes', 4, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Stace Muffett', 'smuffett@cargocollective.com', 'Psychology', 'searchingForCarpool', 3000, '4 months', 'Very Clean', 'Extroverted', 15, 4, 'Dance studio owner providing classes in various dance styles', 3, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Ardelis Benoey', 'abenoey@cargocollective.com', 'Art', 'complete', 1150, '4 months', 'Disorganized', 'Quiet', 5, 1, 'Dance enthusiast taking classes in various styles', 10, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Allan Ivoshin', 'aivoshin@cargocollective.com', 'Computer Science', 'notInterested', 1800, '6 months', 'Cluttered', 'Outdoorsy', 10, 2, 'Dedicated yogi practicing mindfulness and meditation', 4, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Brandea Blance', 'bblance@cargocollective.com', 'Finance', 'notInterested', 1200, '6 months', 'Disorganized', 'Outdoorsy', 60, 2, 'Motorcycle racer competing in races and rallies', 3, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Charil Staresmeare', 'cstaresmeare@cargocollective.com', 'Biology', 'notInterested', 1600, '4 months', 'Moderate', 'Active', 35, 3, 'Birdwatcher spotting rare species in their natural habitats', 5, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Fleming Wardlow', 'fwardlow@cargocollective.com', 'Physics', 'complete', 1900, '6 months', 'Disorganized', 'Social', 5, 4, 'Fitness instructor leading group exercise classes', 2, null, 5); +insert into User (Name, Email, Role, PermissionsLevel) values ('Marillin Peasnone', 'mpeasnone@cargocollective.com', 'Computer Science', 'searchingForCarpool', 1200, '4 months', 'Disorganized', 'Social', 40, 1, 'Travel blogger sharing adventures and tips with readers', 7, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Fidel Dootson', 'fdootson@cargocollective.com', 'Mathematics', 'notInterested', 2000, '6 months', 'Disorganized', 'Introverted', 45, 1, 'Tech geek experimenting with the latest gadgets and software', 9, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Arturo Gerling', 'agerling@cargocollective.com', 'Physics', 'notInterested', 3000, '1 year', 'Very Clean', 'Introverted', 30, 1, 'Dance choreographer creating routines for performances', 1, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Leopold Tremble', 'ltremble@cargocollective.com', 'Chemistry', 'notInterested', 2500, '4 months', 'Messy', 'Outdoorsy', 10, 6, 'Sailing captain leading sailing expeditions and charters', 3, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Channa Pitrelli', 'cpitrelli@cargocollective.com', 'Art', 'complete', 170, '6 months', 'Cluttered', 'Quiet', 75, 4, 'Art collector acquiring works from emerging and established artists', 4, null, 6); +insert into User (Name, Email, Role, PermissionsLevel) values ('Rochella Ranns', 'rranns@cargocollective.com', 'Chemistry', 'complete', 2000, '4 months', 'Messy', 'Introverted', 75, 3, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Fae Maffione', 'fmaffione@cargocollective.com', 'Computer Science', 'complete', 1150, '6 months', 'Cluttered', 'Quiet', 55, 5, 'Vintage car restorer refurbishing classic vehicles to their former glory', 9, null, 1); +insert into User (Name, Email, Role, PermissionsLevel) values ('Nealson Coundley', 'ncoundley@cargocollective.com', 'Art', 'hasCar', 2000, '1 year', 'Very Clean', 'Adventurous', 30, 7, 'History buff visiting museums and historical sites', 1, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jaimie Tappin', 'jtappin@cargocollective.com', 'Biology', 'searchingForCarpool', 2000, '4 months', 'Clean', 'Social', 45, 7, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 3, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Susanna Pykerman', 'spykerman@cargocollective.com', 'Law', 'complete', 2000, '6 months', 'Clean', 'Adventurous', 30, 3, 'Avid collector of vintage vinyl records', 7, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Leda Standish-Brooks', 'lstandishbrooks@cargocollective.com', 'Law', 'hasCar', 2500, '1 year', 'Messy', 'Introverted', 60, 1, 'Sports fan cheering for their favorite teams at games', 9, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Alfredo Verling', 'averling@cargocollective.com', 'Physics', 'notInterested', 1200, '4 months', 'Very Clean', 'Social', 55, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Kristina Orteu', 'korte@cargocollective.com', 'Chemistry', 'complete', 1600, '4 months', 'Moderate', 'Introverted', 15, 5, 'Crafting enthusiast creating handmade gifts and decorations', 3, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Darcee Itzkowicz', 'ditzkowicz@cargocollective.com', 'Chemistry', 'hasCar', 170, '6 months', 'Very Clean', 'Introverted', 5, 2, 'Chess master competing in international tournaments and championships', 10, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Brigg Braidley', 'bbraidley@cargocollective.com', 'Biology', 'searchingForCarpool', 1600, '4 months', 'Very Clean', 'Introverted', 55, 1, 'Environmental advocate promoting conservation and eco-friendly practices', 7, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jade Waplington', 'jwaplington@cargocollective.com', 'Finance', 'hasCar', 2500, '4 months', 'Very Clean', 'Introverted', 30, 6, 'Environmental advocate promoting conservation and eco-friendly practices', 4, null, 9); +insert into User (Name, Email, Role, PermissionsLevel) values ('Claire Mallender', 'cmallender@cargocollective.com', 'Biology', 'complete', 1200, '6 months', 'Disorganized', 'Active', 10, 6, 'Vintage car restorer refurbishing classic vehicles to their former glory', 1, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Wileen Loveman', 'wloveman@cargocollective.com', 'Biology', 'complete', 3000, '4 months', 'Very Clean', 'Social', 20, 6, 'History professor researching and teaching historical events', 2, null, 1); +insert into User (Name, Email, Role, PermissionsLevel) values ('Shannon Eagar', 'seagar@cargocollective.com', 'Chemistry', 'complete', 1000, '1 year', 'Cluttered', 'Adventurous', 30, 2, 'Sailing captain leading sailing expeditions and charters', 8, null, 1); +insert into User (Name, Email, Role, PermissionsLevel) values ('Nikita Ferronet', 'nferonet@cargocollective.com', 'Computer Science', 'complete', 2000, '6 months', 'Clean', 'Social', 5, 1, 'Vintage car collector restoring classic automobiles', 3, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Quinn Corner', 'qcorner@cargocollective.com', 'Biology', 'complete', 1800, '1 year', 'Cluttered', 'Active', 20, 1, 'Gaming streamer broadcasting gameplay and interacting with viewers', 3, null, 9); +insert into User (Name, Email, Role, PermissionsLevel) values ('Hewie Speek', 'hspeek@cargocollective.com', 'Art', 'complete', 2000, '1 year', 'Moderate', 'Adventurous', 75, 1, 'Antique dealer specializing in unique and valuable antiques', 5, null, 6); +insert into User (Name, Email, Role, PermissionsLevel) values ('Ronica Maplethorp', 'rmaplethorp@cargocollective.com', 'Law', 'searchingForRoommates', 1800, '4 months', 'Cluttered', 'Social', 10, 2, 'Travel blogger sharing adventures and tips with readers', 10, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Blair Shedden', 'bshedden@cargocollective.com', 'Physics', 'searchingForCarpool', 2000, '6 months', 'Disorganized', 'Extroverted', 25, 4, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Nolly Petry', 'npetry@cargocollective.com', 'Law', 'complete', 1000, '6 months', 'Disorganized', 'Social', 55, 5, 'Fashion designer creating unique clothing and accessories', 5, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Flemming Gatecliffe', 'fgatecliffe@cargocollective.com', 'Computer Science', 'notInterested', 170, '1 year', 'Cluttered', 'Introverted', 75, 2, 'Tech entrepreneur developing innovative solutions and products', 9, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Prince Stickells', 'pstickells@cargocollective.com', 'Finance', 'hasCar', 2500, '4 months', 'Cluttered', 'Social', 30, 1, 'Dance choreographer creating routines for performances', 9, null, 5); +insert into User (Name, Email, Role, PermissionsLevel) values ('Moselle Huddy', 'mhuudy@cargocollective.com', 'Biology', 'searchingForHousing', 1350, '4 months', 'Disorganized', 'Social', 5, 2, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 4, null, 10); +insert into User (Name, Email, Role, PermissionsLevel) values ('Fraser Crippill', 'fcrippill@cargocollective.com', 'Physics', 'notInterested', 1900, '1 year', 'Disorganized', 'Extroverted', 15, 2, 'Environmental advocate promoting conservation and eco-friendly practices', 10, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Jenda Wrinch', 'jwrinch@cargocollective.com', 'Psychology', 'complete', 1000, '6 months', 'Very Clean', 'Outdoorsy', 35, 1, 'Gardening expert cultivating a lush and vibrant garden', 9, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Corliss Lavallie', 'clavallie@cargocollective.com', 'Chemistry', 'hasCar', 2500, '6 months', 'Clean', 'Social', 55, 2, 'History buff visiting museums and historical sites', 1, null, 6); +insert into User (Name, Email, Role, PermissionsLevel) values ('Ivonne Wickrath', 'iwickrath@cargocollective.com', 'Art', 'complete', 3000, '4 months', 'Moderate', 'Quiet', 75, 7, 'Keen gardener growing a variety of fruits and vegetables', 7, null, 6); +insert into User (Name, Email, Role, PermissionsLevel) values ('Pearline Grumell', 'pgrumell@cargocollective.com', 'Chemistry', 'complete', 3000, '6 months', 'Messy', 'Social', 30, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 5, null, 1); +insert into User (Name, Email, Role, PermissionsLevel) values ('Susannah Raddan', 'sraddan@cargocollective.com', 'Art', 'hasCar', 1800, '4 months', 'Clean', 'Adventurous', 75, 5, 'Book publisher releasing new titles and bestsellers', 5, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Delila Coulbeck', 'doulbeck@cargocollective.com', 'Psychology', 'complete', 2500, '4 months', 'Cluttered', 'Active', 45, 2, 'Wine connoisseur tasting and collecting fine wines', 2, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Berton Harmeston', 'bharmeston@cargocollective.com', 'Biology', 'hasCar', 1000, '1 year', 'Moderate', 'Quiet', 60, 1, 'Vintage car collector restoring classic automobiles', 8, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Donalt Gunning', 'dgunning@cargocollective.com', 'Finance', 'notInterested', 1200, '4 months', 'Clean', 'Quiet', 30, 2, 'Astrologer providing readings and insights based on celestial movements', 9, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Tymon Neilus', 'tneilus@cargocollective.com', 'Biology', 'complete', 1600, '4 months', 'Cluttered', 'Quiet', 30, 7, 'Soccer coach training players on skills and strategies for the game', 9, null, 6); +insert into User (Name, Email, Role, PermissionsLevel) values ('Leoine Oswell', 'loswell@cargocollective.com', 'Art', 'complete', 1150, '1 year', 'Messy', 'Social', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 9, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Gerry Gatecliff', 'ggatecliff@cargocollective.com', 'Finance', 'searchingForCarpool', 1600, '1 year', 'Clean', 'Outdoorsy', 45, 6, 'Sports commentator providing analysis and commentary on games', 9, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Marissa Broun', 'mbroun@cargocollective.com', 'Finance', 'complete', 3000, '1 year', 'Cluttered', 'Extroverted', 45, 1, 'Obsessed with DIY home improvement projects', 6, null, 8); +insert into User (Name, Email, Role, PermissionsLevel) values ('Letty Mewton', 'lmeeton@cargocollective.com', 'Physics', 'complete', 1150, '4 months', 'Moderate', 'Quiet', 45, 5, 'Music festival organizer planning and coordinating live music events', 9, null, 7); +insert into User (Name, Email, Role, PermissionsLevel) values ('Arthur Gave', 'agave@cargocollective.com', 'Business', 'notInterested', 2500, '6 months', 'Disorganized', 'Extroverted', 40, 3, 'Fitness influencer inspiring followers with workout routines and tips', 3, null, 3); +insert into User (Name, Email, Role, PermissionsLevel) values ('Joleen Satterly', 'jsatterly@cargocollective.com', 'Physics', 'searchingForHousing', 1600, '6 months', 'Moderate', 'Adventurous', 75, 4, 'Rock climbing coach training climbers on techniques and safety', 9, null, 2); +insert into User (Name, Email, Role, PermissionsLevel) values ('Wheeler Martynka', 'wmartynka@cargocollective.com', 'Business', 'searchingForCarpool', 1350, '6 months', 'Disorganized', 'Adventurous', 10, 5, 'Rock climbing coach training climbers on techniques and safety', 5, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Marys Hannaby', 'mhanaby@cargocollective.com', 'Art', 'searchingForHousing', 170, '1 year', 'Cluttered', 'Active', 30, 6, 'Surfing enthusiast catching waves at the beach', 10, null, 4); +insert into User (Name, Email, Role, PermissionsLevel) values ('Ariel Gabotti', 'agabotti@cargocollective.com', 'Biology', 'complete', 3000, '1 year', 'Moderate', 'Introverted', 60, 6, 'Soccer coach training players on skills and strategies for the game', 1, null, 9); --- User data -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (1, 'Michael Ortega', 'miortega@wikispaces.com', 'System Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (2, 'Mira Lynock', 'mlynock1@webnode.com', 'IT Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (3, 'Caro Molnar', 'cmolnar2@digg.com', 'IT Administrator', 'limited'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (4, 'Christos Boulsher', 'cboulsher3@admin.ch', 'System Administrator', 'guest'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (5, 'Jess Leneve', 'jleneve4@archive.org', 'IT Administrator', 'user'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (6, 'Jordan Harfoot', 'jharfoot5@1688.com', 'IT Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (7, 'Yorke Leyzell', 'yleyzell6@cmu.edu', 'Network Administrator', 'guest'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (8, 'Sigrid Kigelman', 'skigelman7@washington.edu', 'System Administrator', 'user'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (9, 'Feodora Blackaller', 'fblackaller8@usnews.com', 'Network Administrator', 'user'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (10, 'Ambrose Jeandon', 'ajeandon9@unicef.org', 'Network Administrator', 'guest'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (11, 'Spence Chastey', 'schasteya@china.com.cn', 'System Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (12, 'Eartha Colqueran', 'ecolqueranb@apple.com', 'System Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (13, 'Kinna Woolsey', 'kwoolseyc@homestead.com', 'IT Administrator', 'moderator'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (14, 'Nathan Tolworthie', 'ntolworthied@spotify.com', 'System Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (15, 'Diane Cancellieri', 'dcancellierie@qq.com', 'Network Administrator', 'limited'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (16, 'Horatio Purdon', 'hpurdonf@histats.com', 'IT Administrator', 'guest'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (17, 'Elvin Danes', 'edanesg@japanpost.jp', 'Network Administrator', 'moderator'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (18, 'Dori Callow', 'dcallowh@mac.com', 'IT Administrator', 'user'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (19, 'Ediva Malter', 'emalteri@craigslist.org', 'IT Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (20, 'Lyn Paskerful', 'lpaskerfulj@yellowpages.com', 'System Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (21, 'Arleta Clayden', 'aclaydenk@discovery.com', 'System Administrator', 'guest'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (22, 'Marietta Ropars', 'mroparsl@purevolume.com', 'Network Administrator', 'moderator'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (23, 'Brade O''Rodane', 'borodanem@sohu.com', 'Network Administrator', 'admin'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (24, 'Cammy Crichmere', 'ccrichmeren@mediafire.com', 'Network Administrator', 'user'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (25, 'Elwira Szymanzyk', 'eszymanzyko@noaa.gov', 'System Administrator', 'limited'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (26, 'Lorenzo Duerdin', 'lduerdinp@java.com', 'System Administrator', 'moderator'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (27, 'Austin Latchmore', 'alatchmoreq@pen.io', 'IT Administrator', 'user'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (28, 'Park Brettell', 'pbrettellr@reddit.com', 'Network Administrator', 'guest'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (29, 'Bess MacMichael', 'bmacmichaels@spotify.com', 'System Administrator', 'user'); -insert into User (UserID, Name, Email, Role, PermissionsLevel) values (30, 'Pedro Gatherer', 'pgatherert@vkontakte.ru', 'IT Administrator', 'user'); +-- 4. Advisor Data (no dependencies) +insert into Advisor (Name, Email, Department) values ('John Smith', 'jsmith@university.edu', 'Computer Science'); +insert into Advisor (Name, Email, Department) values ('Sarah Johnson', 'sjohnson@university.edu', 'Engineering'); +insert into Advisor (Name, Email, Department) values ('Jessica Doofenshmirtz', 'gmccard0@nps.gov', 'Khoury College', 8); +insert into Advisor (Name, Email, Department, StudentID) values ('Babbette Marle', 'bmarle1@bbc.co.uk', 'College of Engineering', 50); +insert into Advisor (Name, Email, Department, StudentID) values ('Lena Graver', 'lgraver2@creativecommons.org', 'D''Amore Mc-Kim', 99); +insert into Advisor (Name, Email, Department, StudentID) values ('Kevina Garden', 'kgarden3@sina.com.cn', 'College of Science', 38); +insert into Advisor (Name, Email, Department, StudentID) values ('Cathryn Tatershall', 'ctatershall4@free.fr', 'Bouve College', 14); +insert into Advisor (Name, Email, Department, StudentID) values ('Domingo Stanlick', 'dstanlick5@arstechnica.com', 'College of Science', 77); +insert into Advisor (Name, Email, Department, StudentID) values ('Joyous Ferby', 'jferby6@yahoo.com', 'Khoury College', 91); +insert into Advisor (Name, Email, Department, StudentID) values ('Thibaut Biles', 'tbiles7@4shared.com', 'College of Engineering', 17); +insert into Advisor (Name, Email, Department, StudentID) values ('Tana Roblou', 'troblou8@cargocollective.com', 'D''Amore Mc-Kim', 26); +insert into Advisor (Name, Email, Department, StudentID) values ('Sheridan Gunny', 'sgunny9@arizona.edu', 'College of Science', 65); --- Ticket -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (1, 1, 'search function not working', 'completed', 'Medium', '2024-04-05', '2024-02-04'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (2, 2, 'payment processing error', 'completed', 'Medium', '2024-10-02', '2024-05-15'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (3, 3, 'video playback issue', 'cancelled', 'Low', '2024-05-21', '2024-06-08'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (4, 4, 'page not loading', 'cancelled', 'High', '2024-05-30', '2024-03-22'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (5, 5, 'broken link', 'cancelled', 'High', '2023-12-26', '2024-11-23'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (6, 6, 'payment processing error', 'pending', 'High', '2024-02-12', '2024-01-19'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (7, 7, 'missing images', 'pending', 'Low', '2024-07-18', '2024-06-13'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (8, 8, 'incorrect password', 'pending', 'Medium', '2024-07-29', '2024-01-02'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (9, 9, 'login error', 'completed', 'Medium', '2024-02-22', '2024-09-28'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (10, 10, 'page not loading', 'pending', 'High', '2024-07-24', '2024-05-24'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (11, 11, 'search function not working', 'pending', 'High', '2024-01-25', '2024-07-07'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (12, 12, 'payment processing error', 'cancelled', 'Low', '2024-05-25', '2024-05-22'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (13, 13, 'formatting problem', 'pending', 'Low', '2024-01-12', '2024-09-08'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (14, 14, 'missing images', 'cancelled', 'Low', '2024-01-12', '2024-01-18'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (15, 15, 'search function not working', 'cancelled', 'Medium', '2024-01-03', '2024-05-23'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (16, 16, 'slow performance', 'completed', 'Low', '2024-02-16', '2024-09-30'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (17, 17, 'slow performance', 'pending', 'High', '2024-03-27', '2024-07-02'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (18, 18, 'payment processing error', 'pending', 'Medium', '2024-08-14', '2024-10-16'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (19, 19, 'payment processing error', 'pending', 'Medium', '2024-08-20', '2024-10-06'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (20, 20, 'missing images', 'pending', 'High', '2024-08-12', '2024-11-14'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (21, 21, 'broken link', 'pending', 'Medium', '2024-01-15', '2024-04-20'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (22, 22, 'payment processing error', 'pending', 'Low', '2023-12-09', '2024-01-23'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (23, 23, 'search function not working', 'completed', 'Medium', '2024-02-05', '2024-02-18'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (24, 24, 'formatting problem', 'completed', 'Low', '2024-04-06', '2024-08-09'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (25, 25, 'video playback issue', 'pending', 'High', '2024-08-22', '2024-08-19'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (26, 26, 'search function not working', 'pending', 'Medium', '2024-07-19', '2024-09-25'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (27, 27, 'broken link', 'cancelled', 'High', '2024-05-20', '2024-01-22'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (28, 28, 'broken link', 'cancelled', 'High', '2024-07-23', '2023-12-03'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (29, 29, 'broken link', 'pending', 'Low', '2024-10-16', '2024-07-15'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (30, 30, 'login error', 'completed', 'Low', '2024-07-08', '2024-03-14'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (31, 31, 'formatting problem', 'cancelled', 'High', '2024-11-02', '2024-02-13'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (32, 32, 'incorrect password', 'cancelled', 'Medium', '2024-05-02', '2024-01-02'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (33, 33, 'missing images', 'completed', 'Low', '2024-03-28', '2024-03-10'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (34, 34, 'slow performance', 'completed', 'High', '2024-07-04', '2024-03-22'); -insert into Ticket (TicketID, UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); +-- 5. Student Data (depends on CityCommunity, Housing, and Advisor) +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Leland Izaks', 'Computer Science', 'Eire', 'San Jose', 'Searching for Housing', + 'Not Interested', 1350, '1 year', 'Cluttered', 'Social', 15, 1, + 'Gamer immersing themselves in virtual worlds and online competitions', 1, 1, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Demetris Dury', 'Computer Science', 'Photospace', 'San Jose', 'Searching for Roommates', + 'Searching for Carpool', 1800, '4 months', 'Moderate', 'Active', 75, 2, + 'Music festival organizer planning and coordinating live music events', 2, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Zelig Matuszinski', 'Physics', 'Podcat', 'London', 'Not Interested', + 'Not Interested', 3000, '4 months', 'Moderate', 'Quiet', 55, 1, + 'Wine connoisseur tasting and collecting fine wines', 3, 3, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Lonni Duke', 'Business', 'Jabbercube', 'Boston', 'Searching for Housing', + 'Not Interested', 1150, '4 months', 'Disorganized', 'Introverted', 45, 3, + 'Avid collector of vintage vinyl records', 4, 4, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Gannie Dearness', 'Business', 'Youspan', 'San Jose', 'Searching for Roommates', + 'Searching for Carpool', 2000, '6 months', 'Cluttered', 'Extroverted', 75, 1, + 'Sailing captain leading sailing expeditions and charters', 5, 5, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Garnet Mathieson', 'Chemistry', 'Realbuzz', 'London', 'Complete', + 'Searching for Carpool', 1350, '6 months', 'Clean', 'Adventurous', 45, 7, + 'Vintage car collector restoring classic automobiles', 6, 6, 6); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Valeria Algore', 'Psychology', 'Quimba', 'Seattle', 'Searching for Housing', + 'Has Car', 1600, '6 months', 'Very Clean', 'Adventurous', 40, 4, + 'Travel photographer capturing stunning landscapes and cultures', 7, 7, 7); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Lita Delahunty', 'Biology', 'Fivebridge', 'Los Angeles', 'Searching for Roommates', + 'Not Interested', 1800, '4 months', 'Moderate', 'Quiet', 40, 7, + 'Tech geek experimenting with the latest gadgets and software', 8, 8, 8); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Tanitansy Wallhead', 'Computer Science', 'Kanoodle', 'London', 'Searching for Housing', + 'Searching for Carpool', 1200, '6 months', 'Moderate', 'Outdoorsy', 55, 4, + 'Dance studio owner providing classes in various dance styles', 9, 9, 9); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Fleur Vitet', 'Psychology', 'Shuffledrive', 'D.C.', 'Searching for Housing', + 'Has Car', 2000, '4 months', 'Disorganized', 'Quiet', 10, 4, + 'Soccer player training for matches and tournaments', 10, 10, 10); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Celie Franchi', 'Finance', 'Jaxspan', 'Seattle', 'Searching for Housing', + 'Has Car', 2500, '1 year', 'Messy', 'Extroverted', 5, 5, + 'Dance choreographer creating routines for performances', 11, 11, 11); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Thaddus Pettiford', 'Business', 'Meejo', 'San Francisco', 'Not Interested', + 'Has Car', 2500, '4 months', 'Disorganized', 'Active', 55, 7, + 'Comic book store owner selling rare and collectible comics', 12, 12, 12); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Aprilette Kidd', 'Computer Science', 'Kaymbo', 'San Francisco', 'Not Interested', + 'Complete', 2000, '6 months', 'Disorganized', 'Extroverted', 75, 6, + 'Chess master competing in international tournaments and championships', 13, 13, 13); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Simone Fishbourne', 'Art', 'Gigabox', 'Los Angeles', 'Searching for Roommates', + 'Complete', 1600, '6 months', 'Disorganized', 'Adventurous', 30, 7, + 'Music aficionado attending concerts and music festivals', 14, 14, 14); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Jonis MacAlaster', 'Finance', 'Babbleblab', 'San Jose', 'Searching for Roommates', + 'Has Car', 170, '6 months', 'Messy', 'Quiet', 40, 3, + 'Yoga studio owner providing classes in relaxation and mindfulness', 15, 15, 15); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Collette Lazenby', 'Finance', 'Gigaclub', 'D.C.', 'Searching for Housing', + 'Has Car', 3000, '4 months', 'Cluttered', 'Quiet', 15, 4, + 'Firefighter captain leading a team in emergency response and rescue', 16, 16, 16); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Conn Dullard', 'Business', 'Feednation', 'New York City', 'Not Interested', + 'Searching for Carpool', 2500, '6 months', 'Moderate', 'Adventurous', 55, 7, + 'Cycling coach developing training programs for cyclists', 17, 17, 17); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Everard Benedito', 'Computer Science', 'Zoomcast', 'San Francisco', 'Searching for Housing', + 'Complete', 1600, '6 months', 'Messy', 'Outdoorsy', 20, 1, + 'Dance choreographer creating routines for performances', 18, 18, 18); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Roman Wais', 'Law', 'Eire', 'Atlanta', 'Complete', 'Has Car', 1350, '1 year', 'Very Clean', 'Introverted', 5, 5, + 'Loves hiking and exploring nature trails', 19, 19, 19); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Wynne Codrington', 'Art', 'Topiczoom', 'San Jose', 'Not Interested', + 'Not Interested', 1200, '4 months', 'Messy', 'Social', 60, 3, + 'Hiking tour guide leading groups on scenic hikes and treks', 20, 20, 20); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Paten Paskell', 'Art', 'Plambee', 'New York City', 'Searching for Roommates', + 'Has Car', 1800, '1 year', 'Cluttered', 'Extroverted', 30, 7, + 'Fashion designer creating unique clothing and accessories', 21, 21, 21); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Dewey Tubby', 'Mathematics', 'Miboo', 'Los Angeles', 'Not Interested', + 'Has Car', 170, '6 months', 'Cluttered', 'Active', 45, 5, + 'Antique enthusiast scouring flea markets for hidden treasures', 22, 22, 22); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Banky Tapenden', 'Computer Science', 'Yozio', 'Atlanta', 'Complete', + 'Searching for Carpool', 1800, '6 months', 'Messy', 'Active', 45, 6, + 'Motorcycle rider exploring scenic routes on two wheels', 23, 23, 23); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Worden Gansbuhler', 'Biology', 'Zoomlounge', 'New York City', 'Searching for Housing', + 'Searching for Carpool', 1900, '1 year', 'Cluttered', 'Introverted', 15, 6, + 'Travel blogger sharing adventures and tips with readers', 24, 24, 24); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Barbara Brenneke', 'Computer Science', 'Meetz', 'Seattle', 'Searching for Housing', + 'Complete', 1200, '6 months', 'Clean', 'Active', 5, 6, + 'Dedicated yogi practicing mindfulness and meditation', 25, 25, 25); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Kimbra Absolon', 'Mathematics', 'Shuffletag', 'San Francisco', 'Not Interested', + 'Not Interested', 1350, '1 year', 'Moderate', 'Active', 75, 5, + 'Environmental advocate promoting conservation and eco-friendly practices', 26, 26, 26); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Jayson Eitter', 'Business', 'Brainlounge', 'Atlanta', 'Searching for Housing', + 'Has Car', 1150, '6 months', 'Moderate', 'Adventurous', 15, 4, + 'Astrologer providing readings and insights based on celestial movements', 27, 27, 27); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Leonie McGenn', 'Finance', 'Mita', 'Boston', 'Searching for Housing', + 'Complete', 170, '1 year', 'Moderate', 'Social', 25, 1, + 'Comic book collector preserving rare editions and memorabilia', 28, 28, 28); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Andriette Playhill', 'Art', 'Roombo', 'London', 'Not Interested', + 'Complete', 1150, '4 months', 'Messy', 'Outdoorsy', 35, 5, + 'Antique dealer specializing in unique and valuable antiques', 29, 29, 29); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Deena Peirce', 'Physics', 'Yodel', 'Boston', 'Complete', 'Has Car', 1600, '4 months', + 'Messy', 'Outdoorsy', 45, 2, 'Vintage car collector restoring classic automobiles', 30, 30, 30); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Worthy Schreurs', 'Chemistry', 'Topicblab', 'Chicago', 'Complete', + 'Not Interested', 1000, '4 months', 'Clean', 'Extroverted', 10, 3, + 'Foodie exploring different cuisines and restaurants', 31, 31, 31); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Gabriel Dedrick', 'Business', 'Flipbug', 'Atlanta', 'Searching for Housing', + 'Searching for Carpool', 3000, '1 year', 'Moderate', 'Quiet', 20, 6, + 'Dance choreographer creating routines for performances', 32, 32, 32); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Dixie Delgardo', 'Computer Science', 'Trunyx', 'D.C.', 'Searching for Housing', + 'Not Interested', 2000, '6 months', 'Clean', 'Introverted', 40, 1, + 'Crafting enthusiast creating handmade gifts and decorations', 33, 33, 33); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Amargo Weatherill', 'Finance', 'Browsecat', 'San Francisco', 'Not Interested', + 'Searching for Carpool', 1150, '6 months', 'Moderate', 'Adventurous', 10, 3, + 'Antique dealer specializing in unique and valuable antiques', 34, 34, 34); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Jack Amos', 'Finance', 'Eimbee', 'San Jose', 'Not Interested', 'Complete', 1900, '1 year', 'Clean', 'Quiet', 60, 7, + 'Scuba diver exploring underwater ecosystems and marine life', 35, 35, 35); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Alis Trimbey', 'Law', 'Devpulse', 'New York City', 'Searching for Roommates', + 'Searching for Carpool', 1000, '6 months', 'Cluttered', 'Quiet', 25, 1, + 'Hiking guide leading groups on challenging mountain trails', 36, 36, 36); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Kacey Outram', 'Computer Science', 'Gigazoom', 'San Jose', 'Complete', + 'Searching for Carpool', 1000, '6 months', 'Disorganized', 'Outdoorsy', 35, 6, + 'Devoted animal lover volunteering at shelters', 37, 37, 37); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Maddie Rodda', 'Mathematics', 'Dabjam', 'San Jose', 'Searching for Roommates', + 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Extroverted', 35, 1, + 'Dedicated yogi practicing mindfulness and meditation', 38, 38, 38); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Vivianna Propper', 'Computer Science', 'Thoughtmix', 'London', 'Searching for Roommates', + 'Searching for Carpool', 170, '4 months', 'Messy', 'Introverted', 35, 6, + 'Marathon runner training for long-distance races', 39, 39, 39); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Hebert Jurries', 'Physics', 'Avamm', 'Los Angeles', 'Searching for Roommates', + 'Searching for Carpool', 1200, '4 months', 'Moderate', 'Extroverted', 15, 7, + 'Photography teacher instructing students on composition and lighting', 40, 40, 40); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Dorothee Tomaini', 'Biology', 'Rhybox', 'Chicago', 'Not Interested', + 'Not Interested', 1000, '1 year', 'Disorganized', 'Introverted', 45, 5, + 'Book publisher releasing new titles and bestsellers', 41, 41, 41); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Kaiser Chitter', 'Physics', 'Thoughtbridge', 'Seattle', 'Searching for Housing', + 'Complete', 1800, '1 year', 'Messy', 'Extroverted', 10, 1, + 'Surfing school owner offering lessons and rentals for surfers', 42, 42, 42); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Jerry Himsworth', 'Mathematics', 'Quatz', 'Boston', 'Searching for Housing', + 'Not Interested', 3000, '6 months', 'Very Clean', 'Quiet', 5, 1, + 'Rock climbing coach training climbers on techniques and safety', 43, 43, 43); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Delcina Lies', 'Psychology', 'Dynabox', 'San Francisco', 'Not Interested', + 'Has Car', 1150, '4 months', 'Clean', 'Extroverted', 30, 3, + 'Passionate about cooking and trying new recipes', 44, 44, 44); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Britni Cowden', 'Finance', 'Tagtune', 'Atlanta', 'Not Interested', + 'Searching for Carpool', 1200, '6 months', 'Very Clean', 'Social', 20, 7, + 'Birdwatching guide leading tours to spot rare and exotic birds', 45, 45, 45); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Reinald Swancock', 'Finance', 'Thoughtstorm', 'San Jose', 'Searching for Roommates', + 'Has Car', 1600, '6 months', 'Clean', 'Outdoorsy', 30, 3, + 'Gardening expert cultivating a lush and vibrant garden', 46, 46, 46); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Adel Gatsby', 'Business', 'Yodo', 'Atlanta', 'Searching for Roommates', + 'Searching for Carpool', 2500, '6 months', 'Very Clean', 'Outdoorsy', 40, 7, + 'Sports journalist reporting on games and athletes', 47, 47, 47); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Stace Muffett', 'Psychology', 'Midel', 'San Francisco', 'Not Interested', + 'Searching for Carpool', 3000, '4 months', 'Very Clean', 'Extroverted', 15, 4, + 'Dance studio owner providing classes in various dance styles', 48, 48, 48); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Ardelis Benoey', 'Art', 'Aimbu', 'Seattle', 'Complete', 'Searching for Carpool', + 1150, '4 months', 'Disorganized', 'Quiet', 5, 1, 'Dance enthusiast taking classes in various styles', 49, 49, 49); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Allan Ivoshin', 'Computer Science', 'JumpXS', 'Los Angeles', 'Not Interested', + 'Complete', 1800, '6 months', 'Cluttered', 'Outdoorsy', 10, 2, + 'Dedicated yogi practicing mindfulness and meditation', 50, 50, 50); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Brandea Blance', 'Finance', 'Meembee', 'San Jose', 'Searching for Housing', + 'Not Interested', 1200, '6 months', 'Disorganized', 'Outdoorsy', 60, 2, + 'Motorcycle racer competing in races and rallies', 51, 51, 51); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Charil Staresmeare', 'Biology', 'Meembee', 'San Francisco', 'Not Interested', + 'Not Interested', 1600, '4 months', 'Moderate', 'Active', 35, 3, + 'Birdwatcher spotting rare species in their natural habitats', 52, 52, 52); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Fleming Wardlow', 'Physics', 'Youopia', 'Seattle', 'Complete', 'Complete', + 1900, '6 months', 'Disorganized', 'Social', 5, 4, 'Fitness instructor leading group exercise classes', 53, 53, 53); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Marillin Peasnone', 'Computer Science', 'Wordpedia', 'Seattle', 'Searching for Housing', + 'Searching for Carpool', 1200, '4 months', 'Disorganized', 'Social', 40, 1, + 'Travel blogger sharing adventures and tips with readers', 54, 54, 54); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Fidel Dootson', 'Mathematics', 'Flipstorm', 'D.C.', 'Searching for Housing', + 'Not Interested', 2000, '6 months', 'Disorganized', 'Introverted', 45, 1, + 'Tech geek experimenting with the latest gadgets and software', 55, 55, 55); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Arturo Gerling', 'Physics', 'Photojam', 'D.C.', 'Not Interested', 'Complete', + 3000, '1 year', 'Very Clean', 'Introverted', 30, 1, 'Dance choreographer creating routines for performances', 56, 56, 56); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Leopold Tremble', 'Chemistry', 'Pixope', 'London', 'Searching for Roommates', + 'Not Interested', 2500, '4 months', 'Messy', 'Outdoorsy', 10, 6, + 'Sailing captain leading sailing expeditions and charters', 57, 57, 57); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Channa Pitrelli', 'Art', 'Dabvine', 'San Francisco', 'Searching for Roommates', + 'Complete', 170, '6 months', 'Cluttered', 'Quiet', 75, 4, + 'Art collector acquiring works from emerging and established artists', 58, 58, 58); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Rochella Ranns', 'Chemistry', 'JumpXS', 'Los Angeles', 'Searching for Housing', + 'Complete', 2000, '4 months', 'Messy', 'Introverted', 75, 3, + 'Tech geek experimenting with the latest gadgets and software', 59, 59, 59); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Fae Maffione', 'Computer Science', 'Twitternation', 'D.C.', 'Searching for Housing', + 'Complete', 1150, '6 months', 'Cluttered', 'Quiet', 55, 5, + 'Vintage car restorer refurbishing classic vehicles to their former glory', 60, 60, 60); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Nealson Coundley', 'Art', 'Linkbuzz', 'London', 'Complete', 'Has Car', + 2000, '1 year', 'Very Clean', 'Adventurous', 30, 7, 'History buff visiting museums and historical sites', 61, 61, 61); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Jaimie Tappin', 'Biology', 'Gigaclub', 'San Jose', 'Not Interested', + 'Searching for Carpool', 2000, '4 months', 'Clean', 'Social', 45, 7, + 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 62, 62, 62); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Susanna Pykerman', 'Law', 'Centidel', 'Chicago', 'Not Interested', + 'Searching for Carpool', 2000, '6 months', 'Clean', 'Adventurous', 30, 3, + 'Avid collector of vintage vinyl records', 63, 63, 63); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Leda Standish-Brooks', 'Law', 'Eabox', 'Los Angeles', 'Complete', 'Has Car', + 2500, '1 year', 'Messy', 'Introverted', 60, 1, 'Sports fan cheering for their favorite teams at games', 64, 64, 64); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Alfredo Verling', 'Physics', 'Livetube', 'San Jose', 'Complete', 'Not Interested', + 1200, '4 months', 'Very Clean', 'Social', 55, 7, 'Photography teacher instructing students on composition and lighting', 65, 65, 65); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Kristina Orteu', 'Chemistry', 'Skiptube', 'Los Angeles', 'Not Interested', + 'Complete', 1600, '4 months', 'Moderate', 'Introverted', 15, 5, + 'Crafting enthusiast creating handmade gifts and decorations', 66, 66, 66); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Darcee Itzkowicz', 'Chemistry', 'Fadeo', 'Chicago', 'Not Interested', 'Has Car', + 170, '6 months', 'Very Clean', 'Introverted', 5, 2, 'Chess master competing in international tournaments and championships', 67, 67, 67); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Brigg Braidley', 'Biology', 'Twimbo', 'Los Angeles', 'Complete', 'Searching for Carpool', + 1600, '4 months', 'Very Clean', 'Introverted', 55, 1, 'Environmental advocate promoting conservation and eco-friendly practices', 68, 68, 68); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Jade Waplington', 'Finance', 'Innotype', 'Atlanta', 'Not Interested', 'Has Car', + 2500, '4 months', 'Very Clean', 'Introverted', 30, 6, 'Environmental advocate promoting conservation and eco-friendly practices', 69, 69, 69); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Claire Mallender', 'Biology', 'Roombo', 'Chicago', 'Complete', 'Has Car', + 1200, '6 months', 'Disorganized', 'Active', 10, 6, 'Vintage car restorer refurbishing classic vehicles to their former glory', 70, 70, 70); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Wileen Loveman', 'Biology', 'Abata', 'Atlanta', 'Searching for Housing', + 'Complete', 3000, '4 months', 'Very Clean', 'Social', 20, 6, 'History professor researching and teaching historical events', 71, 71, 71); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Shannon Eagar', 'Chemistry', 'Skibox', 'London', 'Complete', 'Searching for Carpool', + 1000, '1 year', 'Cluttered', 'Adventurous', 30, 2, 'Sailing captain leading sailing expeditions and charters', 72, 72, 72); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Nikita Ferronet', 'Computer Science', 'Fadeo', 'Boston', 'Complete', 'Searching for Carpool', + 2000, '6 months', 'Clean', 'Social', 5, 1, 'Vintage car collector restoring classic automobiles', 73, 73, 73); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Quinn Corner', 'Biology', 'Meevee', 'New York City', 'Searching for Roommates', + 'Has Car', 1800, '1 year', 'Cluttered', 'Active', 20, 1, 'Gaming streamer broadcasting gameplay and interacting with viewers', 74, 74, 74); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Hewie Speek', 'Art', 'Einti', 'Seattle', 'Not Interested', 'Complete', + 2000, '1 year', 'Moderate', 'Adventurous', 75, 1, 'Antique dealer specializing in unique and valuable antiques', 75, 75, 75); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Ronica Maplethorp', 'Law', 'Skiba', 'D.C.', 'Searching for Roommates', + 'Searching for Carpool', 1800, '4 months', 'Cluttered', 'Social', 10, 2, + 'Travel blogger sharing adventures and tips with readers', 76, 76, 76); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Blair Shedden', 'Physics', 'Fanoodle', 'Seattle', 'Searching for Roommates', + 'Searching for Carpool', 2000, '6 months', 'Disorganized', 'Extroverted', 25, 4, + 'Tech geek experimenting with the latest gadgets and software', 77, 77, 77); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Nolly Petry', 'Law', 'Buzzster', 'Atlanta', 'Searching for Roommates', + 'Complete', 1000, '6 months', 'Disorganized', 'Social', 55, 5, 'Fashion designer creating unique clothing and accessories', 78, 78, 78); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Flemming Gatecliffe', 'Computer Science', 'Yombu', 'New York City', 'Not Interested', + 170, '1 year', 'Cluttered', 'Introverted', 75, 2, 'Tech entrepreneur developing innovative solutions and products', 79, 79, 79); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Prince Stickells', 'Finance', 'Dabfeed', 'Atlanta', 'Not Interested', 'Has Car', + 2500, '4 months', 'Cluttered', 'Social', 30, 1, 'Dance choreographer creating routines for performances', 80, 80, 80); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Moselle Huddy', 'Biology', 'Kare', 'Los Angeles', 'Searching for Housing', + 'Complete', 1350, '4 months', 'Disorganized', 'Social', 5, 2, + 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 81, 81, 81); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Fraser Crippill', 'Physics', 'Dynazzy', 'Los Angeles', 'Searching for Roommates', + 'Not Interested', 1900, '1 year', 'Disorganized', 'Extroverted', 15, 2, + 'Environmental advocate promoting conservation and eco-friendly practices', 82, 82, 82); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Jenda Wrinch', 'Psychology', 'Twinder', 'San Jose', 'Complete', 'Complete', + 1000, '6 months', 'Very Clean', 'Outdoorsy', 35, 1, 'Gardening expert cultivating a lush and vibrant garden', 83, 83, 83); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Corliss Lavallie', 'Chemistry', 'Geba', 'Boston', 'Searching for Housing', + 'Has Car', 2500, '6 months', 'Clean', 'Social', 55, 2, 'History buff visiting museums and historical sites', 84, 84, 84); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Ivonne Wickrath', 'Art', 'Divavu', 'London', 'Complete', 'Complete', + 3000, '4 months', 'Moderate', 'Quiet', 75, 7, 'Keen gardener growing a variety of fruits and vegetables', 85, 85, 85); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Pearline Grumell', 'Chemistry', 'Feedfish', 'Seattle', 'Not Interested', + 'Complete', 3000, '6 months', 'Messy', 'Social', 30, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 86, 86, 86); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Susannah Raddan', 'Art', 'Tazzy', 'D.C.', 'Complete', 'Has Car', + 1800, '4 months', 'Clean', 'Adventurous', 75, 5, 'Book publisher releasing new titles and bestsellers', 87, 87, 87); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Delila Coulbeck', 'Psychology', 'Demimbu', 'D.C.', 'Searching for Roommates', + 'Complete', 2500, '4 months', 'Cluttered', 'Active', 45, 2, 'Wine connoisseur tasting and collecting fine wines', 88, 88, 88); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Berton Harmeston', 'Biology', 'Janyx', 'Chicago', 'Searching for Roommates', + 'Has Car', 1000, '1 year', 'Moderate', 'Quiet', 60, 1, 'Vintage car collector restoring classic automobiles', 89, 89, 89); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Donalt Gunning', 'Finance', 'Riffpedia', 'Atlanta', 'Searching for Roommates', + 'Not Interested', 1200, '4 months', 'Clean', 'Quiet', 30, 2, 'Astrologer providing readings and insights based on celestial movements', 90, 90, 90); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Tymon Neilus', 'Biology', 'Pixope', 'New York City', 'Complete', 'Searching for Carpool', + 1600, '4 months', 'Cluttered', 'Quiet', 30, 7, 'Soccer coach training players on skills and strategies for the game', 91, 91, 91); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Leoine Oswell', 'Art', 'Skimia', 'Chicago', 'Complete', 'Not Interested', + 1150, '1 year', 'Messy', 'Social', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 92, 92, 92); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Gerry Gatecliff', 'Finance', 'Shufflebeat', 'San Jose', 'Searching for Housing', + 'Searching for Carpool', 1600, '1 year', 'Clean', 'Outdoorsy', 45, 6, + 'Sports commentator providing analysis and commentary on games', 93, 93, 93); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Marissa Broun', 'Finance', 'Quire', 'Seattle', 'Searching for Housing', + 'Complete', 3000, '1 year', 'Cluttered', 'Extroverted', 45, 1, 'Obsessed with DIY home improvement projects', 94, 94, 94); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Letty Mewton', 'Physics', 'Jabberbean', 'Atlanta', 'Complete', + 'Searching for Carpool', 1150, '4 months', 'Moderate', 'Quiet', 45, 5, + 'Music festival organizer planning and coordinating live music events', 95, 95, 95); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Arthur Gave', 'Business', 'Blogspan', 'San Francisco', 'Complete', 'Not Interested', + 2500, '6 months', 'Disorganized', 'Extroverted', 40, 3, 'Fitness influencer inspiring followers with workout routines and tips', 96, 96, 96); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Joleen Satterly', 'Physics', 'Oodoo', 'Chicago', 'Searching for Housing', + 'Searching for Carpool', 1600, '6 months', 'Moderate', 'Adventurous', 75, 4, 'Rock climbing coach training climbers on techniques and safety', 97, 97, 97); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Wheeler Martynka', 'Business', 'Rhynyx', 'London', 'Searching for Housing', + 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Adventurous', 10, 5, + 'Rock climbing coach training climbers on techniques and safety', 98, 98, 98); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Marys Hannaby', 'Art', 'Zazio', 'London', 'Searching for Housing', + 'Not Interested', 170, '1 year', 'Cluttered', 'Active', 30, 6, 'Surfing enthusiast catching waves at the beach', 99, 99, 99); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, + Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) +values ('Ariel Gabotti', 'Biology', 'Latz', 'San Jose', 'Complete', 'Complete', + 3000, '1 year', 'Moderate', 'Introverted', 60, 6, 'Soccer coach training players on skills and strategies for the game', 100, 100, 100); --- Student data -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leland Izaks', 'Computer Science', 'Eire', 'San Jose', 'Searching for Housing', 'Not Interested', 1350, '1 year', 'Cluttered', 'Social', 15, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 7, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Demetris Dury', 'Computer Science', 'Photospace', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1800, '4 months', 'Moderate', 'Active', 75, 2, 'Music festival organizer planning and coordinating live music events', 6, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Zelig Matuszinski', 'Physics', 'Podcat', 'London', 'Not Interested', 'Not Interested', 3000, '4 months', 'Moderate', 'Quiet', 55, 1, 'Wine connoisseur tasting and collecting fine wines', 5, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Lonni Duke', 'Business', 'Jabbercube', 'Boston', 'Searching for Housing', 'Not Interested', 1150, '4 months', 'Disorganized', 'Introverted', 45, 3, 'Avid collector of vintage vinyl records', 9, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gannie Dearness', 'Business', 'Youspan', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 2000, '6 months', 'Cluttered', 'Extroverted', 75, 1, 'Sailing captain leading sailing expeditions and charters', 4, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Garnet Mathieson', 'Chemistry', 'Realbuzz', 'London', 'Complete', 'Searching for Carpool', 1350, '6 months', 'Clean', 'Adventurous', 45, 7, 'Vintage car collector restoring classic automobiles', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Valeria Algore', 'Psychology', 'Quimba', 'Seattle', 'Searching for Housing', 'Has Car', 1600, '6 months', 'Very Clean', 'Adventurous', 40, 4, 'Travel photographer capturing stunning landscapes and cultures', 7, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Lita Delahunty', 'Biology', 'Fivebridge', 'Los Angeles', 'Searching for Roommates', 'Not Interested', 1800, '4 months', 'Moderate', 'Quiet', 40, 7, 'Tech geek experimenting with the latest gadgets and software', 3, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Tanitansy Wallhead', 'Computer Science', 'Kanoodle', 'London', 'Searching for Housing', 'Searching for Carpool', 1200, '6 months', 'Moderate', 'Outdoorsy', 55, 4, 'Dance studio owner providing classes in various dance styles', 1, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fleur Vitet', 'Psychology', 'Shuffledrive', 'D.C.', 'Searching for Housing', 'Has Car', 2000, '4 months', 'Disorganized', 'Quiet', 10, 4, 'Soccer player training for matches and tournaments', 3, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Celie Franchi', 'Finance', 'Jaxspan', 'Seattle', 'Searching for Housing', 'Has Car', 2500, '1 year', 'Messy', 'Extroverted', 5, 5, 'Dance choreographer creating routines for performances', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Thaddus Pettiford', 'Business', 'Meejo', 'San Francisco', 'Not Interested', 'Has Car', 2500, '4 months', 'Disorganized', 'Active', 55, 7, 'Comic book store owner selling rare and collectible comics', 1, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Aprilette Kidd', 'Computer Science', 'Kaymbo', 'San Francisco', 'Not Interested', 'Complete', 2000, '6 months', 'Disorganized', 'Extroverted', 75, 6, 'Chess master competing in international tournaments and championships', 2, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Simone Fishbourne', 'Art', 'Gigabox', 'Los Angeles', 'Searching for Roommates', 'Complete', 1600, '6 months', 'Disorganized', 'Adventurous', 30, 7, 'Music aficionado attending concerts and music festivals', 5, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jonis MacAlaster', 'Finance', 'Babbleblab', 'San Jose', 'Searching for Roommates', 'Has Car', 170, '6 months', 'Messy', 'Quiet', 40, 3, 'Yoga studio owner providing classes in relaxation and mindfulness', 2, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Collette Lazenby', 'Finance', 'Gigaclub', 'D.C.', 'Searching for Housing', 'Has Car', 3000, '4 months', 'Cluttered', 'Quiet', 15, 4, 'Firefighter captain leading a team in emergency response and rescue', 10, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Conn Dullard', 'Business', 'Feednation', 'New York City', 'Not Interested', 'Searching for Carpool', 2500, '6 months', 'Moderate', 'Adventurous', 55, 7, 'Cycling coach developing training programs for cyclists', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Everard Benedito', 'Computer Science', 'Zoomcast', 'San Francisco', 'Searching for Housing', 'Complete', 1600, '6 months', 'Messy', 'Outdoorsy', 20, 1, 'Dance choreographer creating routines for performances', 7, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Roman Wais', 'Law', 'Eire', 'Atlanta', 'Complete', 'Has Car', 1350, '1 year', 'Very Clean', 'Introverted', 5, 5, 'Loves hiking and exploring nature trails', 3, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wynne Codrington', 'Art', 'Topiczoom', 'San Jose', 'Not Interested', 'Not Interested', 1200, '4 months', 'Messy', 'Social', 60, 3, 'Hiking tour guide leading groups on scenic hikes and treks', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Paten Paskell', 'Art', 'Plambee', 'New York City', 'Searching for Roommates', 'Has Car', 1800, '1 year', 'Cluttered', 'Extroverted', 30, 7, 'Fashion designer creating unique clothing and accessories', 8, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dewey Tubby', 'Mathematics', 'Miboo', 'Los Angeles', 'Not Interested', 'Has Car', 170, '6 months', 'Cluttered', 'Active', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 10, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Banky Tapenden', 'Computer Science', 'Yozio', 'Atlanta', 'Complete', 'Searching for Carpool', 1800, '6 months', 'Messy', 'Active', 45, 6, 'Motorcycle rider exploring scenic routes on two wheels', 4, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Worden Gansbuhler', 'Biology', 'Zoomlounge', 'New York City', 'Searching for Housing', 'Searching for Carpool', 1900, '1 year', 'Cluttered', 'Introverted', 15, 6, 'Travel blogger sharing adventures and tips with readers', 8, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Barbara Brenneke', 'Computer Science', 'Meetz', 'Seattle', 'Searching for Housing', 'Complete', 1200, '6 months', 'Clean', 'Active', 5, 6, 'Dedicated yogi practicing mindfulness and meditation', 8, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kimbra Absolon', 'Mathematics', 'Shuffletag', 'San Francisco', 'Not Interested', 'Not Interested', 1350, '1 year', 'Moderate', 'Active', 75, 5, 'Environmental advocate promoting conservation and eco-friendly practices', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jayson Eitter', 'Business', 'Brainlounge', 'Atlanta', 'Searching for Housing', 'Has Car', 1150, '6 months', 'Moderate', 'Adventurous', 15, 4, 'Astrologer providing readings and insights based on celestial movements', 3, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leonie McGenn', 'Finance', 'Mita', 'Boston', 'Searching for Housing', 'Complete', 170, '1 year', 'Moderate', 'Social', 25, 1, 'Comic book collector preserving rare editions and memorabilia', 2, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Andriette Playhill', 'Art', 'Roombo', 'London', 'Not Interested', 'Complete', 1150, '4 months', 'Messy', 'Outdoorsy', 35, 5, 'Antique dealer specializing in unique and valuable antiques', 9, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Deena Peirce', 'Physics', 'Yodel', 'Boston', 'Complete', 'Has Car', 1600, '4 months', 'Messy', 'Outdoorsy', 45, 2, 'Vintage car collector restoring classic automobiles', 10, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Worthy Schreurs', 'Chemistry', 'Topicblab', 'Chicago', 'Complete', 'Not Interested', 1000, '4 months', 'Clean', 'Extroverted', 10, 3, 'Foodie exploring different cuisines and restaurants', 2, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gabriel Dedrick', 'Business', 'Flipbug', 'Atlanta', 'Searching for Housing', 'Searching for Carpool', 3000, '1 year', 'Moderate', 'Quiet', 20, 6, 'Dance choreographer creating routines for performances', 4, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dixie Delgardo', 'Computer Science', 'Trunyx', 'D.C.', 'Searching for Housing', 'Not Interested', 2000, '6 months', 'Clean', 'Introverted', 40, 1, 'Crafting enthusiast creating handmade gifts and decorations', 6, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Amargo Weatherill', 'Finance', 'Browsecat', 'San Francisco', 'Not Interested', 'Searching for Carpool', 1150, '6 months', 'Moderate', 'Adventurous', 10, 3, 'Antique dealer specializing in unique and valuable antiques', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jack Amos', 'Finance', 'Eimbee', 'San Jose', 'Not Interested', 'Complete', 1900, '1 year', 'Clean', 'Quiet', 60, 7, 'Scuba diver exploring underwater ecosystems and marine life', 9, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Alis Trimbey', 'Law', 'Devpulse', 'New York City', 'Searching for Roommates', 'Searching for Carpool', 1000, '6 months', 'Cluttered', 'Quiet', 25, 1, 'Hiking guide leading groups on challenging mountain trails', 5, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kacey Outram', 'Computer Science', 'Gigazoom', 'San Jose', 'Complete', 'Searching for Carpool', 1000, '6 months', 'Disorganized', 'Outdoorsy', 35, 6, 'Devoted animal lover volunteering at shelters', 8, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Maddie Rodda', 'Mathematics', 'Dabjam', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Extroverted', 35, 1, 'Dedicated yogi practicing mindfulness and meditation', 7, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Vivianna Propper', 'Computer Science', 'Thoughtmix', 'London', 'Searching for Roommates', 'Searching for Carpool', 170, '4 months', 'Messy', 'Introverted', 35, 6, 'Marathon runner training for long-distance races', 4, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Hebert Jurries', 'Physics', 'Avamm', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1200, '4 months', 'Moderate', 'Extroverted', 15, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Dorothee Tomaini', 'Biology', 'Rhybox', 'Chicago', 'Not Interested', 'Not Interested', 1000, '1 year', 'Disorganized', 'Introverted', 45, 5, 'Book publisher releasing new titles and bestsellers', 1, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kaiser Chitter', 'Physics', 'Thoughtbridge', 'Seattle', 'Searching for Housing', 'Complete', 1800, '1 year', 'Messy', 'Extroverted', 10, 1, 'Surfing school owner offering lessons and rentals for surfers', 1, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jerry Himsworth', 'Mathematics', 'Quatz', 'Boston', 'Searching for Housing', 'Not Interested', 3000, '6 months', 'Very Clean', 'Quiet', 5, 1, 'Rock climbing coach training climbers on techniques and safety', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Delcina Lies', 'Psychology', 'Dynabox', 'San Francisco', 'Not Interested', 'Has Car', 1150, '4 months', 'Clean', 'Extroverted', 30, 3, 'Passionate about cooking and trying new recipes', 6, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Britni Cowden', 'Finance', 'Tagtune', 'Atlanta', 'Not Interested', 'Searching for Carpool', 1200, '6 months', 'Very Clean', 'Social', 20, 7, 'Birdwatching guide leading tours to spot rare and exotic birds', 2, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Reinald Swancock', 'Finance', 'Thoughtstorm', 'San Jose', 'Searching for Roommates', 'Has Car', 1600, '6 months', 'Clean', 'Outdoorsy', 30, 3, 'Gardening expert cultivating a lush and vibrant garden', 8, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Adel Gatsby', 'Business', 'Yodo', 'Atlanta', 'Searching for Roommates', 'Searching for Carpool', 2500, '6 months', 'Very Clean', 'Outdoorsy', 40, 7, 'Sports journalist reporting on games and athletes', 4, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Stace Muffett', 'Psychology', 'Midel', 'San Francisco', 'Not Interested', 'Searching for Carpool', 3000, '4 months', 'Very Clean', 'Extroverted', 15, 4, 'Dance studio owner providing classes in various dance styles', 3, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ardelis Benoey', 'Art', 'Aimbu', 'Seattle', 'Complete', 'Searching for Carpool', 1150, '4 months', 'Disorganized', 'Quiet', 5, 1, 'Dance enthusiast taking classes in various styles', 10, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Allan Ivoshin', 'Computer Science', 'JumpXS', 'Los Angeles', 'Not Interested', 'Complete', 1800, '6 months', 'Cluttered', 'Outdoorsy', 10, 2, 'Dedicated yogi practicing mindfulness and meditation', 4, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Brandea Blance', 'Finance', 'Meembee', 'San Jose', 'Searching for Housing', 'Not Interested', 1200, '6 months', 'Disorganized', 'Outdoorsy', 60, 2, 'Motorcycle racer competing in races and rallies', 3, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Charil Staresmeare', 'Biology', 'Meembee', 'San Francisco', 'Not Interested', 'Not Interested', 1600, '4 months', 'Moderate', 'Active', 35, 3, 'Birdwatcher spotting rare species in their natural habitats', 5, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fleming Wardlow', 'Physics', 'Youopia', 'Seattle', 'Complete', 'Complete', 1900, '6 months', 'Disorganized', 'Social', 5, 4, 'Fitness instructor leading group exercise classes', 2, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marillin Peasnone', 'Computer Science', 'Wordpedia', 'Seattle', 'Searching for Housing', 'Searching for Carpool', 1200, '4 months', 'Disorganized', 'Social', 40, 1, 'Travel blogger sharing adventures and tips with readers', 7, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fidel Dootson', 'Mathematics', 'Flipstorm', 'D.C.', 'Searching for Housing', 'Not Interested', 2000, '6 months', 'Disorganized', 'Introverted', 45, 1, 'Tech geek experimenting with the latest gadgets and software', 9, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Arturo Gerling', 'Physics', 'Photojam', 'D.C.', 'Not Interested', 'Complete', 3000, '1 year', 'Very Clean', 'Introverted', 30, 1, 'Dance choreographer creating routines for performances', 1, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leopold Tremble', 'Chemistry', 'Pixope', 'London', 'Searching for Roommates', 'Not Interested', 2500, '4 months', 'Messy', 'Outdoorsy', 10, 6, 'Sailing captain leading sailing expeditions and charters', 3, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Channa Pitrelli', 'Art', 'Dabvine', 'San Francisco', 'Searching for Roommates', 'Complete', 170, '6 months', 'Cluttered', 'Quiet', 75, 4, 'Art collector acquiring works from emerging and established artists', 4, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Rochella Ranns', 'Chemistry', 'JumpXS', 'Los Angeles', 'Searching for Housing', 'Complete', 2000, '4 months', 'Messy', 'Introverted', 75, 3, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fae Maffione', 'Computer Science', 'Twitternation', 'D.C.', 'Searching for Housing', 'Complete', 1150, '6 months', 'Cluttered', 'Quiet', 55, 5, 'Vintage car restorer refurbishing classic vehicles to their former glory', 9, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nealson Coundley', 'Art', 'Linkbuzz', 'London', 'Complete', 'Has Car', 2000, '1 year', 'Very Clean', 'Adventurous', 30, 7, 'History buff visiting museums and historical sites', 1, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jaimie Tappin', 'Biology', 'Gigaclub', 'San Jose', 'Not Interested', 'Searching for Carpool', 2000, '4 months', 'Clean', 'Social', 45, 7, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 3, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Susanna Pykerman', 'Law', 'Centidel', 'Chicago', 'Not Interested', 'Searching for Carpool', 2000, '6 months', 'Clean', 'Adventurous', 30, 3, 'Avid collector of vintage vinyl records', 7, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leda Standish-Brooks', 'Law', 'Eabox', 'Los Angeles', 'Complete', 'Has Car', 2500, '1 year', 'Messy', 'Introverted', 60, 1, 'Sports fan cheering for their favorite teams at games', 9, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Alfredo Verling', 'Physics', 'Livetube', 'San Jose', 'Complete', 'Not Interested', 1200, '4 months', 'Very Clean', 'Social', 55, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Kristina Orteu', 'Chemistry', 'Skiptube', 'Los Angeles', 'Not Interested', 'Complete', 1600, '4 months', 'Moderate', 'Introverted', 15, 5, 'Crafting enthusiast creating handmade gifts and decorations', 3, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Darcee Itzkowicz', 'Chemistry', 'Fadeo', 'Chicago', 'Not Interested', 'Has Car', 170, '6 months', 'Very Clean', 'Introverted', 5, 2, 'Chess master competing in international tournaments and championships', 10, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Brigg Braidley', 'Biology', 'Twimbo', 'Los Angeles', 'Complete', 'Searching for Carpool', 1600, '4 months', 'Very Clean', 'Introverted', 55, 1, 'Environmental advocate promoting conservation and eco-friendly practices', 7, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jade Waplington', 'Finance', 'Innotype', 'Atlanta', 'Not Interested', 'Has Car', 2500, '4 months', 'Very Clean', 'Introverted', 30, 6, 'Environmental advocate promoting conservation and eco-friendly practices', 4, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Claire Mallender', 'Biology', 'Roombo', 'Chicago', 'Complete', 'Has Car', 1200, '6 months', 'Disorganized', 'Active', 10, 6, 'Vintage car restorer refurbishing classic vehicles to their former glory', 1, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wileen Loveman', 'Biology', 'Abata', 'Atlanta', 'Searching for Housing', 'Complete', 3000, '4 months', 'Very Clean', 'Social', 20, 6, 'History professor researching and teaching historical events', 2, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Shannon Eagar', 'Chemistry', 'Skibox', 'London', 'Complete', 'Searching for Carpool', 1000, '1 year', 'Cluttered', 'Adventurous', 30, 2, 'Sailing captain leading sailing expeditions and charters', 8, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nikita Ferronet', 'Computer Science', 'Fadeo', 'Boston', 'Complete', 'Searching for Carpool', 2000, '6 months', 'Clean', 'Social', 5, 1, 'Vintage car collector restoring classic automobiles', 3, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Quinn Corner', 'Biology', 'Meevee', 'New York City', 'Searching for Roommates', 'Has Car', 1800, '1 year', 'Cluttered', 'Active', 20, 1, 'Gaming streamer broadcasting gameplay and interacting with viewers', 3, null, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Hewie Speek', 'Art', 'Einti', 'Seattle', 'Not Interested', 'Complete', 2000, '1 year', 'Moderate', 'Adventurous', 75, 1, 'Antique dealer specializing in unique and valuable antiques', 5, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ronica Maplethorp', 'Law', 'Skiba', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 1800, '4 months', 'Cluttered', 'Social', 10, 2, 'Travel blogger sharing adventures and tips with readers', 10, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Blair Shedden', 'Physics', 'Fanoodle', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2000, '6 months', 'Disorganized', 'Extroverted', 25, 4, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Nolly Petry', 'Law', 'Buzzster', 'Atlanta', 'Searching for Roommates', 'Complete', 1000, '6 months', 'Disorganized', 'Social', 55, 5, 'Fashion designer creating unique clothing and accessories', 5, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Flemming Gatecliffe', 'Computer Science', 'Yombu', 'New York City', 'Not Interested', 'Complete', 170, '1 year', 'Cluttered', 'Introverted', 75, 2, 'Tech entrepreneur developing innovative solutions and products', 9, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Prince Stickells', 'Finance', 'Dabfeed', 'Atlanta', 'Not Interested', 'Has Car', 2500, '4 months', 'Cluttered', 'Social', 30, 1, 'Dance choreographer creating routines for performances', 9, null, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Moselle Huddy', 'Biology', 'Kare', 'Los Angeles', 'Searching for Housing', 'Complete', 1350, '4 months', 'Disorganized', 'Social', 5, 2, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 4, null, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Fraser Crippill', 'Physics', 'Dynazzy', 'Los Angeles', 'Searching for Roommates', 'Not Interested', 1900, '1 year', 'Disorganized', 'Extroverted', 15, 2, 'Environmental advocate promoting conservation and eco-friendly practices', 10, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Jenda Wrinch', 'Psychology', 'Twinder', 'San Jose', 'Complete', 'Complete', 1000, '6 months', 'Very Clean', 'Outdoorsy', 35, 1, 'Gardening expert cultivating a lush and vibrant garden', 9, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Corliss Lavallie', 'Chemistry', 'Geba', 'Boston', 'Searching for Housing', 'Has Car', 2500, '6 months', 'Clean', 'Social', 55, 2, 'History buff visiting museums and historical sites', 1, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ivonne Wickrath', 'Art', 'Divavu', 'London', 'Complete', 'Complete', 3000, '4 months', 'Moderate', 'Quiet', 75, 7, 'Keen gardener growing a variety of fruits and vegetables', 7, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Pearline Grumell', 'Chemistry', 'Feedfish', 'Seattle', 'Not Interested', 'Complete', 3000, '6 months', 'Messy', 'Social', 30, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 5, null, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Susannah Raddan', 'Art', 'Tazzy', 'D.C.', 'Complete', 'Has Car', 1800, '4 months', 'Clean', 'Adventurous', 75, 5, 'Book publisher releasing new titles and bestsellers', 5, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Delila Coulbeck', 'Psychology', 'Demimbu', 'D.C.', 'Searching for Roommates', 'Complete', 2500, '4 months', 'Cluttered', 'Active', 45, 2, 'Wine connoisseur tasting and collecting fine wines', 2, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Berton Harmeston', 'Biology', 'Janyx', 'Chicago', 'Searching for Roommates', 'Has Car', 1000, '1 year', 'Moderate', 'Quiet', 60, 1, 'Vintage car collector restoring classic automobiles', 8, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Donalt Gunning', 'Finance', 'Riffpedia', 'Atlanta', 'Searching for Roommates', 'Not Interested', 1200, '4 months', 'Clean', 'Quiet', 30, 2, 'Astrologer providing readings and insights based on celestial movements', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Tymon Neilus', 'Biology', 'Pixope', 'New York City', 'Complete', 'Searching for Carpool', 1600, '4 months', 'Cluttered', 'Quiet', 30, 7, 'Soccer coach training players on skills and strategies for the game', 9, null, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Leoine Oswell', 'Art', 'Skimia', 'Chicago', 'Complete', 'Not Interested', 1150, '1 year', 'Messy', 'Social', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Gerry Gatecliff', 'Finance', 'Shufflebeat', 'San Jose', 'Searching for Housing', 'Searching for Carpool', 1600, '1 year', 'Clean', 'Outdoorsy', 45, 6, 'Sports commentator providing analysis and commentary on games', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marissa Broun', 'Finance', 'Quire', 'Seattle', 'Searching for Housing', 'Complete', 3000, '1 year', 'Cluttered', 'Extroverted', 45, 1, 'Obsessed with DIY home improvement projects', 6, null, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Letty Mewton', 'Physics', 'Jabberbean', 'Atlanta', 'Complete', 'Searching for Carpool', 1150, '4 months', 'Moderate', 'Quiet', 45, 5, 'Music festival organizer planning and coordinating live music events', 9, null, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Arthur Gave', 'Business', 'Blogspan', 'San Francisco', 'Complete', 'Not Interested', 2500, '6 months', 'Disorganized', 'Extroverted', 40, 3, 'Fitness influencer inspiring followers with workout routines and tips', 3, null, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Joleen Satterly', 'Physics', 'Oodoo', 'Chicago', 'Searching for Housing', 'Searching for Carpool', 1600, '6 months', 'Moderate', 'Adventurous', 75, 4, 'Rock climbing coach training climbers on techniques and safety', 9, null, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Wheeler Martynka', 'Business', 'Rhynyx', 'London', 'Searching for Housing', 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Adventurous', 10, 5, 'Rock climbing coach training climbers on techniques and safety', 5, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Marys Hannaby', 'Art', 'Zazio', 'London', 'Searching for Housing', 'Not Interested', 170, '1 year', 'Cluttered', 'Active', 30, 6, 'Surfing enthusiast catching waves at the beach', 10, null, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) values ('Ariel Gabotti', 'Biology', 'Latz', 'San Jose', 'Complete', 'Complete', 3000, '1 year', 'Moderate', 'Introverted', 60, 6, 'Soccer coach training players on skills and strategies for the game', 1, null, 9); +-- 6. Events Data (depends on CityCommunity) +insert into Events (CommunityID, Date, Name, Description) values (1, '2024-01-01', 'New Year Celebration', 'Community gathering'); +insert into Events (CommunityID, Date, Name, Description) values (2, '2024-06-01', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (CommunityID, Date, Name, Description) values (3, '2024-09-25', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (CommunityID, Date, Name, Description) values (4, '2024-05-21', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (CommunityID, Date, Name, Description) values (5, '2024-02-24', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (CommunityID, Date, Name, Description) values (6, '2024-02-25', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (CommunityID, Date, Name, Description) values (7, '2024-06-07', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (CommunityID, Date, Name, Description) values (8, '2024-01-11', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (CommunityID, Date, Name, Description) values (9, '2024-08-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (CommunityID, Date, Name, Description) values (10, '2024-02-19', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (CommunityID, Date, Name, Description) values (11, '2023-12-24', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (CommunityID, Date, Name, Description) values (12, '2024-05-26', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (CommunityID, Date, Name, Description) values (13, '2024-10-24', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (CommunityID, Date, Name, Description) values (14, '2024-04-15', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (CommunityID, Date, Name, Description) values (15, '2024-02-17', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (CommunityID, Date, Name, Description) values (16, '2024-07-03', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (CommunityID, Date, Name, Description) values (17, '2024-07-02', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (CommunityID, Date, Name, Description) values (18, '2024-07-30', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (CommunityID, Date, Name, Description) values (19, '2024-04-10', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (CommunityID, Date, Name, Description) values (20, '2024-01-09', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (CommunityID, Date, Name, Description) values (21, '2024-09-27', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (CommunityID, Date, Name, Description) values (22, '2024-04-27', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (CommunityID, Date, Name, Description) values (23, '2024-07-12', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (CommunityID, Date, Name, Description) values (24, '2024-09-01', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (CommunityID, Date, Name, Description) values (25, '2024-09-23', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (CommunityID, Date, Name, Description) values (26, '2024-09-21', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (CommunityID, Date, Name, Description) values (27, '2024-01-24', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (CommunityID, Date, Name, Description) values (28, '2024-01-17', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (CommunityID, Date, Name, Description) values (29, '2024-01-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (CommunityID, Date, Name, Description) values (30, '2024-10-24', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (CommunityID, Date, Name, Description) values (31, '2024-08-10', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (CommunityID, Date, Name, Description) values (32, '2024-07-14', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (CommunityID, Date, Name, Description) values (33, '2023-12-13', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (CommunityID, Date, Name, Description) values (34, '2024-10-08', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (CommunityID, Date, Name, Description) values (35, '2024-01-13', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (CommunityID, Date, Name, Description) values (36, '2024-01-09', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (CommunityID, Date, Name, Description) values (37, '2024-03-12', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (CommunityID, Date, Name, Description) values (38, '2024-10-12', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (CommunityID, Date, Name, Description) values (39, '2024-02-08', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (CommunityID, Date, Name, Description) values (40, '2024-09-26', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (CommunityID, Date, Name, Description) values (41, '2024-01-14', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (CommunityID, Date, Name, Description) values (42, '2024-08-12', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (CommunityID, Date, Name, Description) values (43, '2024-09-18', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (CommunityID, Date, Name, Description) values (44, '2024-08-13', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (CommunityID, Date, Name, Description) values (45, '2024-08-07', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (CommunityID, Date, Name, Description) values (46, '2024-09-06', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (CommunityID, Date, Name, Description) values (47, '2024-10-05', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (CommunityID, Date, Name, Description) values (48, '2024-10-06', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (CommunityID, Date, Name, Description) values (49, '2024-11-24', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (CommunityID, Date, Name, Description) values (50, '2024-11-08', 'Internship Opportunities Panel', 'Networking scavenger hunt'); --- Chat -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (1, 3, 'Network connectivity issues', '2024-04-10 00:27:14', 5); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (2, 20, 'Issue with login credentials', '2024-02-28 09:42:13', 12); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (3, 63, 'Lost files', '2024-01-30 12:56:56', 18); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (4, 41, 'Device not turning on', '2024-03-26 07:02:15', 3); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (5, 54, 'Email not sending', '2024-11-15 05:29:27', 27); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (6, 35, 'Billing inquiry', '2024-02-22 05:26:47', 9); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (7, 47, 'Slow internet connection', '2024-03-25 04:55:29', 14); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (8, 74, 'Network connectivity issues', '2024-03-17 21:17:57', 22); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (9, 56, 'Data backup request', '2024-06-07 10:54:55', 1); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (10, 27, 'Printer not working', '2024-07-17 08:32:42', 30); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (11, 84, 'Forgot password', '2024-08-29 17:46:54', 8); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (12, 17, 'Network connectivity issues', '2024-07-19 09:36:34', 20); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (13, 47, 'Need help setting up new device', '2024-05-23 10:49:46', 11); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (14, 11, 'Billing inquiry', '2024-01-12 23:01:17', 25); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (15, 18, 'Virus detected on device', '2024-03-05 20:24:13', 7); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (16, 22, 'Trouble accessing website', '2024-03-21 09:53:30', 15); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (17, 40, 'Forgot password', '2024-03-09 02:31:51', 29); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (18, 14, 'Need help setting up new device', '2024-03-14 01:05:34', 4); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (19, 79, 'Forgot password', '2024-02-17 07:49:46', 19); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (20, 50, 'Account locked', '2024-04-01 03:43:25', 10); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (21, 80, 'Trouble accessing website', '2024-08-31 22:17:10', 26); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (22, 13, 'Network connectivity issues', '2024-05-26 03:23:54', 6); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (23, 84, 'Forgot password', '2024-11-04 20:27:45', 13); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (24, 38, 'Device not turning on', '2024-11-14 09:07:15', 21); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (25, 45, 'Email not sending', '2024-11-17 08:59:33', 2); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (26, 47, 'Network connectivity issues', '2023-12-31 15:40:05', 28); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (27, 31, 'Issue with login credentials', '2024-09-12 22:29:38', 17); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (28, 81, 'Need help setting up new device', '2024-03-22 15:32:19', 24); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (29, 46, 'Network connectivity issues', '2024-06-19 19:16:20', 16); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (30, 39, 'Lost files', '2024-10-21 21:48:55', 23); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (31, 22, 'Software update needed', '2024-10-18 13:41:46', 5); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (32, 80, 'Data backup request', '2024-07-03 07:46:01', 12); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (33, 35, 'Email not syncing', '2024-10-31 12:28:35', 18); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (34, 45, 'Error message on screen', '2024-03-21 23:01:22', 3); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (35, 63, 'Printer not working', '2024-03-31 09:18:41', 27); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (36, 35, 'Data backup request', '2024-01-01 14:19:33', 9); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (37, 94, 'Data backup request', '2024-01-22 02:11:10', 14); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (38, 36, 'Virus detected on device', '2024-04-21 20:32:07', 22); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (39, 37, 'Need help setting up new device', '2023-12-14 19:54:52', 1); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (40, 65, 'Need help with troubleshooting', '2024-05-23 17:51:25', 30); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (41, 92, 'Account locked', '2024-11-23 02:47:21', 8); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (42, 80, 'Issue with login credentials', '2024-10-22 06:51:05', 20); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (43, 85, 'Need help setting up new device', '2024-07-11 14:32:57', 11); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (44, 22, 'Email not sending', '2024-11-02 23:03:10', 25); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (45, 49, 'Device not turning on', '2024-11-11 06:37:15', 7); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (46, 15, 'Error message on screen', '2024-04-01 19:44:01', 15); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (47, 70, 'Account locked', '2023-12-05 15:00:08', 29); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (48, 87, 'Software update needed', '2024-08-22 03:59:14', 4); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (49, 82, 'Device not turning on', '2024-03-26 07:03:27', 19); -insert into Chat (ChatID, StudentID, Content, Time, SupportStaffID) values (50, 2, 'Virus detected on device', '2024-03-01 14:51:56', 10); +-- 7. Feedback Data (depends on Student and Advisor) +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Great progress this semester', '2024-01-15', 5, 1, 1); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for this recommendation!', '2024-05-02', 2, 83, 7); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for your help', '2024-08-20', 4, 35, 1); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still searching for roommates', '2024-01-02', 3, 80, 9); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still searching for roommates', '2024-06-20', 4, 6, 5); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for your help', '2024-07-16', 5, 23, 2); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Housing is in a good area', '2024-01-31', 4, 2, 8); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still looking for housing', '2024-05-10', 2, 73, 6); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for this recommendation!', '2024-05-23', 5, 90, 4); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('still searching for carpool', '2024-04-27', 3, 93, 10); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still searching for roommates', '2024-04-02', 4, 60, 3); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Enjoying my co-op experience', '2024-08-07', 5, 17, 7); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Enjoying my co-op experience', '2024-08-05', 4, 81, 1); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('still searching for carpool', '2024-11-14', 2, 15, 9); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still looking for housing', '2024-07-17', 2, 98, 5); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still looking for housing', '2024-08-22', 3, 39, 2); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-01-09',4, 95, 8); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Housing is in a good area', '2024-11-09', 5, 30, 6); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still searching for roommates', '2024-06-19', 1, 84, 4); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still looking for housing', '2023-12-09', 2, 15, 10); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-01-27', 3, 15, 3); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for this recommendation!', '2024-01-12', 3, 5, 7); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('still searching for carpool', '2024-10-15', 4, 9, 1); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('still searching for carpool', '2024-09-16', 5, 56, 9); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Housing is in a good area', '2024-09-17', 1, 70, 5); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-11-02', 2, 45, 2); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Currently enjoying this co-op', '2024-02-26', 3, 60, 8); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still searching for roommates', '2024-07-30', 3, 68, 6); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Currently enjoying this co-op', '2024-09-27', 4, 24, 4); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still searching for roommates', '2024-11-09', 5, 36, 10); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-07-14', 1, 33, 3); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('still searching for carpool', '2024-05-04', 2, 45, 7); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Enjoying my co-op experience', '2024-11-22', 4, 62, 1); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Housing is in a good area', '2024-01-12', 3, 81, 9); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-09-07', 4, 3, 5); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Enjoying my co-op experience', '2024-10-06', 5, 52, 2); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Currently enjoying this co-op', '2024-06-01', 5, 20, 8); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('still searching for carpool', '2024-07-11', 2, 93, 6); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for this recommendation!', '2024-05-04', 5, 43, 4); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still searching for roommates', '2024-04-16', 3, 70, 10); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('still searching for carpool', '2024-06-28', 4, 7, 3); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-06-14', 5, 87, 7); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Enjoying my co-op experience', '2024-10-14', 1, 73, 1); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Currently enjoying this co-op', '2024-05-31', 2, 35, 9); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Still looking for housing', '2024-03-29', 4, 3, 5); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for your help', '2024-01-07', 3, 2, 2); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Currently enjoying this co-op', '2023-12-28', 4, 86, 8); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for your help', '2024-11-16', 5, 54, 6); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Currently enjoying this co-op', '2024-05-19', 5, 32, 4); +insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-03-05', 2, 95, 10); --- Events -insert into Events (EventID, CommunityID, Date, Name, Description) values (1, 10, '2024-04-21', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (2, 1, '2024-06-01', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (3, 4, '2024-09-25', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (4, 5, '2024-05-21', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (5, 6, '2024-02-24', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (6, 1, '2024-02-25', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (7, 9, '2024-06-07', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (8, 2, '2024-01-11', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (9, 6, '2024-08-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (10, 2, '2024-02-19', 'Internship Opportunities Panel', 'Networking scavenger hunt'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (11, 2, '2023-12-24', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (12, 6, '2024-05-26', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (13, 3, '2024-10-24', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (14, 5, '2024-04-15', 'Women in STEM Networking Event', 'Networking roundtable discussions'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (15, 4, '2024-02-17', 'Professional Headshot Day', 'Professional headshot photo booth'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (16, 3, '2024-07-03', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (17, 9, '2024-07-02', 'Start-Up Pitch Night', 'Networking book club discussion'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (18, 9, '2024-07-30', 'Career Fair Prep Workshop', 'Networking yoga session'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (19, 1, '2024-04-10', 'Graduate School Info Session', 'Networking cooking class'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (20, 8, '2024-01-09', 'Industry Trends Roundtable', 'Networking hike and picnic'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (21, 7, '2024-09-27', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (22, 2, '2024-04-27', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (23, 10, '2024-07-12', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (24, 3, '2024-09-01', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (25, 1, '2024-09-23', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (26, 9, '2024-09-21', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (27, 3, '2024-01-24', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (28, 6, '2024-01-17', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (29, 6, '2024-01-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (30, 3, '2024-10-24', 'Internship Opportunities Panel', 'Networking scavenger hunt'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (31, 3, '2024-08-10', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (32, 7, '2024-07-14', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (33, 3, '2023-12-13', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (34, 2, '2024-10-08', 'Women in STEM Networking Event', 'Networking roundtable discussions'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (35, 10, '2024-01-13', 'Professional Headshot Day', 'Professional headshot photo booth'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (36, 2, '2024-01-09', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (37, 4, '2024-03-12', 'Start-Up Pitch Night', 'Networking book club discussion'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (38, 4, '2024-10-12', 'Career Fair Prep Workshop', 'Networking yoga session'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (39, 6, '2024-02-08', 'Graduate School Info Session', 'Networking cooking class'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (40, 2, '2024-09-26', 'Industry Trends Roundtable', 'Networking hike and picnic'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (41, 7, '2024-01-14', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (42, 10, '2024-08-12', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (43, 6, '2024-09-18', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (44, 1, '2024-08-13', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (45, 8, '2024-08-07', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (46, 8, '2024-09-06', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (46, 8, '2024-09-06', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (47, 9, '2024-10-05', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (48, 8, '2024-10-06', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (49, 7, '2024-11-24', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (EventID, CommunityID, Date, Name, Description) values (50, 6, '2024-11-08', 'Internship Opportunities Panel', 'Networking scavenger hunt'); - - --- Feedback -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (1, 'Still looking for housing', '2024-08-01', 1, 18, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (2, 'Thank you for this recommendation!', '2024-05-02', 2, 83, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (3, 'Thank you for your help', '2024-08-20', 4, 35, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (4, 'Still searching for roommates', '2024-01-02', 3, 80, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (5, 'Still searching for roommates', '2024-06-20', 4, 6, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (6, 'Thank you for your help', '2024-07-16', 5, 23, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (7, 'Housing is in a good area', '2024-01-31', 4, 2, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (8, 'Still looking for housing', '2024-05-10', 2, 73, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (9, 'Thank you for this recommendation!', '2024-05-23', 5, 90, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (10, 'still searching for carpool', '2024-04-27', 3, 93, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (11, 'Still searching for roommates', '2024-04-02', 4, 60, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (12, 'Enjoying my co-op experience', '2024-08-07', 5, 17, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (13, 'Enjoying my co-op experience', '2024-08-05', 4, 81, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (14, 'still searching for carpool', '2024-11-14', 2, 15, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (15, 'Still looking for housing', '2024-07-17', 2, 98, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (16, 'Still looking for housing', '2024-08-22', 3, 39, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (17, 'I appreciate your assistance!', '2024-01-09',4, 95, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (18, 'Housing is in a good area', '2024-11-09', 5, 30, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (19, 'Still searching for roommates', '2024-06-19', 1, 84, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (20, 'Still looking for housing', '2023-12-09', 2, 15, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (21, 'I appreciate your assistance!', '2024-01-27', 3, 15, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (22, 'Thank you for this recommendation!', '2024-01-12', 3, 5, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (23, 'still searching for carpool', '2024-10-15', 4, 9, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (24, 'still searching for carpool', '2024-09-16', 5, 56, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (25, 'Housing is in a good area', '2024-09-17', 1, 70, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (26, 'I appreciate your assistance!', '2024-11-02', 2, 45, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (27, 'Currently enjoying this co-op', '2024-02-26', 3, 60, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (28, 'Still searching for roommates', '2024-07-30', 3, 68, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (29, 'Currently enjoying this co-op', '2024-09-27', 4, 24, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (30, 'Still searching for roommates', '2024-11-09', 5, 36, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (31, 'I appreciate your assistance!', '2024-07-14', 1, 33, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (32, 'still searching for carpool', '2024-05-04', 2, 45, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (33, 'Enjoying my co-op experience', '2024-11-22', 4, 62, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (34, 'Housing is in a good area', '2024-01-12', 3, 81, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (35, 'I appreciate your assistance!', '2024-09-07', 4, 3, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (36, 'Enjoying my co-op experience', '2024-10-06', 5, 52, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (37, 'Currently enjoying this co-op', '2024-06-01', 5, 20, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (38, 'still searching for carpool', '2024-07-11', 2, 93, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (39, 'Thank you for this recommendation!', '2024-05-04', 5, 43, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (40, 'Still searching for roommates', '2024-04-16', 3, 70, 10); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (41, 'still searching for carpool', '2024-06-28', 4, 7, 3); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (42, 'I appreciate your assistance!', '2024-06-14', 5, 87, 7); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (43, 'Enjoying my co-op experience', '2024-10-14', 1, 73, 1); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (44, 'Currently enjoying this co-op', '2024-05-31', 2, 35, 9); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (45, 'Still looking for housing', '2024-03-29', 4, 3, 5); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (46, 'Thank you for your help', '2024-01-07', 3, 2, 2); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (47, 'Currently enjoying this co-op', '2023-12-28', 4, 86, 8); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (48, 'Thank you for your help', '2024-11-16', 5, 54, 6); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (49, 'Currently enjoying this co-op', '2024-05-19', 5, 32, 4); -insert into Feedback (FeedbackID, Description, Date, ProgressRating, StudentID, AdvisorID) values (50, 'I appreciate your assistance!', '2024-03-05', 2, 95, 10); - --- Advisor -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (1, 'Jessica Doofenshmirtz', 'gmccard0@nps.gov', 'Khoury College', 8); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (2, 'Babbette Marle', 'bmarle1@bbc.co.uk', 'College of Engineering', 50); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (3, 'Lena Graver', 'lgraver2@creativecommons.org', 'D''Amore Mc-Kim', 99); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (4, 'Kevina Garden', 'kgarden3@sina.com.cn', 'College of Science', 38); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (5, 'Cathryn Tatershall', 'ctatershall4@free.fr', 'Bouve College', 14); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (6, 'Domingo Stanlick', 'dstanlick5@arstechnica.com', 'College of Science', 77); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (7, 'Joyous Ferby', 'jferby6@yahoo.com', 'Khoury College', 91); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (8, 'Thibaut Biles', 'tbiles7@4shared.com', 'College of Engineering', 17); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (9, 'Tana Roblou', 'troblou8@cargocollective.com', 'D''Amore Mc-Kim', 26); -insert into Advisor (AdvisorID, Name, Email, Department, StudentID) values (10, 'Sheridan Gunny', 'sgunny9@arizona.edu', 'College of Science', 65); - --- Task +-- 8. Task Data (depends on Student and Advisor) +insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Complete housing application', '2024-02-01', 1, '2024-02-15', 'Pending', 1); insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-02-27', 22, '2024-08-03', 'In Progress', 6); insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-05-09', 89, '2024-03-09', 'In Progress', 10); insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('D''Amore Mc-Kim', '2024-07-08', 37, '2024-05-01', 'Completed', 8); @@ -458,7 +822,60 @@ insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Khoury College', '2024-02-21', 73, '2024-11-12', 'Completed', 1); insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('College of Engineering', '2024-08-21', 40, '2024-09-04', 'Completed', 6); --- SystemLog +-- 9. Ticket Data (depends on User) +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (1, 'Technical Issue', 'Open', 'High', '2024-01-01', NULL); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (2, 'payment processing error', 'completed', 'Medium', '2024-10-02', '2024-05-15'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (3, 'video playback issue', 'cancelled', 'Low', '2024-05-21', '2024-06-08'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (4, 'page not loading', 'cancelled', 'High', '2024-05-30', '2024-03-22'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (5, 'broken link', 'cancelled', 'High', '2023-12-26', '2024-11-23'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (6, 'payment processing error', 'pending', 'High', '2024-02-12', '2024-01-19'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (7, 'missing images', 'pending', 'Low', '2024-07-18', '2024-06-13'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (8, 'incorrect password', 'pending', 'Medium', '2024-07-29', '2024-01-02'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (9, 'login error', 'completed', 'Medium', '2024-02-22', '2024-09-28'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (10, 'page not loading', 'pending', 'High', '2024-07-24', '2024-05-24'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (11, 'search function not working', 'pending', 'High', '2024-01-25', '2024-07-07'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (12, 'payment processing error', 'cancelled', 'Low', '2024-05-25', '2024-05-22'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (13, 'formatting problem', 'pending', 'Low', '2024-01-12', '2024-09-08'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (14, 'missing images', 'cancelled', 'Low', '2024-01-12', '2024-01-18'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (15, 'search function not working', 'cancelled', 'Medium', '2024-01-03', '2024-05-23'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (16, 'slow performance', 'completed', 'Low', '2024-02-16', '2024-09-30'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (17, 'slow performance', 'pending', 'High', '2024-03-27', '2024-07-02'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (18, 'payment processing error', 'pending', 'Medium', '2024-08-14', '2024-10-16'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (19, 'payment processing error', 'pending', 'Medium', '2024-08-20', '2024-10-06'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (20, 'missing images', 'pending', 'High', '2024-08-12', '2024-11-14'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (21, 'broken link', 'pending', 'Medium', '2024-01-15', '2024-04-20'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (22, 'payment processing error', 'pending', 'Low', '2023-12-09', '2024-01-23'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (23, 'search function not working', 'completed', 'Medium', '2024-02-05', '2024-02-18'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (24, 'formatting problem', 'completed', 'Low', '2024-04-06', '2024-08-09'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (25, 'video playback issue', 'pending', 'High', '2024-08-22', '2024-08-19'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (26, 'search function not working', 'pending', 'Medium', '2024-07-19', '2024-09-25'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (27, 'broken link', 'cancelled', 'High', '2024-05-20', '2024-01-22'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (28, 'broken link', 'cancelled', 'High', '2024-07-23', '2023-12-03'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (29, 'broken link', 'pending', 'Low', '2024-10-16', '2024-07-15'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (30, 'login error', 'completed', 'Low', '2024-07-08', '2024-03-14'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (31, 'formatting problem', 'cancelled', 'High', '2024-11-02', '2024-02-13'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (32, 'incorrect password', 'cancelled', 'Medium', '2024-05-02', '2024-01-02'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (33, 'missing images', 'completed', 'Low', '2024-03-28', '2024-03-10'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (34, 'slow performance', 'completed', 'High', '2024-07-04', '2024-03-22'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (36, 'Data backup request', '2024-01-01 14:19:33', 9, 35); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (37, 'Data backup request', '2024-01-22 02:11:10', 14, 94); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (38, 'Virus detected on device', '2024-04-21 20:32:07', 22, 36); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (39, 'Need help setting up new device', '2023-12-14 19:54:52', 1, 37); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (40, 'Need help with troubleshooting', '2024-05-23 17:51:25', 30, 65); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (41, 'Account locked', '2024-11-23 02:47:21', 8, 92); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (42, 'Issue with login credentials', '2024-10-22 06:51:05', 20, 80); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (43, 'Need help setting up new device', '2024-07-11 14:32:57', 11, 85); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (44, 'Email not sending', '2024-11-02 23:03:10', 25, 22); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (45, 'Device not turning on', '2024-11-11 06:37:15', 7, 49); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (46, 'Error message on screen', '2024-04-01 19:44:01', 15, 15); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (47, 'Account locked', '2023-12-05 15:00:08', 29, 70); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (48, 'Software update needed', '2024-08-22 03:59:14', 4, 87); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (49, 'Device not turning on', '2024-03-26 07:03:27', 19, 82); +insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (50, 'Virus detected on device', '2024-03-01 14:51:56', 10, 2); + +-- 10. SystemLog Data (depends on Ticket) +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (1, '2024-01-01 12:00:00', 'System startup', 'Performance', 'Protected', 'Secure'); insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-27 09:10:45', 'User logged in', 'CPU Usage', 'Data Minimization Compliance', 'Intrusion Detection Alerts'); insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-08-18 13:56:45', 'User viewed dashboard', 'System Load', 'Data Retention Policy Compliance', 'Authentication Failures'); insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-04-02 21:27:13', 'User updated profile', 'System Uptime', 'Data Retention Policy Compliance', 'Encryption Key Rotation'); @@ -510,7 +927,8 @@ insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Secur insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-19 04:19:05', 'User added item to cart', 'System Load', 'Privacy Policy Compliance', 'Data Encryption Status'); insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-01-28 09:04:12', 'User changed password', 'Active Connections', 'Sensitive Data Exposure', 'Firewall Activity'); --- SystemHealth +-- 11. SystemHealth Data (depends on SystemLog) +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (1, '2024-01-01 12:00:00', 'Normal', 'System Performance'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (12, '2023-12-08 03:13:57', 'Normal', 'Security Events'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (34, '2023-12-02 23:34:00', 'Active', 'Network Latency'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (7, '2024-06-20 11:47:06', 'Operational', 'Service Downtime'); diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 0955f5f6df..2d35073c3c 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -57,7 +57,7 @@ CREATE TABLE IF NOT EXISTS Student ( CarpoolStatus VARCHAR(50), Budget DECIMAL(10, 2), LeaseDuration VARCHAR(50), - Cleanliness VARCHAR(50), + Cleanliness INT, Lifestyle VARCHAR(50), CommuteTime INT, CommuteDays INT, From 411f25862f9d5cf2685a9b71f706a1c3d459e111 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 16:19:10 -0500 Subject: [PATCH 130/305] updating to fit our tickets resource --- api/backend/tech_support_analyst/michael_routes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 808216e3e7..891dc4a57d 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -69,8 +69,8 @@ def get_tickets(): # Create a new ticket or prioritize tickets -@tech_support_analyst.route('/chats', methods=['POST']) -def add_new_chats(): +@tech_support_analyst.route('/tickets', methods=['POST']) +def add_new_tickets(): # In a POST request, there is a # collecting data from the request object @@ -109,8 +109,8 @@ def add_new_chats(): return response # Mark a ticket as completed or update its status -@tech_support_analyst.route('/logs/{user_id}', methods = ['PUT']) -def update_logs(): +@tech_support_analyst.route('/tickets', methods = ['PUT']) +def update_tickets(): logs_info = request.json if not logs_info: return {"error": "Invalid JSON payload"}, 400 From 4df4165598b1f20f62deb89d6cfe000503694f2c Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 16:21:43 -0500 Subject: [PATCH 131/305] 222 --- api/backend/students/student_routes.py | 38 +++++++-- app/src/pages/10_Co-op_Advisor_Home.py | 113 ++++++------------------- 2 files changed, 55 insertions(+), 96 deletions(-) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index fe5f0ae6aa..9baa575807 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -1,4 +1,4 @@ -from flask import Blueprint, jsonify, make_response +from flask import Blueprint, jsonify from backend.db_connection import db students = Blueprint('students', __name__) @@ -6,6 +6,21 @@ @students.route('/students', methods=['GET']) def get_all_students(): try: + # First, let's check if we can connect to the database + connection = db.get_db() + print("Database connection successful") + + # Let's check if the Student table exists and has data + cursor = connection.cursor() + cursor.execute("SELECT COUNT(*) FROM Student") + count = cursor.fetchone()[0] + print(f"Number of students in database: {count}") + + if count == 0: + print("No students found in database") + return jsonify([]), 200 + + # Now execute the main query query = ''' SELECT StudentID AS student_id, @@ -16,25 +31,30 @@ def get_all_students(): FROM Student ORDER BY student_id ASC ''' - cursor = db.get_db().cursor() + print(f"Executing query: {query}") cursor.execute(query) - # Convert the data to a list of dictionaries + # Get column names and data columns = [column[0] for column in cursor.description] results = [] for row in cursor.fetchall(): results.append(dict(zip(columns, row))) - # Add debug logging - print(f"Query results: {results}") - + print(f"Query returned {len(results)} results") + if len(results) > 0: + print("Sample first row:", results[0]) + + cursor.close() return jsonify(results), 200 except Exception as e: - # Enhanced error logging - print(f"Database error: {str(e)}") + error_msg = f"Error in get_all_students: {str(e)}" + print(error_msg) + print(f"Error type: {type(e).__name__}") + import traceback + print("Traceback:", traceback.format_exc()) return jsonify({ - "error": str(e), + "error": error_msg, "type": type(e).__name__ }), 500 diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 53cc71655b..e9695d9a14 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -1,11 +1,6 @@ -import logging -logger = logging.getLogger(__name__) - import streamlit as st -from modules.nav import SideBarLinks -import mysql.connector import pandas as pd -from mysql.connector import Error +from modules.nav import SideBarLinks import requests # Set Streamlit page configuration @@ -38,90 +33,34 @@ with col4: if st.button("➕ CREATE NEW\nCase", key="create_btn"): - # Assuming you'll create this page later st.switch_page("pages/14_Create_Case.py") -# Add this near the top after imports -import requests - -# Add this debug section -st.write("### API Debug Info") +# Load and display student data try: - st.write("Checking API status...") - - # Test root endpoint - root_url = 'http://api:4000/' - st.write(f"\nTrying root URL: {root_url}") - response = requests.get(root_url) - st.write(f"Root Status Code: {response.status_code}") - st.write(f"Root Response: {response.text}") - - # Test debug/routes endpoint - routes_url = 'http://api:4000/debug/routes' - st.write(f"\nTrying routes URL: {routes_url}") - response = requests.get(routes_url) - st.write(f"Routes Status Code: {response.status_code}") - st.write(f"Available Routes: {response.text}") - - # Original API test code... - st.write("\nTesting student endpoints...") - api_urls = [ - 'http://api:4000/api/students', - 'http://api:4000/students', - 'http://web-api:4000/api/students', - 'http://web-api:4000/students' - ] + response = requests.get('http://web-api:4000/api/students') + st.write("API Response Status:", response.status_code) + st.write("API Response Content:", response.json()) - for url in api_urls: - st.write(f"\nTrying URL: {url}") - try: - response = requests.get(url) - st.write(f"Status Code: {response.status_code}") - st.write(f"Response Headers: {dict(response.headers)}") - st.write(f"Response: {response.text[:200]}") - if response.status_code == 200: - break - except requests.exceptions.ConnectionError: - st.write(f"Connection failed for {url}") - continue - -except Exception as e: - st.error(f"Other Error: {str(e)}") - -# Update the API URL to use the new blueprint route -api_url = 'http://api:4000/api/students' - -# Update the load_student_data function -@st.cache_data -def load_student_data(): - try: - response = requests.get(api_url) - if response.status_code == 200: - return pd.DataFrame(response.json()) + if response.status_code == 200: + data = response.json() + if data: # Check if we got any data + df = pd.DataFrame(data) + st.subheader(f"Student List ({len(df)})") + st.dataframe( + df, + use_container_width=True, + column_config={ + "student_id": "Student ID", + "student_name": "Name", + "co_op_location": "Co-op Location", + "company_name": "Company", + "major": "Major" + } + ) else: - st.error(f"Failed to fetch student data. Status: {response.status_code}") - st.error(f"Error message: {response.text}") - return pd.DataFrame() - except Exception as e: - st.error(f"Error fetching data: {str(e)}") - return pd.DataFrame() - -# Load student data -df = load_student_data() - -# Display the student list -st.subheader(f"Student List ({len(df)})") - -# Display the DataFrame with Streamlit's built-in table display -st.dataframe( - df, - use_container_width=True, - column_config={ - "student_id": "Student ID", - "student_name": "Name", - "co_op_location": "Co-op Location", - "company_name": "Company", - "major": "Major" - } -) + st.warning("No student data available") + else: + st.error(f"Failed to fetch student data. Status: {response.status_code}") +except Exception as e: + st.error(f"Error loading student data: {str(e)}") From ff3beba825b637be84a456b83cd93785e6809796 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Mon, 2 Dec 2024 16:28:39 -0500 Subject: [PATCH 132/305] e22e --- api/backend/students/student_routes.py | 36 ++++++++++++-------------- database-files/SyncSpace-data.sql | 2 +- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 9baa575807..c414f442e0 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -12,38 +12,33 @@ def get_all_students(): # Let's check if the Student table exists and has data cursor = connection.cursor() - cursor.execute("SELECT COUNT(*) FROM Student") - count = cursor.fetchone()[0] - print(f"Number of students in database: {count}") + print("Created cursor") - if count == 0: - print("No students found in database") - return jsonify([]), 200 - - # Now execute the main query query = ''' SELECT - StudentID AS student_id, - Name AS student_name, - Location AS co_op_location, - Company AS company_name, - Major AS major + StudentID as student_id, + Name as student_name, + Location as co_op_location, + Company as company_name, + Major as major FROM Student - ORDER BY student_id ASC + ORDER BY StudentID ASC ''' print(f"Executing query: {query}") cursor.execute(query) - # Get column names and data - columns = [column[0] for column in cursor.description] + # Get column names from cursor description + columns = [desc[0] for desc in cursor.description] + + # Convert results to list of dictionaries results = [] for row in cursor.fetchall(): results.append(dict(zip(columns, row))) - + print(f"Query returned {len(results)} results") - if len(results) > 0: + if results: print("Sample first row:", results[0]) - + cursor.close() return jsonify(results), 200 @@ -55,7 +50,8 @@ def get_all_students(): print("Traceback:", traceback.format_exc()) return jsonify({ "error": error_msg, - "type": type(e).__name__ + "type": type(e).__name__, + "traceback": traceback.format_exc() }), 500 @students.route('/students//reminders', methods=['GET']) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 2921afeed5..c767e83dee 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -1,5 +1,4 @@ USE SyncSpace; - -- 1. CityCommunity Data (no dependencies) insert into CityCommunity (Location) values ('San Francisco'); insert into CityCommunity (Location) values ('San Jose'); @@ -1083,3 +1082,4 @@ insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (22, '202 insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (33, '2024-06-11 12:00:15', 'Operational', 'Disk Space'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (28, '2024-05-26 08:55:01', 'Complete', 'Patch Management'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); + From 35c8768576cd61c411aa958b65ce642222c9fc54 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 16:29:50 -0500 Subject: [PATCH 133/305] updating PUT statement --- .../tech_support_analyst/michael_routes.py | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 891dc4a57d..f6aa9bc2ba 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -90,14 +90,6 @@ def add_new_tickets(): list_price) VALUES ('{name}', '{content}', '{category}', {str(time)}) ''' - # TODO: Make sure the version of the query above works properly - # Constructing the query - # query = 'insert into products (product_name, description, category, list_price) values ("' - # query += name + '", "' - # query += description + '", "' - # query += category + '", ' - # query += str(price) + ')' - current_app.logger.info(query) # executing and committing the insert statement cursor = db.get_db().cursor() @@ -117,6 +109,22 @@ def update_tickets(): current_app.logger.info(f"Updating logs for user {user_id}: {logs_info}") return {"message": "Logs updated successfully"}, 200 +@tech_support_analyst.route('/tickets', methods = ['PUT']) +def update_tickets(): + current_app.logger.info('PUT /community route') + cust_info = request.json + cust_id = cust_info['id'] + first = cust_info['first_name'] + last = cust_info['last_name'] + company = cust_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cust_id) + cursor = db.get_db().cursor() + r = cursor.execute(query, data) + db.get_db().commit() + return 'profile updated!' + # Archive completed tickets @tech_support_analyst.route('/tickets/', methods=['DELETE']) From a6a1624320592bef40f55ec821b141716e018330 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 16:30:49 -0500 Subject: [PATCH 134/305] Update community_routes.py --- api/backend/community/community_routes.py | 59 +---------------------- 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 682897e8cd..63d9414e1a 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -5,64 +5,7 @@ from flask import current_app from backend.db_connection import db -community = Blueprint('community', __name__) - -@community.route('/community', methods=['GET']) -# route for retreiving all student profiles -def get_students(): - query = ''' - - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - - -@community.route('/community/', methods=['GET']) -# route for retrieving students in the same community -def get_community_students(): - query = ''' - - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - -@community.route('/community//events', methods=['GET']) -# route for retrieving events for students in the same community -def community_events(): - query = ''' - - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - -@community.route('/community//carpools', methods=['GET']) -# route for retrieving carpools for the students in the same community -def community_carpool(): - query = ''' - - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response +commmunity = Blueprint('community', __name__) @community.route('/community//housing', methods=['GET']) # route for retrieving carpools for the students in the same community From f9b6db9bd45d0ab0865b3611c1d1b00a5009d6d8 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 16:46:22 -0500 Subject: [PATCH 135/305] cleaning up PUT route --- .../tech_support_analyst/michael_routes.py | 55 +++++++++++++++---- 1 file changed, 44 insertions(+), 11 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index f6aa9bc2ba..f6796107b9 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -111,20 +111,53 @@ def update_tickets(): @tech_support_analyst.route('/tickets', methods = ['PUT']) def update_tickets(): - current_app.logger.info('PUT /community route') - cust_info = request.json - cust_id = cust_info['id'] - first = cust_info['first_name'] - last = cust_info['last_name'] - company = cust_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cust_id) + current_app.logger.info('PUT /tickets route') + ticket_info = request.json + ticket_id = ticket_info['TicketID'] + timestamp = ticket_info.get('Timestamp') + activity = ticket_info.get('Activity') + metric_type = ticket_info.get('MetricType') + privacy = ticket_info.get('Privacy') + security = ticket_info.get('Security') + + # Build the SQL query dynamically + update_fields = [] + params = [] + if timestamp: + update_fields.append("Timestamp = %s") + params.append(timestamp) + if activity: + update_fields.append("Activity = %s") + params.append(activity) + if metric_type: + update_fields.append("MetricType = %s") + params.append(metric_type) + if privacy: + update_fields.append("Privacy = %s") + params.append(privacy) + if security: + update_fields.append("Security = %s") + params.append(security) + + if not update_fields: + return 'No valid fields to update', 400 + + # Add TicketID to parameters + params.append(ticket_id) + + # Prepare the SQL query + query = f'UPDATE tickets SET {", ".join(update_fields)} WHERE TicketID = %s' + + # Execute the query cursor = db.get_db().cursor() - r = cursor.execute(query, data) + cursor.execute(query, params) db.get_db().commit() - return 'profile updated!' + # Check if the update was successful + if cursor.rowcount == 0: + return 'No ticket found with the given TicketID', 404 + + return 'Ticket updated successfully!' # Archive completed tickets @tech_support_analyst.route('/tickets/', methods=['DELETE']) From 3a8c523ef3f71261a58442b7d5f63e5047837e6e Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 16:48:40 -0500 Subject: [PATCH 136/305] updating more PUT route --- api/backend/tech_support_analyst/michael_routes.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index f6796107b9..3c1e679159 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -101,14 +101,6 @@ def add_new_tickets(): return response # Mark a ticket as completed or update its status -@tech_support_analyst.route('/tickets', methods = ['PUT']) -def update_tickets(): - logs_info = request.json - if not logs_info: - return {"error": "Invalid JSON payload"}, 400 - current_app.logger.info(f"Updating logs for user {user_id}: {logs_info}") - return {"message": "Logs updated successfully"}, 200 - @tech_support_analyst.route('/tickets', methods = ['PUT']) def update_tickets(): current_app.logger.info('PUT /tickets route') From 57ada3144b0b399425bfdce76533bae7fdddaef8 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 16:49:52 -0500 Subject: [PATCH 137/305] Update community_routes.py --- api/backend/community/community_routes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 63d9414e1a..63baf543ff 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -11,7 +11,7 @@ # route for retrieving carpools for the students in the same community def community_housing(): query = ''' - + SELECT ''' cursor = db.get_db().cursor() cursor.execute(query) @@ -21,9 +21,9 @@ def community_housing(): response.status_code = 200 return response -@community.route('/community//housing-resources', methods=['GET']) +@community.route('/community//carpool', methods=['GET']) # route for retrieving carpools for the students in the same community -def community_housing_resources(): +def community_housing(): query = ''' ''' @@ -35,10 +35,10 @@ def community_housing_resources(): response.status_code = 200 return response -@community.route('/community', methods=['PUT']) +@community.route('/community//housing', methods=['PUT']) # route to update student profiles -- CODE NOT UPDATED YET def update_profile(): - current_app.logger.info('PUT /community route') + current_app.logger.info('PUT /community//housing route') cust_info = request.json cust_id = cust_info['id'] first = cust_info['first_name'] From 0acfbf72859e0c1c0010b600ce6641564a17bb61 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 16:50:10 -0500 Subject: [PATCH 138/305] renaming the descriptions --- api/backend/tech_support_analyst/michael_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 3c1e679159..e17e51a3e5 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -112,7 +112,7 @@ def update_tickets(): privacy = ticket_info.get('Privacy') security = ticket_info.get('Security') - # Build the SQL query dynamically + # Build the SQL query update_fields = [] params = [] if timestamp: From 66f68518e09a317cb861b04c8a3b186ce4837649 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 16:55:40 -0500 Subject: [PATCH 139/305] Update community_routes.py --- api/backend/community/community_routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 63baf543ff..43ba826289 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -11,7 +11,9 @@ # route for retrieving carpools for the students in the same community def community_housing(): query = ''' - SELECT + SELECT s.Name, s.Major, s.Company, s.Location, s.HousingStatus, s.Budget, s.LeaseDuration, s.Cleanliness, s.LifeStyle, s.Bio, s.CommunityID + FROM Student s + JOIN Community c ON s.CommunityID=c.CommunityID ''' cursor = db.get_db().cursor() cursor.execute(query) From 61d5134cbe199f0d873cfdb8eca9b648ac95af0c Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 17:04:12 -0500 Subject: [PATCH 140/305] Update 22_Housing.py --- app/src/pages/22_Housing.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index 17afeec08d..54be64b325 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -13,3 +13,12 @@ st.write('\n\n') st.write('## Model 1 Maintenance') st.write("Test") + +data = {} +try: + data = requests.get('http://api:4000/data').json() +except: + st.write("**Important**: Could not connect to sample api, so using dummy data.") + data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} + +st.dataframe(data) \ No newline at end of file From b411a5815e3555f459da4b2d39d9e3d8d9dd92c7 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 17:05:34 -0500 Subject: [PATCH 141/305] Update 22_Housing.py --- app/src/pages/22_Housing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index 54be64b325..4a241b49d6 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -16,7 +16,7 @@ data = {} try: - data = requests.get('http://api:4000/data').json() + data = requests.get('http://api:4000/api/community').json() except: st.write("**Important**: Could not connect to sample api, so using dummy data.") data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} From cd9888aab7151de0955aebd51306258f54e75ea7 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:06:54 -0500 Subject: [PATCH 142/305] updating POST route --- .../tech_support_analyst/michael_routes.py | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index e17e51a3e5..b8c4980822 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -78,25 +78,25 @@ def add_new_tickets(): current_app.logger.info(the_data) #extracting the variable - name = the_data['product_name'] - content = the_data['chat_content'] - time = the_data['chat_time'] - category = the_data['product_category'] - - query = f''' - INSERT INTO products (product_name, - description, - category, - list_price) - VALUES ('{name}', '{content}', '{category}', {str(time)}) + ticket_id = the_data['TicketID'] + timestamp = the_data['Timestamp'] + activity = the_data['Activity'] + metric_type = the_data['MetricType'] + privacy = the_data['Privacy'] + security = the_data['Security'] + + query = ''' + INSERT INTO tickets (TicketID, Timestamp, Activity, MetricType, Privacy, Security) + VALUES (%s, %s, %s, %s, %s, %s) ''' + data = (ticket_id, timestamp, activity, metric_type, privacy, security) # executing and committing the insert statement cursor = db.get_db().cursor() - cursor.execute(query) + cursor.execute(query, data) db.get_db().commit() - response = make_response("Successfully initiated chat") + response = make_response("Ticket successfully created!") response.status_code = 200 return response From 6d432c0d9ef53ea5a3b650b3a3341d6ec6b0e5ff Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:08:27 -0500 Subject: [PATCH 143/305] reformatting --- api/backend/tech_support_analyst/michael_routes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index b8c4980822..1d6e053367 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -72,8 +72,7 @@ def get_tickets(): @tech_support_analyst.route('/tickets', methods=['POST']) def add_new_tickets(): - # In a POST request, there is a - # collecting data from the request object + # In a POST request, collecting data from the request object the_data = request.json current_app.logger.info(the_data) From 96c7342048f83e2f850e659185cb32ed40c2c79b Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:09:07 -0500 Subject: [PATCH 144/305] updating description notes --- api/backend/tech_support_analyst/michael_routes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 1d6e053367..c2c214ff2f 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -76,7 +76,7 @@ def add_new_tickets(): the_data = request.json current_app.logger.info(the_data) - #extracting the variable + # Extracting the variables ticket_id = the_data['TicketID'] timestamp = the_data['Timestamp'] activity = the_data['Activity'] @@ -90,11 +90,12 @@ def add_new_tickets(): ''' data = (ticket_id, timestamp, activity, metric_type, privacy, security) - # executing and committing the insert statement + # Executing and committing the insert statement cursor = db.get_db().cursor() cursor.execute(query, data) db.get_db().commit() + # Building a response response = make_response("Ticket successfully created!") response.status_code = 200 return response From 518faeecd5fee956a478a5d91f5f282ba072dc68 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:18:07 -0500 Subject: [PATCH 145/305] updating streamlit pages --- app/src/pages/00_Tech_Support_Analyst_Home.py | 4 ++-- app/src/pages/{01_World_Bank_Viz.py => 01_Run_System_Logs.py} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename app/src/pages/{01_World_Bank_Viz.py => 01_Run_System_Logs.py} (100%) diff --git a/app/src/pages/00_Tech_Support_Analyst_Home.py b/app/src/pages/00_Tech_Support_Analyst_Home.py index 5262735b91..5bca4f3cb7 100644 --- a/app/src/pages/00_Tech_Support_Analyst_Home.py +++ b/app/src/pages/00_Tech_Support_Analyst_Home.py @@ -17,12 +17,12 @@ if st.button('Run System Logs', type='primary', use_container_width=True): - st.switch_page('pages/01_World_Bank_Viz.py') + st.switch_page('pages/01_Run_System_Logs.py') if st.button('View Ticket Overview', type='primary', use_container_width=True): - st.switch_page('pages/02_Map_Demo.py') + st.switch_page('pages/02_Ticket_Overview.py') if st.button('Access System Health Dashboard', type='primary', diff --git a/app/src/pages/01_World_Bank_Viz.py b/app/src/pages/01_Run_System_Logs.py similarity index 100% rename from app/src/pages/01_World_Bank_Viz.py rename to app/src/pages/01_Run_System_Logs.py From 05259c3c5e2266ef06bec3c3a5a0abd1f9d57336 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 17:18:51 -0500 Subject: [PATCH 146/305] updating routes and rest_entry.py --- api/backend/community/community_routes.py | 1 + api/backend/rest_entry.py | 53 ++++++++++++++++++----- app/src/pages/22_Housing.py | 43 +++++++++++++++++- 3 files changed, 84 insertions(+), 13 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 43ba826289..81512e7d95 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -14,6 +14,7 @@ def community_housing(): SELECT s.Name, s.Major, s.Company, s.Location, s.HousingStatus, s.Budget, s.LeaseDuration, s.Cleanliness, s.LifeStyle, s.Bio, s.CommunityID FROM Student s JOIN Community c ON s.CommunityID=c.CommunityID + WHERE s.CommunityID = %s; ''' cursor = db.get_db().cursor() cursor.execute(query) diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 94c279daa7..d46ff23af1 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -1,17 +1,48 @@ from flask import Flask -from flask_cors import CORS -from backend.db_connection import init_app -from backend.students.student_routes import students + +from backend.db_connection import db +from backend.community.community_routes import customers +#from backend.products.products_routes import products +#from backend.simple.simple_routes import simple_routes +import os +from dotenv import load_dotenv def create_app(): app = Flask(__name__) - CORS(app) - - # Initialize database - init_app(app) - - # Register blueprints - app.register_blueprint(students, url_prefix='/api') - + + # Load environment variables + # This function reads all the values from inside + # the .env file (in the parent folder) so they + # are available in this file. See the MySQL setup + # commands below to see how they're being used. + load_dotenv() + + # secret key that will be used for securely signing the session + # cookie and can be used for any other security related needs by + # extensions or your application + # app.config['SECRET_KEY'] = 'someCrazyS3cR3T!Key.!' + app.config['SECRET_KEY'] = os.getenv('SECRET_KEY') + + # # these are for the DB object to be able to connect to MySQL. + # app.config['MYSQL_DATABASE_USER'] = 'root' + app.config['MYSQL_DATABASE_USER'] = os.getenv('DB_USER').strip() + app.config['MYSQL_DATABASE_PASSWORD'] = os.getenv('MYSQL_ROOT_PASSWORD').strip() + app.config['MYSQL_DATABASE_HOST'] = os.getenv('DB_HOST').strip() + app.config['MYSQL_DATABASE_PORT'] = int(os.getenv('DB_PORT').strip()) + app.config['MYSQL_DATABASE_DB'] = os.getenv('SyncSpace').strip() # Change this to your DB name + + # Initialize the database object with the settings above. + app.logger.info('current_app(): starting the database connection') + db.init_app(app) + + + # Register the routes from each Blueprint with the app object + # and give a url prefix to each + app.logger.info('current_app(): registering blueprints with Flask app object.') + #app.register_blueprint(simple_routes) + #app.register_blueprint(customers, url_prefix='/c') + app.register_blueprint(community, url_prefix='/c') + + # Don't forget to return the app object return app diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index 4a241b49d6..d832b19f78 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -16,9 +16,48 @@ data = {} try: - data = requests.get('http://api:4000/api/community').json() + data = requests.get('http://api:4000/api/community//housing').json() except: st.write("**Important**: Could not connect to sample api, so using dummy data.") data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} -st.dataframe(data) \ No newline at end of file +st.dataframe(data) + +# Set the backend API URL +API_URL = "http:///community/{community_id}/housing" + +# Streamlit App Layout +st.title("Community Housing Details") + +# User Input: Community ID +community_id = st.text_input("Enter Community ID:", placeholder="e.g., 123") + +# Fetch Data on Button Click +if st.button("Get Housing Details"): + if not community_id: + st.warning("Please enter a valid Community ID.") + else: + try: + # Make GET request to the backend + response = requests.get(API_URL.format(community_id=community_id)) + + # Check for successful response + if response.status_code == 200: + data = response.json() + + # Convert JSON to DataFrame for better display + df = pd.DataFrame(data, columns=[ + "Name", "Major", "Company", "Location", "HousingStatus", + "Budget", "LeaseDuration", "Cleanliness", "LifeStyle", + "Bio", "CommunityID" + ]) + # Display the DataFrame in Streamlit + st.dataframe(df) + + elif response.status_code == 404: + st.warning("No students found for the given Community ID.") + else: + st.error(f"Error: {response.status_code} - {response.text}") + + except requests.exceptions.RequestException as e: + st.error(f"Failed to connect to the API: {str(e)}") \ No newline at end of file From db03c2752d7b5f3a199631fc3c845a175749ed05 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:19:29 -0500 Subject: [PATCH 147/305] renaming page --- .../{04_Prediction.py => 04_Access_System_Health_Dashboard.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/src/pages/{04_Prediction.py => 04_Access_System_Health_Dashboard.py} (100%) diff --git a/app/src/pages/04_Prediction.py b/app/src/pages/04_Access_System_Health_Dashboard.py similarity index 100% rename from app/src/pages/04_Prediction.py rename to app/src/pages/04_Access_System_Health_Dashboard.py From 5f8ee3e45c29bafeeef08cb63bc868bdb81e7ac1 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:20:11 -0500 Subject: [PATCH 148/305] updating page name --- app/src/pages/00_Tech_Support_Analyst_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/00_Tech_Support_Analyst_Home.py b/app/src/pages/00_Tech_Support_Analyst_Home.py index 5bca4f3cb7..225d415fd1 100644 --- a/app/src/pages/00_Tech_Support_Analyst_Home.py +++ b/app/src/pages/00_Tech_Support_Analyst_Home.py @@ -27,4 +27,4 @@ if st.button('Access System Health Dashboard', type='primary', use_container_width=True): - st.switch_page('pages/02_Map_Demo.py') \ No newline at end of file + st.switch_page('pages/04_Access_System_Health_Dashboard.py') \ No newline at end of file From 01cc6ad91f76d9ccf7827a2264734aa0d18ff5d3 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:21:19 -0500 Subject: [PATCH 149/305] adjusting name in home page of app --- app/src/Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Home.py b/app/src/Home.py index a39ebd59ca..aa4c92391d 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -36,7 +36,7 @@ logger.info("Loading the Home page of the app") st.title('SyncSpace') st.write('\n\n') -st.write('### HI! As which user would you like to log in?') +st.write('### Hi there! As which user would you like to log in?') # For each of the user personas for which we are implementing # functionality, we put a button on the screen that the user From b3db9edac0fcf54ccd47e5d5828eeaeae8b4cf75 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:24:12 -0500 Subject: [PATCH 150/305] updating system logs page --- app/src/pages/01_Run_System_Logs.py | 30 ++++++----------------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index a34cbb1529..68a3f9698d 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -12,30 +12,12 @@ # Call the SideBarLinks from the nav module in the modules directory SideBarLinks() -# set the header of the page -st.header('World Bank Data') +st.set_page_config(layout = 'wide') -# You can access the session state to make a more customized/personalized app experience -st.write(f"### Hi, {st.session_state['first_name']}.") - -# get the countries from the world bank data -with st.echo(code_location='above'): - countries:pd.DataFrame = wb.get_countries() - - st.dataframe(countries) - -# the with statment shows the code for this block above it -with st.echo(code_location='above'): - arr = np.random.normal(1, 1, size=100) - test_plot, ax = plt.subplots() - ax.hist(arr, bins=20) - - st.pyplot(test_plot) +SideBarLinks() +st.title('Carpool Search') -with st.echo(code_location='above'): - slim_countries = countries[countries['incomeLevel'] != 'Aggregates'] - data_crosstab = pd.crosstab(slim_countries['region'], - slim_countries['incomeLevel'], - margins = False) - st.table(data_crosstab) +st.write('\n\n') +st.write('## test') +st.write("Test") \ No newline at end of file From 7957b6219f52a8484fac5380a834221461c594fc Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:24:41 -0500 Subject: [PATCH 151/305] renaming --- app/src/pages/01_Run_System_Logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index 68a3f9698d..8ab02a4012 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -16,7 +16,7 @@ SideBarLinks() -st.title('Carpool Search') +st.title('Access System Logs') st.write('\n\n') st.write('## test') From 4d2096935d20e83c2d316d966543830f78eee6fe Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:27:24 -0500 Subject: [PATCH 152/305] updating nav.py with systemlogs --- app/src/modules/nav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 3bcccb1794..c4c8e5f7fa 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -21,9 +21,9 @@ def PolStratAdvHomeNav(): ) -def WorldBankVizNav(): +def SystemLogsNav(): st.sidebar.page_link( - "pages/01_World_Bank_Viz.py", label="World Bank Visualization", icon="🏦" + "pages/01_Run_System_Logs.py", label="System Logs", icon="🏦" ) From b0f09385aa896fb972b4b2e314470f868cac40f9 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:28:56 -0500 Subject: [PATCH 153/305] renaming --- app/src/modules/nav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index c4c8e5f7fa..51bf682061 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -14,8 +14,8 @@ def AboutPageNav(): st.sidebar.page_link("pages/50_About.py", label="About", icon="🧠") -#### ------------------------ Examples for Role of pol_strat_advisor ------------------------ -def PolStratAdvHomeNav(): +#### ------------------------ Role of Technical Support Analyst ------------------------ +def TechSupportAnalystHomeNav(): st.sidebar.page_link( "pages/00_Tech_Support_Analyst_Home.py", label="Tech Support Analyst Home", icon="👤" ) From fe6d65ddf4cbde3f84f86b17ff77a4b46cde0835 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:29:40 -0500 Subject: [PATCH 154/305] renaming to ticket overview --- app/src/modules/nav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 51bf682061..12a06d24c9 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -27,8 +27,8 @@ def SystemLogsNav(): ) -def MapDemoNav(): - st.sidebar.page_link("pages/02_Map_Demo.py", label="Map Demonstration", icon="🗺️") +def TicketOverviewNav(): + st.sidebar.page_link("pages/02_Ticket_Overview.py", label="Ticket Overview", icon="🗺️") ## ------------------------ Examples for Role of usaid_worker ------------------------ From bcebf5b9596bfc3444c6397855f559f20bd5709d Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:31:13 -0500 Subject: [PATCH 155/305] updating links in nav --- app/src/modules/nav.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 12a06d24c9..4c32f72fc4 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -79,9 +79,9 @@ def SideBarLinks(show_home=False): # Show World Bank Link and Map Demo Link if the user is a political strategy advisor role. if st.session_state["role"] == "SysAdmin": - PolStratAdvHomeNav() - WorldBankVizNav() - MapDemoNav() + TechSupportAnalystHomeNav() + SystemLogsNav() + TicketOverviewNav() # If the user role is usaid worker, show the Api Testing page if st.session_state["role"] == "Advisor": From 5e8c115b54fc65640be9cfb8a9dd9c2d8b579630 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:32:42 -0500 Subject: [PATCH 156/305] more renaming to fit tech support analyst role --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 4c32f72fc4..c365ff3455 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -78,7 +78,7 @@ def SideBarLinks(show_home=False): if st.session_state["authenticated"]: # Show World Bank Link and Map Demo Link if the user is a political strategy advisor role. - if st.session_state["role"] == "SysAdmin": + if st.session_state["role"] == "TechnicalSupportAnalyst": TechSupportAnalystHomeNav() SystemLogsNav() TicketOverviewNav() From 91213b0891e006c60f85c55a2a2253018799b696 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:36:33 -0500 Subject: [PATCH 157/305] updating emojis --- app/src/modules/nav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index c365ff3455..543c324fa7 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -23,12 +23,12 @@ def TechSupportAnalystHomeNav(): def SystemLogsNav(): st.sidebar.page_link( - "pages/01_Run_System_Logs.py", label="System Logs", icon="🏦" + "pages/01_Run_System_Logs.py", label="System Logs", icon="⚙️" ) def TicketOverviewNav(): - st.sidebar.page_link("pages/02_Ticket_Overview.py", label="Ticket Overview", icon="🗺️") + st.sidebar.page_link("pages/02_Ticket_Overview.py", label="Ticket Overview", icon="🎫") ## ------------------------ Examples for Role of usaid_worker ------------------------ From 232e0f29e88a80cda0813cb7dc85d2ecdca45d4d Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:39:18 -0500 Subject: [PATCH 158/305] inputting system health dashboard into nav.py --- app/src/modules/nav.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 543c324fa7..3aff89ecaa 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -31,6 +31,10 @@ def TicketOverviewNav(): st.sidebar.page_link("pages/02_Ticket_Overview.py", label="Ticket Overview", icon="🎫") +def SysHealthDashNav(): + st.sidebar.page_link("pages/04_Access_System_Health_Dashboard.py", label="System Health Dashboard", icon="📊") + + ## ------------------------ Examples for Role of usaid_worker ------------------------ def ApiTestNav(): st.sidebar.page_link("pages/12_Form.py", label="Test the API", icon="🛜") From 01ce2f309e3efb572d4935d1393d41d7f743c24d Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:41:43 -0500 Subject: [PATCH 159/305] updates to pages --- app/src/pages/04_Access_System_Health_Dashboard.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/pages/04_Access_System_Health_Dashboard.py b/app/src/pages/04_Access_System_Health_Dashboard.py index a5a322a2f4..9dd992c5f9 100644 --- a/app/src/pages/04_Access_System_Health_Dashboard.py +++ b/app/src/pages/04_Access_System_Health_Dashboard.py @@ -1,13 +1,11 @@ import logging logger = logging.getLogger(__name__) - import streamlit as st from modules.nav import SideBarLinks import requests st.set_page_config(layout = 'wide') -# Display the appropriate sidebar links for the role of the logged in user SideBarLinks() st.title('Prediction with Regression') From 7e6e9484820aa10ce9908ce5fdc9dd870e4fe295 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 17:42:38 -0500 Subject: [PATCH 160/305] adjusting pages --- app/src/pages/01_Run_System_Logs.py | 10 +++------- app/src/pages/02_Ticket_Overview.py | 7 +++---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index 8ab02a4012..bca31b88e4 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -1,15 +1,11 @@ import logging logger = logging.getLogger(__name__) -import pandas as pd import streamlit as st -from streamlit_extras.app_logo import add_logo -import world_bank_data as wb -import matplotlib.pyplot as plt -import numpy as np -import plotly.express as px from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') -# Call the SideBarLinks from the nav module in the modules directory SideBarLinks() st.set_page_config(layout = 'wide') diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index 5ca09a9633..5791299748 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -1,11 +1,10 @@ import logging logger = logging.getLogger(__name__) import streamlit as st -from streamlit_extras.app_logo import add_logo -import pandas as pd -import pydeck as pdk -from urllib.error import URLError from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') SideBarLinks() From 46659da15b1556d6c45765ad100532ca38c93235 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 17:57:10 -0500 Subject: [PATCH 161/305] updates --- api/.env.template | 2 +- api/app.py | 4 +++- api/backend/community/community_routes.py | 2 +- api/backend/rest_entry.py | 2 +- app/src/pages/22_Housing.py | 15 +++------------ 5 files changed, 9 insertions(+), 16 deletions(-) diff --git a/api/.env.template b/api/.env.template index b24b99326f..8f86ce2cc0 100644 --- a/api/.env.template +++ b/api/.env.template @@ -2,5 +2,5 @@ SECRET_KEY=someCrazyS3cR3T!Key.! DB_USER=root DB_HOST=db DB_PORT=3306 -DB_NAME=northwind +DB_NAME=SyncSpace MYSQL_ROOT_PASSWORD= diff --git a/api/app.py b/api/app.py index 34e7d11ce2..5f64526f5a 100644 --- a/api/app.py +++ b/api/app.py @@ -1,3 +1,4 @@ +''' from flask import Flask from backend.db_connection import init_app from backend.students.student_routes import students @@ -11,4 +12,5 @@ app.register_blueprint(students, url_prefix='/api') if __name__ == '__main__': - app.run(host='0.0.0.0', port=4000) \ No newline at end of file + app.run(host='0.0.0.0', port=4000) +''' \ No newline at end of file diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 81512e7d95..ce374ed04a 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -7,7 +7,7 @@ commmunity = Blueprint('community', __name__) -@community.route('/community//housing', methods=['GET']) +@community.route('/community//housing', methods=['GET']) # route for retrieving carpools for the students in the same community def community_housing(): query = ''' diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index d46ff23af1..31ca30738e 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -1,7 +1,7 @@ from flask import Flask from backend.db_connection import db -from backend.community.community_routes import customers +from backend.community.community_routes import community #from backend.products.products_routes import products #from backend.simple.simple_routes import simple_routes import os diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index d832b19f78..6ba179e93a 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -14,23 +14,14 @@ st.write('## Model 1 Maintenance') st.write("Test") -data = {} -try: - data = requests.get('http://api:4000/api/community//housing').json() -except: - st.write("**Important**: Could not connect to sample api, so using dummy data.") - data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} - -st.dataframe(data) - # Set the backend API URL -API_URL = "http:///community/{community_id}/housing" +API_URL = "http://localhost:4000/c/community/{communityid}/housing" # Streamlit App Layout st.title("Community Housing Details") # User Input: Community ID -community_id = st.text_input("Enter Community ID:", placeholder="e.g., 123") +communityid = st.text_input("Enter Community ID:", placeholder="e.g., 123") # Fetch Data on Button Click if st.button("Get Housing Details"): @@ -39,7 +30,7 @@ else: try: # Make GET request to the backend - response = requests.get(API_URL.format(community_id=community_id)) + response = requests.get(API_URL.format(communityid=communityid)) # Check for successful response if response.status_code == 200: From e67816668daa1817f1ff4bdbb759eab3400763b8 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 18:08:16 -0500 Subject: [PATCH 162/305] updating syncspace description --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9b503d6fa5..235ebdef32 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ This repo is a template for your semester project. It includes most of the infr Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu ## About SyncSpace (UPDATE TO FIT OUR MOST UDPATED MODEL) -Our app SyncSpace is a data-driven virtual community that aims to connect students going on co-ops and internships, helping them make the most of their experience. Students often feel isolated or overwhelmed when relocating for work, facing the challenges of finding housing, arranging transportation, and locating familiar faces nearby. SyncSpace solves this by using geolocation and shared interests/community forums to match students with ‘co-op buddies’ in their area, helping them form connections, navigate new cities, and share resources for housing and commuting. +Our app SyncSpace is a data-driven virtual community that aims to connect students going on co-ops and internships, helping them make the most of their experience. Students often feel isolated or overwhelmed when relocating for work, facing the challenges of finding housing, arranging transportation, and locating familiar faces nearby. SyncSpace solves this by using curated feedback, data, and shared interests/community forums to match students with ‘co-op buddies’ in their area, helping them form connections, navigate new cities, and share resources for housing and commuting. -Designed for students and co-op advisors, SyncSpace offers real-time data insights that help students connect with each other and thrive professionally. With curated interest-based groups, housing and transportation discussion forums, and a hub for live events, students can access networking, guidance, and new friendships anytime they need it. Co-op advisors and system admin staff can effortlessly organize and track engagement, while gaining valuable data on student satisfaction, location trends, and engagement levels. By building a vibrant, supportive community, we hope to empower students to make meaningful connections and maximize their co-op and internship experiences. +Designed for students and co-op advisors, SyncSpace offers real-time data insights that help students connect with each other and thrive professionally. With curated interest-based groups, housing and transportation forums, and a hub for professional events, students can access networking, guidance, and new friendships anytime they need it. Co-op advisors and system admin staff can effortlessly organize and track engagement, while gaining valuable data on student satisfaction, activity trends, and engagement levels. By building a vibrant, supportive community, we hope to empower students to make meaningful connections and maximize their co-op and internship experiences. ## Prerequisites From 5e1fa1fd9ee1e9585f6c4082cf6fdfc7f506b96c Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 18:08:45 -0500 Subject: [PATCH 163/305] update intro of readme --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 235ebdef32..77a03ecc24 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,7 @@ # Welcome to our guidebook for everything and anything SyncSpace! This guidebook is inclusive of the details of our project and all the information you need to build/start the containers. We hope you enjoy exploring! -This repo is a template for your semester project. It includes most of the infrastructure setup (containers) and sample code and data throughout. Explore it fully and ask questions. - -Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu +By Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu ## About SyncSpace (UPDATE TO FIT OUR MOST UDPATED MODEL) Our app SyncSpace is a data-driven virtual community that aims to connect students going on co-ops and internships, helping them make the most of their experience. Students often feel isolated or overwhelmed when relocating for work, facing the challenges of finding housing, arranging transportation, and locating familiar faces nearby. SyncSpace solves this by using curated feedback, data, and shared interests/community forums to match students with ‘co-op buddies’ in their area, helping them form connections, navigate new cities, and share resources for housing and commuting. From 208eb67d35625c244221546d15be984192f91fe3 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 18:10:06 -0500 Subject: [PATCH 164/305] updating descriptions --- app/src/modules/nav.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 3aff89ecaa..97d85c157c 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -81,7 +81,7 @@ def SideBarLinks(show_home=False): # Show the other page navigators depending on the users' role. if st.session_state["authenticated"]: - # Show World Bank Link and Map Demo Link if the user is a political strategy advisor role. + # Show System Logs, Ticket Overview, and System Health Dashboard if the user is in a technical support analyst role. if st.session_state["role"] == "TechnicalSupportAnalyst": TechSupportAnalystHomeNav() SystemLogsNav() @@ -93,7 +93,7 @@ def SideBarLinks(show_home=False): ApiTestNav() ClassificationNav() - # If the user is an administrator, give them access to the administrator pages + # If the user is a student, give them access to the student pages if st.session_state["role"] == "Student": KevinPageNav() From 88238d4d38329f637eb5134e57e7c34a857ea071 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 18:11:07 -0500 Subject: [PATCH 165/305] deleting duplicates --- app/src/pages/01_Run_System_Logs.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index bca31b88e4..6772d182ee 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -8,10 +8,6 @@ SideBarLinks() -st.set_page_config(layout = 'wide') - -SideBarLinks() - st.title('Access System Logs') st.write('\n\n') From 6703e0677538f7b1d40ca31d49930e3d0fa8fc36 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 18:11:50 -0500 Subject: [PATCH 166/305] inputting test page for now --- app/src/pages/02_Ticket_Overview.py | 96 ++--------------------------- 1 file changed, 4 insertions(+), 92 deletions(-) diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index 5791299748..aef8bbc53e 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -8,96 +8,8 @@ SideBarLinks() -# add the logo -add_logo("assets/logo.png", height=400) +st.title('Access System Logs') -# set up the page -st.markdown("# Mapping Demo") -st.sidebar.header("Mapping Demo") -st.write( - """This Mapping Demo is from the Streamlit Documentation. It shows how to use -[`st.pydeck_chart`](https://docs.streamlit.io/library/api-reference/charts/st.pydeck_chart) -to display geospatial data.""" -) - - -@st.cache_data -def from_data_file(filename): - url = ( - "http://raw.githubusercontent.com/streamlit/" - "example-data/master/hello/v1/%s" % filename - ) - return pd.read_json(url) - - -try: - ALL_LAYERS = { - "Bike Rentals": pdk.Layer( - "HexagonLayer", - data=from_data_file("bike_rental_stats.json"), - get_position=["lon", "lat"], - radius=200, - elevation_scale=4, - elevation_range=[0, 1000], - extruded=True, - ), - "Bart Stop Exits": pdk.Layer( - "ScatterplotLayer", - data=from_data_file("bart_stop_stats.json"), - get_position=["lon", "lat"], - get_color=[200, 30, 0, 160], - get_radius="[exits]", - radius_scale=0.05, - ), - "Bart Stop Names": pdk.Layer( - "TextLayer", - data=from_data_file("bart_stop_stats.json"), - get_position=["lon", "lat"], - get_text="name", - get_color=[0, 0, 0, 200], - get_size=15, - get_alignment_baseline="'bottom'", - ), - "Outbound Flow": pdk.Layer( - "ArcLayer", - data=from_data_file("bart_path_stats.json"), - get_source_position=["lon", "lat"], - get_target_position=["lon2", "lat2"], - get_source_color=[200, 30, 0, 160], - get_target_color=[200, 30, 0, 160], - auto_highlight=True, - width_scale=0.0001, - get_width="outbound", - width_min_pixels=3, - width_max_pixels=30, - ), - } - st.sidebar.markdown("### Map Layers") - selected_layers = [ - layer - for layer_name, layer in ALL_LAYERS.items() - if st.sidebar.checkbox(layer_name, True) - ] - if selected_layers: - st.pydeck_chart( - pdk.Deck( - map_style="mapbox://styles/mapbox/light-v9", - initial_view_state={ - "latitude": 37.76, - "longitude": -122.4, - "zoom": 11, - "pitch": 50, - }, - layers=selected_layers, - ) - ) - else: - st.error("Please choose at least one layer above.") -except URLError as e: - st.error( - """ - **This demo requires internet access.** - Connection error: %s - """ - % e.reason - ) +st.write('\n\n') +st.write('## test') +st.write("Test") From 2d63ca57c6df306c2741e92054795ed3de61d763 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 18:12:33 -0500 Subject: [PATCH 167/305] renaming --- app/src/pages/04_Access_System_Health_Dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/04_Access_System_Health_Dashboard.py b/app/src/pages/04_Access_System_Health_Dashboard.py index 9dd992c5f9..35d5d24d0b 100644 --- a/app/src/pages/04_Access_System_Health_Dashboard.py +++ b/app/src/pages/04_Access_System_Health_Dashboard.py @@ -8,7 +8,7 @@ SideBarLinks() -st.title('Prediction with Regression') +st.title('System Health Dasbhoard') # create a 2 column layout col1, col2 = st.columns(2) From ffadf51bec2e926abbd4f953ce8e52b9a4023205 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 18:42:10 -0500 Subject: [PATCH 168/305] updae --- app/src/pages/22_Housing.py | 6 +----- docker-compose.yaml | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index 6ba179e93a..53f488155b 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -10,10 +10,6 @@ st.title('Housing Search') -st.write('\n\n') -st.write('## Model 1 Maintenance') -st.write("Test") - # Set the backend API URL API_URL = "http://localhost:4000/c/community/{communityid}/housing" @@ -25,7 +21,7 @@ # Fetch Data on Button Click if st.button("Get Housing Details"): - if not community_id: + if not communityid: st.warning("Please enter a valid Community ID.") else: try: diff --git a/docker-compose.yaml b/docker-compose.yaml index 73a4b0d836..b6bf00794f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -43,11 +43,11 @@ services: volumes: - type: bind source: ./database-files/SyncSpace.sql - target: /docker-entrypoint-initdb.d/01-SyncSpace.sql + target: /docker-entrypoint-initdb.d/SyncSpace.sql read_only: true - type: bind source: ./database-files/SyncSpace-data.sql - target: /docker-entrypoint-initdb.d/02-SyncSpace-data.sql + target: /docker-entrypoint-initdb.d/SyncSpace-data.sql read_only: true ports: - 3308:3306 From 894e95f5c5e48c46545b46455c29bd31dbbdf9c9 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 18:43:39 -0500 Subject: [PATCH 169/305] Update docker-compose.yaml --- docker-compose.yaml | 46 +++++---------------------------------------- 1 file changed, 5 insertions(+), 41 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b6bf00794f..72fb6ccbb9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,15 +4,8 @@ services: container_name: web-app hostname: web-app volumes: ['./app/src:/appcode'] - env_file: - - ./api/.env ports: - 8501:8501 - depends_on: - db: - condition: service_healthy - networks: - - app-network api: build: ./api @@ -21,45 +14,16 @@ services: volumes: ['./api:/apicode'] ports: - 4000:4000 - depends_on: - db: - condition: service_healthy - environment: - - DB_HOST=db - - DB_PORT=3306 - - DB_USER=root - - MYSQL_ROOT_PASSWORD=password123 - - DB_NAME=SyncSpace - networks: - - app-network db: - image: mysql:8.0 + env_file: + - ./api/.env + image: mysql:9 container_name: mysql_db hostname: db - environment: - MYSQL_ROOT_PASSWORD: password123 - MYSQL_DATABASE: SyncSpace volumes: - - type: bind - source: ./database-files/SyncSpace.sql - target: /docker-entrypoint-initdb.d/SyncSpace.sql - read_only: true - - type: bind - source: ./database-files/SyncSpace-data.sql - target: /docker-entrypoint-initdb.d/SyncSpace-data.sql - read_only: true + - ./database-files:/docker-entrypoint-initdb.d/:ro ports: - - 3308:3306 - networks: - - app-network - healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] - timeout: 5s - retries: 10 - -networks: - app-network: - driver: bridge + - 3200:3306 From 8cca30ddce1f3751c0cd7a5d3d37dbf15e90a11c Mon Sep 17 00:00:00 2001 From: christinejahn Date: Mon, 2 Dec 2024 18:59:54 -0500 Subject: [PATCH 170/305] renaming file name --- app/src/{ScyncSpace-data2.sql => SyncSpace-data2.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/src/{ScyncSpace-data2.sql => SyncSpace-data2.sql} (100%) diff --git a/app/src/ScyncSpace-data2.sql b/app/src/SyncSpace-data2.sql similarity index 100% rename from app/src/ScyncSpace-data2.sql rename to app/src/SyncSpace-data2.sql From 5ff13868fb396a08217d6b056ff1b588677c5c99 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 19:29:17 -0500 Subject: [PATCH 171/305] m --- api/backend/db_connection/db_config.py | 4 +++- api/backend/rest_entry.py | 2 +- app/src/pages/22_Housing.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api/backend/db_connection/db_config.py b/api/backend/db_connection/db_config.py index 9fa6750cfb..122f68deed 100644 --- a/api/backend/db_connection/db_config.py +++ b/api/backend/db_connection/db_config.py @@ -1,3 +1,4 @@ +''' from os import getenv print("Loading db_config.py...") @@ -11,4 +12,5 @@ 'database': getenv('DB_NAME', 'SyncSpace') } -print(f"DB_CONFIG loaded: {DB_CONFIG}") \ No newline at end of file +print(f"DB_CONFIG loaded: {DB_CONFIG}") +''' \ No newline at end of file diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 31ca30738e..20acb970dc 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -29,7 +29,7 @@ def create_app(): app.config['MYSQL_DATABASE_PASSWORD'] = os.getenv('MYSQL_ROOT_PASSWORD').strip() app.config['MYSQL_DATABASE_HOST'] = os.getenv('DB_HOST').strip() app.config['MYSQL_DATABASE_PORT'] = int(os.getenv('DB_PORT').strip()) - app.config['MYSQL_DATABASE_DB'] = os.getenv('SyncSpace').strip() # Change this to your DB name + app.config['MYSQL_DATABASE_DB'] = os.getenv('DB_NAME').strip() # Change this to your DB name # Initialize the database object with the settings above. app.logger.info('current_app(): starting the database connection') diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index 53f488155b..f865150461 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -11,7 +11,7 @@ st.title('Housing Search') # Set the backend API URL -API_URL = "http://localhost:4000/c/community/{communityid}/housing" +API_URL = "http://api:4000/c/community/{communityid}/housing" # Streamlit App Layout st.title("Community Housing Details") From 259514ae69644bb4daf97af02b7728ae6f656af1 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 20:24:27 -0500 Subject: [PATCH 172/305] m --- api/backend/community/community_routes.py | 15 +++++++++++++++ api/backend/db_connection/__init__.py | 8 ++++++-- api/backend/rest_entry.py | 3 +-- app/src/pages/22_Housing.py | 23 ++++++++++++++++++++--- 4 files changed, 42 insertions(+), 7 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index ce374ed04a..64a65816be 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -24,6 +24,21 @@ def community_housing(): response.status_code = 200 return response +@community.route('/community', methods=['GET']) +# route for retrieving carpools for the students in the same community +def community_housing(): + query = ''' + SELECT * + FROM Student; + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + @community.route('/community//carpool', methods=['GET']) # route for retrieving carpools for the students in the same community def community_housing(): diff --git a/api/backend/db_connection/__init__.py b/api/backend/db_connection/__init__.py index b7a5fb690c..8f4efb918d 100644 --- a/api/backend/db_connection/__init__.py +++ b/api/backend/db_connection/__init__.py @@ -3,8 +3,11 @@ #------------------------------------------------------------ from flaskext.mysql import MySQL from pymysql import cursors -from flask import current_app +#from flask import current_app +db = MySQL(cursorclass=cursors.DictCursor) + +''' print("Loading db_connection/__init__.py...") try: @@ -28,4 +31,5 @@ def init_app(app): # Initialize the MySQL connection db.init_app(app) - print("Database connection initialized") \ No newline at end of file + print("Database connection initialized") +''' \ No newline at end of file diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 20acb970dc..baebceccdc 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -3,7 +3,6 @@ from backend.db_connection import db from backend.community.community_routes import community #from backend.products.products_routes import products -#from backend.simple.simple_routes import simple_routes import os from dotenv import load_dotenv @@ -39,7 +38,7 @@ def create_app(): # Register the routes from each Blueprint with the app object # and give a url prefix to each app.logger.info('current_app(): registering blueprints with Flask app object.') - #app.register_blueprint(simple_routes) + app.register_blueprint(simple_routes) #app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(community, url_prefix='/c') diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index f865150461..4869fe7dbe 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -3,15 +3,31 @@ import streamlit as st from modules.nav import SideBarLinks import requests +import pandas as pd st.set_page_config(layout = 'wide') SideBarLinks() -st.title('Housing Search') +# Define the API URL +API_URL = "http://api:4000/c/community" +# Fetch data from the API +response = requests.get(API_URL) + +# Check if the response is successful +if response.status_code == 200: + data = response.json() # Assuming the API returns JSON data + df = pd.DataFrame(data) # Convert the JSON data to a DataFrame + + # Display the DataFrame in Streamlit + st.write("Playlist Data", df) +else: + st.error(f"Failed to fetch data. Status code: {response.status_code}") + +''' # Set the backend API URL -API_URL = "http://api:4000/c/community/{communityid}/housing" + # Streamlit App Layout st.title("Community Housing Details") @@ -47,4 +63,5 @@ st.error(f"Error: {response.status_code} - {response.text}") except requests.exceptions.RequestException as e: - st.error(f"Failed to connect to the API: {str(e)}") \ No newline at end of file + st.error(f"Failed to connect to the API: {str(e)}") +''' \ No newline at end of file From b287d7c25aadddd51ef6d24a7bd5e7d7d15d8b7b Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 20:40:22 -0500 Subject: [PATCH 173/305] , --- api/backend/community/community_routes.py | 35 +---------------------- api/backend/db_connection/db_config.py | 3 +- api/backend/rest_entry.py | 2 +- 3 files changed, 3 insertions(+), 37 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 64a65816be..b3f52cb948 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -5,7 +5,7 @@ from flask import current_app from backend.db_connection import db -commmunity = Blueprint('community', __name__) +community = Blueprint('community', __name__) @community.route('/community//housing', methods=['GET']) # route for retrieving carpools for the students in the same community @@ -70,39 +70,6 @@ def update_profile(): db.get_db().commit() return 'profile updated!' -@products.route('/product', methods=['POST']) -def add_new_product(): - - # In a POST request, there is a - # collecting data from the request object - the_data = request.json - current_app.logger.info(the_data) - - #extracting the variable - name = the_data['product_name'] - description = the_data['product_description'] - price = the_data['product_price'] - category = the_data['product_category'] - - #INSERT statement - query = f''' - INSERT INTO products (product_name, - description, - category, - list_price) - VALUES ('{name}', '{description}', '{category}', {str(price)}) - ''' - - current_app.logger.info(query) - - # executing and committing the insert statement - cursor = db.get_db().cursor() - cursor.execute(query) - db.get_db().commit() - - response = make_response("Successfully added product") - response.status_code = 200 - return response diff --git a/api/backend/db_connection/db_config.py b/api/backend/db_connection/db_config.py index 122f68deed..43fbccd990 100644 --- a/api/backend/db_connection/db_config.py +++ b/api/backend/db_connection/db_config.py @@ -1,4 +1,4 @@ -''' + from os import getenv print("Loading db_config.py...") @@ -13,4 +13,3 @@ } print(f"DB_CONFIG loaded: {DB_CONFIG}") -''' \ No newline at end of file diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index baebceccdc..a95d148d86 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -38,7 +38,7 @@ def create_app(): # Register the routes from each Blueprint with the app object # and give a url prefix to each app.logger.info('current_app(): registering blueprints with Flask app object.') - app.register_blueprint(simple_routes) + #app.register_blueprint(simple_routes) #app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(community, url_prefix='/c') From 4c164060d45ee4d3b9f064f566dbd67f93421043 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 21:20:05 -0500 Subject: [PATCH 174/305] update --- api/.env.template | 2 +- api/backend/community/community_routes.py | 31 +---------------------- api/backend/db_connection/__init__.py | 7 +++-- 3 files changed, 5 insertions(+), 35 deletions(-) diff --git a/api/.env.template b/api/.env.template index 8f86ce2cc0..b24b99326f 100644 --- a/api/.env.template +++ b/api/.env.template @@ -2,5 +2,5 @@ SECRET_KEY=someCrazyS3cR3T!Key.! DB_USER=root DB_HOST=db DB_PORT=3306 -DB_NAME=SyncSpace +DB_NAME=northwind MYSQL_ROOT_PASSWORD= diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index b3f52cb948..32b89fd847 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -26,7 +26,7 @@ def community_housing(): @community.route('/community', methods=['GET']) # route for retrieving carpools for the students in the same community -def community_housing(): +def community_all(): query = ''' SELECT * FROM Student; @@ -39,36 +39,7 @@ def community_housing(): response.status_code = 200 return response -@community.route('/community//carpool', methods=['GET']) -# route for retrieving carpools for the students in the same community -def community_housing(): - query = ''' - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - -@community.route('/community//housing', methods=['PUT']) -# route to update student profiles -- CODE NOT UPDATED YET -def update_profile(): - current_app.logger.info('PUT /community//housing route') - cust_info = request.json - cust_id = cust_info['id'] - first = cust_info['first_name'] - last = cust_info['last_name'] - company = cust_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cust_id) - cursor = db.get_db().cursor() - r = cursor.execute(query, data) - db.get_db().commit() - return 'profile updated!' diff --git a/api/backend/db_connection/__init__.py b/api/backend/db_connection/__init__.py index 8f4efb918d..75332ea3d6 100644 --- a/api/backend/db_connection/__init__.py +++ b/api/backend/db_connection/__init__.py @@ -3,11 +3,11 @@ #------------------------------------------------------------ from flaskext.mysql import MySQL from pymysql import cursors -#from flask import current_app +from flask import current_app + +#db = MySQL(cursorclass=cursors.DictCursor) -db = MySQL(cursorclass=cursors.DictCursor) -''' print("Loading db_connection/__init__.py...") try: @@ -32,4 +32,3 @@ def init_app(app): # Initialize the MySQL connection db.init_app(app) print("Database connection initialized") -''' \ No newline at end of file From 837ec705ac3b86ef91a72ccf3d0199fb92aae389 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Mon, 2 Dec 2024 23:42:20 -0500 Subject: [PATCH 175/305] data updates --- database-files/SyncSpace-data.sql | 1163 +++++++---------------------- database-files/SyncSpace.sql | 1 - 2 files changed, 284 insertions(+), 880 deletions(-) diff --git a/database-files/SyncSpace-data.sql b/database-files/SyncSpace-data.sql index 2921afeed5..7b50f7e0b6 100644 --- a/database-files/SyncSpace-data.sql +++ b/database-files/SyncSpace-data.sql @@ -13,56 +13,56 @@ insert into CityCommunity (Location) values ('D.C.'); insert into CityCommunity (Location) values ('Atlanta'); -- 2. Housing Data (depends on CityCommunity) -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Dormitory', 'San Francisco', 1); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Apartment', 'San Jose', 2); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Fraternity/Sorority House', 'Los Angeles', 3); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Off-Campus House', 'London', 4); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Townhouse', 'Boston', 5); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Co-op Housing', 'New York City', 6); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Tiny House', 'Chicago', 7); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Loft', 'Seattle', 8); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Studio Apartment', 'D.C.', 9); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Shared Room', 'San Francisco', 10); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Dormitory', 'San Jose', 11); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Apartment', 'Los Angeles', 12); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Fraternity/Sorority House', 'London', 13); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Off-Campus House', 'Boston', 14); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Townhouse', 'New York City', 15); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Co-op Housing', 'Chicago', 16); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Tiny House', 'Seattle', 17); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Loft', 'D.C.', 18); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Studio Apartment', 'San Francisco', 19); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Shared Room', 'San Jose', 20); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Dormitory', 'Los Angeles', 21); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Apartment', 'London', 22); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Fraternity/Sorority House', 'Boston', 23); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Off-Campus House', 'New York City', 24); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Townhouse', 'Chicago', 25); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Co-op Housing', 'Seattle', 26); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Tiny House', 'D.C.', 27); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Loft', 'San Francisco', 28); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Studio Apartment', 'San Jose', 29); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Shared Room', 'Los Angeles', 30); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Dormitory', 'London', 31); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Apartment', 'Boston', 32); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Fraternity/Sorority House', 'New York City', 33); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Off-Campus House', 'Chicago', 34); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Townhouse', 'Seattle', 35); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Co-op Housing', 'D.C.', 36); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Tiny House', 'San Francisco', 37); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Loft', 'San Jose', 38); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Studio Apartment', 'Los Angeles', 39); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Shared Room', 'London', 40); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Dormitory', 'Boston', 41); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Apartment', 'New York City', 42); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Fraternity/Sorority House', 'Chicago', 43); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Off-Campus House', 'Seattle', 44); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Townhouse', 'D.C.', 45); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Co-op Housing', 'San Francisco', 46); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Tiny House', 'San Jose', 47); -insert into Housing (Availability, Style, Location, CommunityID) values ('Pending approval', 'Loft', 'Los Angeles', 48); -insert into Housing (Availability, Style, Location, CommunityID) values ('Vacant', 'Studio Apartment', 'London', 49); -insert into Housing (Availability, Style, Location, CommunityID) values ('Occupied', 'Shared Room', 'Boston', 50); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Apartment', 7); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Apartment', 3); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'House', 2); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Dorm', 2); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Apartment', 10); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Apartment', 2); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Dorm', 10); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 4); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Dorm', 9); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 5); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'House', 3); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Apartment', 6); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Dorm', 9); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Dorm', 5); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Apartment', 6); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'House', 9); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'House', 10); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'House', 5); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'House', 10); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Dorm', 9); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'House', 4); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Dorm', 9); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Apartment', 7); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Dorm', 4); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'House', 10); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Dorm', 9); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'House', 3); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'House', 5); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Apartment', 4); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Dorm', 5); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Dorm', 2); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Apartment', 5); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 4); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Dorm', 8); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Apartment', 10); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Apartment', 6); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Apartment', 5); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'House', 7); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 6); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 7); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'House', 9); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 3); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 7); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Dorm', 10); +insert into Housing (Availability, Style, CommunityID) values ('Pending Approval', 'Apartment', 2); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'Apartment', 1); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 5); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'House', 10); +insert into Housing (Availability, Style, CommunityID) values ('Occupied', 'Dorm', 1); +insert into Housing (Availability, Style, CommunityID) values ('Vacant', 'House', 4); -- 3. User Data (no dependencies) insert into User (Name, Email, Role, PermissionsLevel) values ('Michael Ortega', 'miortega@wikispaces.com', 'System Administrator', 'admin'); @@ -95,577 +95,125 @@ insert into User (Name, Email, Role, PermissionsLevel) values ('Austin Latchmore insert into User (Name, Email, Role, PermissionsLevel) values ('Park Brettell', 'pbrettellr@reddit.com', 'Network Administrator', 'guest'); insert into User (Name, Email, Role, PermissionsLevel) values ('Bess MacMichael', 'bmacmichaels@spotify.com', 'System Administrator', 'user'); insert into User (Name, Email, Role, PermissionsLevel) values ('Pedro Gatherer', 'pgatherert@vkontakte.ru', 'IT Administrator', 'user'); -insert into User (Name, Email, Role, PermissionsLevel) values ('Thaddus Pettiford', 'bpettiford@cargocollective.com', 'Business', 'hasCar', 2500, '4 months', 'Disorganized', 'Active', 55, 7, 'Comic book store owner selling rare and collectible comics', 1, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Aprilette Kidd', 'akidd@cargocollective.com', 'Computer Science', 'notInterested', 2000, '6 months', 'Disorganized', 'Extroverted', 75, 6, 'Chess master competing in international tournaments and championships', 2, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Simone Fishbourne', 'sfishbourne@cargocollective.com', 'Art', 'complete', 1600, '6 months', 'Disorganized', 'Adventurous', 30, 7, 'Music aficionado attending concerts and music festivals', 5, null, 5); -insert into User (Name, Email, Role, PermissionsLevel) values ('Jonis MacAlaster', 'jmacalaster@cargocollective.com', 'Finance', 'hasCar', 170, '6 months', 'Messy', 'Quiet', 40, 3, 'Yoga studio owner providing classes in relaxation and mindfulness', 2, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Collette Lazenby', 'clazenby@cargocollective.com', 'Finance', 'hasCar', 3000, '4 months', 'Cluttered', 'Quiet', 15, 4, 'Firefighter captain leading a team in emergency response and rescue', 10, null, 6); -insert into User (Name, Email, Role, PermissionsLevel) values ('Conn Dullard', 'cdullard@cargocollective.com', 'Business', 'searchingForCarpool', 2500, '6 months', 'Moderate', 'Adventurous', 55, 7, 'Cycling coach developing training programs for cyclists', 9, null, 1); -insert into User (Name, Email, Role, PermissionsLevel) values ('Everard Benedito', 'ebenedito@cargocollective.com', 'Computer Science', 'complete', 1600, '6 months', 'Messy', 'Outdoorsy', 20, 1, 'Dance choreographer creating routines for performances', 7, null, 9); -insert into User (Name, Email, Role, PermissionsLevel) values ('Roman Wais', 'rwais@cargocollective.com', 'Law', 'hasCar', 1350, '1 year', 'Very Clean', 'Introverted', 5, 5, 'Loves hiking and exploring nature trails', 3, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Wynne Codrington', 'wcodrington@cargocollective.com', 'Art', 'notInterested', 1200, '4 months', 'Messy', 'Social', 60, 3, 'Hiking tour guide leading groups on scenic hikes and treks', 9, null, 1); -insert into User (Name, Email, Role, PermissionsLevel) values ('Paten Paskell', 'ppaskell@cargocollective.com', 'Art', 'hasCar', 1800, '1 year', 'Cluttered', 'Extroverted', 30, 7, 'Fashion designer creating unique clothing and accessories', 8, null, 5); -insert into User (Name, Email, Role, PermissionsLevel) values ('Dewey Tubby', 'dtubby@cargocollective.com', 'Mathematics', 'hasCar', 170, '6 months', 'Cluttered', 'Active', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 10, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Banky Tapenden', 'btapenden@cargocollective.com', 'Computer Science', 'complete', 1800, '6 months', 'Messy', 'Active', 45, 6, 'Motorcycle rider exploring scenic routes on two wheels', 4, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Worden Gansbuhler', 'wgansbuhler@cargocollective.com', 'Biology', 'searchingForCarpool', 1900, '1 year', 'Cluttered', 'Introverted', 15, 6, 'Travel blogger sharing adventures and tips with readers', 8, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Barbara Brenneke', 'bbrenneke@cargocollective.com', 'Computer Science', 'complete', 1200, '6 months', 'Clean', 'Active', 5, 6, 'Dedicated yogi practicing mindfulness and meditation', 8, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Kimbra Absolon', 'kabsolon@cargocollective.com', 'Mathematics', 'notInterested', 1350, '1 year', 'Moderate', 'Active', 75, 5, 'Environmental advocate promoting conservation and eco-friendly practices', 9, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Jayson Eitter', 'jeitter@cargocollective.com', 'Business', 'hasCar', 1150, '6 months', 'Moderate', 'Adventurous', 15, 4, 'Astrologer providing readings and insights based on celestial movements', 3, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Leonie McGenn', 'lmcgenn@cargocollective.com', 'Finance', 'complete', 170, '1 year', 'Moderate', 'Social', 25, 1, 'Comic book collector preserving rare editions and memorabilia', 2, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Andriette Playhill', 'aplayhill@cargocollective.com', 'Art', 'complete', 1150, '4 months', 'Messy', 'Outdoorsy', 35, 5, 'Antique dealer specializing in unique and valuable antiques', 9, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Deena Peirce', 'dpeirce@cargocollective.com', 'Physics', 'hasCar', 1600, '4 months', 'Messy', 'Outdoorsy', 45, 2, 'Vintage car collector restoring classic automobiles', 10, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Worthy Schreurs', 'wschreurs@cargocollective.com', 'Chemistry', 'notInterested', 1000, '4 months', 'Clean', 'Extroverted', 10, 3, 'Foodie exploring different cuisines and restaurants', 2, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Gabriel Dedrick', 'gdedrick@cargocollective.com', 'Business', 'searchingForCarpool', 3000, '1 year', 'Moderate', 'Quiet', 20, 6, 'Dance choreographer creating routines for performances', 4, null, 9); -insert into User (Name, Email, Role, PermissionsLevel) values ('Dixie Delgardo', 'ddelgardo@cargocollective.com', 'Computer Science', 'notInterested', 2000, '6 months', 'Clean', 'Introverted', 40, 1, 'Crafting enthusiast creating handmade gifts and decorations', 6, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Amargo Weatherill', 'aweatherill@cargocollective.com', 'Finance', 'searchingForCarpool', 1150, '6 months', 'Moderate', 'Adventurous', 10, 3, 'Antique dealer specializing in unique and valuable antiques', 2, null, 5); -insert into User (Name, Email, Role, PermissionsLevel) values ('Jack Amos', 'jamos@cargocollective.com', 'Finance', 'complete', 1900, '1 year', 'Clean', 'Quiet', 60, 7, 'Scuba diver exploring underwater ecosystems and marine life', 9, null, 9); -insert into User (Name, Email, Role, PermissionsLevel) values ('Alis Trimbey', 'atrimbey@cargocollective.com', 'Law', 'searchingForCarpool', 1000, '6 months', 'Cluttered', 'Quiet', 25, 1, 'Hiking guide leading groups on challenging mountain trails', 5, null, 6); -insert into User (Name, Email, Role, PermissionsLevel) values ('Kacey Outram', 'koutram@cargocollective.com', 'Computer Science', 'complete', 1000, '6 months', 'Disorganized', 'Outdoorsy', 35, 6, 'Devoted animal lover volunteering at shelters', 8, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Maddie Rodda', 'mrodda@cargocollective.com', 'Mathematics', 'searchingForCarpool', 1350, '6 months', 'Disorganized', 'Extroverted', 35, 1, 'Dedicated yogi practicing mindfulness and meditation', 7, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Vivianna Propper', 'vpropper@cargocollective.com', 'Computer Science', 'searchingForRoommates', 170, '4 months', 'Messy', 'Introverted', 35, 6, 'Marathon runner training for long-distance races', 4, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Hebert Jurries', 'hjurries@cargocollective.com', 'Physics', 'searchingForCarpool', 1200, '4 months', 'Moderate', 'Extroverted', 15, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Dorothee Tomaini', 'dtomaini@cargocollective.com', 'Biology', 'notInterested', 1000, '1 year', 'Disorganized', 'Introverted', 45, 5, 'Book publisher releasing new titles and bestsellers', 1, null, 5); -insert into User (Name, Email, Role, PermissionsLevel) values ('Kaiser Chitter', 'kchitter@cargocollective.com', 'Physics', 'complete', 1800, '1 year', 'Messy', 'Extroverted', 10, 1, 'Surfing school owner offering lessons and rentals for surfers', 1, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Jerry Himsworth', 'jhimsworth@cargocollective.com', 'Mathematics', 'notInterested', 3000, '6 months', 'Very Clean', 'Quiet', 5, 1, 'Rock climbing coach training climbers on techniques and safety', 2, null, 5); -insert into User (Name, Email, Role, PermissionsLevel) values ('Delcina Lies', 'dlies@cargocollective.com', 'Psychology', 'hasCar', 1150, '4 months', 'Clean', 'Extroverted', 30, 3, 'Passionate about cooking and trying new recipes', 6, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Britni Cowden', 'bcowden@cargocollective.com', 'Finance', 'searchingForCarpool', 1200, '6 months', 'Very Clean', 'Social', 20, 7, 'Birdwatching guide leading tours to spot rare and exotic birds', 2, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Reinald Swancock', 'rswancock@cargocollective.com', 'Finance', 'hasCar', 1600, '6 months', 'Clean', 'Outdoorsy', 30, 3, 'Gardening expert cultivating a lush and vibrant garden', 8, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Adel Gatsby', 'agatsby@cargocollective.com', 'Business', 'searchingForRoommates', 2500, '6 months', 'Very Clean', 'Outdoorsy', 40, 7, 'Sports journalist reporting on games and athletes', 4, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Stace Muffett', 'smuffett@cargocollective.com', 'Psychology', 'searchingForCarpool', 3000, '4 months', 'Very Clean', 'Extroverted', 15, 4, 'Dance studio owner providing classes in various dance styles', 3, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Ardelis Benoey', 'abenoey@cargocollective.com', 'Art', 'complete', 1150, '4 months', 'Disorganized', 'Quiet', 5, 1, 'Dance enthusiast taking classes in various styles', 10, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Allan Ivoshin', 'aivoshin@cargocollective.com', 'Computer Science', 'notInterested', 1800, '6 months', 'Cluttered', 'Outdoorsy', 10, 2, 'Dedicated yogi practicing mindfulness and meditation', 4, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Brandea Blance', 'bblance@cargocollective.com', 'Finance', 'notInterested', 1200, '6 months', 'Disorganized', 'Outdoorsy', 60, 2, 'Motorcycle racer competing in races and rallies', 3, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Charil Staresmeare', 'cstaresmeare@cargocollective.com', 'Biology', 'notInterested', 1600, '4 months', 'Moderate', 'Active', 35, 3, 'Birdwatcher spotting rare species in their natural habitats', 5, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Fleming Wardlow', 'fwardlow@cargocollective.com', 'Physics', 'complete', 1900, '6 months', 'Disorganized', 'Social', 5, 4, 'Fitness instructor leading group exercise classes', 2, null, 5); -insert into User (Name, Email, Role, PermissionsLevel) values ('Marillin Peasnone', 'mpeasnone@cargocollective.com', 'Computer Science', 'searchingForCarpool', 1200, '4 months', 'Disorganized', 'Social', 40, 1, 'Travel blogger sharing adventures and tips with readers', 7, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Fidel Dootson', 'fdootson@cargocollective.com', 'Mathematics', 'notInterested', 2000, '6 months', 'Disorganized', 'Introverted', 45, 1, 'Tech geek experimenting with the latest gadgets and software', 9, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Arturo Gerling', 'agerling@cargocollective.com', 'Physics', 'notInterested', 3000, '1 year', 'Very Clean', 'Introverted', 30, 1, 'Dance choreographer creating routines for performances', 1, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Leopold Tremble', 'ltremble@cargocollective.com', 'Chemistry', 'notInterested', 2500, '4 months', 'Messy', 'Outdoorsy', 10, 6, 'Sailing captain leading sailing expeditions and charters', 3, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Channa Pitrelli', 'cpitrelli@cargocollective.com', 'Art', 'complete', 170, '6 months', 'Cluttered', 'Quiet', 75, 4, 'Art collector acquiring works from emerging and established artists', 4, null, 6); -insert into User (Name, Email, Role, PermissionsLevel) values ('Rochella Ranns', 'rranns@cargocollective.com', 'Chemistry', 'complete', 2000, '4 months', 'Messy', 'Introverted', 75, 3, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Fae Maffione', 'fmaffione@cargocollective.com', 'Computer Science', 'complete', 1150, '6 months', 'Cluttered', 'Quiet', 55, 5, 'Vintage car restorer refurbishing classic vehicles to their former glory', 9, null, 1); -insert into User (Name, Email, Role, PermissionsLevel) values ('Nealson Coundley', 'ncoundley@cargocollective.com', 'Art', 'hasCar', 2000, '1 year', 'Very Clean', 'Adventurous', 30, 7, 'History buff visiting museums and historical sites', 1, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Jaimie Tappin', 'jtappin@cargocollective.com', 'Biology', 'searchingForCarpool', 2000, '4 months', 'Clean', 'Social', 45, 7, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 3, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Susanna Pykerman', 'spykerman@cargocollective.com', 'Law', 'complete', 2000, '6 months', 'Clean', 'Adventurous', 30, 3, 'Avid collector of vintage vinyl records', 7, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Leda Standish-Brooks', 'lstandishbrooks@cargocollective.com', 'Law', 'hasCar', 2500, '1 year', 'Messy', 'Introverted', 60, 1, 'Sports fan cheering for their favorite teams at games', 9, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Alfredo Verling', 'averling@cargocollective.com', 'Physics', 'notInterested', 1200, '4 months', 'Very Clean', 'Social', 55, 7, 'Photography teacher instructing students on composition and lighting', 6, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Kristina Orteu', 'korte@cargocollective.com', 'Chemistry', 'complete', 1600, '4 months', 'Moderate', 'Introverted', 15, 5, 'Crafting enthusiast creating handmade gifts and decorations', 3, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Darcee Itzkowicz', 'ditzkowicz@cargocollective.com', 'Chemistry', 'hasCar', 170, '6 months', 'Very Clean', 'Introverted', 5, 2, 'Chess master competing in international tournaments and championships', 10, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Brigg Braidley', 'bbraidley@cargocollective.com', 'Biology', 'searchingForCarpool', 1600, '4 months', 'Very Clean', 'Introverted', 55, 1, 'Environmental advocate promoting conservation and eco-friendly practices', 7, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Jade Waplington', 'jwaplington@cargocollective.com', 'Finance', 'hasCar', 2500, '4 months', 'Very Clean', 'Introverted', 30, 6, 'Environmental advocate promoting conservation and eco-friendly practices', 4, null, 9); -insert into User (Name, Email, Role, PermissionsLevel) values ('Claire Mallender', 'cmallender@cargocollective.com', 'Biology', 'complete', 1200, '6 months', 'Disorganized', 'Active', 10, 6, 'Vintage car restorer refurbishing classic vehicles to their former glory', 1, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Wileen Loveman', 'wloveman@cargocollective.com', 'Biology', 'complete', 3000, '4 months', 'Very Clean', 'Social', 20, 6, 'History professor researching and teaching historical events', 2, null, 1); -insert into User (Name, Email, Role, PermissionsLevel) values ('Shannon Eagar', 'seagar@cargocollective.com', 'Chemistry', 'complete', 1000, '1 year', 'Cluttered', 'Adventurous', 30, 2, 'Sailing captain leading sailing expeditions and charters', 8, null, 1); -insert into User (Name, Email, Role, PermissionsLevel) values ('Nikita Ferronet', 'nferonet@cargocollective.com', 'Computer Science', 'complete', 2000, '6 months', 'Clean', 'Social', 5, 1, 'Vintage car collector restoring classic automobiles', 3, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Quinn Corner', 'qcorner@cargocollective.com', 'Biology', 'complete', 1800, '1 year', 'Cluttered', 'Active', 20, 1, 'Gaming streamer broadcasting gameplay and interacting with viewers', 3, null, 9); -insert into User (Name, Email, Role, PermissionsLevel) values ('Hewie Speek', 'hspeek@cargocollective.com', 'Art', 'complete', 2000, '1 year', 'Moderate', 'Adventurous', 75, 1, 'Antique dealer specializing in unique and valuable antiques', 5, null, 6); -insert into User (Name, Email, Role, PermissionsLevel) values ('Ronica Maplethorp', 'rmaplethorp@cargocollective.com', 'Law', 'searchingForRoommates', 1800, '4 months', 'Cluttered', 'Social', 10, 2, 'Travel blogger sharing adventures and tips with readers', 10, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Blair Shedden', 'bshedden@cargocollective.com', 'Physics', 'searchingForCarpool', 2000, '6 months', 'Disorganized', 'Extroverted', 25, 4, 'Tech geek experimenting with the latest gadgets and software', 7, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Nolly Petry', 'npetry@cargocollective.com', 'Law', 'complete', 1000, '6 months', 'Disorganized', 'Social', 55, 5, 'Fashion designer creating unique clothing and accessories', 5, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Flemming Gatecliffe', 'fgatecliffe@cargocollective.com', 'Computer Science', 'notInterested', 170, '1 year', 'Cluttered', 'Introverted', 75, 2, 'Tech entrepreneur developing innovative solutions and products', 9, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Prince Stickells', 'pstickells@cargocollective.com', 'Finance', 'hasCar', 2500, '4 months', 'Cluttered', 'Social', 30, 1, 'Dance choreographer creating routines for performances', 9, null, 5); -insert into User (Name, Email, Role, PermissionsLevel) values ('Moselle Huddy', 'mhuudy@cargocollective.com', 'Biology', 'searchingForHousing', 1350, '4 months', 'Disorganized', 'Social', 5, 2, 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 4, null, 10); -insert into User (Name, Email, Role, PermissionsLevel) values ('Fraser Crippill', 'fcrippill@cargocollective.com', 'Physics', 'notInterested', 1900, '1 year', 'Disorganized', 'Extroverted', 15, 2, 'Environmental advocate promoting conservation and eco-friendly practices', 10, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Jenda Wrinch', 'jwrinch@cargocollective.com', 'Psychology', 'complete', 1000, '6 months', 'Very Clean', 'Outdoorsy', 35, 1, 'Gardening expert cultivating a lush and vibrant garden', 9, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Corliss Lavallie', 'clavallie@cargocollective.com', 'Chemistry', 'hasCar', 2500, '6 months', 'Clean', 'Social', 55, 2, 'History buff visiting museums and historical sites', 1, null, 6); -insert into User (Name, Email, Role, PermissionsLevel) values ('Ivonne Wickrath', 'iwickrath@cargocollective.com', 'Art', 'complete', 3000, '4 months', 'Moderate', 'Quiet', 75, 7, 'Keen gardener growing a variety of fruits and vegetables', 7, null, 6); -insert into User (Name, Email, Role, PermissionsLevel) values ('Pearline Grumell', 'pgrumell@cargocollective.com', 'Chemistry', 'complete', 3000, '6 months', 'Messy', 'Social', 30, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 5, null, 1); -insert into User (Name, Email, Role, PermissionsLevel) values ('Susannah Raddan', 'sraddan@cargocollective.com', 'Art', 'hasCar', 1800, '4 months', 'Clean', 'Adventurous', 75, 5, 'Book publisher releasing new titles and bestsellers', 5, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Delila Coulbeck', 'doulbeck@cargocollective.com', 'Psychology', 'complete', 2500, '4 months', 'Cluttered', 'Active', 45, 2, 'Wine connoisseur tasting and collecting fine wines', 2, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Berton Harmeston', 'bharmeston@cargocollective.com', 'Biology', 'hasCar', 1000, '1 year', 'Moderate', 'Quiet', 60, 1, 'Vintage car collector restoring classic automobiles', 8, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Donalt Gunning', 'dgunning@cargocollective.com', 'Finance', 'notInterested', 1200, '4 months', 'Clean', 'Quiet', 30, 2, 'Astrologer providing readings and insights based on celestial movements', 9, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Tymon Neilus', 'tneilus@cargocollective.com', 'Biology', 'complete', 1600, '4 months', 'Cluttered', 'Quiet', 30, 7, 'Soccer coach training players on skills and strategies for the game', 9, null, 6); -insert into User (Name, Email, Role, PermissionsLevel) values ('Leoine Oswell', 'loswell@cargocollective.com', 'Art', 'complete', 1150, '1 year', 'Messy', 'Social', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 9, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Gerry Gatecliff', 'ggatecliff@cargocollective.com', 'Finance', 'searchingForCarpool', 1600, '1 year', 'Clean', 'Outdoorsy', 45, 6, 'Sports commentator providing analysis and commentary on games', 9, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Marissa Broun', 'mbroun@cargocollective.com', 'Finance', 'complete', 3000, '1 year', 'Cluttered', 'Extroverted', 45, 1, 'Obsessed with DIY home improvement projects', 6, null, 8); -insert into User (Name, Email, Role, PermissionsLevel) values ('Letty Mewton', 'lmeeton@cargocollective.com', 'Physics', 'complete', 1150, '4 months', 'Moderate', 'Quiet', 45, 5, 'Music festival organizer planning and coordinating live music events', 9, null, 7); -insert into User (Name, Email, Role, PermissionsLevel) values ('Arthur Gave', 'agave@cargocollective.com', 'Business', 'notInterested', 2500, '6 months', 'Disorganized', 'Extroverted', 40, 3, 'Fitness influencer inspiring followers with workout routines and tips', 3, null, 3); -insert into User (Name, Email, Role, PermissionsLevel) values ('Joleen Satterly', 'jsatterly@cargocollective.com', 'Physics', 'searchingForHousing', 1600, '6 months', 'Moderate', 'Adventurous', 75, 4, 'Rock climbing coach training climbers on techniques and safety', 9, null, 2); -insert into User (Name, Email, Role, PermissionsLevel) values ('Wheeler Martynka', 'wmartynka@cargocollective.com', 'Business', 'searchingForCarpool', 1350, '6 months', 'Disorganized', 'Adventurous', 10, 5, 'Rock climbing coach training climbers on techniques and safety', 5, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Marys Hannaby', 'mhanaby@cargocollective.com', 'Art', 'searchingForHousing', 170, '1 year', 'Cluttered', 'Active', 30, 6, 'Surfing enthusiast catching waves at the beach', 10, null, 4); -insert into User (Name, Email, Role, PermissionsLevel) values ('Ariel Gabotti', 'agabotti@cargocollective.com', 'Biology', 'complete', 3000, '1 year', 'Moderate', 'Introverted', 60, 6, 'Soccer coach training players on skills and strategies for the game', 1, null, 9); + -- 4. Advisor Data (no dependencies) insert into Advisor (Name, Email, Department) values ('John Smith', 'jsmith@university.edu', 'Computer Science'); insert into Advisor (Name, Email, Department) values ('Sarah Johnson', 'sjohnson@university.edu', 'Engineering'); -insert into Advisor (Name, Email, Department) values ('Jessica Doofenshmirtz', 'gmccard0@nps.gov', 'Khoury College', 8); -insert into Advisor (Name, Email, Department, StudentID) values ('Babbette Marle', 'bmarle1@bbc.co.uk', 'College of Engineering', 50); -insert into Advisor (Name, Email, Department, StudentID) values ('Lena Graver', 'lgraver2@creativecommons.org', 'D''Amore Mc-Kim', 99); -insert into Advisor (Name, Email, Department, StudentID) values ('Kevina Garden', 'kgarden3@sina.com.cn', 'College of Science', 38); -insert into Advisor (Name, Email, Department, StudentID) values ('Cathryn Tatershall', 'ctatershall4@free.fr', 'Bouve College', 14); -insert into Advisor (Name, Email, Department, StudentID) values ('Domingo Stanlick', 'dstanlick5@arstechnica.com', 'College of Science', 77); -insert into Advisor (Name, Email, Department, StudentID) values ('Joyous Ferby', 'jferby6@yahoo.com', 'Khoury College', 91); -insert into Advisor (Name, Email, Department, StudentID) values ('Thibaut Biles', 'tbiles7@4shared.com', 'College of Engineering', 17); -insert into Advisor (Name, Email, Department, StudentID) values ('Tana Roblou', 'troblou8@cargocollective.com', 'D''Amore Mc-Kim', 26); -insert into Advisor (Name, Email, Department, StudentID) values ('Sheridan Gunny', 'sgunny9@arizona.edu', 'College of Science', 65); +insert into Advisor (Name, Email, Department) values ('Jessica Doofenshmirtz', 'gmccard0@nps.gov', 'Khoury College'); +insert into Advisor (Name, Email, Department) values ('Babbette Marle', 'bmarle1@bbc.co.uk', 'College of Engineering'); +insert into Advisor (Name, Email, Department) values ('Lena Graver', 'lgraver2@creativecommons.org', 'D''Amore Mc-Kim'); +insert into Advisor (Name, Email, Department) values ('Kevina Garden', 'kgarden3@sina.com.cn', 'College of Science'); +insert into Advisor (Name, Email, Department) values ('Cathryn Tatershall', 'ctatershall4@free.fr', 'Bouve College'); +insert into Advisor (Name, Email, Department) values ('Domingo Stanlick', 'dstanlick5@arstechnica.com', 'College of Science'); +insert into Advisor (Name, Email, Department) values ('Joyous Ferby', 'jferby6@yahoo.com', 'Khoury College'); +insert into Advisor (Name, Email, Department) values ('Thibaut Biles', 'tbiles7@4shared.com', 'College of Engineering'); +insert into Advisor (Name, Email, Department) values ('Tana Roblou', 'troblou8@cargocollective.com', 'D''Amore Mc-Kim'); +insert into Advisor (Name, Email, Department) values ('Sheridan Gunny', 'sgunny9@arizona.edu', 'College of Science'); -- 5. Student Data (depends on CityCommunity, Housing, and Advisor) -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Leland Izaks', 'Computer Science', 'Eire', 'San Jose', 'Searching for Housing', - 'Not Interested', 1350, '1 year', 'Cluttered', 'Social', 15, 1, - 'Gamer immersing themselves in virtual worlds and online competitions', 1, 1, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Demetris Dury', 'Computer Science', 'Photospace', 'San Jose', 'Searching for Roommates', - 'Searching for Carpool', 1800, '4 months', 'Moderate', 'Active', 75, 2, - 'Music festival organizer planning and coordinating live music events', 2, 2, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Zelig Matuszinski', 'Physics', 'Podcat', 'London', 'Not Interested', - 'Not Interested', 3000, '4 months', 'Moderate', 'Quiet', 55, 1, - 'Wine connoisseur tasting and collecting fine wines', 3, 3, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Lonni Duke', 'Business', 'Jabbercube', 'Boston', 'Searching for Housing', - 'Not Interested', 1150, '4 months', 'Disorganized', 'Introverted', 45, 3, - 'Avid collector of vintage vinyl records', 4, 4, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Gannie Dearness', 'Business', 'Youspan', 'San Jose', 'Searching for Roommates', - 'Searching for Carpool', 2000, '6 months', 'Cluttered', 'Extroverted', 75, 1, - 'Sailing captain leading sailing expeditions and charters', 5, 5, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Garnet Mathieson', 'Chemistry', 'Realbuzz', 'London', 'Complete', - 'Searching for Carpool', 1350, '6 months', 'Clean', 'Adventurous', 45, 7, - 'Vintage car collector restoring classic automobiles', 6, 6, 6); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Valeria Algore', 'Psychology', 'Quimba', 'Seattle', 'Searching for Housing', - 'Has Car', 1600, '6 months', 'Very Clean', 'Adventurous', 40, 4, - 'Travel photographer capturing stunning landscapes and cultures', 7, 7, 7); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Lita Delahunty', 'Biology', 'Fivebridge', 'Los Angeles', 'Searching for Roommates', - 'Not Interested', 1800, '4 months', 'Moderate', 'Quiet', 40, 7, - 'Tech geek experimenting with the latest gadgets and software', 8, 8, 8); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Tanitansy Wallhead', 'Computer Science', 'Kanoodle', 'London', 'Searching for Housing', - 'Searching for Carpool', 1200, '6 months', 'Moderate', 'Outdoorsy', 55, 4, - 'Dance studio owner providing classes in various dance styles', 9, 9, 9); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Fleur Vitet', 'Psychology', 'Shuffledrive', 'D.C.', 'Searching for Housing', - 'Has Car', 2000, '4 months', 'Disorganized', 'Quiet', 10, 4, - 'Soccer player training for matches and tournaments', 10, 10, 10); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Celie Franchi', 'Finance', 'Jaxspan', 'Seattle', 'Searching for Housing', - 'Has Car', 2500, '1 year', 'Messy', 'Extroverted', 5, 5, - 'Dance choreographer creating routines for performances', 11, 11, 11); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Thaddus Pettiford', 'Business', 'Meejo', 'San Francisco', 'Not Interested', - 'Has Car', 2500, '4 months', 'Disorganized', 'Active', 55, 7, - 'Comic book store owner selling rare and collectible comics', 12, 12, 12); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Aprilette Kidd', 'Computer Science', 'Kaymbo', 'San Francisco', 'Not Interested', - 'Complete', 2000, '6 months', 'Disorganized', 'Extroverted', 75, 6, - 'Chess master competing in international tournaments and championships', 13, 13, 13); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Simone Fishbourne', 'Art', 'Gigabox', 'Los Angeles', 'Searching for Roommates', - 'Complete', 1600, '6 months', 'Disorganized', 'Adventurous', 30, 7, - 'Music aficionado attending concerts and music festivals', 14, 14, 14); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Jonis MacAlaster', 'Finance', 'Babbleblab', 'San Jose', 'Searching for Roommates', - 'Has Car', 170, '6 months', 'Messy', 'Quiet', 40, 3, - 'Yoga studio owner providing classes in relaxation and mindfulness', 15, 15, 15); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Collette Lazenby', 'Finance', 'Gigaclub', 'D.C.', 'Searching for Housing', - 'Has Car', 3000, '4 months', 'Cluttered', 'Quiet', 15, 4, - 'Firefighter captain leading a team in emergency response and rescue', 16, 16, 16); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Conn Dullard', 'Business', 'Feednation', 'New York City', 'Not Interested', - 'Searching for Carpool', 2500, '6 months', 'Moderate', 'Adventurous', 55, 7, - 'Cycling coach developing training programs for cyclists', 17, 17, 17); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Everard Benedito', 'Computer Science', 'Zoomcast', 'San Francisco', 'Searching for Housing', - 'Complete', 1600, '6 months', 'Messy', 'Outdoorsy', 20, 1, - 'Dance choreographer creating routines for performances', 18, 18, 18); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Roman Wais', 'Law', 'Eire', 'Atlanta', 'Complete', 'Has Car', 1350, '1 year', 'Very Clean', 'Introverted', 5, 5, - 'Loves hiking and exploring nature trails', 19, 19, 19); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Wynne Codrington', 'Art', 'Topiczoom', 'San Jose', 'Not Interested', - 'Not Interested', 1200, '4 months', 'Messy', 'Social', 60, 3, - 'Hiking tour guide leading groups on scenic hikes and treks', 20, 20, 20); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Paten Paskell', 'Art', 'Plambee', 'New York City', 'Searching for Roommates', - 'Has Car', 1800, '1 year', 'Cluttered', 'Extroverted', 30, 7, - 'Fashion designer creating unique clothing and accessories', 21, 21, 21); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Dewey Tubby', 'Mathematics', 'Miboo', 'Los Angeles', 'Not Interested', - 'Has Car', 170, '6 months', 'Cluttered', 'Active', 45, 5, - 'Antique enthusiast scouring flea markets for hidden treasures', 22, 22, 22); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Banky Tapenden', 'Computer Science', 'Yozio', 'Atlanta', 'Complete', - 'Searching for Carpool', 1800, '6 months', 'Messy', 'Active', 45, 6, - 'Motorcycle rider exploring scenic routes on two wheels', 23, 23, 23); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Worden Gansbuhler', 'Biology', 'Zoomlounge', 'New York City', 'Searching for Housing', - 'Searching for Carpool', 1900, '1 year', 'Cluttered', 'Introverted', 15, 6, - 'Travel blogger sharing adventures and tips with readers', 24, 24, 24); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Barbara Brenneke', 'Computer Science', 'Meetz', 'Seattle', 'Searching for Housing', - 'Complete', 1200, '6 months', 'Clean', 'Active', 5, 6, - 'Dedicated yogi practicing mindfulness and meditation', 25, 25, 25); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Kimbra Absolon', 'Mathematics', 'Shuffletag', 'San Francisco', 'Not Interested', - 'Not Interested', 1350, '1 year', 'Moderate', 'Active', 75, 5, - 'Environmental advocate promoting conservation and eco-friendly practices', 26, 26, 26); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Jayson Eitter', 'Business', 'Brainlounge', 'Atlanta', 'Searching for Housing', - 'Has Car', 1150, '6 months', 'Moderate', 'Adventurous', 15, 4, - 'Astrologer providing readings and insights based on celestial movements', 27, 27, 27); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Leonie McGenn', 'Finance', 'Mita', 'Boston', 'Searching for Housing', - 'Complete', 170, '1 year', 'Moderate', 'Social', 25, 1, - 'Comic book collector preserving rare editions and memorabilia', 28, 28, 28); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Andriette Playhill', 'Art', 'Roombo', 'London', 'Not Interested', - 'Complete', 1150, '4 months', 'Messy', 'Outdoorsy', 35, 5, - 'Antique dealer specializing in unique and valuable antiques', 29, 29, 29); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Deena Peirce', 'Physics', 'Yodel', 'Boston', 'Complete', 'Has Car', 1600, '4 months', - 'Messy', 'Outdoorsy', 45, 2, 'Vintage car collector restoring classic automobiles', 30, 30, 30); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Worthy Schreurs', 'Chemistry', 'Topicblab', 'Chicago', 'Complete', - 'Not Interested', 1000, '4 months', 'Clean', 'Extroverted', 10, 3, - 'Foodie exploring different cuisines and restaurants', 31, 31, 31); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Gabriel Dedrick', 'Business', 'Flipbug', 'Atlanta', 'Searching for Housing', - 'Searching for Carpool', 3000, '1 year', 'Moderate', 'Quiet', 20, 6, - 'Dance choreographer creating routines for performances', 32, 32, 32); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Dixie Delgardo', 'Computer Science', 'Trunyx', 'D.C.', 'Searching for Housing', - 'Not Interested', 2000, '6 months', 'Clean', 'Introverted', 40, 1, - 'Crafting enthusiast creating handmade gifts and decorations', 33, 33, 33); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Amargo Weatherill', 'Finance', 'Browsecat', 'San Francisco', 'Not Interested', - 'Searching for Carpool', 1150, '6 months', 'Moderate', 'Adventurous', 10, 3, - 'Antique dealer specializing in unique and valuable antiques', 34, 34, 34); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Jack Amos', 'Finance', 'Eimbee', 'San Jose', 'Not Interested', 'Complete', 1900, '1 year', 'Clean', 'Quiet', 60, 7, - 'Scuba diver exploring underwater ecosystems and marine life', 35, 35, 35); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Alis Trimbey', 'Law', 'Devpulse', 'New York City', 'Searching for Roommates', - 'Searching for Carpool', 1000, '6 months', 'Cluttered', 'Quiet', 25, 1, - 'Hiking guide leading groups on challenging mountain trails', 36, 36, 36); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Kacey Outram', 'Computer Science', 'Gigazoom', 'San Jose', 'Complete', - 'Searching for Carpool', 1000, '6 months', 'Disorganized', 'Outdoorsy', 35, 6, - 'Devoted animal lover volunteering at shelters', 37, 37, 37); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Maddie Rodda', 'Mathematics', 'Dabjam', 'San Jose', 'Searching for Roommates', - 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Extroverted', 35, 1, - 'Dedicated yogi practicing mindfulness and meditation', 38, 38, 38); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Vivianna Propper', 'Computer Science', 'Thoughtmix', 'London', 'Searching for Roommates', - 'Searching for Carpool', 170, '4 months', 'Messy', 'Introverted', 35, 6, - 'Marathon runner training for long-distance races', 39, 39, 39); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Hebert Jurries', 'Physics', 'Avamm', 'Los Angeles', 'Searching for Roommates', - 'Searching for Carpool', 1200, '4 months', 'Moderate', 'Extroverted', 15, 7, - 'Photography teacher instructing students on composition and lighting', 40, 40, 40); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Dorothee Tomaini', 'Biology', 'Rhybox', 'Chicago', 'Not Interested', - 'Not Interested', 1000, '1 year', 'Disorganized', 'Introverted', 45, 5, - 'Book publisher releasing new titles and bestsellers', 41, 41, 41); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Kaiser Chitter', 'Physics', 'Thoughtbridge', 'Seattle', 'Searching for Housing', - 'Complete', 1800, '1 year', 'Messy', 'Extroverted', 10, 1, - 'Surfing school owner offering lessons and rentals for surfers', 42, 42, 42); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Jerry Himsworth', 'Mathematics', 'Quatz', 'Boston', 'Searching for Housing', - 'Not Interested', 3000, '6 months', 'Very Clean', 'Quiet', 5, 1, - 'Rock climbing coach training climbers on techniques and safety', 43, 43, 43); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Delcina Lies', 'Psychology', 'Dynabox', 'San Francisco', 'Not Interested', - 'Has Car', 1150, '4 months', 'Clean', 'Extroverted', 30, 3, - 'Passionate about cooking and trying new recipes', 44, 44, 44); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Britni Cowden', 'Finance', 'Tagtune', 'Atlanta', 'Not Interested', - 'Searching for Carpool', 1200, '6 months', 'Very Clean', 'Social', 20, 7, - 'Birdwatching guide leading tours to spot rare and exotic birds', 45, 45, 45); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Reinald Swancock', 'Finance', 'Thoughtstorm', 'San Jose', 'Searching for Roommates', - 'Has Car', 1600, '6 months', 'Clean', 'Outdoorsy', 30, 3, - 'Gardening expert cultivating a lush and vibrant garden', 46, 46, 46); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Adel Gatsby', 'Business', 'Yodo', 'Atlanta', 'Searching for Roommates', - 'Searching for Carpool', 2500, '6 months', 'Very Clean', 'Outdoorsy', 40, 7, - 'Sports journalist reporting on games and athletes', 47, 47, 47); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Stace Muffett', 'Psychology', 'Midel', 'San Francisco', 'Not Interested', - 'Searching for Carpool', 3000, '4 months', 'Very Clean', 'Extroverted', 15, 4, - 'Dance studio owner providing classes in various dance styles', 48, 48, 48); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Ardelis Benoey', 'Art', 'Aimbu', 'Seattle', 'Complete', 'Searching for Carpool', - 1150, '4 months', 'Disorganized', 'Quiet', 5, 1, 'Dance enthusiast taking classes in various styles', 49, 49, 49); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Allan Ivoshin', 'Computer Science', 'JumpXS', 'Los Angeles', 'Not Interested', - 'Complete', 1800, '6 months', 'Cluttered', 'Outdoorsy', 10, 2, - 'Dedicated yogi practicing mindfulness and meditation', 50, 50, 50); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Brandea Blance', 'Finance', 'Meembee', 'San Jose', 'Searching for Housing', - 'Not Interested', 1200, '6 months', 'Disorganized', 'Outdoorsy', 60, 2, - 'Motorcycle racer competing in races and rallies', 51, 51, 51); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Charil Staresmeare', 'Biology', 'Meembee', 'San Francisco', 'Not Interested', - 'Not Interested', 1600, '4 months', 'Moderate', 'Active', 35, 3, - 'Birdwatcher spotting rare species in their natural habitats', 52, 52, 52); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Fleming Wardlow', 'Physics', 'Youopia', 'Seattle', 'Complete', 'Complete', - 1900, '6 months', 'Disorganized', 'Social', 5, 4, 'Fitness instructor leading group exercise classes', 53, 53, 53); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Marillin Peasnone', 'Computer Science', 'Wordpedia', 'Seattle', 'Searching for Housing', - 'Searching for Carpool', 1200, '4 months', 'Disorganized', 'Social', 40, 1, - 'Travel blogger sharing adventures and tips with readers', 54, 54, 54); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Fidel Dootson', 'Mathematics', 'Flipstorm', 'D.C.', 'Searching for Housing', - 'Not Interested', 2000, '6 months', 'Disorganized', 'Introverted', 45, 1, - 'Tech geek experimenting with the latest gadgets and software', 55, 55, 55); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Arturo Gerling', 'Physics', 'Photojam', 'D.C.', 'Not Interested', 'Complete', - 3000, '1 year', 'Very Clean', 'Introverted', 30, 1, 'Dance choreographer creating routines for performances', 56, 56, 56); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Leopold Tremble', 'Chemistry', 'Pixope', 'London', 'Searching for Roommates', - 'Not Interested', 2500, '4 months', 'Messy', 'Outdoorsy', 10, 6, - 'Sailing captain leading sailing expeditions and charters', 57, 57, 57); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Channa Pitrelli', 'Art', 'Dabvine', 'San Francisco', 'Searching for Roommates', - 'Complete', 170, '6 months', 'Cluttered', 'Quiet', 75, 4, - 'Art collector acquiring works from emerging and established artists', 58, 58, 58); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Rochella Ranns', 'Chemistry', 'JumpXS', 'Los Angeles', 'Searching for Housing', - 'Complete', 2000, '4 months', 'Messy', 'Introverted', 75, 3, - 'Tech geek experimenting with the latest gadgets and software', 59, 59, 59); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Fae Maffione', 'Computer Science', 'Twitternation', 'D.C.', 'Searching for Housing', - 'Complete', 1150, '6 months', 'Cluttered', 'Quiet', 55, 5, - 'Vintage car restorer refurbishing classic vehicles to their former glory', 60, 60, 60); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Nealson Coundley', 'Art', 'Linkbuzz', 'London', 'Complete', 'Has Car', - 2000, '1 year', 'Very Clean', 'Adventurous', 30, 7, 'History buff visiting museums and historical sites', 61, 61, 61); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Jaimie Tappin', 'Biology', 'Gigaclub', 'San Jose', 'Not Interested', - 'Searching for Carpool', 2000, '4 months', 'Clean', 'Social', 45, 7, - 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 62, 62, 62); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Susanna Pykerman', 'Law', 'Centidel', 'Chicago', 'Not Interested', - 'Searching for Carpool', 2000, '6 months', 'Clean', 'Adventurous', 30, 3, - 'Avid collector of vintage vinyl records', 63, 63, 63); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Leda Standish-Brooks', 'Law', 'Eabox', 'Los Angeles', 'Complete', 'Has Car', - 2500, '1 year', 'Messy', 'Introverted', 60, 1, 'Sports fan cheering for their favorite teams at games', 64, 64, 64); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Alfredo Verling', 'Physics', 'Livetube', 'San Jose', 'Complete', 'Not Interested', - 1200, '4 months', 'Very Clean', 'Social', 55, 7, 'Photography teacher instructing students on composition and lighting', 65, 65, 65); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Kristina Orteu', 'Chemistry', 'Skiptube', 'Los Angeles', 'Not Interested', - 'Complete', 1600, '4 months', 'Moderate', 'Introverted', 15, 5, - 'Crafting enthusiast creating handmade gifts and decorations', 66, 66, 66); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Darcee Itzkowicz', 'Chemistry', 'Fadeo', 'Chicago', 'Not Interested', 'Has Car', - 170, '6 months', 'Very Clean', 'Introverted', 5, 2, 'Chess master competing in international tournaments and championships', 67, 67, 67); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Brigg Braidley', 'Biology', 'Twimbo', 'Los Angeles', 'Complete', 'Searching for Carpool', - 1600, '4 months', 'Very Clean', 'Introverted', 55, 1, 'Environmental advocate promoting conservation and eco-friendly practices', 68, 68, 68); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Jade Waplington', 'Finance', 'Innotype', 'Atlanta', 'Not Interested', 'Has Car', - 2500, '4 months', 'Very Clean', 'Introverted', 30, 6, 'Environmental advocate promoting conservation and eco-friendly practices', 69, 69, 69); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Claire Mallender', 'Biology', 'Roombo', 'Chicago', 'Complete', 'Has Car', - 1200, '6 months', 'Disorganized', 'Active', 10, 6, 'Vintage car restorer refurbishing classic vehicles to their former glory', 70, 70, 70); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Wileen Loveman', 'Biology', 'Abata', 'Atlanta', 'Searching for Housing', - 'Complete', 3000, '4 months', 'Very Clean', 'Social', 20, 6, 'History professor researching and teaching historical events', 71, 71, 71); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Shannon Eagar', 'Chemistry', 'Skibox', 'London', 'Complete', 'Searching for Carpool', - 1000, '1 year', 'Cluttered', 'Adventurous', 30, 2, 'Sailing captain leading sailing expeditions and charters', 72, 72, 72); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Nikita Ferronet', 'Computer Science', 'Fadeo', 'Boston', 'Complete', 'Searching for Carpool', - 2000, '6 months', 'Clean', 'Social', 5, 1, 'Vintage car collector restoring classic automobiles', 73, 73, 73); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Quinn Corner', 'Biology', 'Meevee', 'New York City', 'Searching for Roommates', - 'Has Car', 1800, '1 year', 'Cluttered', 'Active', 20, 1, 'Gaming streamer broadcasting gameplay and interacting with viewers', 74, 74, 74); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Hewie Speek', 'Art', 'Einti', 'Seattle', 'Not Interested', 'Complete', - 2000, '1 year', 'Moderate', 'Adventurous', 75, 1, 'Antique dealer specializing in unique and valuable antiques', 75, 75, 75); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Ronica Maplethorp', 'Law', 'Skiba', 'D.C.', 'Searching for Roommates', - 'Searching for Carpool', 1800, '4 months', 'Cluttered', 'Social', 10, 2, - 'Travel blogger sharing adventures and tips with readers', 76, 76, 76); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Blair Shedden', 'Physics', 'Fanoodle', 'Seattle', 'Searching for Roommates', - 'Searching for Carpool', 2000, '6 months', 'Disorganized', 'Extroverted', 25, 4, - 'Tech geek experimenting with the latest gadgets and software', 77, 77, 77); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Nolly Petry', 'Law', 'Buzzster', 'Atlanta', 'Searching for Roommates', - 'Complete', 1000, '6 months', 'Disorganized', 'Social', 55, 5, 'Fashion designer creating unique clothing and accessories', 78, 78, 78); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Flemming Gatecliffe', 'Computer Science', 'Yombu', 'New York City', 'Not Interested', - 170, '1 year', 'Cluttered', 'Introverted', 75, 2, 'Tech entrepreneur developing innovative solutions and products', 79, 79, 79); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Prince Stickells', 'Finance', 'Dabfeed', 'Atlanta', 'Not Interested', 'Has Car', - 2500, '4 months', 'Cluttered', 'Social', 30, 1, 'Dance choreographer creating routines for performances', 80, 80, 80); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Moselle Huddy', 'Biology', 'Kare', 'Los Angeles', 'Searching for Housing', - 'Complete', 1350, '4 months', 'Disorganized', 'Social', 5, 2, - 'Thrives on adrenaline with extreme sports like skydiving and bungee jumping', 81, 81, 81); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Fraser Crippill', 'Physics', 'Dynazzy', 'Los Angeles', 'Searching for Roommates', - 'Not Interested', 1900, '1 year', 'Disorganized', 'Extroverted', 15, 2, - 'Environmental advocate promoting conservation and eco-friendly practices', 82, 82, 82); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Jenda Wrinch', 'Psychology', 'Twinder', 'San Jose', 'Complete', 'Complete', - 1000, '6 months', 'Very Clean', 'Outdoorsy', 35, 1, 'Gardening expert cultivating a lush and vibrant garden', 83, 83, 83); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Corliss Lavallie', 'Chemistry', 'Geba', 'Boston', 'Searching for Housing', - 'Has Car', 2500, '6 months', 'Clean', 'Social', 55, 2, 'History buff visiting museums and historical sites', 84, 84, 84); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Ivonne Wickrath', 'Art', 'Divavu', 'London', 'Complete', 'Complete', - 3000, '4 months', 'Moderate', 'Quiet', 75, 7, 'Keen gardener growing a variety of fruits and vegetables', 85, 85, 85); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Pearline Grumell', 'Chemistry', 'Feedfish', 'Seattle', 'Not Interested', - 'Complete', 3000, '6 months', 'Messy', 'Social', 30, 1, 'Gamer immersing themselves in virtual worlds and online competitions', 86, 86, 86); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Susannah Raddan', 'Art', 'Tazzy', 'D.C.', 'Complete', 'Has Car', - 1800, '4 months', 'Clean', 'Adventurous', 75, 5, 'Book publisher releasing new titles and bestsellers', 87, 87, 87); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Delila Coulbeck', 'Psychology', 'Demimbu', 'D.C.', 'Searching for Roommates', - 'Complete', 2500, '4 months', 'Cluttered', 'Active', 45, 2, 'Wine connoisseur tasting and collecting fine wines', 88, 88, 88); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Berton Harmeston', 'Biology', 'Janyx', 'Chicago', 'Searching for Roommates', - 'Has Car', 1000, '1 year', 'Moderate', 'Quiet', 60, 1, 'Vintage car collector restoring classic automobiles', 89, 89, 89); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Donalt Gunning', 'Finance', 'Riffpedia', 'Atlanta', 'Searching for Roommates', - 'Not Interested', 1200, '4 months', 'Clean', 'Quiet', 30, 2, 'Astrologer providing readings and insights based on celestial movements', 90, 90, 90); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Tymon Neilus', 'Biology', 'Pixope', 'New York City', 'Complete', 'Searching for Carpool', - 1600, '4 months', 'Cluttered', 'Quiet', 30, 7, 'Soccer coach training players on skills and strategies for the game', 91, 91, 91); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Leoine Oswell', 'Art', 'Skimia', 'Chicago', 'Complete', 'Not Interested', - 1150, '1 year', 'Messy', 'Social', 45, 5, 'Antique enthusiast scouring flea markets for hidden treasures', 92, 92, 92); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Gerry Gatecliff', 'Finance', 'Shufflebeat', 'San Jose', 'Searching for Housing', - 'Searching for Carpool', 1600, '1 year', 'Clean', 'Outdoorsy', 45, 6, - 'Sports commentator providing analysis and commentary on games', 93, 93, 93); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Marissa Broun', 'Finance', 'Quire', 'Seattle', 'Searching for Housing', - 'Complete', 3000, '1 year', 'Cluttered', 'Extroverted', 45, 1, 'Obsessed with DIY home improvement projects', 94, 94, 94); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Letty Mewton', 'Physics', 'Jabberbean', 'Atlanta', 'Complete', - 'Searching for Carpool', 1150, '4 months', 'Moderate', 'Quiet', 45, 5, - 'Music festival organizer planning and coordinating live music events', 95, 95, 95); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Arthur Gave', 'Business', 'Blogspan', 'San Francisco', 'Complete', 'Not Interested', - 2500, '6 months', 'Disorganized', 'Extroverted', 40, 3, 'Fitness influencer inspiring followers with workout routines and tips', 96, 96, 96); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Joleen Satterly', 'Physics', 'Oodoo', 'Chicago', 'Searching for Housing', - 'Searching for Carpool', 1600, '6 months', 'Moderate', 'Adventurous', 75, 4, 'Rock climbing coach training climbers on techniques and safety', 97, 97, 97); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Wheeler Martynka', 'Business', 'Rhynyx', 'London', 'Searching for Housing', - 'Searching for Carpool', 1350, '6 months', 'Disorganized', 'Adventurous', 10, 5, - 'Rock climbing coach training climbers on techniques and safety', 98, 98, 98); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Marys Hannaby', 'Art', 'Zazio', 'London', 'Searching for Housing', - 'Not Interested', 170, '1 year', 'Cluttered', 'Active', 30, 6, 'Surfing enthusiast catching waves at the beach', 99, 99, 99); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, - Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, HousingID, AdvisorID) -values ('Ariel Gabotti', 'Biology', 'Latz', 'San Jose', 'Complete', 'Complete', - 3000, '1 year', 'Moderate', 'Introverted', 60, 6, 'Soccer coach training players on skills and strategies for the game', 100, 100, 100); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Delphinia Spiers', 'Physics', 'Microsoft', 'San Francisco', 'Searching for Housing', 'Has Car', 1200, '1 year', 4, 'Energetic', 35, 1, 'Is a member of the school drama club and performs in plays', 7, 7, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Emanuel Keppy', 'Business', 'Tesla', 'San Francisco', 'Searching for Housing', 'Has Car', 2100, '6 months', 4, 'Vibrant', 45, 4, 'Loves to watch documentaries about space and the universe', 10, 4, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Mirna Tomaini', 'Finance', 'Boeing', 'London', 'Searching for Roommates', 'Has Car', 1000, '4 months', 1, 'Active', 15, 3, 'Is a talented singer and performs in school musicals', 2, 5, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Noemi Puckring', 'Music', 'Costco', 'Atlanta', 'Searching for Housing', 'Has Car', 2000, '4 months', 5, 'Relaxed', 15, 6, 'Enjoys birdwatching and learning about different species', 5, 7, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Keven Rosen', 'Chemistry', 'IKEA', 'San Francisco', 'Complete', 'Has Car', 1300, '6 months', 3, 'Relaxed', 25, 3, 'Is a member of the school debate team and loves to argue their point', 4, 2, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Phyllida Rubert', 'Marketing', 'ExxonMobil', 'New York City', 'Searching for Housing', 'Complete', 1400, '1 year', 1, 'Energetic', 20, 6, 'Is a talented singer and performs in school musicals', 2, 4, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Neall Gwillym', 'Engineering', 'Northrop Grumman', 'Atlanta', 'Searching for Housing', 'Searching for Carpool', 1300, '6 months', 5, 'Balanced', 30, 4, 'Enjoys stargazing and learning about astronomy', 5, 8, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Schuyler Uppett', 'Chemistry', 'Johnson & Johnson', 'Los Angeles', 'Complete', 'Has Car', 1100, '6 months', 5, 'Carefree', 30, 3, 'Dreams of becoming a famous actor and starring in movies', 3, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Sophie O''Shee', 'Data Science', 'Boeing', 'London', 'Complete', 'Complete', 2000, '1 year', 4, 'Relaxed', 15, 3, 'Wants to become a doctor and help people in need', 8, 5, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Rosana Wolters', 'Physics', 'Goldman Sachs', 'New York City', 'Searching for Roommates', 'Has Car', 1900, '4 months', 1, 'Active', 35, 4, 'Is a member of the school photography club and loves to take pictures', 8, 6, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Mignonne Whetson', 'Engineering', 'Bank of America', 'New York City', 'Complete', 'Complete', 1800, '1 year', 5, 'Carefree', 45, 6, 'Is passionate about environmental conservation and volunteers for clean-up projects', 4, 2, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Tyson Gallant', 'Data Science', 'Citigroup', 'Los Angeles', 'Searching for Roommates', 'Has Car', 1400, '4 months', 1, 'Eco-friendly', 25, 3, 'Loves to watch nature documentaries and learn about wildlife', 5, 9, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Tara Heineke', 'Biology', 'AstraZeneca', 'Los Angeles', 'Searching for Roommates', 'Complete', 2300, '6 months', 1, 'Social', 15, 1, 'Wants to learn how to surf and ride the waves', 8, 7, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Ilka Siverns', 'Music', 'Lockheed Martin', 'San Jose', 'Searching for Roommates', 'Has Car', 2400, '1 year', 1, 'Carefree', 35, 4, 'Dreams of opening a bakery and sharing their love of baking with others', 10, 3, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Georgie Lohrensen', 'History', 'IKEA', 'San Jose', 'Searching for Roommates', 'Complete', 1000, '4 months', 1, 'Energetic', 10, 6, 'Loves to watch documentaries and learn about history', 6, 2, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Therese Winsborrow', 'Finance', 'Hyundai', 'Seattle', 'Searching for Roommates', 'Has Car', 1300, '6 months', 5, 'Sustainable', 35, 1, 'Loves to go camping and spend time in the great outdoors', 10, 3, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Chance Touret', 'Chemistry', 'Merck & Co.', 'London', 'Complete', 'Searching for Carpool', 1000, '4 months', 5, 'Balanced', 30, 2, 'Enjoys learning about different cultures and traditions', 7, 9, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Deirdre Trevain', 'Public Health', 'BP', 'London', 'Searching for Roommates', 'Has Car', 1800, '6 months', 1, 'Carefree', 25, 5, 'Is a member of the school drama club and performs in plays', 2, 9, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Jeremias Brickham', 'Physics', 'Citigroup', 'San Jose', 'Searching for Housing', 'Searching for Carpool', 1300, '1 year', 3, 'Outgoing', 30, 1, 'Dreams of becoming a famous actor and starring in movies', 8, 7, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Richmound Golagley', 'Finance', 'Unilever', 'San Francisco', 'Searching for Roommates', 'Complete', 1600, '1 year', 5, 'Carefree', 45, 2, 'Is a talented artist and loves to create beautiful paintings', 4, 2, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Florette Goodinge', 'Data Science', 'Chevron', 'London', 'Complete', 'Searching for Carpool', 2300, '6 months', 3, 'Holistic', 45, 3, 'Loves to read adventure stories', 4, 4, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Ogden Skydall', 'Data Science', 'Morgan Stanley', 'D.C.', 'Complete', 'Complete', 1800, '1 year', 4, 'Healthy', 30, 6, 'Wants to learn how to skateboard and do tricks at the skate park', 4, 5, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Donall Tankin', 'Engineering', 'Walt Disney Company', 'New York City', 'Complete', 'Has Car', 2000, '4 months', 4, 'Nomadic', 15, 3, 'Is a member of the school newspaper and loves to write articles', 1, 7, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Gustav Grzegorczyk', 'Marketing', 'Target', 'Seattle', 'Complete', 'Has Car', 1900, '1 year', 5, 'Carefree', 45, 3, 'Enjoys playing board games with friends and family', 5, 7, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Johny Murdy', 'Music', 'Home Depot', 'Atlanta', 'Complete', 'Searching for Carpool', 1200, '1 year', 2, 'Nomadic', 20, 4, 'Wants to start a blog and share their thoughts with the world', 3, 4, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Zolly Boundey', 'Data Science', 'JPMorgan Chase', 'Chicago', 'Complete', 'Complete', 1600, '6 months', 1, 'Active', 10, 4, 'Is a member of the school drama club and performs in plays', 2, 9, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Colette Fritter', 'Chemistry', 'Morgan Stanley', 'New York City', 'Searching for Roommates', 'Complete', 1100, '4 months', 1, 'Nomadic', 20, 4, 'Is a talented dancer and performs in recitals', 8, 3, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Herb Goodchild', 'Computer Science', 'Siemens Energy', 'Los Angeles', 'Complete', 'Searching for Carpool', 1000, '4 months', 4, 'Social', 30, 5, 'Dreams of becoming a professional athlete and playing in the Olympics', 2, 3, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Tully Gautrey', 'English', 'AstraZeneca', 'San Jose', 'Searching for Housing', 'Searching for Carpool', 1400, '1 year', 5, 'Eco-friendly', 10, 5, 'Wants to learn how to dance salsa and perform at dance competitions', 5, 7, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Hyacinthie Malia', 'Chemistry', 'Mercedes-Benz', 'Boston', 'Searching for Housing', 'Has Car', 1400, '1 year', 3, 'Social', 25, 4, 'Enjoys photography and capturing beautiful moments', 8, 4, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Claudianus Bartholomew', 'Biology', 'Amazon', 'Los Angeles', 'Complete', 'Has Car', 2400, '4 months', 1, 'Healthy', 15, 2, 'Wants to learn how to skateboard and do tricks at the skate park', 1, 2, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Casar Kuschek', 'Computer Science', 'BP', 'Boston', 'Complete', 'Complete', 1900, '1 year', 3, 'Eco-friendly', 15, 1, 'Enjoys playing board games with friends and family', 10, 4, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Urbano Urlich', 'Business', 'Procter & Gamble', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1500, '6 months', 5, 'Sustainable', 30, 6, 'Enjoys volunteering at the animal shelter and caring for pets', 5, 6, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Clarine Sikora', 'Music', 'Pfizer', 'Seattle', 'Searching for Roommates', 'Complete', 1000, '4 months', 3, 'Healthy', 30, 4, 'Dreams of becoming a famous chef and opening their own restaurant', 5, 4, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Brandon Arnaez', 'Business', 'NBCUniversal', 'D.C.', 'Complete', 'Complete', 1200, '4 months', 4, 'Carefree', 30, 4, 'Is passionate about fashion and loves to create their own outfits', 5, 8, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Dagny Strongman', 'History', 'Ford', 'Chicago', 'Complete', 'Complete', 2400, '1 year', 2, 'Balanced', 35, 5, 'Wants to travel the world and learn about different cultures', 5, 9, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Barnaby Gilluley', 'Biology', 'Siemens Energy', 'Boston', 'Searching for Roommates', 'Searching for Carpool', 2300, '6 months', 2, 'Eco-friendly', 30, 6, 'Dreams of becoming a professional athlete and competing in the Olympics', 7, 8, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Victoria Cocher', 'Music', 'IKEA', 'New York City', 'Searching for Housing', 'Has Car', 1000, '4 months', 5, 'Sustainable', 10, 6, 'Is a member of the school debate team and loves to argue their point', 9, 8, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Emery Rogeron', 'Biology', 'Amazon', 'New York City', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 1, 'Healthy', 15, 5, 'Wants to learn how to code and create their own video games', 3, 7, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Alphonse Foxhall', 'Data Science', 'Costco', 'Atlanta', 'Complete', 'Has Car', 1800, '1 year', 5, 'Eco-friendly', 25, 5, 'Is a member of the school robotics club and loves to build robots', 5, 9, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Shayne Dunleavy', 'Chemistry', 'Wells Fargo', 'Chicago', 'Searching for Housing', 'Searching for Carpool', 1100, '1 year', 5, 'Social', 45, 6, 'Enjoys painting and drawing in spare time', 6, 8, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Esta Schneider', 'English', 'Costco', 'London', 'Searching for Housing', 'Searching for Carpool', 2300, '6 months', 1, 'Minimalist', 10, 2, 'Is a talented artist and loves to create beautiful paintings', 6, 5, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Valene Tombleson', 'Computer Science', 'Colgate-Palmolive', 'D.C.', 'Searching for Roommates', 'Complete', 1100, '6 months', 2, 'Relaxed', 35, 4, 'Is a member of the school robotics club and loves to build robots', 5, 2, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Leicester Toop', 'Data Science', 'Ford', 'D.C.', 'Complete', 'Searching for Carpool', 1100, '6 months', 4, 'Eco-friendly', 20, 1, 'Wants to learn how to surf and ride the waves', 8, 5, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Jasmine Shere', 'Music', 'Procter & Gamble', 'New York City', 'Searching for Roommates', 'Complete', 1200, '1 year', 4, 'Active', 25, 6, 'Enjoys building and creating things with Legos', 3, 7, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Avrit Olley', 'Chemistry', 'IBM', 'Los Angeles', 'Complete', 'Complete', 1600, '6 months', 5, 'Minimalist', 20, 5, 'Wants to become a doctor and help people in need', 5, 8, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Iormina Oakeshott', 'Marketing', 'Merck & Co.', 'Atlanta', 'Searching for Housing', 'Has Car', 1800, '6 months', 3, 'Social', 30, 6, 'Wants to become a teacher and inspire young minds', 3, 9, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Steffi Lampbrecht', 'Music', 'Nestlé', 'Boston', 'Searching for Housing', 'Complete', 1700, '1 year', 1, 'Outgoing', 30, 1, 'Is a member of the school photography club and loves to take pictures', 5, 4, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Cazzie Pothecary', 'Biology', 'Intel', 'New York City', 'Searching for Roommates', 'Complete', 1000, '6 months', 1, 'Eco-friendly', 30, 2, 'Dreams of becoming a professional dancer and performing on stage', 2, 1, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kerri MacKellar', 'Physics', 'Netflix', 'Chicago', 'Searching for Housing', 'Complete', 2400, '4 months', 3, 'Relaxed', 35, 5, 'Is passionate about fashion and loves to create their own outfits', 3, 8, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Laryssa Frye', 'History', 'IBM', 'London', 'Complete', 'Has Car', 1200, '4 months', 5, 'Minimalist', 35, 6, 'Wants to start a YouTube channel and create content for others to enjoy', 8, 9, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Dolli Hardaway', 'English', 'Roche', 'New York City', 'Searching for Housing', 'Complete', 1200, '1 year', 3, 'Cozy', 35, 4, 'Is passionate about helping animals and volunteers at a local shelter', 9, 2, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Constantin Milborn', 'Engineering', 'Boeing', 'D.C.', 'Complete', 'Has Car', 2100, '6 months', 3, 'Carefree', 20, 3, 'Enjoys learning about different cultures and traditions', 2, 7, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Krissie Rudeforth', 'Engineering', 'Walt Disney Company', 'Chicago', 'Searching for Housing', 'Has Car', 2400, '4 months', 3, 'Carefree', 10, 6, 'Loves to watch documentaries about space and the universe', 6, 2, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Pietrek Dmych', 'Chemistry', 'Coca-Cola', 'Los Angeles', 'Complete', 'Searching for Carpool', 2000, '6 months', 3, 'Balanced', 45, 5, 'Is a member of the school debate team and loves to argue their point', 3, 1, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Carin Deacon', 'Art', 'Warner Bros. Discovery', 'D.C.', 'Searching for Housing', 'Has Car', 2400, '4 months', 2, 'Minimalist', 15, 6, 'Dreams of becoming a professional athlete and competing in the Olympics', 3, 7, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Marci Skate', 'Marketing', 'Target', 'New York City', 'Searching for Housing', 'Searching for Carpool', 1300, '1 year', 5, 'Carefree', 15, 6, 'Is passionate about music and plays the guitar in a band', 9, 6, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Sidonnie Downage', 'Physics', 'Colgate-Palmolive', 'Chicago', 'Complete', 'Searching for Carpool', 1900, '6 months', 5, 'Sustainable', 30, 4, 'Is a talented dancer and performs in recitals', 9, 7, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Hyacinth Pinnere', 'Music', 'Apple', 'Atlanta', 'Searching for Roommates', 'Has Car', 1000, '1 year', 2, 'Healthy', 30, 5, 'Wants to become a teacher and inspire young minds', 5, 1, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Dirk Mc Giffin', 'Physics', 'Moderna', 'D.C.', 'Searching for Roommates', 'Has Car', 2400, '4 months', 4, 'Eco-friendly', 35, 5, 'Enjoys playing video games and competing in online tournaments', 4, 5, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('June Wenderoth', 'Chemistry', 'Hyundai', 'Atlanta', 'Complete', 'Has Car', 1000, '1 year', 1, 'Social', 15, 5, 'Wants to become a doctor and help people in need', 4, 9, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Gratia Rawles', 'Business', 'Nestlé', 'Chicago', 'Complete', 'Has Car', 1900, '4 months', 4, 'Holistic', 45, 5, 'Dreams of becoming a professional athlete and playing in the Olympics', 8, 4, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Melisa Ingman', 'Business', 'Google (Alphabet Inc.)', 'San Francisco', 'Searching for Roommates', 'Complete', 2200, '4 months', 4, 'Social', 35, 4, 'Is passionate about equality and volunteers for social justice causes', 5, 8, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Krystalle Howe', 'Physics', 'General Motors', 'Atlanta', 'Searching for Housing', 'Searching for Carpool', 1100, '6 months', 1, 'Carefree', 10, 4, 'Wants to learn how to skateboard and do tricks at the skate park', 9, 9, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Leone Blagburn', 'Engineering', 'Netflix', 'San Jose', 'Complete', 'Has Car', 1600, '6 months', 5, 'Eco-friendly', 35, 3, 'Dreams of becoming a famous chef and opening their own restaurant', 2, 5, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Leonie Stoner', 'Business', 'Walmart', 'Seattle', 'Complete', 'Has Car', 1500, '1 year', 3, 'Eco-friendly', 45, 2, 'Enjoys learning about different cultures and traditions', 4, 1, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Briney Sickamore', 'Data Science', 'Amazon', 'Chicago', 'Searching for Housing', 'Has Car', 1400, '6 months', 3, 'Cozy', 10, 3, 'Is passionate about music and plays the guitar in a band', 5, 8, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Manda Try', 'Computer Science', 'Apple', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1500, '4 months', 5, 'Social', 45, 6, 'Loves to watch cooking shows and try out new recipes at home', 1, 9, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Ricoriki Irvin', 'Data Science', 'Roche', 'D.C.', 'Complete', 'Has Car', 1300, '4 months', 2, 'Active', 30, 1, 'Is passionate about equality and volunteers for social justice causes', 7, 3, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Luciano Kerr', 'Chemistry', 'Hyundai', 'San Jose', 'Searching for Roommates', 'Has Car', 1300, '4 months', 4, 'Vibrant', 30, 5, 'Is a member of the school newspaper and loves to write articles', 9, 7, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Marcie Stilly', 'Business', 'Unilever', 'D.C.', 'Searching for Housing', 'Has Car', 2000, '1 year', 1, 'Minimalist', 45, 5, 'Wants to learn how to surf and ride the waves', 7, 5, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Ryun Swayland', 'Physics', 'Home Depot', 'Seattle', 'Searching for Housing', 'Has Car', 1000, '1 year', 4, 'Minimalist', 30, 2, 'Wants to learn how to surf and ride the waves', 1, 5, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Sonni Muriel', 'Data Science', 'Meta (Facebook)', 'London', 'Searching for Roommates', 'Searching for Carpool', 1400, '6 months', 5, 'Relaxed', 20, 1, 'Is a member of the school photography club and loves to take pictures', 6, 6, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Lindy Marchand', 'Chemistry', 'Apple', 'San Jose', 'Searching for Roommates', 'Has Car', 1200, '4 months', 5, 'Balanced', 25, 4, 'Loves to watch cooking shows and try out new recipes at home', 10, 7, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Joellen Rao', 'History', 'Boeing', 'Chicago', 'Searching for Housing', 'Has Car', 1000, '6 months', 5, 'Active', 10, 1, 'Wants to learn how to surf and ride the waves', 9, 2, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Duke Carmont', 'Art', 'Johnson & Johnson', 'Los Angeles', 'Complete', 'Has Car', 1000, '1 year', 4, 'Eco-friendly', 20, 6, 'Is a member of the school band and plays the trumpet', 9, 8, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Adolph Kyngdon', 'History', 'Hyundai', 'Boston', 'Searching for Roommates', 'Searching for Carpool', 2400, '4 months', 3, 'Active', 10, 3, 'Is a talented artist and loves to create beautiful paintings', 8, 8, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Aurilia McComb', 'Public Health', 'Wells Fargo', 'Boston', 'Complete', 'Complete', 2300, '1 year', 4, 'Sustainable', 30, 6, 'Enjoys playing board games with friends and family', 8, 3, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Willow Girardet', 'Art', 'JPMorgan Chase', 'D.C.', 'Complete', 'Has Car', 1700, '1 year', 1, 'Relaxed', 20, 3, 'Loves to read adventure stories', 10, 9, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Suzy Taysbil', 'Art', 'Warner Bros. Discovery', 'Los Angeles', 'Complete', 'Complete', 1600, '1 year', 3, 'Healthy', 10, 3, 'Dreams of starting a small business and being their own boss', 2, 4, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Michaella Friedlos', 'Computer Science', 'Best Buy', 'London', 'Searching for Roommates', 'Has Car', 1800, '1 year', 2, 'Active', 35, 5, 'Enjoys volunteering at the local food bank and helping those in need', 9, 7, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Corbett Alldre', 'Art', 'Unilever', 'San Jose', 'Complete', 'Searching for Carpool', 2200, '6 months', 4, 'Minimalist', 20, 5, 'Loves to read fantasy books and escape into magical worlds', 5, 9, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Ruthy Grumble', 'Physics', 'AstraZeneca', 'New York City', 'Searching for Housing', 'Complete', 1700, '4 months', 2, 'Vibrant', 20, 6, 'Enjoys photography and capturing beautiful moments', 2, 4, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Thaddus Strowlger', 'Art', 'Citigroup', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1100, '1 year', 3, 'Active', 20, 4, 'Dreams of becoming a professional athlete and playing in the Olympics', 6, 6, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Peadar Toffts', 'Art', 'Honda', 'D.C.', 'Complete', 'Has Car', 1300, '4 months', 4, 'Healthy', 35, 4, 'Loves to watch documentaries about space and the universe', 6, 5, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Emmeline Maly', 'History', 'IBM', 'New York City', 'Complete', 'Searching for Carpool', 1800, '4 months', 2, 'Minimalist', 35, 3, 'Loves to read mystery novels and solve puzzles', 9, 4, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Hagan Dobbison', 'Chemistry', 'Wells Fargo', 'San Jose', 'Searching for Roommates', 'Searching for Carpool', 1000, '1 year', 3, 'Active', 15, 1, 'Wants to become a teacher and inspire young minds', 1, 4, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Rhetta McGrale', 'Computer Science', 'BP', 'D.C.', 'Complete', 'Complete', 2300, '6 months', 3, 'Relaxed', 25, 5, 'Is a member of the school band and plays the trumpet', 8, 9, 2); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Margaux Westlake', 'Engineering', 'BMW', 'New York City', 'Searching for Roommates', 'Searching for Carpool', 1100, '6 months', 3, 'Holistic', 30, 3, 'Is a member of the school debate team and loves to argue their point', 4, 8, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Nanine Giorgi', 'Music', 'Tesla', 'Atlanta', 'Searching for Roommates', 'Complete', 1100, '1 year', 2, 'Carefree', 10, 3, 'Dreams of starting a small business and being their own boss', 8, 5, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Archie Lennox', 'Computer Science', 'Google (Alphabet Inc.)', 'San Francisco', 'Complete', 'Complete', 1600, '1 year', 5, 'Carefree', 30, 2, 'Enjoys playing chess and strategizing their next move', 7, 3, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Charlton Waine', 'Biology', 'Shell', 'San Francisco', 'Searching for Roommates', 'Has Car', 2000, '4 months', 5, 'Cozy', 15, 6, 'Wants to learn how to code and create their own video games', 4, 8, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Jarad Lichfield', 'Business', 'Colgate-Palmolive', 'London', 'Searching for Housing', 'Searching for Carpool', 2300, '1 year', 5, 'Eco-friendly', 25, 4, 'Enjoys volunteering at the local food bank and helping those in need', 9, 1, 3); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Clemens Boustead', 'Music', 'BMW', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 1900, '6 months', 3, 'Carefree', 15, 1, 'Wants to become a doctor and help people in need', 8, 1, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Wakefield Hearmon', 'Chemistry', 'Mercedes-Benz', 'D.C.', 'Searching for Housing', 'Complete', 1900, '1 year', 1, 'Outgoing', 25, 4, 'Has a pet dog named Max', 9, 3, 5); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Judye Laurencot', 'Business', 'Hyundai', 'Seattle', 'Searching for Housing', 'Searching for Carpool', 1900, '1 year', 3, 'Holistic', 15, 2, 'Is a member of the school choir and loves to sing', 2, 7, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Toiboid McPhate', 'Finance', 'Siemens Energy', 'London', 'Searching for Housing', 'Has Car', 1200, '1 year', 5, 'Healthy', 45, 4, 'Is a member of the school coding club and loves to program', 9, 8, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Egan Deedes', 'Marketing', 'Shell', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 2300, '4 months', 1, 'Active', 35, 3, 'Is a talented artist and loves to create beautiful paintings', 3, 9, 1); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); +insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); + -<<<<<<< HEAD -- 6. Events Data (depends on CityCommunity) insert into Events (CommunityID, Date, Name, Description) values (1, '2024-01-01', 'New Year Celebration', 'Community gathering'); insert into Events (CommunityID, Date, Name, Description) values (2, '2024-06-01', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); @@ -677,46 +225,46 @@ insert into Events (CommunityID, Date, Name, Description) values (7, '2024-06-07 insert into Events (CommunityID, Date, Name, Description) values (8, '2024-01-11', 'Job Search Strategies', 'Networking bingo game with prizes'); insert into Events (CommunityID, Date, Name, Description) values (9, '2024-08-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); insert into Events (CommunityID, Date, Name, Description) values (10, '2024-02-19', 'Internship Opportunities Panel', 'Networking scavenger hunt'); -insert into Events (CommunityID, Date, Name, Description) values (11, '2023-12-24', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); -insert into Events (CommunityID, Date, Name, Description) values (12, '2024-05-26', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); -insert into Events (CommunityID, Date, Name, Description) values (13, '2024-10-24', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); -insert into Events (CommunityID, Date, Name, Description) values (14, '2024-04-15', 'Women in STEM Networking Event', 'Networking roundtable discussions'); -insert into Events (CommunityID, Date, Name, Description) values (15, '2024-02-17', 'Professional Headshot Day', 'Professional headshot photo booth'); -insert into Events (CommunityID, Date, Name, Description) values (16, '2024-07-03', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); -insert into Events (CommunityID, Date, Name, Description) values (17, '2024-07-02', 'Start-Up Pitch Night', 'Networking book club discussion'); -insert into Events (CommunityID, Date, Name, Description) values (18, '2024-07-30', 'Career Fair Prep Workshop', 'Networking yoga session'); -insert into Events (CommunityID, Date, Name, Description) values (19, '2024-04-10', 'Graduate School Info Session', 'Networking cooking class'); -insert into Events (CommunityID, Date, Name, Description) values (20, '2024-01-09', 'Industry Trends Roundtable', 'Networking hike and picnic'); -insert into Events (CommunityID, Date, Name, Description) values (21, '2024-09-27', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (CommunityID, Date, Name, Description) values (22, '2024-04-27', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (CommunityID, Date, Name, Description) values (23, '2024-07-12', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (CommunityID, Date, Name, Description) values (24, '2024-09-01', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (CommunityID, Date, Name, Description) values (25, '2024-09-23', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (CommunityID, Date, Name, Description) values (26, '2024-09-21', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (CommunityID, Date, Name, Description) values (27, '2024-01-24', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (CommunityID, Date, Name, Description) values (28, '2024-01-17', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (CommunityID, Date, Name, Description) values (29, '2024-01-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (CommunityID, Date, Name, Description) values (30, '2024-10-24', 'Internship Opportunities Panel', 'Networking scavenger hunt'); -insert into Events (CommunityID, Date, Name, Description) values (31, '2024-08-10', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); -insert into Events (CommunityID, Date, Name, Description) values (32, '2024-07-14', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); -insert into Events (CommunityID, Date, Name, Description) values (33, '2023-12-13', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); -insert into Events (CommunityID, Date, Name, Description) values (34, '2024-10-08', 'Women in STEM Networking Event', 'Networking roundtable discussions'); -insert into Events (CommunityID, Date, Name, Description) values (35, '2024-01-13', 'Professional Headshot Day', 'Professional headshot photo booth'); -insert into Events (CommunityID, Date, Name, Description) values (36, '2024-01-09', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); -insert into Events (CommunityID, Date, Name, Description) values (37, '2024-03-12', 'Start-Up Pitch Night', 'Networking book club discussion'); -insert into Events (CommunityID, Date, Name, Description) values (38, '2024-10-12', 'Career Fair Prep Workshop', 'Networking yoga session'); -insert into Events (CommunityID, Date, Name, Description) values (39, '2024-02-08', 'Graduate School Info Session', 'Networking cooking class'); -insert into Events (CommunityID, Date, Name, Description) values (40, '2024-09-26', 'Industry Trends Roundtable', 'Networking hike and picnic'); -insert into Events (CommunityID, Date, Name, Description) values (41, '2024-01-14', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); -insert into Events (CommunityID, Date, Name, Description) values (42, '2024-08-12', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); -insert into Events (CommunityID, Date, Name, Description) values (43, '2024-09-18', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); -insert into Events (CommunityID, Date, Name, Description) values (44, '2024-08-13', 'Industry Panel Discussions', 'Speed networking session with recruiters'); -insert into Events (CommunityID, Date, Name, Description) values (45, '2024-08-07', 'Resume Building Bootcamp', 'Virtual networking happy hour'); -insert into Events (CommunityID, Date, Name, Description) values (46, '2024-09-06', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); -insert into Events (CommunityID, Date, Name, Description) values (47, '2024-10-05', 'Mock Interview Practice', 'Resume review session with career coaches'); -insert into Events (CommunityID, Date, Name, Description) values (48, '2024-10-06', 'Job Search Strategies', 'Networking bingo game with prizes'); -insert into Events (CommunityID, Date, Name, Description) values (49, '2024-11-24', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); -insert into Events (CommunityID, Date, Name, Description) values (50, '2024-11-08', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (CommunityID, Date, Name, Description) values (1, '2023-12-24', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (CommunityID, Date, Name, Description) values (2, '2024-05-26', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (CommunityID, Date, Name, Description) values (3, '2024-10-24', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (CommunityID, Date, Name, Description) values (4, '2024-04-15', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (CommunityID, Date, Name, Description) values (5, '2024-02-17', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (CommunityID, Date, Name, Description) values (6, '2024-07-03', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (CommunityID, Date, Name, Description) values (7, '2024-07-02', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (CommunityID, Date, Name, Description) values (8, '2024-07-30', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (CommunityID, Date, Name, Description) values (9, '2024-04-10', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (CommunityID, Date, Name, Description) values (10, '2024-01-09', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (CommunityID, Date, Name, Description) values (1, '2024-09-27', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (CommunityID, Date, Name, Description) values (2, '2024-04-27', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (CommunityID, Date, Name, Description) values (3, '2024-07-12', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (CommunityID, Date, Name, Description) values (4, '2024-09-01', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (CommunityID, Date, Name, Description) values (5, '2024-09-23', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (CommunityID, Date, Name, Description) values (6, '2024-09-21', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (CommunityID, Date, Name, Description) values (7, '2024-01-24', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (CommunityID, Date, Name, Description) values (8, '2024-01-17', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (CommunityID, Date, Name, Description) values (9, '2024-01-12', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (CommunityID, Date, Name, Description) values (10, '2024-10-24', 'Internship Opportunities Panel', 'Networking scavenger hunt'); +insert into Events (CommunityID, Date, Name, Description) values (1, '2024-08-10', 'Alumni Networking Happy Hour', 'Group networking activities and icebreakers'); +insert into Events (CommunityID, Date, Name, Description) values (2, '2024-07-14', 'Diversity in Tech Panel', 'Networking lunch with keynote speaker'); +insert into Events (CommunityID, Date, Name, Description) values (3, '2023-12-13', 'Entrepreneurship Panel Series', 'Networking mixer with live music'); +insert into Events (CommunityID, Date, Name, Description) values (4, '2024-10-08', 'Women in STEM Networking Event', 'Networking roundtable discussions'); +insert into Events (CommunityID, Date, Name, Description) values (5, '2024-01-13', 'Professional Headshot Day', 'Professional headshot photo booth'); +insert into Events (CommunityID, Date, Name, Description) values (6, '2024-01-09', 'Coding Challenge Competition', 'Networking coffee chat with mentors'); +insert into Events (CommunityID, Date, Name, Description) values (7, '2024-03-12', 'Start-Up Pitch Night', 'Networking book club discussion'); +insert into Events (CommunityID, Date, Name, Description) values (8, '2024-10-12', 'Career Fair Prep Workshop', 'Networking yoga session'); +insert into Events (CommunityID, Date, Name, Description) values (9, '2024-02-08', 'Graduate School Info Session', 'Networking cooking class'); +insert into Events (CommunityID, Date, Name, Description) values (10, '2024-09-26', 'Industry Trends Roundtable', 'Networking hike and picnic'); +insert into Events (CommunityID, Date, Name, Description) values (1, '2024-01-14', 'Tech Talk Thursdays', 'Meet and greet with industry professionals'); +insert into Events (CommunityID, Date, Name, Description) values (2, '2024-08-12', 'Networking Mixer Mondays', 'Interactive workshops on networking skills'); +insert into Events (CommunityID, Date, Name, Description) values (3, '2024-09-18', 'Career Development Workshop', 'Panel discussion on career opportunities in tech'); +insert into Events (CommunityID, Date, Name, Description) values (4, '2024-08-13', 'Industry Panel Discussions', 'Speed networking session with recruiters'); +insert into Events (CommunityID, Date, Name, Description) values (5, '2024-08-07', 'Resume Building Bootcamp', 'Virtual networking happy hour'); +insert into Events (CommunityID, Date, Name, Description) values (6, '2024-09-06', 'LinkedIn Profile Optimization', 'Mock interview practice with HR professionals'); +insert into Events (CommunityID, Date, Name, Description) values (7, '2024-10-05', 'Mock Interview Practice', 'Resume review session with career coaches'); +insert into Events (CommunityID, Date, Name, Description) values (8, '2024-10-06', 'Job Search Strategies', 'Networking bingo game with prizes'); +insert into Events (CommunityID, Date, Name, Description) values (9, '2024-11-24', 'Personal Branding Workshop', 'LinkedIn profile optimization workshop'); +insert into Events (CommunityID, Date, Name, Description) values (10, '2024-11-08', 'Internship Opportunities Panel', 'Networking scavenger hunt'); -- 7. Feedback Data (depends on Student and Advisor) insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Great progress this semester', '2024-01-15', 5, 1, 1); @@ -769,109 +317,6 @@ insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) v insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Thank you for your help', '2024-11-16', 5, 54, 6); insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('Currently enjoying this co-op', '2024-05-19', 5, 32, 4); insert into Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) values ('I appreciate your assistance!', '2024-03-05', 2, 95, 10); -======= --- Student data -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Hodge Zelake', 'Business', 'Colgate-Palmolive', 'New York City', 'Searching for Roommates', 'Has Car', 1900, '4 months', 1, 'Cozy', 15, 5, 'Dedicated to learning about traditional crafts and artisanal techniques', 7, 7, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Melly Azema', 'Finance', 'BP', 'D.C.', 'Searching for Housing', 'Search Complete', 2100, '6 months', 1, 'Eco-friendly', 20, 4, 'Thrilled by attending music festivals and discovering new bands', 10, 7, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Pietro Mundford', 'Engineering', 'Lowe’s', 'Los Angeles', 'Searching for Housing', 'Has Car', 1200, '6 months', 4, 'Cozy', 10, 2, 'Passionate about writing poetry and expressing emotions through words', 2, 9, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lyndell Veare', 'Engineering', 'Coca-Cola', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2100, '1 year', 1, 'Energetic', 50, 1, 'Devoted to studying ancient mythology and folklore', 6, 2, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Malinda Lawland', 'Data Engineering', 'Johnson & Johnson', 'Boston', 'Search Complete', 'Search Complete', 2400, '6 months', 1, 'Vibrant', 30, 2, 'Obsessed with urban exploration and discovering hidden gems in cities', 3, 7, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ellette Atteridge', 'Engineering', 'Costco', 'Chicago', 'Searching for Roommates', 'Searching for Carpool', 2100, '4 months', 4, 'Outgoing', 40, 2, 'Fascinated by the world of virtual reality and immersive experiences', 2, 7, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Eran Sailor', 'Engineering', 'Home Depot', 'Seattle', 'Searching for Housing', 'Searching for Carpool', 1500, '6 months', 1, 'Minimalist', 45, 5, 'Passionate about writing poetry and expressing emotions through words', 6, 1, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Sonja McGorley', 'Data Engineering', 'Intel', 'Seattle', 'Searching for Roommates', 'Search Complete', 2000, '1 year', 2, 'Social', 20, 4, 'Thrilled by attending music festivals and discovering new bands', 1, 2, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alexa Beahan', 'Finance', 'Bank of America', 'D.C.', 'Searching for Housing', 'Search Complete', 1500, '4 months', 1, 'Healthy', 25, 3, 'Obsessed with urban exploration and discovering hidden gems in cities', 2, 2, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bob Ashe', 'Marketing', 'Hyundai', 'Boston', 'Searching for Roommates', 'Searching for Carpool', 1300, '6 months', 5, 'Relaxed', 35, 3, 'Fascinated by the art of tea ceremonies and traditional rituals', 10, 5, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Moria Scottrell', 'Finance', 'Mercedes-Benz', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 1300, '4 months', 3, 'Cozy', 70, 2, 'Passionate about painting and creating art', 3, 6, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ediva Glenny', 'Data Science', 'Johnson & Johnson', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 1400, '6 months', 4, 'Nomadic', 50, 5, 'Thrilled by attending music festivals and discovering new bands', 5, 2, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Flory Boggon', 'Marketing', 'ExxonMobil', 'London', 'Searching for Roommates', 'Has Car', 1600, '4 months', 2, 'Eco-friendly', 70, 4, 'Dedicated to practicing yoga and meditation for inner peace', 6, 5, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Dorelle Luke', 'Data Engineering', 'Roche', 'D.C.', 'Searching for Roommates', 'Search Complete', 1900, '4 months', 1, 'Carefree', 50, 2, 'Devoted to volunteering at animal shelters', 2, 8, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Moore MacTeggart', 'Finance', 'Costco', 'London', 'Searching for Roommates', 'Has Car', 1700, '6 months', 3, 'Relaxed', 20, 4, 'Obsessed with interior design and decorating living spaces', 3, 2, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Chancey Wixey', 'Biology', 'Moderna', 'Atlanta', 'Search Complete', 'Search Complete', 1200, '1 year', 5, 'Outgoing', 70, 3, 'Dedicated to wildlife conservation and protecting endangered species', 10, 8, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Carole Wisbey', 'Art', 'Siemens Energy', 'London', 'Search Complete', 'Searching for Carpool', 2300, '4 months', 2, 'Cozy', 30, 6, 'Enjoys participating in outdoor activities like camping and hiking', 1, 7, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bordie Buyers', 'Public Health', 'Chevron', 'New York City', 'Search Complete', 'Searching for Carpool', 1400, '6 months', 3, 'Nomadic', 60, 1, 'Thrilled by attending music festivals and discovering new bands', 5, 8, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lisa Oxteby', 'Chemistry', 'Intel', 'Atlanta', 'Searching for Housing', 'Has Car', 2000, '4 months', 5, 'Social', 10, 5, 'Addicted to attending film festivals and discovering independent cinema', 2, 9, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Noland Buckney', 'Public Health', 'Citigroup', 'San Francisco', 'Searching for Housing', 'Searching for Carpool', 2200, '1 year', 1, 'Relaxed', 25, 5, 'Enjoys playing musical instruments and composing music', 5, 10, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Katina Fuxman', 'Chemistry', 'Boeing', 'Boston', 'Searching for Roommates', 'Search Complete', 1300, '6 months', 2, 'Active', 60, 4, 'Obsessed with urban exploration and discovering hidden gems in cities', 4, 4, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gar Frift', 'Public Health', 'Coca-Cola', 'London', 'Searching for Roommates', 'Has Car', 1500, '1 year', 4, 'Nomadic', 30, 2, 'Thrilled by extreme weather phenomena and storm chasing', 7, 9, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Sharon Thomen', 'Public Health', 'General Motors', 'San Jose', 'Search Complete', 'Searching for Carpool', 1500, '4 months', 4, 'Holistic', 25, 5, 'Devoted to learning about different types of cuisine and cooking techniques', 6, 6, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Janenna Favelle', 'History', 'ExxonMobil', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1600, '4 months', 2, 'Vibrant', 50, 5, 'Obsessed with DIY projects and home improvement', 7, 6, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Glory Klimko', 'Computer Science', 'Procter & Gamble', 'San Francisco', 'Searching for Roommates', 'Search Complete', 1300, '1 year', 1, 'Balanced', 50, 4, 'Enjoys practicing mindfulness and meditation for mental clarity', 9, 9, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Heda Muckleston', 'Public Health', 'Siemens Energy', 'Chicago', 'Searching for Housing', 'Search Complete', 1500, '6 months', 4, 'Vibrant', 50, 2, 'Addicted to attending film festivals and discovering independent cinema', 7, 8, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bryn Littledyke', 'Finance', 'Morgan Stanley', 'New York City', 'Search Complete', 'Searching for Carpool', 2100, '1 year', 2, 'Active', 70, 2, 'Devoted to volunteering at animal shelters', 9, 5, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Augusta Dyerson', 'Data Engineering', 'BP', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 1400, '4 months', 5, 'Minimalist', 10, 1, 'Devoted to volunteering at animal shelters', 4, 3, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gardener Khidr', 'Art', 'Best Buy', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2100, '4 months', 5, 'Vibrant', 10, 3, 'Obsessed with collecting rare vinyl records and building a music collection', 3, 4, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gail Brende', 'Chemistry', 'General Motors', 'Boston', 'Searching for Housing', 'Has Car', 1700, '4 months', 4, 'Outgoing', 40, 6, 'Enjoys attending theater performances and musicals', 6, 5, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ardeen Forder', 'Chemistry', 'Walmart', 'Chicago', 'Searching for Housing', 'Has Car', 1900, '1 year', 3, 'Vibrant', 20, 2, 'Thrilled by attending comic conventions and cosplay events', 3, 6, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Darb Borgnol', 'History', 'Intel', 'Los Angeles', 'Searching for Housing', 'Searching for Carpool', 1100, '4 months', 5, 'Social', 45, 4, 'Passionate about photography and capturing beautiful moments', 2, 5, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Sadye Ashbrook', 'Computer Science', 'Johnson & Johnson', 'San Jose', 'Searching for Roommates', 'Has Car', 1500, '4 months', 1, 'Outgoing', 10, 4, 'Passionate about cooking and trying new recipes', 4, 5, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Verena Fost', 'Data Engineering', 'PepsiCo', 'D.C.', 'Search Complete', 'Has Car', 1100, '6 months', 2, 'Outgoing', 45, 3, 'Devoted to watching and analyzing classic movies', 7, 9, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Matilda Giovannini', 'Computer Science', 'Walt Disney Company', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 2000, '4 months', 2, 'Outgoing', 50, 2, 'Passionate about exploring abandoned buildings and urban decay', 3, 5, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Standford Bertolaccini', 'Finance', 'Honda', 'Los Angeles', 'Searching for Roommates', 'Searching for Carpool', 1600, '4 months', 2, 'Carefree', 35, 1, 'Devoted to studying ancient mythology and folklore', 3, 9, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Dianne Orae', 'Data Science', 'Bank of America', 'Los Angeles', 'Search Complete', 'Search Complete', 1300, '1 year', 2, 'Social', 30, 1, 'Addicted to reading mystery novels and solving puzzles', 9, 1, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Nadya Wellesley', 'History', 'Netflix', 'Seattle', 'Search Complete', 'Has Car', 1600, '4 months', 5, 'Healthy', 70, 2, 'Devoted to studying psychology and understanding human behavior', 10, 3, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Darcie Weems', 'Data Science', 'Moderna', 'Los Angeles', 'Search Complete', 'Searching for Carpool', 2300, '6 months', 4, 'Nomadic', 10, 1, 'Fascinated by the world of virtual reality and immersive experiences', 4, 10, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Vinnie Tresvina', 'Chemistry', 'Google (Alphabet Inc.)', 'Boston', 'Search Complete', 'Search Complete', 1900, '1 year', 4, 'Outgoing', 20, 3, 'Dedicated to learning about traditional crafts and artisanal techniques', 5, 9, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Elvira Westhoff', 'Marketing', 'Johnson & Johnson', 'San Jose', 'Searching for Roommates', 'Has Car', 1700, '4 months', 2, 'Cozy', 50, 2, 'Thrilled by extreme weather phenomena and storm chasing', 4, 9, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fletch Hicken', 'Biology', 'Toyota', 'Seattle', 'Searching for Roommates', 'Has Car', 1500, '4 months', 5, 'Vibrant', 60, 1, 'Fascinated by astronomy and stargazing', 6, 2, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Beatriz Braksper', 'Engineering', 'Hyundai', 'Los Angeles', 'Searching for Housing', 'Search Complete', 1300, '6 months', 2, 'Holistic', 50, 3, 'Devoted to learning about different types of cuisine and cooking techniques', 8, 1, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ronda Ten Broek', 'Business', 'Coca-Cola', 'San Jose', 'Search Complete', 'Searching for Carpool', 1300, '4 months', 5, 'Social', 40, 3, 'Thrilled by extreme sports like snowboarding and mountain biking', 5, 10, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fabien Arger', 'Art', 'Roche', 'Chicago', 'Searching for Roommates', 'Has Car', 1800, '1 year', 5, 'Energetic', 30, 3, 'Thrilled by extreme sports like skydiving and bungee jumping', 5, 1, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Stormie Beadel', 'Computer Science', 'Lowe’s', 'Los Angeles', 'Search Complete', 'Searching for Carpool', 1600, '6 months', 3, 'Balanced', 15, 3, 'Passionate about collecting rare books and first editions', 3, 3, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Carolina Goldbourn', 'Data Science', 'Intel', 'London', 'Searching for Housing', 'Searching for Carpool', 2400, '4 months', 2, 'Active', 15, 3, 'Enjoys attending theater performances and musicals', 5, 5, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Isac Veart', 'Data Engineering', 'Northrop Grumman', 'D.C.', 'Search Complete', 'Search Complete', 2100, '4 months', 4, 'Cozy', 25, 5, 'Fascinated by the world of competitive gaming and esports tournaments', 4, 8, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bayard Quidenham', 'Art', 'PepsiCo', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 1100, '4 months', 5, 'Vibrant', 60, 4, 'Passionate about sustainable fashion and ethical clothing brands', 4, 4, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Herbie Rain', 'Finance', 'Citigroup', 'San Francisco', 'Searching for Roommates', 'Search Complete', 2000, '6 months', 2, 'Carefree', 70, 3, 'Enjoys gardening and growing own fruits and vegetables', 6, 6, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lula Fulstow', 'Chemistry', 'Citigroup', 'Chicago', 'Searching for Roommates', 'Search Complete', 1300, '1 year', 1, 'Carefree', 30, 1, 'Addicted to exploring abandoned places and urban exploration', 7, 3, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Mildred Sandwich', 'Computer Science', 'Wells Fargo', 'Chicago', 'Search Complete', 'Has Car', 1400, '1 year', 1, 'Social', 45, 3, 'Intrigued by the world of professional gaming and esports competitions', 9, 10, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Marcello Barlass', 'Computer Science', 'Mercedes-Benz', 'San Jose', 'Searching for Housing', 'Has Car', 1400, '1 year', 1, 'Healthy', 30, 5, 'Intrigued by the art of bonsai cultivation and creating miniature landscapes', 8, 9, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Raye McGuff', 'History', 'Siemens Energy', 'Seattle', 'Search Complete', 'Searching for Carpool', 1900, '1 year', 3, 'Outgoing', 45, 1, 'Enjoys practicing mindfulness and meditation for mental clarity', 2, 3, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alida Hallad', 'Chemistry', 'Honda', 'San Francisco', 'Searching for Housing', 'Has Car', 2200, '4 months', 3, 'Minimalist', 45, 2, 'Fascinated by marine biology and scuba diving', 2, 2, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Cati Girauld', 'Engineering', 'Boeing', 'Los Angeles', 'Searching for Roommates', 'Search Complete', 1200, '1 year', 5, 'Eco-friendly', 60, 5, 'Addicted to vintage shopping and finding unique retro treasures', 5, 5, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Forrester Keller', 'Marketing', 'Chevron', 'San Jose', 'Search Complete', 'Searching for Carpool', 1400, '6 months', 5, 'Eco-friendly', 30, 2, 'Dedicated to studying ancient civilizations and archaeological discoveries', 10, 8, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Smitty Emmitt', 'Data Engineering', 'Morgan Stanley', 'London', 'Searching for Housing', 'Searching for Carpool', 2200, '4 months', 4, 'Relaxed', 45, 5, 'Passionate about attending art exhibitions and supporting local artists', 1, 8, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Neddie Castagne', 'Data Engineering', 'Goldman Sachs', 'London', 'Searching for Housing', 'Has Car', 1700, '6 months', 4, 'Nomadic', 20, 6, 'Intrigued by the art of mixology and creating signature cocktails', 10, 7, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fiann Gavan', 'Chemistry', 'Novartis', 'San Francisco', 'Searching for Roommates', 'Has Car', 2300, '6 months', 5, 'Vibrant', 20, 3, 'Devoted to volunteering at animal shelters', 2, 9, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Roxi Beefon', 'Computer Science', 'Citigroup', 'New York City', 'Searching for Roommates', 'Has Car', 2400, '6 months', 2, 'Eco-friendly', 25, 3, 'Enjoys participating in outdoor activities like camping and hiking', 3, 10, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Brandi Mickleborough', 'Engineering', 'Best Buy', 'Los Angeles', 'Search Complete', 'Searching for Carpool', 2100, '4 months', 1, 'Minimalist', 70, 3, 'Passionate about cooking and trying new recipes', 8, 6, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Nappie Yerrill', 'Marketing', 'Walmart', 'New York City', 'Searching for Roommates', 'Has Car', 2000, '6 months', 1, 'Outgoing', 70, 4, 'Enjoys playing musical instruments and composing music', 7, 2, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Pavlov Flag', 'Data Science', 'Amazon', 'Seattle', 'Search Complete', 'Searching for Carpool', 1200, '6 months', 2, 'Energetic', 70, 5, 'Intrigued by the art of mixology and creating signature cocktails', 6, 8, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Yolande Tale', 'Finance', 'Siemens Energy', 'Seattle', 'Search Complete', 'Search Complete', 2200, '4 months', 1, 'Social', 10, 6, 'Dedicated to studying ancient civilizations and archaeological discoveries', 7, 8, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Rubetta Neale', 'Public Health', 'Lowe’s', 'Atlanta', 'Searching for Housing', 'Searching for Carpool', 1400, '6 months', 5, 'Balanced', 15, 2, 'Fascinated by the world of virtual reality and immersive experiences', 6, 9, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Amara McGerr', 'Marketing', 'PepsiCo', 'New York City', 'Searching for Roommates', 'Search Complete', 2000, '6 months', 3, 'Balanced', 15, 4, 'Thrilled by attending comic conventions and cosplay events', 2, 10, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Maxie Cowely', 'Finance', 'Moderna', 'Atlanta', 'Searching for Housing', 'Search Complete', 2200, '1 year', 2, 'Energetic', 50, 3, 'Devoted to studying philosophy and exploring existential questions', 1, 8, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gabby Dearl', 'Biology', 'Lockheed Martin', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 2300, '6 months', 5, 'Minimalist', 10, 1, 'Addicted to attending film festivals and discovering independent cinema', 6, 6, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Heddi Barstock', 'Engineering', 'Morgan Stanley', 'Boston', 'Searching for Roommates', 'Has Car', 1100, '1 year', 1, 'Vibrant', 30, 1, 'Passionate about writing poetry and expressing emotions through words', 2, 5, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Seth Moukes', 'Data Engineering', 'JPMorgan Chase', 'Boston', 'Searching for Roommates', 'Search Complete', 1500, '6 months', 4, 'Balanced', 40, 1, 'Fascinated by astronomy and stargazing', 3, 7, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lydon Soldi', 'Business', 'Siemens Energy', 'Boston', 'Searching for Housing', 'Search Complete', 2400, '1 year', 2, 'Balanced', 35, 4, 'Loves hiking and exploring nature trails', 1, 6, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Rufus Chiplin', 'Biology', 'Chevron', 'Los Angeles', 'Searching for Housing', 'Searching for Carpool', 2400, '6 months', 4, 'Vibrant', 70, 6, 'Thrilled by extreme sports like snowboarding and mountain biking', 4, 8, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Zelda Hengoed', 'Finance', 'Pfizer', 'Chicago', 'Searching for Roommates', 'Search Complete', 2400, '6 months', 4, 'Relaxed', 35, 3, 'Thrilled by attending comic conventions and cosplay events', 2, 8, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alissa Shurey', 'Finance', 'Lockheed Martin', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 1400, '4 months', 3, 'Minimalist', 25, 4, 'Dedicated to learning about sustainable agriculture and organic farming', 4, 5, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Brod Skamell', 'Computer Science', 'Meta (Facebook)', 'Chicago', 'Search Complete', 'Searching for Carpool', 1500, '1 year', 1, 'Healthy', 40, 5, 'Enjoys playing musical instruments and composing music', 7, 3, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Melisenda Skehan', 'Data Engineering', 'Wells Fargo', 'London', 'Searching for Roommates', 'Search Complete', 2100, '6 months', 4, 'Nomadic', 20, 4, 'Passionate about attending art exhibitions and supporting local artists', 7, 2, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ravi Kilgrove', 'Art', 'Hyundai', 'Chicago', 'Searching for Housing', 'Searching for Carpool', 1600, '4 months', 1, 'Sustainable', 40, 1, 'Intrigued by the art of storytelling and creating compelling narratives', 6, 2, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Dav Birtwhistle', 'Art', 'Boeing', 'Atlanta', 'Searching for Roommates', 'Search Complete', 1500, '6 months', 1, 'Balanced', 30, 6, 'Dedicated to learning martial arts and self-defense techniques', 2, 1, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Ambur Harmour', 'Finance', 'Honda', 'San Jose', 'Search Complete', 'Has Car', 2000, '6 months', 3, 'Cozy', 10, 3, 'Intrigued by the art of storytelling and creating compelling narratives', 10, 5, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Cyndy Eckersall', 'Marketing', 'Northrop Grumman', 'London', 'Searching for Housing', 'Has Car', 2400, '1 year', 2, 'Holistic', 15, 6, 'Obsessed with collecting rare vinyl records and building a music collection', 10, 8, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Lia Veillard', 'Finance', 'NBCUniversal', 'Chicago', 'Search Complete', 'Has Car', 2400, '1 year', 4, 'Minimalist', 50, 5, 'Passionate about attending art exhibitions and supporting local artists', 10, 9, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Gustave Toffoloni', 'Data Engineering', 'Best Buy', 'Seattle', 'Search Complete', 'Searching for Carpool', 1200, '4 months', 3, 'Minimalist', 20, 2, 'Passionate about painting and creating art', 6, 5, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Stace Semble', 'Biology', 'Citigroup', 'San Francisco', 'Searching for Housing', 'Searching for Carpool', 1900, '6 months', 4, 'Cozy', 60, 6, 'Fascinated by the world of magic and illusion', 9, 1, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('April Djurevic', 'Data Engineering', 'BP', 'Chicago', 'Searching for Roommates', 'Searching for Carpool', 2100, '6 months', 1, 'Relaxed', 60, 3, 'Devoted to studying ancient mythology and folklore', 2, 6, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Kora Parradye', 'History', 'Northrop Grumman', 'Atlanta', 'Search Complete', 'Searching for Carpool', 1100, '1 year', 4, 'Active', 30, 3, 'Addicted to attending science fiction conventions and meeting favorite authors', 8, 2, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Bridget Dartnell', 'Computer Science', 'General Motors', 'Los Angeles', 'Searching for Roommates', 'Has Car', 1900, '4 months', 1, 'Energetic', 40, 2, 'Obsessed with urban exploration and discovering hidden gems in cities', 7, 8, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Phelia Nother', 'Finance', 'Johnson & Johnson', 'London', 'Searching for Roommates', 'Search Complete', 1500, '6 months', 4, 'Energetic', 25, 4, 'Addicted to attending film festivals and discovering independent cinema', 8, 7, 4); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Camila Gronauer', 'Finance', 'Tesla', 'Seattle', 'Searching for Roommates', 'Searching for Carpool', 2400, '4 months', 4, 'Healthy', 35, 1, 'Obsessed with collecting rare vinyl records and building a music collection', 10, 4, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Teador Capron', 'History', 'Unilever', 'Atlanta', 'Search Complete', 'Has Car', 2200, '6 months', 5, 'Relaxed', 60, 5, 'Devoted to studying psychology and understanding human behavior', 10, 9, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Husein Despenser', 'Data Science', 'Meta (Facebook)', 'Atlanta', 'Searching for Roommates', 'Has Car', 1200, '1 year', 4, 'Relaxed', 45, 3, 'Fascinated by the art of tea ceremonies and traditional rituals', 3, 6, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Carmen Rollett', 'History', 'Ford', 'London', 'Searching for Roommates', 'Search Complete', 1400, '1 year', 1, 'Nomadic', 20, 3, 'Dedicated to learning about sustainable agriculture and organic farming', 2, 2, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Nana Richings', 'Data Science', 'Pfizer', 'Boston', 'Searching for Housing', 'Search Complete', 1000, '4 months', 1, 'Eco-friendly', 40, 1, 'Addicted to collecting rare coins and currency from around the world', 1, 7, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Rafaelita Hodge', 'Public Health', 'Costco', 'San Jose', 'Search Complete', 'Has Car', 1900, '6 months', 4, 'Relaxed', 70, 5, 'Passionate about exploring abandoned buildings and urban decay', 3, 7, 1); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alfonse Tuttle', 'Finance', 'Boeing', 'D.C.', 'Searching for Roommates', 'Searching for Carpool', 1500, '1 year', 3, 'Social', 50, 2, 'Fascinated by the world of virtual reality and immersive experiences', 2, 8, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Fran Cuss', 'Data Science', 'Meta (Facebook)', 'San Jose', 'Searching for Housing', 'Searching for Carpool', 1300, '1 year', 4, 'Nomadic', 20, 4, 'Passionate about attending art exhibitions and supporting local artists', 9, 5, 5); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Alvy Garley', 'Public Health', 'Honda', 'New York City', 'Search Complete', 'Searching for Carpool', 1100, '4 months', 2, 'Social', 60, 3, 'Passionate about collecting rare books and first editions', 6, 5, 2); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Marcela Rutherfoord', 'History', 'Pfizer', 'Chicago', 'Searching for Roommates', 'Searching for Carpool', 2200, '6 months', 4, 'Sustainable', 15, 3, 'Devoted to studying philosophy and exploring existential questions', 8, 6, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Marji Towell', 'Art', 'Johnson & Johnson', 'Seattle', 'Searching for Housing', 'Search Complete', 1900, '4 months', 4, 'Balanced', 35, 5, 'Fascinated by astronomy and stargazing', 1, 1, 3); -insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Biography, CommunityID, AdvisorID, Reminder) values ('Jillie Leivesley', 'Data Engineering', 'Best Buy', 'Boston', 'Search Complete', 'Has Car', 2200, '4 months', 4, 'Active', 40, 4, 'Devoted to learning about different types of cuisine and cooking techniques', 6, 7, 3); ->>>>>>> 1015f19c53beee0323c5bf3c4c88d11f0d8c22db -- 8. Task Data (depends on Student and Advisor) insert into Task (Description, Reminder, AssignedTo, DueDate, Status, AdvisorID) values ('Complete housing application', '2024-02-01', 1, '2024-02-15', 'Pending', 1); @@ -957,129 +402,89 @@ insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedD insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (28, 'broken link', 'cancelled', 'High', '2024-07-23', '2023-12-03'); insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (29, 'broken link', 'pending', 'Low', '2024-10-16', '2024-07-15'); insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (30, 'login error', 'completed', 'Low', '2024-07-08', '2024-03-14'); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (31, 'formatting problem', 'cancelled', 'High', '2024-11-02', '2024-02-13'); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (32, 'incorrect password', 'cancelled', 'Medium', '2024-05-02', '2024-01-02'); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (33, 'missing images', 'completed', 'Low', '2024-03-28', '2024-03-10'); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (34, 'slow performance', 'completed', 'High', '2024-07-04', '2024-03-22'); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (35, 'formatting problem', 'completed', 'Medium', '2024-03-20', '2024-06-02'); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (36, 'Data backup request', '2024-01-01 14:19:33', 9, 35); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (37, 'Data backup request', '2024-01-22 02:11:10', 14, 94); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (38, 'Virus detected on device', '2024-04-21 20:32:07', 22, 36); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (39, 'Need help setting up new device', '2023-12-14 19:54:52', 1, 37); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (40, 'Need help with troubleshooting', '2024-05-23 17:51:25', 30, 65); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (41, 'Account locked', '2024-11-23 02:47:21', 8, 92); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (42, 'Issue with login credentials', '2024-10-22 06:51:05', 20, 80); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (43, 'Need help setting up new device', '2024-07-11 14:32:57', 11, 85); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (44, 'Email not sending', '2024-11-02 23:03:10', 25, 22); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (45, 'Device not turning on', '2024-11-11 06:37:15', 7, 49); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (46, 'Error message on screen', '2024-04-01 19:44:01', 15, 15); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (47, 'Account locked', '2023-12-05 15:00:08', 29, 70); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (48, 'Software update needed', '2024-08-22 03:59:14', 4, 87); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (49, 'Device not turning on', '2024-03-26 07:03:27', 19, 82); -insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) values (50, 'Virus detected on device', '2024-03-01 14:51:56', 10, 2); + -- 10. SystemLog Data (depends on Ticket) -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (1, '2024-01-01 12:00:00', 'System startup', 'Performance', 'Protected', 'Secure'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-27 09:10:45', 'User logged in', 'CPU Usage', 'Data Minimization Compliance', 'Intrusion Detection Alerts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-08-18 13:56:45', 'User viewed dashboard', 'System Load', 'Data Retention Policy Compliance', 'Authentication Failures'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-04-02 21:27:13', 'User updated profile', 'System Uptime', 'Data Retention Policy Compliance', 'Encryption Key Rotation'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-09-07 19:30:18', 'User logged out', 'Incident Resolution Time', 'Data Sharing Permissions', 'Access Control Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-05-23 17:18:14', 'User logged out', 'Error Rate', 'Data Anonymization Compliance', 'Access Control Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2023-12-06 17:34:34', 'User logged out', 'System Uptime', 'User Consent Management', 'Two-Factor Authentication (2FA) Usage'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-05-02 19:55:05', 'User logged out', 'Network Latency', 'Sensitive Data Exposure', 'Two-Factor Authentication (2FA) Usage'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-10-19 13:04:17', 'User logged out', 'Patch Management', 'Data Collection Transparency', 'Firewall Activity'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-07-07 11:36:15', 'User logged in', 'Error Rate', 'Data Retention Policy Compliance', 'Unauthorized Access Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-04-22 10:57:34', 'User logged in', 'Error Rate', 'Data Access Audits', 'Unauthorized Access Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-08-12 00:43:26', 'User made a purchase', 'System Load', 'Data Minimization Compliance', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-05-27 19:41:32', 'User viewed dashboard', 'Error Rate', 'Sensitive Data Exposure', 'Authentication Failures'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-09-18 01:52:11', 'User viewed dashboard', 'Service Downtime', 'Data Anonymization Compliance', 'Security Vulnerability Scans'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-03-20 22:24:55', 'User logged in', 'Backup Success Rate', 'Data Collection Transparency', 'Audit Log Entries'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-05-08 00:23:35', 'User logged in', 'Compliance Rate', 'User Data Access Requests', 'Unauthorized Access Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2023-12-15 15:12:20', 'User updated profile', 'Database Backup Frequency', 'Data Minimization Compliance', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-09-09 22:04:23', 'User searched for products', 'Data Throughput', 'Sensitive Data Exposure', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-10-29 16:55:37', 'User searched for products', 'System Scalability', 'Data Retention Policy Compliance', 'Audit Log Entries'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-08-24 17:11:28', 'User logged in', 'System Scalability', 'Data Anonymization Compliance', 'Audit Log Entries'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-05-30 22:40:11', 'User searched for products', 'Memory Usage', 'Sensitive Data Exposure', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-10-08 14:54:43', 'User logged in', 'Database Query Time', 'Data Anonymization Compliance', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2023-12-11 09:22:34', 'User added item to cart', 'User Login Attempts', 'Data Sharing Permissions', 'Unauthorized Access Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-01-07 12:43:32', 'User requested password reset', 'Disk Space', 'User Data Access Requests', 'Security Patch Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-07-04 01:21:21', 'User added item to cart', 'Response Time', 'Data Sharing Permissions', 'Unauthorized Access Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-01-31 02:41:53', 'User updated profile', 'Security Events', 'Privacy Policy Compliance', 'Password Strength Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-03-25 08:42:17', 'User logged out', 'Error Rate', 'Privacy Policy Compliance', 'Unauthorized Access Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-10-16 00:54:25', 'User added item to cart', 'User Login Attempts', 'Privacy Policy Compliance', 'Password Strength Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-02-14 15:58:24', 'User updated profile', 'Error Rate', 'Data Collection Transparency', 'Password Strength Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-10-05 12:35:21', 'User made a purchase', 'User Login Attempts', 'Data Anonymization Compliance', 'Access Requests'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-01-15 10:46:13', 'User logged out', 'System Scalability', 'Data Collection Transparency', 'Security Breach Incidents'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-08 04:42:51', 'User logged in', 'Patch Management', 'Data Access Audits', 'Access Requests'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-08-23 02:36:45', 'User made a purchase', 'User Login Attempts', 'Data Access Audits', 'Audit Log Entries'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-01-14 22:57:14', 'User made a purchase', 'System Uptime', 'Data Retention Policy Compliance', 'Security Patch Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-07-08 23:42:30', 'User logged out', 'Database Backup Frequency', 'Sensitive Data Exposure', 'Data Encryption Status'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-08-03 00:09:08', 'User added item to cart', 'System Uptime', 'Privacy Policy Compliance', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-04-08 14:22:41', 'User changed password', 'Response Time', 'Data Minimization Compliance', 'Data Encryption Status'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-10-26 13:44:57', 'User made a purchase', 'Incident Resolution Time', 'User Data Access Requests', 'Data Encryption Status'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-01-31 01:47:53', 'User added item to cart', 'Compliance Rate', 'Sensitive Data Exposure', 'Encryption Key Rotation'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-04-10 15:29:05', 'User searched for products', 'Database Backup Frequency', 'Data Retention Policy Compliance', 'Access Control Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-06-16 23:55:27', 'User logged in', 'CPU Usage', 'Data Sharing Permissions', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-01-30 08:58:05', 'User logged out', 'Service Downtime', 'Data Access Audits', 'Encryption Key Rotation'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-06-09 19:10:09', 'User requested password reset', 'Memory Usage', 'Data Retention Policy Compliance', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-31 06:09:19', 'User logged out', 'Network Latency', 'Privacy Policy Compliance', 'Encryption Key Rotation'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-08-15 23:14:31', 'User searched for products', 'Compliance Rate', 'User Data Access Requests', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('D''Amore Mc-Kim', '2024-05-06 17:10:56', 'User added item to cart', 'Disk Space', 'Data Retention Policy Compliance', 'Password Strength Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-02-04 01:54:22', 'User made a purchase', 'Response Time', 'User Data Access Requests', 'Unauthorized Access Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Bouve College', '2024-11-28 21:06:43', 'User logged in', 'Security Events', 'Data Anonymization Compliance', 'Security Patch Compliance'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Science', '2024-06-15 13:53:17', 'User logged in', 'Database Backup Frequency', 'Data Retention Policy Compliance', 'Phishing Attempts'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('Khoury College', '2024-03-19 04:19:05', 'User added item to cart', 'System Load', 'Privacy Policy Compliance', 'Data Encryption Status'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values ('College of Engineering', '2024-01-28 09:04:12', 'User changed password', 'Active Connections', 'Sensitive Data Exposure', 'Firewall Activity'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (25, '2024-01-07 11:42:46', 'User logged in', 'Medium', 'Privacy Requests', 'Encryption'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (12, '2024-05-18 02:54:04', 'User logged out', 'Medium', 'User Consent', 'Vulnerabilities'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (12, '2024-07-28 21:18:40', 'User deleted profile', 'Medium', 'Anonymity', 'Password Security'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (30, '2024-03-24 08:24:45', 'User deleted profile', 'High', 'Data Access', 'Audit Logs'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (26, '2024-01-03 07:43:04', 'User logged in', 'Low', 'User Consent', 'Data Integrity'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (30, '2024-01-10 03:27:04', 'User deleted profile', 'Low', 'Privacy Requests', 'Access Control'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (21, '2024-08-05 23:16:22', 'User deleted profile', 'Low', 'Data Access', 'Data Integrity'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (27, '2024-05-05 18:50:35', 'User updated profile', 'High', 'Data Access', 'User Reports'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (19, '2024-09-02 00:47:26', 'User logged out', 'Medium', 'Privacy Requests', 'Authentication'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (28, '2024-06-27 20:06:55', 'User logged out', 'Low', 'Data Sharing', 'Vulnerabilities'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (28, '2024-09-30 09:30:10', 'User logged in', 'High', 'Security Events', 'Intrusion Detection'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (3, '2024-08-19 20:28:53', 'User added event', 'High', 'Privacy Settings', 'Password Security'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (17, '2024-04-24 05:22:56', 'User deleted profile', 'High', 'Privacy Requests', 'Encryption'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (27, '2024-09-19 09:02:51', 'User updated profile', 'High', 'Anonymity', 'User Reports'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (8, '2024-01-06 18:55:06', 'User logged out', 'Medium', 'User Consent', 'Security Events'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (15, '2024-08-26 03:50:58', 'User logged out', 'High', 'Privacy Settings', 'Security Events'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (14, '2024-01-21 08:12:26', 'User added event', 'High', 'Privacy Settings', 'Access Control'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (16, '2024-11-03 01:28:24', 'User logged out', 'Low', 'Anonymity', 'Access Control'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (28, '2024-08-17 13:04:07', 'User logged in', 'High', 'Anonymity', 'Authentication'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (25, '2024-06-05 00:12:22', 'User logged in', 'Medium', 'Privacy Requests', 'Encryption'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (29, '2024-03-30 17:02:10', 'User updated profile', 'Low', 'Data Access', 'Audit Logs'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (5, '2024-02-12 03:28:39', 'User logged out', 'Low', 'Anonymity', 'Encryption'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (26, '2024-11-27 13:33:33', 'User updated profile', 'High', 'Data Sharing', 'Audit Logs'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (29, '2024-01-02 19:03:06', 'User logged out', 'High', 'Privacy Requests', 'Encryption'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (23, '2024-06-13 18:46:16', 'User added event', 'Low', 'Privacy Requests', 'Password Security'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (6, '2024-07-20 17:53:27', 'User logged out', 'Low', 'Data Access', 'Authentication'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (26, '2024-03-30 15:36:27', 'User updated profile', 'Low', 'Privacy Requests', 'Encryption'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (18, '2024-11-22 23:10:19', 'User logged in', 'High', 'Security Events', 'User Reports'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (21, '2024-03-18 03:36:00', 'User logged in', 'Medium', 'Data Sharing', 'Data Integrity'); +insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (3, '2024-06-15 14:25:00', 'User logged out', 'Low', 'Anonymity', 'User Reports'); -- 11. SystemHealth Data (depends on SystemLog) -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (1, '2024-01-01 12:00:00', 'Normal', 'System Performance'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (12, '2023-12-08 03:13:57', 'Normal', 'Security Events'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (34, '2023-12-02 23:34:00', 'Active', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (7, '2024-06-20 11:47:06', 'Operational', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (23, '2024-02-26 08:05:29', 'Recovered', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (45, '2024-06-29 11:52:55', 'Operational', 'Backup Success Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (18, '2024-05-21 12:15:08', 'Operational', 'Incident Resolution Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (31, '2023-12-20 16:19:30', 'Recovered', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (9, '2023-12-25 09:35:03', 'Normal', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (27, '2024-01-11 21:42:14', 'Complete', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (50, '2024-06-08 16:58:41', 'Recovered', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (14, '2024-10-25 20:48:26', 'Complete', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (39, '2024-05-14 09:39:44', 'Recovered', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (5, '2024-06-24 02:45:26', 'Active', 'User Login Attempts'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (20, '2024-07-24 13:11:47', 'Normal', 'System Scalability'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (42, '2024-07-17 13:01:47', 'Complete', 'Error Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (3, '2024-11-05 13:29:34', 'Recovered', 'CPU Usage'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (36, '2024-03-25 07:56:21', 'Operational', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (10, '2024-03-22 07:01:50', 'Complete', 'Response Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (25, '2024-05-16 19:39:19', 'Complete', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (48, '2024-11-05 10:44:02', 'Complete', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (16, '2024-05-01 15:17:33', 'Normal', 'CPU Usage'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (41, '2024-03-21 17:26:03', 'Normal', 'Security Events'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (8, '2024-04-09 02:34:09', 'Recovered', 'User Login Attempts'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (30, '2024-11-21 15:10:52', 'Active', 'System Scalability'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (47, '2024-11-20 22:30:35', 'Active', 'Backup Success Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (13, '2024-08-31 10:17:14', 'Recovered', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (38, '2024-03-10 16:47:48', 'Normal', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (6, '2024-11-18 07:29:51', 'Active', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (21, '2024-08-23 20:03:42', 'Operational', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (44, '2024-10-22 18:03:39', 'Operational', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (2, '2024-06-10 10:19:24', 'Active', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (35, '2024-09-24 13:11:15', 'Recovered', 'User Login Attempts'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (11, '2024-10-30 09:38:08', 'Operational', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (26, '2024-05-20 00:54:29', 'Recovered', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (49, '2024-11-09 18:50:06', 'Active', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (15, '2024-07-25 12:48:28', 'Normal', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (40, '2023-12-31 12:28:57', 'Recovered', 'Error Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (4, '2024-02-01 03:15:07', 'Operational', 'Active Connections'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (19, '2024-08-18 07:34:13', 'Recovered', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (43, '2024-11-11 05:01:35', 'Normal', 'System Load'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (1, '2023-12-10 23:28:13', 'Active', 'Response Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (37, '2024-05-17 12:57:33', 'Complete', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (24, '2024-08-05 23:12:30', 'Normal', 'Database Query Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (46, '2024-03-07 08:42:21', 'Active', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (17, '2024-05-06 10:13:32', 'Normal', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (32, '2024-09-22 01:10:12', 'Complete', 'CPU Usage'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (22, '2024-01-30 03:51:19', 'Normal', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (33, '2024-06-11 12:00:15', 'Operational', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (28, '2024-05-26 08:55:01', 'Complete', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); +insert into SystemHealth (LogID, Timestamp, Status) values (1, '2024-01-01 12:00:00', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (12, '2023-12-08 03:13:57', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (30, '2023-12-02 23:34:00', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (7, '2024-06-20 11:47:06', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (23, '2024-02-26 08:05:29', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (5, '2024-06-29 11:52:55', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (18, '2024-05-21 12:15:08', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (30, '2023-12-20 16:19:30', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (9, '2023-12-25 09:35:03', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (27, '2024-01-11 21:42:14', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (20, '2024-06-08 16:58:41', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (14, '2024-10-25 20:48:26', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (30, '2024-05-14 09:39:44', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (5, '2024-06-24 02:45:26', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (20, '2024-07-24 13:11:47', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (3, '2024-07-17 13:01:47', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (3, '2024-11-05 13:29:34', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (26, '2024-03-25 07:56:21', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (10, '2024-03-22 07:01:50', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (25, '2024-05-16 19:39:19', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (18, '2024-11-05 10:44:02', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (16, '2024-05-01 15:17:33', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (11, '2024-03-21 17:26:03', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (8, '2024-04-09 02:34:09', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (30, '2024-11-21 15:10:52', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (17, '2024-11-20 22:30:35', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (13, '2024-08-31 10:17:14', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (18, '2024-03-10 16:47:48', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (6, '2024-11-18 07:29:51', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (21, '2024-08-23 20:03:42', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (24, '2024-10-22 18:03:39', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (2, '2024-06-10 10:19:24', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (25, '2024-09-24 13:11:15', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (11, '2024-10-30 09:38:08', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (26, '2024-05-20 00:54:29', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (29, '2024-11-09 18:50:06', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (15, '2024-07-25 12:48:28', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (4, '2023-12-31 12:28:57', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (4, '2024-02-01 03:15:07', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (19, '2024-08-18 07:34:13', 'Recovered'); +insert into SystemHealth (LogID, Timestamp, Status) values (23, '2024-11-11 05:01:35', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (1, '2023-12-10 23:28:13', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (17, '2024-05-17 12:57:33', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (24, '2024-08-05 23:12:30', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (6, '2024-03-07 08:42:21', 'Active'); +insert into SystemHealth (LogID, Timestamp, Status) values (17, '2024-05-06 10:13:32', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (2, '2024-09-22 01:10:12', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (22, '2024-01-30 03:51:19', 'Normal'); +insert into SystemHealth (LogID, Timestamp, Status) values (3, '2024-06-11 12:00:15', 'Operational'); +insert into SystemHealth (LogID, Timestamp, Status) values (8, '2024-05-26 08:55:01', 'Complete'); +insert into SystemHealth (LogID, Timestamp, Status) values (29, '2024-11-28 04:45:43', 'Operational'); \ No newline at end of file diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 2d35073c3c..2785849b7c 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -17,7 +17,6 @@ CREATE TABLE IF NOT EXISTS Housing ( HousingID INT AUTO_INCREMENT PRIMARY KEY, Availability VARCHAR(50), Style VARCHAR(50), - Location VARCHAR(100), CommunityID INT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); From baaee70b03e4ed0aa6433a5008e6c0945e01bd00 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 11:14:41 -0500 Subject: [PATCH 176/305] 1 --- api/backend/rest_entry.py | 3 ++- api/backend/students/student_routes.py | 32 ++------------------------ app/src/pages/10_Co-op_Advisor_Home.py | 9 +++----- 3 files changed, 7 insertions(+), 37 deletions(-) diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index a95d148d86..73b253aba6 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -2,7 +2,7 @@ from backend.db_connection import db from backend.community.community_routes import community -#from backend.products.products_routes import products +from backend.students.student_routes import students import os from dotenv import load_dotenv @@ -41,6 +41,7 @@ def create_app(): #app.register_blueprint(simple_routes) #app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(community, url_prefix='/c') + app.register_blueprint(students, url_prefix='/api') # Don't forget to return the app object return app diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index c414f442e0..a352ae958a 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -6,14 +6,8 @@ @students.route('/students', methods=['GET']) def get_all_students(): try: - # First, let's check if we can connect to the database connection = db.get_db() - print("Database connection successful") - - # Let's check if the Student table exists and has data cursor = connection.cursor() - print("Created cursor") - query = ''' SELECT StudentID as student_id, @@ -24,35 +18,13 @@ def get_all_students(): FROM Student ORDER BY StudentID ASC ''' - print(f"Executing query: {query}") cursor.execute(query) - - # Get column names from cursor description columns = [desc[0] for desc in cursor.description] - - # Convert results to list of dictionaries - results = [] - for row in cursor.fetchall(): - results.append(dict(zip(columns, row))) - - print(f"Query returned {len(results)} results") - if results: - print("Sample first row:", results[0]) - + results = [dict(zip(columns, row)) for row in cursor.fetchall()] cursor.close() return jsonify(results), 200 - except Exception as e: - error_msg = f"Error in get_all_students: {str(e)}" - print(error_msg) - print(f"Error type: {type(e).__name__}") - import traceback - print("Traceback:", traceback.format_exc()) - return jsonify({ - "error": error_msg, - "type": type(e).__name__, - "traceback": traceback.format_exc() - }), 500 + return jsonify({'error': 'Failed to fetch students'}), 500 @students.route('/students//reminders', methods=['GET']) def get_student_reminders(student_id): diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index e9695d9a14..107d580766 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -38,12 +38,9 @@ # Load and display student data try: response = requests.get('http://web-api:4000/api/students') - st.write("API Response Status:", response.status_code) - st.write("API Response Content:", response.json()) - if response.status_code == 200: data = response.json() - if data: # Check if we got any data + if data: df = pd.DataFrame(data) st.subheader(f"Student List ({len(df)})") st.dataframe( @@ -60,7 +57,7 @@ else: st.warning("No student data available") else: - st.error(f"Failed to fetch student data. Status: {response.status_code}") + st.error(f"Failed to fetch student data") except Exception as e: - st.error(f"Error loading student data: {str(e)}") + st.error(f"Error loading student data") From 8828addb4da3835bbe9bbd976a5755a29f759ba6 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 11:52:16 -0500 Subject: [PATCH 177/305] nn --- app/src/Home.py | 2 +- app/src/modules/nav.py | 20 +++++--------------- app/src/pages/10_Co-op_Advisor_Home.py | 14 ++++++-------- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index aa4c92391d..5ba0a41400 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -60,7 +60,7 @@ if st.button('Act as Co-op Advisor - Jessica Doofenshmirtz', type='primary', use_container_width=True): - st.session_state['logged_in'] = True + st.session_state['authenticated'] = True st.session_state['role'] = 'Advisor' st.session_state['first_name'] = 'Jessica' st.switch_page('pages/10_Co-op_Advisor_Home.py') diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 97d85c157c..056b2f60d3 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -36,21 +36,13 @@ def SysHealthDashNav(): ## ------------------------ Examples for Role of usaid_worker ------------------------ -def ApiTestNav(): - st.sidebar.page_link("pages/12_Form.py", label="Test the API", icon="🛜") -def PredictionNav(): - st.sidebar.page_link( - "pages/11_Notification.py", label="Regression Prediction", icon="📈" - ) - - -def ClassificationNav(): - st.sidebar.page_link( - "pages/13_Housing.py", label="Classification Demo", icon="🌺" - ) +def JessicaPageNav(): + st.sidebar.page_link("pages/11_Notification.py", label="Notifications", icon="🔔") + st.sidebar.page_link("pages/12_Form.py", label="Forms", icon="📝") + st.sidebar.page_link("pages/13_Housing.py", label="Housing", icon="🏘️") #### ------------------------ Student Housing/Carpool Role ------------------------ def KevinPageNav(): @@ -89,9 +81,7 @@ def SideBarLinks(show_home=False): # If the user role is usaid worker, show the Api Testing page if st.session_state["role"] == "Advisor": - PredictionNav() - ApiTestNav() - ClassificationNav() + JessicaPageNav() # If the user is a student, give them access to the student pages if st.session_state["role"] == "Student": diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 107d580766..fa1c489283 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -1,18 +1,16 @@ +import logging +logger = logging.getLogger(__name__) + import streamlit as st -import pandas as pd from modules.nav import SideBarLinks import requests -# Set Streamlit page configuration -st.set_page_config(layout="wide") +st.set_page_config(layout = 'wide') -# Add navigation sidebar SideBarLinks() -# Page title and welcome message -st.title('Co-op Advisor Home Page') -st.write(f"Welcome, {st.session_state.get('first_name', 'Advisor')}!") - +st.title(f"Welcome Student, {st.session_state['first_name']}.") +st.write('') st.write('') st.write('### What would you like to do today?') From 50a6357dd54f203a1b36d2c9e2426371f9ea9b57 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 12:13:43 -0500 Subject: [PATCH 178/305] housing and carpool pages --- api/backend/community/community_routes.py | 28 ++++--- app/src/pages/22_Housing.py | 89 +++++++++-------------- app/src/pages/23_Carpool.py | 36 ++++++++- 3 files changed, 83 insertions(+), 70 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 32b89fd847..5e4f681da2 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -8,31 +8,33 @@ community = Blueprint('community', __name__) @community.route('/community//housing', methods=['GET']) -# route for retrieving carpools for the students in the same community -def community_housing(): +# route for retrieving housing for the students in the same community +def community_housing(communityid): query = ''' - SELECT s.Name, s.Major, s.Company, s.Location, s.HousingStatus, s.Budget, s.LeaseDuration, s.Cleanliness, s.LifeStyle, s.Bio, s.CommunityID + SELECT s.Name, s.Major, s.Company, c.Location, s.HousingStatus, s.Budget, s.LeaseDuration, s.Cleanliness, s.Lifestyle, s.Bio FROM Student s - JOIN Community c ON s.CommunityID=c.CommunityID - WHERE s.CommunityID = %s; + JOIN CityCommunity c ON s.CommunityID=c.CommunityID + WHERE c.Location = %s; ''' cursor = db.get_db().cursor() - cursor.execute(query) + cursor.execute(query, (communityid,)) theData = cursor.fetchall() response = make_response(jsonify(theData)) response.status_code = 200 return response -@community.route('/community', methods=['GET']) +@community.route('/community//carpool', methods=['GET']) # route for retrieving carpools for the students in the same community -def community_all(): +def community_carpool(communityid): query = ''' - SELECT * - FROM Student; + SELECT s.Name, s.Major, s.Company, c.Location, s.CarpoolStatus, s.Budget, s.CommuteTime, s.CommuteDays, s.Bio + FROM Student s + JOIN CityCommunity c ON s.CommunityID=c.CommunityID + WHERE c.Location = %s; ''' cursor = db.get_db().cursor() - cursor.execute(query) + cursor.execute(query, (communityid,)) theData = cursor.fetchall() response = make_response(jsonify(theData)) @@ -44,3 +46,7 @@ def community_all(): + + + + diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index 4869fe7dbe..95db61eba2 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -9,59 +9,38 @@ SideBarLinks() -# Define the API URL -API_URL = "http://api:4000/c/community" - -# Fetch data from the API -response = requests.get(API_URL) - -# Check if the response is successful -if response.status_code == 200: - data = response.json() # Assuming the API returns JSON data - df = pd.DataFrame(data) # Convert the JSON data to a DataFrame - - # Display the DataFrame in Streamlit - st.write("Playlist Data", df) -else: - st.error(f"Failed to fetch data. Status code: {response.status_code}") - -''' -# Set the backend API URL - - -# Streamlit App Layout -st.title("Community Housing Details") - -# User Input: Community ID -communityid = st.text_input("Enter Community ID:", placeholder="e.g., 123") - -# Fetch Data on Button Click -if st.button("Get Housing Details"): - if not communityid: - st.warning("Please enter a valid Community ID.") +def fetch_student_profiles(communityid): + url = f'http://api:4000/c/community/{communityid}/housing' # Replace with your actual URL + response = requests.get(url) + if response.status_code == 200: + return response.json() else: - try: - # Make GET request to the backend - response = requests.get(API_URL.format(communityid=communityid)) - - # Check for successful response - if response.status_code == 200: - data = response.json() - - # Convert JSON to DataFrame for better display - df = pd.DataFrame(data, columns=[ - "Name", "Major", "Company", "Location", "HousingStatus", - "Budget", "LeaseDuration", "Cleanliness", "LifeStyle", - "Bio", "CommunityID" - ]) - # Display the DataFrame in Streamlit - st.dataframe(df) - - elif response.status_code == 404: - st.warning("No students found for the given Community ID.") - else: - st.error(f"Error: {response.status_code} - {response.text}") - - except requests.exceptions.RequestException as e: - st.error(f"Failed to connect to the API: {str(e)}") -''' \ No newline at end of file + st.error(f"Error fetching data: {response.status_code}") + return [] + +# Streamlit app UI +st.title("Community Housing Profiles") + +# Input field for community ID +communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") + +if communityid: + # Fetch data for the community + student_profiles = fetch_student_profiles(communityid) + + # Display student profiles + if student_profiles: + for student in student_profiles: + st.subheader(student['Name']) + st.write(f"**Major:** {student['Major']}") + st.write(f"**Company:** {student['Company']}") + st.write(f"**Location:** {student['Location']}") + st.write(f"**Housing Status:** {student['HousingStatus']}") + st.write(f"**Budget:** {student['Budget']}") + st.write(f"**Lease Duration:** {student['LeaseDuration']}") + st.write(f"**Cleanliness:** {student['Cleanliness']}") + st.write(f"**Lifestyle:** {student['Lifestyle']}") + st.write(f"**Bio:** {student['Bio']}") + st.write("---") + else: + st.write("No profiles found.") \ No newline at end of file diff --git a/app/src/pages/23_Carpool.py b/app/src/pages/23_Carpool.py index 351285292d..a77d8538c2 100644 --- a/app/src/pages/23_Carpool.py +++ b/app/src/pages/23_Carpool.py @@ -8,8 +8,36 @@ SideBarLinks() -st.title('Carpool Search') +def fetch_student_profiles(communityid): + url = f'http://api:4000/c/community/{communityid}/carpool' # Replace with your actual URL + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] -st.write('\n\n') -st.write('## test') -st.write("Test") +# Streamlit app UI +st.title("Carpool Profiles") + +# Input field for community ID +communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") + +if communityid: + # Fetch data for the community + student_profiles = fetch_student_profiles(communityid) + + # Display student profiles + if student_profiles: + for student in student_profiles: + st.subheader(student['Name']) + st.write(f"**Major:** {student['Major']}") + st.write(f"**Company:** {student['Company']}") + st.write(f"**Location:** {student['Location']}") + st.write(f"**Carpool Status:** {student['CarpoolStatus']}") + st.write(f"**Travel time:** {student['CommuteTime']}") + st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + st.write(f"**Bio:** {student['Bio']}") + st.write("---") + else: + st.write("No profiles found.") \ No newline at end of file From a63c04c80aff55ae23d3b580ba573ac3e786a7c9 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Tue, 3 Dec 2024 12:32:27 -0500 Subject: [PATCH 179/305] updating about page --- app/src/pages/50_About.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/50_About.py b/app/src/pages/50_About.py index 07a2e9aab2..18831ab143 100644 --- a/app/src/pages/50_About.py +++ b/app/src/pages/50_About.py @@ -4,7 +4,7 @@ SideBarLinks() -st.write("# About this App") +st.write("# About SyncSpace") st.markdown ( """ From 2136c44f9b2be96472b0d39854cf9a45617433b0 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Tue, 3 Dec 2024 12:50:07 -0500 Subject: [PATCH 180/305] renaming --- app/src/pages/10_Co-op_Advisor_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index fa1c489283..4e4041b326 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -9,7 +9,7 @@ SideBarLinks() -st.title(f"Welcome Student, {st.session_state['first_name']}.") +st.title(f"Welcome Co-op Advisor, {st.session_state['first_name']}.") st.write('') st.write('') st.write('### What would you like to do today?') From 373c148cd322d2490de0fe54ffb1736ccd832d88 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 13:23:21 -0500 Subject: [PATCH 181/305] housing --- api/backend/community/community_routes.py | 30 ++++++++++-- app/src/pages/22_Housing.py | 58 ++++++++++++++++------- 2 files changed, 68 insertions(+), 20 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 5e4f681da2..4ec3051881 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -8,22 +8,46 @@ community = Blueprint('community', __name__) @community.route('/community//housing', methods=['GET']) -# route for retrieving housing for the students in the same community +# Route for retrieving housing for students in the same community def community_housing(communityid): + cleanliness_filter = request.args.get('cleanliness', type=int) + lease_duration_filter = request.args.get('lease_duration', type=str) + budget_filter = request.args.get('budget', type=int) + + # Base query query = ''' SELECT s.Name, s.Major, s.Company, c.Location, s.HousingStatus, s.Budget, s.LeaseDuration, s.Cleanliness, s.Lifestyle, s.Bio FROM Student s JOIN CityCommunity c ON s.CommunityID=c.CommunityID - WHERE c.Location = %s; + WHERE c.Location = %s ''' + + params = [communityid] # initial params with communityid + + # Add filters based on cleanliness and lease_duration if they are provided + if cleanliness_filter is not None: + query += ' AND s.Cleanliness >= %s' + params.append(cleanliness_filter) + + if lease_duration_filter and lease_duration_filter != "Any": + query += ' AND s.LeaseDuration = %s' + params.append(lease_duration_filter) + + if budget_filter is not None: + query += ' AND s.Budget <= %s' + params.append(budget_filter) + + # Execute the query with the parameters cursor = db.get_db().cursor() - cursor.execute(query, (communityid,)) + cursor.execute(query, tuple(params)) theData = cursor.fetchall() + # Prepare and return the response response = make_response(jsonify(theData)) response.status_code = 200 return response + @community.route('/community//carpool', methods=['GET']) # route for retrieving carpools for the students in the same community def community_carpool(communityid): diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py index 95db61eba2..a90d057fad 100644 --- a/app/src/pages/22_Housing.py +++ b/app/src/pages/22_Housing.py @@ -9,8 +9,23 @@ SideBarLinks() -def fetch_student_profiles(communityid): - url = f'http://api:4000/c/community/{communityid}/housing' # Replace with your actual URL +def fetch_student_profiles(communityid, cleanliness_filter=None, lease_duration_filter=None, budget_filter=None): + url = f'http://api:4000/c/community/{communityid}/housing' + + # apend filters + if cleanliness_filter: + url += f"?cleanliness={cleanliness_filter}" + if lease_duration_filter: + if "?" in url: + url += f"&lease_duration={lease_duration_filter}" + else: + url += f"?lease_duration={lease_duration_filter}" + if budget_filter: + if "?" in url: + url += f"&budget={budget_filter}" + else: + url += f"?budget={budget_filter}" + response = requests.get(url) if response.status_code == 200: return response.json() @@ -21,26 +36,35 @@ def fetch_student_profiles(communityid): # Streamlit app UI st.title("Community Housing Profiles") -# Input field for community ID +# textf field for coop location communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") +## sidebar filters +st.sidebar.header('Preference Filters') +cleanliness_filter = st.sidebar.slider("Filter by Cleanliness", min_value=1, max_value=5, step=1, value=1) +budget_filter = st.sidebar.slider("Filter by Budget", min_value=1000, max_value=3000, step=100) +lease_duration_filter = st.sidebar.selectbox( + "Filter by Lease Duration", + ["Any", "1 Year", "6 Months", "4 Months"], + index=0) + if communityid: - # Fetch data for the community - student_profiles = fetch_student_profiles(communityid) - + # Fetch data for the community, passing cleanliness filter + student_profiles = fetch_student_profiles(communityid, cleanliness_filter, lease_duration_filter, budget_filter) + # Display student profiles if student_profiles: for student in student_profiles: - st.subheader(student['Name']) - st.write(f"**Major:** {student['Major']}") - st.write(f"**Company:** {student['Company']}") - st.write(f"**Location:** {student['Location']}") - st.write(f"**Housing Status:** {student['HousingStatus']}") - st.write(f"**Budget:** {student['Budget']}") - st.write(f"**Lease Duration:** {student['LeaseDuration']}") - st.write(f"**Cleanliness:** {student['Cleanliness']}") - st.write(f"**Lifestyle:** {student['Lifestyle']}") - st.write(f"**Bio:** {student['Bio']}") - st.write("---") + with st.expander(f"{student['Name']}"): + st.markdown(f"### {student['Name']}") + st.write(f"**Major:** {student['Major']}") + st.write(f"**Company:** {student['Company']}") + st.write(f"**Location:** {student['Location']}") + st.write(f"**Housing Status:** {student['HousingStatus']}") + st.write(f"**Budget:** {student['Budget']}") + st.write(f"**Lease Duration:** {student['LeaseDuration']}") + st.write(f"**Cleanliness:** {student['Cleanliness']}") + st.write(f"**Lifestyle:** {student['Lifestyle']}") + st.write(f"**Bio:** {student['Bio']}") else: st.write("No profiles found.") \ No newline at end of file From 2b85e245e2f64dc5fab70540066aaa99250ffdaa Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 13:40:03 -0500 Subject: [PATCH 182/305] 222 --- app/src/pages/11_Notification.py | 124 +++++++++++++++++++++++-------- app/src/pages/12_Form.py | 104 +++++++++++++++++++++----- 2 files changed, 178 insertions(+), 50 deletions(-) diff --git a/app/src/pages/11_Notification.py b/app/src/pages/11_Notification.py index 493a339873..710537cc91 100644 --- a/app/src/pages/11_Notification.py +++ b/app/src/pages/11_Notification.py @@ -1,39 +1,97 @@ -import logging -logger = logging.getLogger(__name__) - import streamlit as st -from modules.nav import SideBarLinks +import pandas as pd import requests -st.set_page_config(layout = 'wide') +st.set_page_config(page_title="Unread Notifications", layout="wide") -# Display the appropriate sidebar links for the role of the logged in user +# Add sidebar navigation +from modules.nav import SideBarLinks SideBarLinks() -st.title('Prediction with Regression') -st.write('test') - -# create a 2 column layout -col1, col2 = st.columns(2) - -# add one number input for variable 1 into column 1 -with col1: - var_01 = st.number_input('Variable 01:', - step=1) - -# add another number input for variable 2 into column 2 -with col2: - var_02 = st.number_input('Variable 02:', - step=1) - -logger.info(f'var_01 = {var_01}') -logger.info(f'var_02 = {var_02}') - -# add a button to use the values entered into the number field to send to the -# prediction function via the REST API -if st.button('Calculate Prediction', - type='primary', - use_container_width=True): - results = requests.get(f'http://api:4000/c/prediction/{var_01}/{var_02}').json() - st.dataframe(results) - \ No newline at end of file +# Page Title +st.title("🔔 Unread Notifications") +st.write("Below is a list of notifications regarding your students.") + +# Fetch notifications from the API +try: + response = requests.get('http://web-api:4000/api/notifications') # Replace with your actual API endpoint + if response.status_code == 200: + notifications = response.json() + + if notifications: + # Convert notifications to DataFrame + df_notifications = pd.DataFrame(notifications) + + # Display unread notifications + st.subheader(f"Unread Notifications ({len(df_notifications)})") + st.dataframe( + df_notifications, + use_container_width=True, + column_config={ + "student_name": "Student Name", + "notification_type": "Notification Type", + "date": "Date", + "message": "Message" + } + ) + + # Mark notifications as read button + if st.button("Mark All as Read"): + try: + mark_as_read_response = requests.post( + 'http://web-api:4000/api/notifications/mark-as-read' + ) # Replace with your actual endpoint + if mark_as_read_response.status_code == 200: + st.success("All notifications have been marked as read.") + st.experimental_rerun() # Refresh the page + else: + st.error("Failed to mark notifications as read.") + except Exception as e: + st.error(f"Error while marking notifications as read: {e}") + else: + st.info("You have no unread notifications.") + else: + st.error(f"Failed to fetch notifications (Status code: {response.status_code})") +except Exception as e: + st.error(f"Error loading notifications: {e}") + +# Notification Management Section +st.write("---") +st.subheader("Manage Notifications") +st.write("You can search and filter through your notifications below.") + +# Advanced filtering/search options +filter_col1, filter_col2 = st.columns([1, 1]) + +with filter_col1: + search_term = st.text_input("Search by Student Name or Message") + +with filter_col2: + notification_type_filter = st.selectbox( + "Filter by Notification Type", + options=["All", "Form Update", "Housing Request", "Case Update", "Other"] + ) + +# Apply filters +if notifications: + filtered_notifications = df_notifications.copy() + + # Apply search term filter + if search_term: + filtered_notifications = filtered_notifications[ + filtered_notifications.apply(lambda row: search_term.lower() in str(row).lower(), axis=1) + ] + + # Apply notification type filter + if notification_type_filter != "All": + filtered_notifications = filtered_notifications[ + filtered_notifications["notification_type"] == notification_type_filter + ] + + st.write(f"Filtered Notifications ({len(filtered_notifications)})") + st.dataframe(filtered_notifications, use_container_width=True) +else: + st.info("No notifications to filter.") + + + diff --git a/app/src/pages/12_Form.py b/app/src/pages/12_Form.py index 93a97e11eb..343bc9e235 100644 --- a/app/src/pages/12_Form.py +++ b/app/src/pages/12_Form.py @@ -1,25 +1,95 @@ -import logging -logger = logging.getLogger(__name__) import streamlit as st +import pandas as pd import requests -from streamlit_extras.app_logo import add_logo -from modules.nav import SideBarLinks -SideBarLinks() +st.set_page_config(page_title="Unread Notifications", layout="wide") -st.write("# Accessing a REST API from Within Streamlit") +# Add sidebar navigation +from modules.nav import SideBarLinks +SideBarLinks() -""" -Simply retrieving data from a REST api running in a separate Docker Container. +# Page Title +st.title("🔔 Unread Notifications") +st.write("Below is a list of notifications regarding your students.") -If the container isn't running, this will be very unhappy. But the Streamlit app -should not totally die. -""" -data = {} +# Fetch notifications from the API try: - data = requests.get('http://api:4000/p/products').json() -except: - st.write("**Important**: Could not connect to sample api, so using dummy data.") - data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} + response = requests.get('http://web-api:4000/api/notifications') # Replace with your actual API endpoint + if response.status_code == 200: + notifications = response.json() + + if notifications: + # Convert notifications to DataFrame + df_notifications = pd.DataFrame(notifications) + + # Display unread notifications + st.subheader(f"Unread Notifications ({len(df_notifications)})") + st.dataframe( + df_notifications, + use_container_width=True, + column_config={ + "student_name": "Student Name", + "notification_type": "Notification Type", + "date": "Date", + "message": "Message" + } + ) + + # Mark notifications as read button + if st.button("Mark All as Read"): + try: + mark_as_read_response = requests.post( + 'http://web-api:4000/api/notifications/mark-as-read' + ) # Replace with your actual endpoint + if mark_as_read_response.status_code == 200: + st.success("All notifications have been marked as read.") + st.experimental_rerun() # Refresh the page + else: + st.error("Failed to mark notifications as read.") + except Exception as e: + st.error(f"Error while marking notifications as read: {e}") + else: + st.info("You have no unread notifications.") + else: + st.error(f"Failed to fetch notifications (Status code: {response.status_code})") +except Exception as e: + st.error(f"Error loading notifications: {e}") + +# Notification Management Section +st.write("---") +st.subheader("Manage Notifications") +st.write("You can search and filter through your notifications below.") + +# Advanced filtering/search options +filter_col1, filter_col2 = st.columns([1, 1]) + +with filter_col1: + search_term = st.text_input("Search by Student Name or Message") + +with filter_col2: + notification_type_filter = st.selectbox( + "Filter by Notification Type", + options=["All", "Form Update", "Housing Request", "Case Update", "Other"] + ) + +# Apply filters +if notifications: + filtered_notifications = df_notifications.copy() + + # Apply search term filter + if search_term: + filtered_notifications = filtered_notifications[ + filtered_notifications.apply(lambda row: search_term.lower() in str(row).lower(), axis=1) + ] + + # Apply notification type filter + if notification_type_filter != "All": + filtered_notifications = filtered_notifications[ + filtered_notifications["notification_type"] == notification_type_filter + ] -st.dataframe(data) + st.write(f"Filtered Notifications ({len(filtered_notifications)})") + st.dataframe(filtered_notifications, use_container_width=True) +else: + st.info("No notifications to filter.") + From 1cb814dc726b75b5d87c6974c0459964bc3b3bec Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 15:57:02 -0500 Subject: [PATCH 183/305] 233 --- database-files/{SyncSpace.sql => 01_SyncSpace.sql} | 0 database-files/{SyncSpace-data.sql => 02_SyncSpace-data.sql} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename database-files/{SyncSpace.sql => 01_SyncSpace.sql} (100%) rename database-files/{SyncSpace-data.sql => 02_SyncSpace-data.sql} (100%) diff --git a/database-files/SyncSpace.sql b/database-files/01_SyncSpace.sql similarity index 100% rename from database-files/SyncSpace.sql rename to database-files/01_SyncSpace.sql diff --git a/database-files/SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql similarity index 100% rename from database-files/SyncSpace-data.sql rename to database-files/02_SyncSpace-data.sql From 148a9c6a0cc15a2f283dd3658751f796d5919508 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 15:59:15 -0500 Subject: [PATCH 184/305] 222 --- app/src/SyncSpace-data2.sql | 0 app/src/SyncSpace.2sql | 0 app/src/SyncSpace.sql | 0 database-files/01_SyncSpace.sql | 5 ++++- 4 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 app/src/SyncSpace-data2.sql delete mode 100644 app/src/SyncSpace.2sql delete mode 100644 app/src/SyncSpace.sql diff --git a/app/src/SyncSpace-data2.sql b/app/src/SyncSpace-data2.sql deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/app/src/SyncSpace.2sql b/app/src/SyncSpace.2sql deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/app/src/SyncSpace.sql b/app/src/SyncSpace.sql deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index 2785849b7c..7f189fe57f 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -167,14 +167,17 @@ VALUES ( 'San Jose, California', 'Searching', 1200.00, - 'Very Clean', + 2, 'Quiet', 30, 'Hiking, Basketball, Technology' ); + -- 4.3 INSERT INTO Housing (Style, Availability, Location) VALUES ('Apartment', 'Available', 'New York City'); + + From 996bf8dc178e29a624d04eff7d9d255c7f4cc2e1 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 16:09:24 -0500 Subject: [PATCH 185/305] 333 --- database-files/01_SyncSpace.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index 7f189fe57f..057defd7bd 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -175,8 +175,9 @@ VALUES ( -- 4.3 -INSERT INTO Housing (Style, Availability, Location) -VALUES ('Apartment', 'Available', 'New York City'); +INSERT INTO Housing (Style, Availability) +VALUES ('Apartment', 'Available'); + From 9ae1889751a4c973b203eaf6b2eaa404b7034b1d Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 16:19:01 -0500 Subject: [PATCH 186/305] updates --- api/backend/community/community_routes.py | 31 +++-- app/src/modules/nav.py | 9 +- app/src/pages/20_Student_Kevin_Home.py | 18 +-- app/src/pages/22_Housing.py | 70 ----------- app/src/pages/22_Housing_Carpool.py | 119 ++++++++++++++++++ .../pages/{23_Carpool.py => 23_My_Profile.py} | 0 6 files changed, 156 insertions(+), 91 deletions(-) delete mode 100644 app/src/pages/22_Housing.py create mode 100644 app/src/pages/22_Housing_Carpool.py rename app/src/pages/{23_Carpool.py => 23_My_Profile.py} (100%) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 4ec3051881..c032f1281d 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -22,9 +22,8 @@ def community_housing(communityid): WHERE c.Location = %s ''' - params = [communityid] # initial params with communityid + params = [communityid] - # Add filters based on cleanliness and lease_duration if they are provided if cleanliness_filter is not None: query += ' AND s.Cleanliness >= %s' params.append(cleanliness_filter) @@ -32,35 +31,49 @@ def community_housing(communityid): if lease_duration_filter and lease_duration_filter != "Any": query += ' AND s.LeaseDuration = %s' params.append(lease_duration_filter) - + if budget_filter is not None: query += ' AND s.Budget <= %s' params.append(budget_filter) - # Execute the query with the parameters cursor = db.get_db().cursor() - cursor.execute(query, tuple(params)) + cursor.execute(query, tuple(params)) theData = cursor.fetchall() - # Prepare and return the response response = make_response(jsonify(theData)) response.status_code = 200 return response @community.route('/community//carpool', methods=['GET']) -# route for retrieving carpools for the students in the same community def community_carpool(communityid): + time_filter = request.args.get('commute_time', type=int) + days_filter = request.args.get('commute_days', type=int) + + # Base query query = ''' SELECT s.Name, s.Major, s.Company, c.Location, s.CarpoolStatus, s.Budget, s.CommuteTime, s.CommuteDays, s.Bio FROM Student s JOIN CityCommunity c ON s.CommunityID=c.CommunityID - WHERE c.Location = %s; + WHERE c.Location = %s ''' + params = [communityid] + + # Append filters conditionally + if time_filter is not None: + query += ' AND s.CommuteTime <= %s' + params.append(time_filter) + + if days_filter is not None: + query += ' AND s.CommuteDays <= %s' + params.append(days_filter) + + # Execute the query cursor = db.get_db().cursor() - cursor.execute(query, (communityid,)) + cursor.execute(query, tuple(params)) # Use tuple(params) to prevent SQL injection theData = cursor.fetchall() + # Format the response response = make_response(jsonify(theData)) response.status_code = 200 return response diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 056b2f60d3..b359d9dc90 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -46,10 +46,11 @@ def JessicaPageNav(): #### ------------------------ Student Housing/Carpool Role ------------------------ def KevinPageNav(): - st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="👤") - st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Feedback", icon="🏢") - st.sidebar.page_link("pages/22_Housing.py", label="Housing Search", icon="🏘️") - st.sidebar.page_link("pages/23_Carpool.py", label="Carpool Search", icon="🚗") + st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="📖") + st.sidebar.page_link("pages/23_My_Profile.py", label="My Profile", icon="👤") + st.sidebar.page_link("pages/22_Housing_Carpool.py", label="Housing & Transit", icon="🏘️") + st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Feedback", icon="🏫") + # --------------------------------Links Function ----------------------------------------------- diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 234c09416c..61d48f1f7d 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -14,18 +14,20 @@ st.write('') st.write('### What would you like to do today?') -if st.button('View Advisor Feedback', - type='primary', +if st.button('Access My Profile', + type='primary', use_container_width=True): - st.switch_page('pages/21_Advisor_Rec.py') + st.switch_page('pages/23_My_Profile.py') -if st.button('Access Housing Search', +if st.button('Access Housing & Transit Search', type='primary', use_container_width=True): - st.switch_page('pages/22_Housing.py') + st.switch_page('pages/22_Housing_Carpool.py') -if st.button('Access Carpool Search', - type='primary', +if st.button('View Advisor Communications', + type='primary', use_container_width=True): - st.switch_page('pages/23_Carpool.py') + st.switch_page('pages/21_Advisor_Rec.py') + + diff --git a/app/src/pages/22_Housing.py b/app/src/pages/22_Housing.py deleted file mode 100644 index a90d057fad..0000000000 --- a/app/src/pages/22_Housing.py +++ /dev/null @@ -1,70 +0,0 @@ -import logging -logger = logging.getLogger(__name__) -import streamlit as st -from modules.nav import SideBarLinks -import requests -import pandas as pd - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -def fetch_student_profiles(communityid, cleanliness_filter=None, lease_duration_filter=None, budget_filter=None): - url = f'http://api:4000/c/community/{communityid}/housing' - - # apend filters - if cleanliness_filter: - url += f"?cleanliness={cleanliness_filter}" - if lease_duration_filter: - if "?" in url: - url += f"&lease_duration={lease_duration_filter}" - else: - url += f"?lease_duration={lease_duration_filter}" - if budget_filter: - if "?" in url: - url += f"&budget={budget_filter}" - else: - url += f"?budget={budget_filter}" - - response = requests.get(url) - if response.status_code == 200: - return response.json() - else: - st.error(f"Error fetching data: {response.status_code}") - return [] - -# Streamlit app UI -st.title("Community Housing Profiles") - -# textf field for coop location -communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") - -## sidebar filters -st.sidebar.header('Preference Filters') -cleanliness_filter = st.sidebar.slider("Filter by Cleanliness", min_value=1, max_value=5, step=1, value=1) -budget_filter = st.sidebar.slider("Filter by Budget", min_value=1000, max_value=3000, step=100) -lease_duration_filter = st.sidebar.selectbox( - "Filter by Lease Duration", - ["Any", "1 Year", "6 Months", "4 Months"], - index=0) - -if communityid: - # Fetch data for the community, passing cleanliness filter - student_profiles = fetch_student_profiles(communityid, cleanliness_filter, lease_duration_filter, budget_filter) - - # Display student profiles - if student_profiles: - for student in student_profiles: - with st.expander(f"{student['Name']}"): - st.markdown(f"### {student['Name']}") - st.write(f"**Major:** {student['Major']}") - st.write(f"**Company:** {student['Company']}") - st.write(f"**Location:** {student['Location']}") - st.write(f"**Housing Status:** {student['HousingStatus']}") - st.write(f"**Budget:** {student['Budget']}") - st.write(f"**Lease Duration:** {student['LeaseDuration']}") - st.write(f"**Cleanliness:** {student['Cleanliness']}") - st.write(f"**Lifestyle:** {student['Lifestyle']}") - st.write(f"**Bio:** {student['Bio']}") - else: - st.write("No profiles found.") \ No newline at end of file diff --git a/app/src/pages/22_Housing_Carpool.py b/app/src/pages/22_Housing_Carpool.py new file mode 100644 index 0000000000..667625833a --- /dev/null +++ b/app/src/pages/22_Housing_Carpool.py @@ -0,0 +1,119 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests +import pandas as pd + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +def fetch_housing_profiles(communityid, cleanliness_filter=None, lease_duration_filter=None, budget_filter=None): + url = f'http://api:4000/c/community/{communityid}/housing' + + # Append filters + if cleanliness_filter: + url += f"?cleanliness={cleanliness_filter}" + if lease_duration_filter: + if "?" in url: + url += f"&lease_duration={lease_duration_filter}" + else: + url += f"?lease_duration={lease_duration_filter}" + if budget_filter: + if "?" in url: + url += f"&budget={budget_filter}" + else: + url += f"?budget={budget_filter}" + + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +# Function to fetch student profiles for carpool +def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): + url = f'http://api:4000/c/community/{communityid}/carpool' + + # Append filters + if days_filter: + url += f"?commute_days={days_filter}" + if time_filter: + if "?" in url: + url += f"&commute_time={time_filter}" + else: + url += f"?commute_time={time_filter}" + + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +# Streamlit app UI +st.title("Community Profiles") + +# Text field for co-op location +communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") + +# Sidebar for filtering options +st.sidebar.header('Preference Filters') + +# Select the type of search (Housing or Carpool) +search_type = st.sidebar.radio("Choose Search Type", ["Housing", "Carpool"]) + +# Housing filters +if search_type == "Housing": + cleanliness_filter = st.sidebar.slider("Filter by Cleanliness", min_value=1, max_value=5, step=1, value=3) + budget_filter = st.sidebar.slider("Filter by Budget", min_value=1000, max_value=3000, step=100, value=1200) + lease_duration_filter = st.sidebar.selectbox( + "Filter by Lease Duration", + ["Any", "1 Year", "6 Months", "4 Months"], + index=0 + ) + +# Carpool filters +elif search_type == "Carpool": + days_filter = st.sidebar.slider("Number of Commute Days", min_value=1, max_value=6, step=1, value=5) + time_filter = st.sidebar.slider("Travel Time (minutes)", min_value=10, max_value=70, step=5, value=20) + +# Fetch data based on the selected search type +if communityid: + if search_type == "Housing": + student_profiles = fetch_housing_profiles(communityid, cleanliness_filter, lease_duration_filter, budget_filter) + if student_profiles: + for student in student_profiles: + with st.expander(f"{student['Name']}"): + st.markdown(f"### {student['Name']}") + st.write(f"**Major:** {student['Major']}") + st.write(f"**Company:** {student['Company']}") + st.write(f"**Location:** {student['Location']}") + st.write(f"**Housing Status:** {student['HousingStatus']}") + st.write(f"**Budget:** {student['Budget']}") + st.write(f"**Lease Duration:** {student['LeaseDuration']}") + st.write(f"**Cleanliness:** {student['Cleanliness']}") + st.write(f"**Lifestyle:** {student['Lifestyle']}") + st.write(f"**Bio:** {student['Bio']}") + else: + st.write("No profiles found.") + + elif search_type == "Carpool": + student_profiles = fetch_carpool_profiles(communityid, days_filter, time_filter) + if student_profiles: + for student in student_profiles: + with st.expander(f"{student['Name']}"): + st.markdown(f"### {student['Name']}") + st.write(f"**Major:** {student['Major']}") + st.write(f"**Company:** {student['Company']}") + st.write(f"**Location:** {student['Location']}") + st.write(f"**Carpool Status:** {student['CarpoolStatus']}") + st.write(f"**Travel time:** {student['CommuteTime']}") + st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + st.write(f"**Bio:** {student['Bio']}") + else: + st.write("No profiles found.") + + \ No newline at end of file diff --git a/app/src/pages/23_Carpool.py b/app/src/pages/23_My_Profile.py similarity index 100% rename from app/src/pages/23_Carpool.py rename to app/src/pages/23_My_Profile.py From 1d02ca194ce83adf12c693ef5e5ac0bc3c64bdb6 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 16:21:15 -0500 Subject: [PATCH 187/305] title change --- api/backend/community/community_routes.py | 2 +- app/src/pages/21_Advisor_Rec.py | 18 +----------- app/src/pages/23_My_Profile.py | 34 +---------------------- 3 files changed, 3 insertions(+), 51 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index c032f1281d..86a0859acc 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -70,7 +70,7 @@ def community_carpool(communityid): # Execute the query cursor = db.get_db().cursor() - cursor.execute(query, tuple(params)) # Use tuple(params) to prevent SQL injection + cursor.execute(query, tuple(params)) theData = cursor.fetchall() # Format the response diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index da873210fd..506d9a84a7 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -8,22 +8,6 @@ SideBarLinks() -st.title('Advisor Recommendations Page') +st.title('Advisor Communications') -st.write('\n\n') -st.write('## Model 1 Maintenance') -st.write("Test") -st.button("Train Model 01", - type = 'primary', - use_container_width=True) - -st.button('Test Model 01', - type = 'primary', - use_container_width=True) - -if st.button('Model 1 - get predicted value for 10, 25', - type = 'primary', - use_container_width=True): - results = requests.get('http://api:4000/c/prediction/10/25').json() - st.dataframe(results) diff --git a/app/src/pages/23_My_Profile.py b/app/src/pages/23_My_Profile.py index a77d8538c2..69af5bf8eb 100644 --- a/app/src/pages/23_My_Profile.py +++ b/app/src/pages/23_My_Profile.py @@ -8,36 +8,4 @@ SideBarLinks() -def fetch_student_profiles(communityid): - url = f'http://api:4000/c/community/{communityid}/carpool' # Replace with your actual URL - response = requests.get(url) - if response.status_code == 200: - return response.json() - else: - st.error(f"Error fetching data: {response.status_code}") - return [] - -# Streamlit app UI -st.title("Carpool Profiles") - -# Input field for community ID -communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") - -if communityid: - # Fetch data for the community - student_profiles = fetch_student_profiles(communityid) - - # Display student profiles - if student_profiles: - for student in student_profiles: - st.subheader(student['Name']) - st.write(f"**Major:** {student['Major']}") - st.write(f"**Company:** {student['Company']}") - st.write(f"**Location:** {student['Location']}") - st.write(f"**Carpool Status:** {student['CarpoolStatus']}") - st.write(f"**Travel time:** {student['CommuteTime']}") - st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") - st.write(f"**Bio:** {student['Bio']}") - st.write("---") - else: - st.write("No profiles found.") \ No newline at end of file +st.title('My Profile') From 08b5e2d7b61f1f2431adc41f9bfdf16eecac02d7 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 16:24:05 -0500 Subject: [PATCH 188/305] Update 02_SyncSpace-data.sql --- database-files/02_SyncSpace-data.sql | 57 +--------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 486f9858d2..d189fc9efb 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -436,7 +436,6 @@ insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Secur insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (3, '2024-06-15 14:25:00', 'User logged out', 'Low', 'Anonymity', 'User Reports'); -- 11. SystemHealth Data (depends on SystemLog) -<<<<<<< HEAD insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (1, '2024-01-01 12:00:00', 'Normal', 'System Performance'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (12, '2023-12-08 03:13:57', 'Normal', 'Security Events'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (34, '2023-12-02 23:34:00', 'Active', 'Network Latency'); @@ -487,58 +486,4 @@ insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (32, '202 insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (22, '2024-01-30 03:51:19', 'Normal', 'Data Throughput'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (33, '2024-06-11 12:00:15', 'Operational', 'Disk Space'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (28, '2024-05-26 08:55:01', 'Complete', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); - -======= -insert into SystemHealth (LogID, Timestamp, Status) values (1, '2024-01-01 12:00:00', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (12, '2023-12-08 03:13:57', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (30, '2023-12-02 23:34:00', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (7, '2024-06-20 11:47:06', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (23, '2024-02-26 08:05:29', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (5, '2024-06-29 11:52:55', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (18, '2024-05-21 12:15:08', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (30, '2023-12-20 16:19:30', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (9, '2023-12-25 09:35:03', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (27, '2024-01-11 21:42:14', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (20, '2024-06-08 16:58:41', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (14, '2024-10-25 20:48:26', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (30, '2024-05-14 09:39:44', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (5, '2024-06-24 02:45:26', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (20, '2024-07-24 13:11:47', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (3, '2024-07-17 13:01:47', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (3, '2024-11-05 13:29:34', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (26, '2024-03-25 07:56:21', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (10, '2024-03-22 07:01:50', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (25, '2024-05-16 19:39:19', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (18, '2024-11-05 10:44:02', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (16, '2024-05-01 15:17:33', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (11, '2024-03-21 17:26:03', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (8, '2024-04-09 02:34:09', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (30, '2024-11-21 15:10:52', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (17, '2024-11-20 22:30:35', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (13, '2024-08-31 10:17:14', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (18, '2024-03-10 16:47:48', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (6, '2024-11-18 07:29:51', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (21, '2024-08-23 20:03:42', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (24, '2024-10-22 18:03:39', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (2, '2024-06-10 10:19:24', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (25, '2024-09-24 13:11:15', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (11, '2024-10-30 09:38:08', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (26, '2024-05-20 00:54:29', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (29, '2024-11-09 18:50:06', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (15, '2024-07-25 12:48:28', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (4, '2023-12-31 12:28:57', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (4, '2024-02-01 03:15:07', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (19, '2024-08-18 07:34:13', 'Recovered'); -insert into SystemHealth (LogID, Timestamp, Status) values (23, '2024-11-11 05:01:35', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (1, '2023-12-10 23:28:13', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (17, '2024-05-17 12:57:33', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (24, '2024-08-05 23:12:30', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (6, '2024-03-07 08:42:21', 'Active'); -insert into SystemHealth (LogID, Timestamp, Status) values (17, '2024-05-06 10:13:32', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (2, '2024-09-22 01:10:12', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (22, '2024-01-30 03:51:19', 'Normal'); -insert into SystemHealth (LogID, Timestamp, Status) values (3, '2024-06-11 12:00:15', 'Operational'); -insert into SystemHealth (LogID, Timestamp, Status) values (8, '2024-05-26 08:55:01', 'Complete'); -insert into SystemHealth (LogID, Timestamp, Status) values (29, '2024-11-28 04:45:43', 'Operational'); ->>>>>>> 837ec705ac3b86ef91a72ccf3d0199fb92aae389 +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); \ No newline at end of file From d47c1373d9abba3848e557e52efa849a4f2c6e15 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 16:25:21 -0500 Subject: [PATCH 189/305] renaming --- api/backend/community/community_routes.py | 2 ++ app/src/pages/22_Housing_Carpool.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 86a0859acc..140f9809d1 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -5,6 +5,8 @@ from flask import current_app from backend.db_connection import db +# Kevin routes + community = Blueprint('community', __name__) @community.route('/community//housing', methods=['GET']) diff --git a/app/src/pages/22_Housing_Carpool.py b/app/src/pages/22_Housing_Carpool.py index 667625833a..4be6e1260d 100644 --- a/app/src/pages/22_Housing_Carpool.py +++ b/app/src/pages/22_Housing_Carpool.py @@ -55,7 +55,7 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): # Streamlit app UI st.title("Community Profiles") - +st.write('Filter based on preferences') # Text field for co-op location communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") From 002fcc97051003eab078b7c6ac5f47b587c15c67 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 16:34:19 -0500 Subject: [PATCH 190/305] 1222 --- database-files/01_SyncSpace.sql | 35 ++++++++++++++++++---------- database-files/02_SyncSpace-data.sql | 3 ++- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index 057defd7bd..ab01eeb503 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -78,17 +78,6 @@ CREATE TABLE IF NOT EXISTS Events ( FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); --- Create table for Feedback -DROP TABLE IF EXISTS Feedback; -CREATE TABLE IF NOT EXISTS Feedback ( - FeedbackID INT AUTO_INCREMENT PRIMARY KEY, - Description TEXT, - Date DATE, - ProgressRating INT, - StudentID INT, - AdvisorID INT, - FOREIGN KEY (StudentID) REFERENCES Student(StudentID) -); -- Create table for Advisor DROP TABLE IF EXISTS Advisor; @@ -101,6 +90,18 @@ CREATE TABLE IF NOT EXISTS Advisor ( FOREIGN KEY (StudentID) REFERENCES Student(StudentID) ); +-- Create table for Feedback +DROP TABLE IF EXISTS Feedback; +CREATE TABLE IF NOT EXISTS Feedback ( + FeedbackID INT AUTO_INCREMENT PRIMARY KEY, + Description TEXT, + Date DATE, + ProgressRating INT, + StudentID INT, + AdvisorID INT, + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + -- Add foreign key to Feedback for Advisor after Advisor is created ALTER TABLE Feedback ADD FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID); @@ -120,9 +121,19 @@ CREATE TABLE IF NOT EXISTS Task ( Status VARCHAR(50), AdvisorID INT, FOREIGN KEY (AssignedTo) REFERENCES Student(StudentID), - FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID) + FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID) ON DELETE CASCADE + ); +CREATE TABLE AdvisorStudent ( + AdvisorID INT, + StudentID INT, + PRIMARY KEY (AdvisorID, StudentID), + FOREIGN KEY (AdvisorID) REFERENCES Advisor(AdvisorID), + FOREIGN KEY (StudentID) REFERENCES Student(StudentID) +); + + -- Create table for System Log DROP TABLE IF EXISTS SystemLog; CREATE TABLE IF NOT EXISTS SystemLog ( diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index d189fc9efb..4bbc1cbaee 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -486,4 +486,5 @@ insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (32, '202 insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (22, '2024-01-30 03:51:19', 'Normal', 'Data Throughput'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (33, '2024-06-11 12:00:15', 'Operational', 'Disk Space'); insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (28, '2024-05-26 08:55:01', 'Complete', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); \ No newline at end of file +insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); + From 9f5c506acd6d2dc3ae5ffb3f6af7ca5b27219f52 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 17:07:11 -0500 Subject: [PATCH 191/305] 222 --- database-files/02_SyncSpace-data.sql | 129 ++++++++++----------------- 1 file changed, 47 insertions(+), 82 deletions(-) diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 4bbc1cbaee..88132d9f28 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -404,87 +404,52 @@ insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedD -- 10. SystemLog Data (depends on Ticket) -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (25, '2024-01-07 11:42:46', 'User logged in', 'Medium', 'Privacy Requests', 'Encryption'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (12, '2024-05-18 02:54:04', 'User logged out', 'Medium', 'User Consent', 'Vulnerabilities'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (12, '2024-07-28 21:18:40', 'User deleted profile', 'Medium', 'Anonymity', 'Password Security'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (30, '2024-03-24 08:24:45', 'User deleted profile', 'High', 'Data Access', 'Audit Logs'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (26, '2024-01-03 07:43:04', 'User logged in', 'Low', 'User Consent', 'Data Integrity'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (30, '2024-01-10 03:27:04', 'User deleted profile', 'Low', 'Privacy Requests', 'Access Control'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (21, '2024-08-05 23:16:22', 'User deleted profile', 'Low', 'Data Access', 'Data Integrity'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (27, '2024-05-05 18:50:35', 'User updated profile', 'High', 'Data Access', 'User Reports'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (19, '2024-09-02 00:47:26', 'User logged out', 'Medium', 'Privacy Requests', 'Authentication'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (28, '2024-06-27 20:06:55', 'User logged out', 'Low', 'Data Sharing', 'Vulnerabilities'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (28, '2024-09-30 09:30:10', 'User logged in', 'High', 'Security Events', 'Intrusion Detection'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (3, '2024-08-19 20:28:53', 'User added event', 'High', 'Privacy Settings', 'Password Security'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (17, '2024-04-24 05:22:56', 'User deleted profile', 'High', 'Privacy Requests', 'Encryption'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (27, '2024-09-19 09:02:51', 'User updated profile', 'High', 'Anonymity', 'User Reports'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (8, '2024-01-06 18:55:06', 'User logged out', 'Medium', 'User Consent', 'Security Events'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (15, '2024-08-26 03:50:58', 'User logged out', 'High', 'Privacy Settings', 'Security Events'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (14, '2024-01-21 08:12:26', 'User added event', 'High', 'Privacy Settings', 'Access Control'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (16, '2024-11-03 01:28:24', 'User logged out', 'Low', 'Anonymity', 'Access Control'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (28, '2024-08-17 13:04:07', 'User logged in', 'High', 'Anonymity', 'Authentication'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (25, '2024-06-05 00:12:22', 'User logged in', 'Medium', 'Privacy Requests', 'Encryption'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (29, '2024-03-30 17:02:10', 'User updated profile', 'Low', 'Data Access', 'Audit Logs'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (5, '2024-02-12 03:28:39', 'User logged out', 'Low', 'Anonymity', 'Encryption'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (26, '2024-11-27 13:33:33', 'User updated profile', 'High', 'Data Sharing', 'Audit Logs'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (29, '2024-01-02 19:03:06', 'User logged out', 'High', 'Privacy Requests', 'Encryption'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (23, '2024-06-13 18:46:16', 'User added event', 'Low', 'Privacy Requests', 'Password Security'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (6, '2024-07-20 17:53:27', 'User logged out', 'Low', 'Data Access', 'Authentication'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (26, '2024-03-30 15:36:27', 'User updated profile', 'Low', 'Privacy Requests', 'Encryption'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (18, '2024-11-22 23:10:19', 'User logged in', 'High', 'Security Events', 'User Reports'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (21, '2024-03-18 03:36:00', 'User logged in', 'Medium', 'Data Sharing', 'Data Integrity'); -insert into SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) values (3, '2024-06-15 14:25:00', 'User logged out', 'Low', 'Anonymity', 'User Reports'); +INSERT INTO SystemLog (LogID, TicketID, Timestamp, Activity, MetricType, Privacy, Security) +VALUES +(1, 10, '2024-02-01 10:30:00', 'User logged in', 'High', 'Privacy Requests', 'Encryption'), +(2, 15, '2024-03-05 14:15:00', 'User updated profile', 'Medium', 'User Consent', 'Data Integrity'), +(3, 8, '2024-04-10 18:45:00', 'User logged out', 'Low', 'Anonymity', 'Authentication'), +(4, 20, '2024-05-01 09:00:00', 'User deleted profile', 'High', 'Privacy Requests', 'Access Control'), +(5, 12, '2024-06-20 12:00:00', 'User logged in', 'Medium', 'Data Sharing', 'Audit Logs'), +(6, 18, '2024-07-15 16:30:00', 'User updated profile', 'High', 'Security Events', 'Password Security'), +(7, 22, '2024-08-08 13:00:00', 'User logged out', 'Low', 'Privacy Requests', 'Encryption'), +(8, 25, '2024-09-12 17:45:00', 'User added event', 'High', 'Privacy Settings', 'User Reports'), +(9, 11, '2024-10-05 15:00:00', 'User logged in', 'Medium', 'Security Events', 'Intrusion Detection'), +(10, 6, '2024-11-15 11:30:00', 'User deleted profile', 'High', 'Anonymity', 'Access Control'), +(11, 19, '2024-12-02 08:45:00', 'User updated profile', 'Low', 'Data Access', 'Audit Logs'), +(12, 7, '2025-01-10 14:15:00', 'User logged in', 'Medium', 'User Consent', 'Authentication'), +(13, 14, '2025-02-05 16:00:00', 'User logged out', 'High', 'Privacy Requests', 'Encryption'), +(14, 23, '2025-03-12 10:30:00', 'User added event', 'Low', 'Anonymity', 'User Reports'), +(15, 5, '2025-04-15 12:45:00', 'User deleted profile', 'High', 'Data Sharing', 'Data Integrity'), +(16, 3, '2025-05-20 15:30:00', 'User logged out', 'Medium', 'Security Events', 'Password Security'), +(17, 16, '2025-06-25 09:15:00', 'User updated profile', 'High', 'Privacy Requests', 'Audit Logs'), +(18, 2, '2025-07-01 18:00:00', 'User added event', 'Medium', 'User Consent', 'Encryption'), +(19, 9, '2025-08-05 11:00:00', 'User logged in', 'Low', 'Privacy Requests', 'Intrusion Detection'), +(20, 4, '2025-09-15 14:00:00', 'User deleted profile', 'High', 'Security Events', 'Access Control'); --- 11. SystemHealth Data (depends on SystemLog) -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (1, '2024-01-01 12:00:00', 'Normal', 'System Performance'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (12, '2023-12-08 03:13:57', 'Normal', 'Security Events'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (34, '2023-12-02 23:34:00', 'Active', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (7, '2024-06-20 11:47:06', 'Operational', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (23, '2024-02-26 08:05:29', 'Recovered', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (45, '2024-06-29 11:52:55', 'Operational', 'Backup Success Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (18, '2024-05-21 12:15:08', 'Operational', 'Incident Resolution Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (31, '2023-12-20 16:19:30', 'Recovered', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (9, '2023-12-25 09:35:03', 'Normal', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (27, '2024-01-11 21:42:14', 'Complete', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (50, '2024-06-08 16:58:41', 'Recovered', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (14, '2024-10-25 20:48:26', 'Complete', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (39, '2024-05-14 09:39:44', 'Recovered', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (5, '2024-06-24 02:45:26', 'Active', 'User Login Attempts'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (20, '2024-07-24 13:11:47', 'Normal', 'System Scalability'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (42, '2024-07-17 13:01:47', 'Complete', 'Error Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (3, '2024-11-05 13:29:34', 'Recovered', 'CPU Usage'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (36, '2024-03-25 07:56:21', 'Operational', 'Service Downtime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (10, '2024-03-22 07:01:50', 'Complete', 'Response Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (25, '2024-05-16 19:39:19', 'Complete', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (48, '2024-11-05 10:44:02', 'Complete', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (16, '2024-05-01 15:17:33', 'Normal', 'CPU Usage'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (41, '2024-03-21 17:26:03', 'Normal', 'Security Events'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (8, '2024-04-09 02:34:09', 'Recovered', 'User Login Attempts'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (30, '2024-11-21 15:10:52', 'Active', 'System Scalability'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (47, '2024-11-20 22:30:35', 'Active', 'Backup Success Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (13, '2024-08-31 10:17:14', 'Recovered', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (38, '2024-03-10 16:47:48', 'Normal', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (6, '2024-11-18 07:29:51', 'Active', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (21, '2024-08-23 20:03:42', 'Operational', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (44, '2024-10-22 18:03:39', 'Operational', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (2, '2024-06-10 10:19:24', 'Active', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (35, '2024-09-24 13:11:15', 'Recovered', 'User Login Attempts'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (11, '2024-10-30 09:38:08', 'Operational', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (26, '2024-05-20 00:54:29', 'Recovered', 'Network Latency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (49, '2024-11-09 18:50:06', 'Active', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (15, '2024-07-25 12:48:28', 'Normal', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (40, '2023-12-31 12:28:57', 'Recovered', 'Error Rate'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (4, '2024-02-01 03:15:07', 'Operational', 'Active Connections'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (19, '2024-08-18 07:34:13', 'Recovered', 'System Uptime'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (43, '2024-11-11 05:01:35', 'Normal', 'System Load'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (1, '2023-12-10 23:28:13', 'Active', 'Response Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (37, '2024-05-17 12:57:33', 'Complete', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (24, '2024-08-05 23:12:30', 'Normal', 'Database Query Time'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (46, '2024-03-07 08:42:21', 'Active', 'Database Backup Frequency'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (17, '2024-05-06 10:13:32', 'Normal', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (32, '2024-09-22 01:10:12', 'Complete', 'CPU Usage'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (22, '2024-01-30 03:51:19', 'Normal', 'Data Throughput'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (33, '2024-06-11 12:00:15', 'Operational', 'Disk Space'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (28, '2024-05-26 08:55:01', 'Complete', 'Patch Management'); -insert into SystemHealth (LogID, Timestamp, Status, MetricType) values (29, '2024-11-28 04:45:43', 'Operational', 'User Login Attempts'); + + + +INSERT INTO SystemHealth (LogID, Timestamp, Status, MetricType) +VALUES +(1, '2024-02-01 12:00:00', 'Normal', 'System Performance'), +(2, '2024-03-05 14:30:00', 'Operational', 'User Login Attempts'), +(3, '2024-04-10 19:00:00', 'Recovered', 'Network Latency'), +(4, '2024-05-01 09:30:00', 'Active', 'Data Throughput'), +(5, '2024-06-20 12:30:00', 'Complete', 'Disk Space'), +(6, '2024-07-15 17:00:00', 'Normal', 'CPU Usage'), +(7, '2024-08-08 13:30:00', 'Operational', 'System Uptime'), +(8, '2024-09-12 18:00:00', 'Recovered', 'Service Downtime'), +(9, '2024-10-05 15:30:00', 'Complete', 'Backup Success Rate'), +(10, '2024-11-15 12:00:00', 'Active', 'Response Time'), +(11, '2024-12-02 09:00:00', 'Normal', 'System Scalability'), +(12, '2025-01-10 14:30:00', 'Operational', 'Error Rate'), +(13, '2025-02-05 16:30:00', 'Recovered', 'Database Backup Frequency'), +(14, '2025-03-12 11:00:00', 'Complete', 'Patch Management'), +(15, '2025-04-15 13:00:00', 'Active', 'System Load'), +(16, '2025-05-20 16:00:00', 'Operational', 'Active Connections'), +(17, '2025-06-25 09:30:00', 'Normal', 'Security Events'), +(18, '2025-07-01 18:30:00', 'Recovered', 'Incident Resolution Time'), +(19, '2025-08-05 11:30:00', 'Complete', 'Database Query Time'), +(20, '2025-09-15 14:30:00', 'Active', 'System Load'); From a9ef3a6018cb264442d85a537e6f456f9fbf8faa Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 18:38:38 -0500 Subject: [PATCH 192/305] 222 --- api/app.py | 5 +++ api/backend/students/student_routes.py | 44 ++++++++++++++------ app/src/pages/10_Co-op_Advisor_Home.py | 57 ++++++++++++++++++++++---- 3 files changed, 85 insertions(+), 21 deletions(-) diff --git a/api/app.py b/api/app.py index 5f64526f5a..3fed3690c2 100644 --- a/api/app.py +++ b/api/app.py @@ -3,6 +3,11 @@ from backend.db_connection import init_app from backend.students.student_routes import students + +# Register blueprints +app.register_blueprint(students, url_prefix='/api/students') + + app = Flask(__name__) # Initialize database diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index a352ae958a..2712729415 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -1,8 +1,9 @@ -from flask import Blueprint, jsonify +from flask import Blueprint, jsonify, make_response from backend.db_connection import db students = Blueprint('students', __name__) + @students.route('/students', methods=['GET']) def get_all_students(): try: @@ -10,20 +11,23 @@ def get_all_students(): cursor = connection.cursor() query = ''' SELECT - StudentID as student_id, - Name as student_name, - Location as co_op_location, - Company as company_name, - Major as major - FROM Student - ORDER BY StudentID ASC + s.Name as student_name, + s.StudentID as student_id, + s.Location as co_op_location, + s.Company as company_name, + s.Major as major + FROM Student s + JOIN CityCommunity c ON s.CommunityID = c.CommunityID + ORDER BY s.StudentID ASC ''' cursor.execute(query) - columns = [desc[0] for desc in cursor.description] - results = [dict(zip(columns, row)) for row in cursor.fetchall()] - cursor.close() - return jsonify(results), 200 + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response except Exception as e: + print(f"Database error: {str(e)}") return jsonify({'error': 'Failed to fetch students'}), 500 @students.route('/students//reminders', methods=['GET']) @@ -51,3 +55,19 @@ def get_student_feedback(student_id): response = make_response(jsonify(theData)) response.status_code = 200 return response + +@students.route('/test', methods=['GET']) +def test_connection(): + try: + connection = db.get_db() + cursor = connection.cursor(dictionary=True) + cursor.execute('SELECT COUNT(*) as count FROM Student') + result = cursor.fetchone() + cursor.close() + return jsonify({'student_count': result['count']}), 200 + except Exception as e: + print(f"Database connection test failed: {str(e)}") + return jsonify({'error': 'Database connection test failed'}), 500 + + + diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 4e4041b326..2a87c1315d 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -1,14 +1,19 @@ import logging -logger = logging.getLogger(__name__) - import streamlit as st -from modules.nav import SideBarLinks import requests +import pandas as pd +from modules.nav import SideBarLinks -st.set_page_config(layout = 'wide') +# Configure logging +logger = logging.getLogger(__name__) + +# Set Streamlit layout +st.set_page_config(layout='wide') +# Display navigation links SideBarLinks() +# Title and introduction st.title(f"Welcome Co-op Advisor, {st.session_state['first_name']}.") st.write('') st.write('') @@ -35,22 +40,56 @@ # Load and display student data try: - response = requests.get('http://web-api:4000/api/students') + response = requests.get('http://api:4000/api/students') if response.status_code == 200: data = response.json() if data: df = pd.DataFrame(data) st.subheader(f"Student List ({len(df)})") + + # Create filter columns + col1, col2, col3, col4, col5 = st.columns(5) + + # Add text input filters for each column + with col1: + name_filter = st.text_input("Filter by Name") + with col2: + major_filter = st.text_input("Filter by Major") + with col3: + company_filter = st.text_input("Filter by Company") + with col4: + location_filter = st.text_input("Filter by Location") + with col5: + id_filter = st.text_input("Filter by ID") + + # Apply filters + if name_filter: + df = df[df['student_name'].str.contains(name_filter, case=False, na=False)] + if major_filter: + df = df[df['major'].str.contains(major_filter, case=False, na=False)] + if company_filter: + df = df[df['company_name'].str.contains(company_filter, case=False, na=False)] + if location_filter: + df = df[df['co_op_location'].str.contains(location_filter, case=False, na=False)] + if id_filter: + df = df[df['student_id'].astype(str).str.contains(id_filter, na=False)] + + # Specify the exact column order + column_order = ["student_name", "major", "company_name", "co_op_location", "student_id"] + df = df[column_order] + + # Display filtered dataframe st.dataframe( df, use_container_width=True, column_config={ - "student_id": "Student ID", "student_name": "Name", - "co_op_location": "Co-op Location", + "major": "Major", "company_name": "Company", - "major": "Major" - } + "co_op_location": "Co-op Location", + "student_id": "Student ID" + }, + hide_index=True ) else: st.warning("No student data available") From eb45ca1a306f973d11f1cef9abcac4297193be9c Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Tue, 3 Dec 2024 19:10:58 -0500 Subject: [PATCH 193/305] 22 --- api/app.py | 3 + .../co-op_advisor/co-op_advisor_routes.py | 56 ++++++++++- app/src/modules/nav.py | 2 +- app/src/pages/10_Co-op_Advisor_Home.py | 23 ++--- app/src/pages/11_Notification.py | 97 ------------------- app/src/pages/11_Student_Tasks.py | 46 +++++++++ 6 files changed, 116 insertions(+), 111 deletions(-) delete mode 100644 app/src/pages/11_Notification.py create mode 100644 app/src/pages/11_Student_Tasks.py diff --git a/api/app.py b/api/app.py index 3fed3690c2..f159ff68a8 100644 --- a/api/app.py +++ b/api/app.py @@ -2,10 +2,12 @@ from flask import Flask from backend.db_connection import init_app from backend.students.student_routes import students +from backend.co-op_advisor.co-op_advisor_routes import advisor # Register blueprints app.register_blueprint(students, url_prefix='/api/students') +app.register_blueprint(advisor, url_prefix='/api/advisor') app = Flask(__name__) @@ -15,6 +17,7 @@ # Register blueprints app.register_blueprint(students, url_prefix='/api') +app.register_blueprint(advisor, url_prefix='/api') if __name__ == '__main__': app.run(host='0.0.0.0', port=4000) diff --git a/api/backend/co-op_advisor/co-op_advisor_routes.py b/api/backend/co-op_advisor/co-op_advisor_routes.py index 213ddfa209..6ccd34a381 100644 --- a/api/backend/co-op_advisor/co-op_advisor_routes.py +++ b/api/backend/co-op_advisor/co-op_advisor_routes.py @@ -23,7 +23,7 @@ def get_advisor(): @advisor.route('/students//reminders', methods=['GET']) # route for retrieving recommendation for specific student -def get_students(): +def get_student_reminders(student_id): query = ''' ''' @@ -37,7 +37,7 @@ def get_students(): @advisor.route('/students//feedback', methods=['GET']) # route for retrieving feedback for specific student -def get_students(): +def get_student_feedback(student_id): query = ''' ''' @@ -48,3 +48,55 @@ def get_students(): response = make_response(jsonify(theData)) response.status_code = 200 return response + +@advisor.route('/advisor/notifications', methods=['GET']) +def get_notifications(): + try: + cursor = db.get_db().cursor() + query = ''' + SELECT + s.Name as student_name, + t.Status as notification_status, + t.Reminder as date_assigned, + t.Description as description + FROM Task t + JOIN Student s ON t.AssignedTo = s.StudentID + ORDER BY t.Reminder DESC + ''' + cursor.execute(query) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + except Exception as e: + print(f"Database error: {str(e)}") + return jsonify({'error': 'Failed to fetch notifications'}), 500 + +@advisor.route('/advisor/tasks', methods=['GET']) +def get_student_tasks(): + try: + cursor = db.get_db().cursor() + query = ''' + SELECT + s.Name as student_name, + t.Status as task_status, + t.DueDate as due_date, + t.Reminder as date_assigned, + t.Description as description + FROM Task t + JOIN Student s ON t.AssignedTo = s.StudentID + ORDER BY t.DueDate ASC + ''' + cursor.execute(query) + theData = cursor.fetchall() + + if not theData: + return jsonify([]), 200 + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + except Exception as e: + print(f"Database error: {str(e)}") + return jsonify({'error': 'Failed to fetch student tasks'}), 500 diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index b359d9dc90..a972b47782 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -40,7 +40,7 @@ def SysHealthDashNav(): def JessicaPageNav(): - st.sidebar.page_link("pages/11_Notification.py", label="Notifications", icon="🔔") + st.sidebar.page_link("pages/11_Student_Tasks.py", label="Student Tasks", icon="🔔") st.sidebar.page_link("pages/12_Form.py", label="Forms", icon="📝") st.sidebar.page_link("pages/13_Housing.py", label="Housing", icon="🏘️") diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 2a87c1315d..7b8b4798f3 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -23,8 +23,8 @@ col1, col2, col3, col4 = st.columns([1, 1, 1, 1]) with col1: - if st.button("🔔 NOTIFICATION\n Unread Notifications", key="notification_btn"): - st.switch_page("pages/11_Notification.py") + if st.button("📝 STUDENT TASKS\nStudent Tasks", key="notification_btn"): + st.switch_page("pages/11_Student_Tasks.py") with col2: if st.button("📝 FORMS\n Student Forms Update", key="forms_btn"): @@ -53,29 +53,30 @@ # Add text input filters for each column with col1: name_filter = st.text_input("Filter by Name") - with col2: - major_filter = st.text_input("Filter by Major") with col3: - company_filter = st.text_input("Filter by Company") + major_filter = st.text_input("Filter by Major") with col4: - location_filter = st.text_input("Filter by Location") + company_filter = st.text_input("Filter by Company") with col5: + location_filter = st.text_input("Filter by Location") + with col2: id_filter = st.text_input("Filter by ID") # Apply filters if name_filter: df = df[df['student_name'].str.contains(name_filter, case=False, na=False)] + if id_filter: + df = df[df['student_id'].astype(str).str.contains(id_filter, na=False)] if major_filter: df = df[df['major'].str.contains(major_filter, case=False, na=False)] if company_filter: df = df[df['company_name'].str.contains(company_filter, case=False, na=False)] if location_filter: df = df[df['co_op_location'].str.contains(location_filter, case=False, na=False)] - if id_filter: - df = df[df['student_id'].astype(str).str.contains(id_filter, na=False)] + # Specify the exact column order - column_order = ["student_name", "major", "company_name", "co_op_location", "student_id"] + column_order = ["student_name","student_id", "major", "company_name", "co_op_location" ] df = df[column_order] # Display filtered dataframe @@ -84,10 +85,10 @@ use_container_width=True, column_config={ "student_name": "Name", + "student_id": "Student ID", "major": "Major", "company_name": "Company", - "co_op_location": "Co-op Location", - "student_id": "Student ID" + "co_op_location": "Co-op Location" }, hide_index=True ) diff --git a/app/src/pages/11_Notification.py b/app/src/pages/11_Notification.py deleted file mode 100644 index 710537cc91..0000000000 --- a/app/src/pages/11_Notification.py +++ /dev/null @@ -1,97 +0,0 @@ -import streamlit as st -import pandas as pd -import requests - -st.set_page_config(page_title="Unread Notifications", layout="wide") - -# Add sidebar navigation -from modules.nav import SideBarLinks -SideBarLinks() - -# Page Title -st.title("🔔 Unread Notifications") -st.write("Below is a list of notifications regarding your students.") - -# Fetch notifications from the API -try: - response = requests.get('http://web-api:4000/api/notifications') # Replace with your actual API endpoint - if response.status_code == 200: - notifications = response.json() - - if notifications: - # Convert notifications to DataFrame - df_notifications = pd.DataFrame(notifications) - - # Display unread notifications - st.subheader(f"Unread Notifications ({len(df_notifications)})") - st.dataframe( - df_notifications, - use_container_width=True, - column_config={ - "student_name": "Student Name", - "notification_type": "Notification Type", - "date": "Date", - "message": "Message" - } - ) - - # Mark notifications as read button - if st.button("Mark All as Read"): - try: - mark_as_read_response = requests.post( - 'http://web-api:4000/api/notifications/mark-as-read' - ) # Replace with your actual endpoint - if mark_as_read_response.status_code == 200: - st.success("All notifications have been marked as read.") - st.experimental_rerun() # Refresh the page - else: - st.error("Failed to mark notifications as read.") - except Exception as e: - st.error(f"Error while marking notifications as read: {e}") - else: - st.info("You have no unread notifications.") - else: - st.error(f"Failed to fetch notifications (Status code: {response.status_code})") -except Exception as e: - st.error(f"Error loading notifications: {e}") - -# Notification Management Section -st.write("---") -st.subheader("Manage Notifications") -st.write("You can search and filter through your notifications below.") - -# Advanced filtering/search options -filter_col1, filter_col2 = st.columns([1, 1]) - -with filter_col1: - search_term = st.text_input("Search by Student Name or Message") - -with filter_col2: - notification_type_filter = st.selectbox( - "Filter by Notification Type", - options=["All", "Form Update", "Housing Request", "Case Update", "Other"] - ) - -# Apply filters -if notifications: - filtered_notifications = df_notifications.copy() - - # Apply search term filter - if search_term: - filtered_notifications = filtered_notifications[ - filtered_notifications.apply(lambda row: search_term.lower() in str(row).lower(), axis=1) - ] - - # Apply notification type filter - if notification_type_filter != "All": - filtered_notifications = filtered_notifications[ - filtered_notifications["notification_type"] == notification_type_filter - ] - - st.write(f"Filtered Notifications ({len(filtered_notifications)})") - st.dataframe(filtered_notifications, use_container_width=True) -else: - st.info("No notifications to filter.") - - - diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py new file mode 100644 index 0000000000..1e711aa648 --- /dev/null +++ b/app/src/pages/11_Student_Tasks.py @@ -0,0 +1,46 @@ +import logging +import streamlit as st +from modules.nav import SideBarLinks +import requests +import pandas as pd + +# Configure logging +logger = logging.getLogger(__name__) + +st.set_page_config(layout='wide') +SideBarLinks() + +st.title("Student Tasks") + +# Load and display task data +try: + response = requests.get('http://api:4000/api/advisor/tasks') + if response.status_code == 200: + data = response.json() + if data: + # Convert data to DataFrame and ensure all columns are strings + df = pd.DataFrame(data).astype(str) + + # Display filtered dataframe with explicit column types + st.dataframe( + df.astype(str), + use_container_width=True, + column_config={ + "student_name": "Student Name", + "task_status": "Task Status", + "due_date": "Due Date", + "date_assigned": "Date Assigned", + "description": "Description" + }, + hide_index=True + ) + else: + logger.warning("No student tasks data received from API") + st.warning("No student tasks available") + else: + logger.error(f"API request failed with status code: {response.status_code}") + st.error(f"Failed to fetch student tasks. Status code: {response.status_code}") +except Exception as e: + logger.error(f"Error loading student tasks: {str(e)}") + st.error("Error loading student tasks. Please try again later.") + From 90342e101611557da4cae6d4d4397c4a461b3740 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 20:06:26 -0500 Subject: [PATCH 194/305] Update 22_Housing_Carpool.py --- app/src/pages/22_Housing_Carpool.py | 38 ++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/app/src/pages/22_Housing_Carpool.py b/app/src/pages/22_Housing_Carpool.py index 4be6e1260d..3b5e0ed1d4 100644 --- a/app/src/pages/22_Housing_Carpool.py +++ b/app/src/pages/22_Housing_Carpool.py @@ -103,17 +103,31 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): elif search_type == "Carpool": student_profiles = fetch_carpool_profiles(communityid, days_filter, time_filter) if student_profiles: - for student in student_profiles: - with st.expander(f"{student['Name']}"): - st.markdown(f"### {student['Name']}") - st.write(f"**Major:** {student['Major']}") - st.write(f"**Company:** {student['Company']}") - st.write(f"**Location:** {student['Location']}") - st.write(f"**Carpool Status:** {student['CarpoolStatus']}") - st.write(f"**Travel time:** {student['CommuteTime']}") - st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") - st.write(f"**Bio:** {student['Bio']}") + # Split the profiles into two columns + col1, col2 = st.columns(2) + for i, student in enumerate(student_profiles): + # Alternate between the columns + if i % 2 == 0: + with col1: + with st.expander(f"{student['Name']}"): + st.markdown(f"### {student['Name']}") + st.write(f"**Major:** {student['Major']}") + st.write(f"**Company:** {student['Company']}") + st.write(f"**Location:** {student['Location']}") + st.write(f"**Carpool Status:** {student['CarpoolStatus']}") + st.write(f"**Travel time:** {student['CommuteTime']}") + st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + st.write(f"**Bio:** {student['Bio']}") + else: + with col2: + with st.expander(f"{student['Name']}"): + st.markdown(f"### {student['Name']}") + st.write(f"**Major:** {student['Major']}") + st.write(f"**Company:** {student['Company']}") + st.write(f"**Location:** {student['Location']}") + st.write(f"**Carpool Status:** {student['CarpoolStatus']}") + st.write(f"**Travel time:** {student['CommuteTime']}") + st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + st.write(f"**Bio:** {student['Bio']}") else: st.write("No profiles found.") - - \ No newline at end of file From 6976ff8c65a365840ef012be6f4cbe8d620f6e05 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 20:19:52 -0500 Subject: [PATCH 195/305] Update 22_Housing_Carpool.py --- app/src/pages/22_Housing_Carpool.py | 79 ++++++++++++++++++----------- 1 file changed, 49 insertions(+), 30 deletions(-) diff --git a/app/src/pages/22_Housing_Carpool.py b/app/src/pages/22_Housing_Carpool.py index 3b5e0ed1d4..26046c844e 100644 --- a/app/src/pages/22_Housing_Carpool.py +++ b/app/src/pages/22_Housing_Carpool.py @@ -85,18 +85,35 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): if search_type == "Housing": student_profiles = fetch_housing_profiles(communityid, cleanliness_filter, lease_duration_filter, budget_filter) if student_profiles: - for student in student_profiles: - with st.expander(f"{student['Name']}"): - st.markdown(f"### {student['Name']}") - st.write(f"**Major:** {student['Major']}") - st.write(f"**Company:** {student['Company']}") - st.write(f"**Location:** {student['Location']}") - st.write(f"**Housing Status:** {student['HousingStatus']}") - st.write(f"**Budget:** {student['Budget']}") - st.write(f"**Lease Duration:** {student['LeaseDuration']}") - st.write(f"**Cleanliness:** {student['Cleanliness']}") - st.write(f"**Lifestyle:** {student['Lifestyle']}") - st.write(f"**Bio:** {student['Bio']}") + col1, col2 = st.columns(2) + for i, student in enumerate(student_profiles): + # Alternate between the columns + if i % 2 == 0: + with col1: + container=st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Housing Status:** {student['HousingStatus']}") + container.write(f"**Budget:** {student['Budget']}") + container.write(f"**Lease Duration:** {student['LeaseDuration']}") + container.write(f"**Cleanliness:** {student['Cleanliness']}") + container.write(f"**Lifestyle:** {student['Lifestyle']}") + container.write(f"**Bio:** {student['Bio']}") + else: + with col2: + container=st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Housing Status:** {student['HousingStatus']}") + container.write(f"**Budget:** {student['Budget']}") + container.write(f"**Lease Duration:** {student['LeaseDuration']}") + container.write(f"**Cleanliness:** {student['Cleanliness']}") + container.write(f"**Lifestyle:** {student['Lifestyle']}") + container.write(f"**Bio:** {student['Bio']}") else: st.write("No profiles found.") @@ -109,25 +126,27 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): # Alternate between the columns if i % 2 == 0: with col1: - with st.expander(f"{student['Name']}"): - st.markdown(f"### {student['Name']}") - st.write(f"**Major:** {student['Major']}") - st.write(f"**Company:** {student['Company']}") - st.write(f"**Location:** {student['Location']}") - st.write(f"**Carpool Status:** {student['CarpoolStatus']}") - st.write(f"**Travel time:** {student['CommuteTime']}") - st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") - st.write(f"**Bio:** {student['Bio']}") + #with st.expander(f"{student['Name']}"): + container = st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Carpool Status:** {student['CarpoolStatus']}") + container.write(f"**Travel time:** {student['CommuteTime']}") + container.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + container.write(f"**Bio:** {student['Bio']}") else: with col2: - with st.expander(f"{student['Name']}"): - st.markdown(f"### {student['Name']}") - st.write(f"**Major:** {student['Major']}") - st.write(f"**Company:** {student['Company']}") - st.write(f"**Location:** {student['Location']}") - st.write(f"**Carpool Status:** {student['CarpoolStatus']}") - st.write(f"**Travel time:** {student['CommuteTime']}") - st.write(f"**Number of Days Commuting:** {student['CommuteDays']}") - st.write(f"**Bio:** {student['Bio']}") + #with st.expander(f"{student['Name']}"): + container = st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Carpool Status:** {student['CarpoolStatus']}") + container.write(f"**Travel time:** {student['CommuteTime']}") + container.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + container.write(f"**Bio:** {student['Bio']}") else: st.write("No profiles found.") From d1d5db7f505877657f4e546944e60d617d64d4fa Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 22:26:21 -0500 Subject: [PATCH 196/305] updates --- api/backend/community/community_routes.py | 60 +++++++++++++++++++++++ app/src/pages/23_My_Profile.py | 59 ++++++++++++++++++++++ app/src/pages/24_Edit_Profile.py | 52 ++++++++++++++++++++ database-files/01_SyncSpace.sql | 17 ++----- database-files/02_SyncSpace-data.sql | 2 +- 5 files changed, 176 insertions(+), 14 deletions(-) create mode 100644 app/src/pages/24_Edit_Profile.py diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 140f9809d1..9eff7bd0d9 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -80,6 +80,66 @@ def community_carpool(communityid): response.status_code = 200 return response +# retrieve kevin's profile +@community.route('/profile/', methods=['GET']) +def get_profile(name): + query = ''' + SELECT * + FROM Student s + JOIN CityCommunity c + WHERE s.Name = %s + ''' + # Execute the query + cursor = db.get_db().cursor() + cursor.execute(query, (name, )) + theData = cursor.fetchall() + + # Format the response + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +# +@community.route('/profile', methods=['POST']) +def create_profile(): + + the_data = request.json + current_app.logger.info(the_data) + + company=the_data['Company'] + location=the_data['Location'] + housing_status=the_data['HousingStatus'] + carpool_status=the_data['CarpoolStatus'] + budget=the_data['Budget'] + lease_duration=the_data['LeaseDuration'] + cleanliness = the_data['Cleanliness'] + lifestyle = the_data['Lifestyle'] + commute_time = the_data['CommuteTime'] + commute_days = the_data['CommuteDays'] + bio = the_data['Bio'] + + query = ''' + INSERT INTO Student (Company, Location, HousingStatus, CarpoolStatus, + Budget, LeaseDuration, Cleanliness, Lifestyle, + CommuteTime, CommuteDays, Bio) + VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) + ''' + current_app.logger.info(query) + + cursor = db.get_db().cursor() + cursor.execute(query, (company, location, housing_status, carpool_status, + budget, lease_duration, cleanliness, lifestyle, + commute_time, commute_days, bio)) + db.get_db().commit() + + response = make_response("Successfully added product") + response.status_code = 200 + return response + + + + + diff --git a/app/src/pages/23_My_Profile.py b/app/src/pages/23_My_Profile.py index 69af5bf8eb..385b34de37 100644 --- a/app/src/pages/23_My_Profile.py +++ b/app/src/pages/23_My_Profile.py @@ -3,9 +3,68 @@ import streamlit as st from modules.nav import SideBarLinks import requests +import pandas as pd st.set_page_config(layout = 'wide') SideBarLinks() st.title('My Profile') + +def get_profile(name): + url = f'http://api:4000/c/profile/{name}' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +name = 'Kevin Chen' +student = get_profile(name) +df = pd.DataFrame([student]) + +if student and isinstance(student, list): + # Access the first record in the list + record = student[0] + name = record.get("Name", "Not available") + major = record.get("Major", "Not available") + location = record.get("Location", "Not available") + company = record.get("Company", 'Not available') + housing = record.get("HousingStatus", "Not available") + carpool = record.get("CarpoolStatus", "Not available") + budget= record.get("Budget", "Not available") + lease_duration = record.get("LeaseDuration", "Not available") + cleanliness = record.get("Cleanliness", "Not available") + lifestyle = record.get("Lifestyle", "Not available") + time = record.get("CommuteTime", "Not available") + days = record.get("CommuteDays", "Not available") + bio = record.get("Bio", "Not available") + + + + container = st.container(border=True) + container.write(f"### {name}") + container.write(f"Major: {major}") + container.write(f'Location: {location}') + container.write(f'Company: {company}') + container.write(f"Housing Status: {housing}") + container.write(f'Carpool Status: {carpool}') + container.write(f'Budget: {budget}') + container.write(f"Lease Duration: {lease_duration}") + container.write(f'Cleanliness: {cleanliness}') + container.write(f'Lifestyle: {lifestyle}') + container.write(f"Number of Commute Days: {days}") + container.write(f'Travel Time: {time}') + container.write(f'Biography: {bio}') + + +else: + st.info("No data available.") + + +if st.button('Edit My Profile', + type='primary'): + st.switch_page('pages/24_Edit_Profile.py') + + diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py new file mode 100644 index 0000000000..ef822c500c --- /dev/null +++ b/app/src/pages/24_Edit_Profile.py @@ -0,0 +1,52 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('My Profile') + +company=st.text_input('Company') +location=st.text_input('Location') +housing_status=st.text_input('Housing Status') +carpool_status=st.text_input('Carpool Status') +budget= st.text_input('Budget') +lease_duration=st.text_input('Lease Duration') +cleanliness = st.text_input('Cleanliness') +lifestyle = st.text_input('Lifestyle') +commute_time = st.text_input('Commute Time') +commute_days = st.text_input('Commute Days') +bio = st.text_input('Bio') + +url = 'http://api:4000/c/profile' + +if st.button('Create Profile'): + if company and location and housing_status and carpool_status and budget and lease_duration and cleanliness and lifestyle and commute_time and commute_days and bio: + data = { + "Company" : company, + "Location" : location, + "HousingStatus" : housing_status, + "CarpoolStatus" :carpool_status, + "Budget" : budget, + "LeaseDuration" : lease_duration, + "Cleanliness" : cleanliness, + "Lifestyle" : lifestyle, + "CommuteTime": commute_time, + "CommuteDays" : commute_days, + "Bio" : bio + } + response = requests.post(url, json=data) + + # Handle response + if response.status_code == 201: + st.success("Item created successfully!") + st.write(response.json()) + else: + st.error(f"Failed to create item: {response.text}") + else: + st.warning("Please fill out all fields.") + diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index ab01eeb503..2e53b7156c 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -170,19 +170,10 @@ UPDATE Task SET Status = 'Completed' WHERE TaskID = 5; --- 3.2 -INSERT INTO Student (Name, Major, Location, HousingStatus, Budget, Cleanliness, Lifestyle, CommuteTime, Bio) -VALUES ( - 'Kevin Chen', - 'Data Science and Business', - 'San Jose, California', - 'Searching', - 1200.00, - 2, - 'Quiet', - 30, - 'Hiking, Basketball, Technology' -); +-- 3.2 Commenting out to insert own data from application +--INSERT INTO Student (Name, Major) +--VALUES ('Kevin Chen','Data Science and Business' +--); -- 4.3 diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 88132d9f28..c410bd5f85 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -211,7 +211,7 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Egan Deedes', 'Marketing', 'Shell', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 2300, '4 months', 1, 'Active', 35, 3, 'Is a talented artist and loves to create beautiful paintings', 3, 9, 1); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); - +insert into Student (Name, Major) values ('Kevin Chen', 'Data Science'); -- 6. Events Data (depends on CityCommunity) insert into Events (CommunityID, Date, Name, Description) values (1, '2024-01-01', 'New Year Celebration', 'Community gathering'); From dfab456ce17ddbf3983b670fc48dce6c48a3a410 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Tue, 3 Dec 2024 23:41:35 -0500 Subject: [PATCH 197/305] kevin updates --- api/backend/community/community_routes.py | 35 +++++++------- app/src/pages/20_Student_Kevin_Home.py | 2 +- app/src/pages/24_Edit_Profile.py | 59 ++++++++++++----------- database-files/01_SyncSpace.sql | 5 +- database-files/02_SyncSpace-data.sql | 1 - 5 files changed, 49 insertions(+), 53 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 9eff7bd0d9..5065d1d49e 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -106,30 +106,29 @@ def create_profile(): the_data = request.json current_app.logger.info(the_data) - company=the_data['Company'] - location=the_data['Location'] - housing_status=the_data['HousingStatus'] - carpool_status=the_data['CarpoolStatus'] - budget=the_data['Budget'] - lease_duration=the_data['LeaseDuration'] - cleanliness = the_data['Cleanliness'] - lifestyle = the_data['Lifestyle'] - commute_time = the_data['CommuteTime'] - commute_days = the_data['CommuteDays'] - bio = the_data['Bio'] + name = the_data.get('Name', None) + major = the_data.get('Major', None) + company = the_data.get('Company', None) + location = the_data.get('Location', None) + housing_status = the_data.get('HousingStatus', None) + carpool_status = the_data.get('CarpoolStatus', None) + #budget = the_data.get('Budget', float('nan')) + lease_duration = the_data.get('LeaseDuration', None) + #cleanliness = the_data.get('Cleanliness', None) + #lifestyle = the_data.get('Lifestyle', None) + #commute_time = the_data.get('CommuteTime', None) + #commute_days = the_data.get('CommuteDays', None) + bio = the_data.get('Bio', None) query = ''' - INSERT INTO Student (Company, Location, HousingStatus, CarpoolStatus, - Budget, LeaseDuration, Cleanliness, Lifestyle, - CommuteTime, CommuteDays, Bio) - VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) + INSERT INTO Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, + LeaseDuration, Bio) + VALUES (%s, %s, %s, %s, %s, %s, %s, %s) ''' current_app.logger.info(query) cursor = db.get_db().cursor() - cursor.execute(query, (company, location, housing_status, carpool_status, - budget, lease_duration, cleanliness, lifestyle, - commute_time, commute_days, bio)) + cursor.execute(query, (name, major, company, location, housing_status, carpool_status, lease_duration, bio)) db.get_db().commit() response = make_response("Successfully added product") diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 61d48f1f7d..c4a23491b6 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -17,7 +17,7 @@ if st.button('Access My Profile', type='primary', use_container_width=True): - st.switch_page('pages/23_My_Profile.py') + st.switch_page('pages/24_Edit_Profile.py') if st.button('Access Housing & Transit Search', type='primary', diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index ef822c500c..f873ddea4b 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -10,43 +10,44 @@ st.title('My Profile') +name=st.text_input('Name') +major=st.text_input('Major') company=st.text_input('Company') location=st.text_input('Location') housing_status=st.text_input('Housing Status') carpool_status=st.text_input('Carpool Status') -budget= st.text_input('Budget') +#budget= st.text_input('Budget') lease_duration=st.text_input('Lease Duration') -cleanliness = st.text_input('Cleanliness') -lifestyle = st.text_input('Lifestyle') -commute_time = st.text_input('Commute Time') -commute_days = st.text_input('Commute Days') -bio = st.text_input('Bio') +#cleanliness = st.text_input('Cleanliness') +#lifestyle = st.text_input('Lifestyle') +#commute_time = st.text_input('Commute Time') +#commute_days = st.text_input('Commute Days') +bio = st.text_input('Biography') url = 'http://api:4000/c/profile' if st.button('Create Profile'): - if company and location and housing_status and carpool_status and budget and lease_duration and cleanliness and lifestyle and commute_time and commute_days and bio: - data = { - "Company" : company, - "Location" : location, - "HousingStatus" : housing_status, - "CarpoolStatus" :carpool_status, - "Budget" : budget, - "LeaseDuration" : lease_duration, - "Cleanliness" : cleanliness, - "Lifestyle" : lifestyle, - "CommuteTime": commute_time, - "CommuteDays" : commute_days, - "Bio" : bio - } - response = requests.post(url, json=data) - - # Handle response - if response.status_code == 201: - st.success("Item created successfully!") - st.write(response.json()) - else: - st.error(f"Failed to create item: {response.text}") + data = { + "Name": name, + "Major" : major, + "Company" : company, + "Location" : location, + "HousingStatus" : housing_status, + "CarpoolStatus" :carpool_status, + #"Budget" : budget, + "LeaseDuration" : lease_duration, + #"Cleanliness" : cleanliness, + #"Lifestyle" : lifestyle, + #"CommuteTime": commute_time, + #"CommuteDays" : commute_days, + "Bio" : bio + } + response = requests.post(url, json=data) + + if response.status_code == 200: + st.success("Profile created successfully!") + #st.write(response.json()) + st.switch_page('pages/23_My_Profile.py') else: - st.warning("Please fill out all fields.") + st.error(f"Failed to create item: {response.text}") diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index 2e53b7156c..b06b558d49 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -170,10 +170,7 @@ UPDATE Task SET Status = 'Completed' WHERE TaskID = 5; --- 3.2 Commenting out to insert own data from application ---INSERT INTO Student (Name, Major) ---VALUES ('Kevin Chen','Data Science and Business' ---); +-- 3.2 -- 4.3 diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index c410bd5f85..5ef8cb6eee 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -211,7 +211,6 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Egan Deedes', 'Marketing', 'Shell', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 2300, '4 months', 1, 'Active', 35, 3, 'Is a talented artist and loves to create beautiful paintings', 3, 9, 1); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); -insert into Student (Name, Major) values ('Kevin Chen', 'Data Science'); -- 6. Events Data (depends on CityCommunity) insert into Events (CommunityID, Date, Name, Description) values (1, '2024-01-01', 'New Year Celebration', 'Community gathering'); From 65bea8434ff0c37824b114c42d1dd69fc94b687c Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 00:55:27 -0500 Subject: [PATCH 198/305] updats --- api/backend/community/community_routes.py | 56 ++++++++--------------- app/src/modules/nav.py | 2 +- app/src/pages/20_Student_Kevin_Home.py | 2 +- app/src/pages/23_My_Profile.py | 2 - app/src/pages/24_Edit_Profile.py | 20 ++++---- database-files/02_SyncSpace-data.sql | 2 + 6 files changed, 32 insertions(+), 52 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 5065d1d49e..3f796a2bdc 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -100,51 +100,35 @@ def get_profile(name): return response # -@community.route('/profile', methods=['POST']) -def create_profile(): - +@community.route('/profile', methods=['PUT']) +def update_profile(): + # Get the data sent with the PUT request the_data = request.json current_app.logger.info(the_data) - name = the_data.get('Name', None) - major = the_data.get('Major', None) - company = the_data.get('Company', None) - location = the_data.get('Location', None) - housing_status = the_data.get('HousingStatus', None) - carpool_status = the_data.get('CarpoolStatus', None) - #budget = the_data.get('Budget', float('nan')) - lease_duration = the_data.get('LeaseDuration', None) - #cleanliness = the_data.get('Cleanliness', None) - #lifestyle = the_data.get('Lifestyle', None) - #commute_time = the_data.get('CommuteTime', None) - #commute_days = the_data.get('CommuteDays', None) - bio = the_data.get('Bio', None) + # Extract relevant fields from the received data + company = the_data.get('Company') + location = the_data.get('Location') + housing_status = the_data.get('HousingStatus') + carpool_status = the_data.get('CarpoolStatus') + lease_duration = the_data.get('LeaseDuration') + budget = the_date.get('Budget') + bio = the_data.get('Bio') query = ''' - INSERT INTO Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, - LeaseDuration, Bio) - VALUES (%s, %s, %s, %s, %s, %s, %s, %s) + UPDATE Student + SET Company = %s, Location = %s, HousingStatus = %s, + CarpoolStatus = %s, Budget = %s, LeaseDuration = %s, Bio = %s + WHERE Name = 'Kevin Chen' ''' + current_app.logger.info(query) cursor = db.get_db().cursor() - cursor.execute(query, (name, major, company, location, housing_status, carpool_status, lease_duration, bio)) + cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, bio)) db.get_db().commit() - - response = make_response("Successfully added product") + + # Return success response + response = make_response({"message": "Profile updated successfully"}) response.status_code = 200 return response - - - - - - - - - - - - - - diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index b359d9dc90..f4486efe00 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -49,7 +49,7 @@ def KevinPageNav(): st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="📖") st.sidebar.page_link("pages/23_My_Profile.py", label="My Profile", icon="👤") st.sidebar.page_link("pages/22_Housing_Carpool.py", label="Housing & Transit", icon="🏘️") - st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Feedback", icon="🏫") + st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Communications", icon="🏫") diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index c4a23491b6..61d48f1f7d 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -17,7 +17,7 @@ if st.button('Access My Profile', type='primary', use_container_width=True): - st.switch_page('pages/24_Edit_Profile.py') + st.switch_page('pages/23_My_Profile.py') if st.button('Access Housing & Transit Search', type='primary', diff --git a/app/src/pages/23_My_Profile.py b/app/src/pages/23_My_Profile.py index 385b34de37..ad2ecead02 100644 --- a/app/src/pages/23_My_Profile.py +++ b/app/src/pages/23_My_Profile.py @@ -41,8 +41,6 @@ def get_profile(name): days = record.get("CommuteDays", "Not available") bio = record.get("Bio", "Not available") - - container = st.container(border=True) container.write(f"### {name}") container.write(f"Major: {major}") diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index f873ddea4b..33c6772a73 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -10,39 +10,35 @@ st.title('My Profile') -name=st.text_input('Name') -major=st.text_input('Major') company=st.text_input('Company') location=st.text_input('Location') housing_status=st.text_input('Housing Status') carpool_status=st.text_input('Carpool Status') -#budget= st.text_input('Budget') +budget= st.number_input('Budget', min_value=1000, max_value=3000, step=50) lease_duration=st.text_input('Lease Duration') -#cleanliness = st.text_input('Cleanliness') -#lifestyle = st.text_input('Lifestyle') -#commute_time = st.text_input('Commute Time') -#commute_days = st.text_input('Commute Days') +#cleanliness = st.number_input('Cleanliness') +lifestyle = st.text_input('Lifestyle') +#commute_time = st.number_input('Commute Time') +#commute_days = st.number_input('Commute Days') bio = st.text_input('Biography') url = 'http://api:4000/c/profile' if st.button('Create Profile'): data = { - "Name": name, - "Major" : major, "Company" : company, "Location" : location, "HousingStatus" : housing_status, "CarpoolStatus" :carpool_status, - #"Budget" : budget, + "Budget" : budget, "LeaseDuration" : lease_duration, #"Cleanliness" : cleanliness, - #"Lifestyle" : lifestyle, + "Lifestyle" : lifestyle, #"CommuteTime": commute_time, #"CommuteDays" : commute_days, "Bio" : bio } - response = requests.post(url, json=data) + response = requests.put(url, json=data) if response.status_code == 200: st.success("Profile created successfully!") diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 5ef8cb6eee..ae0695a0c8 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -211,6 +211,8 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Egan Deedes', 'Marketing', 'Shell', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 2300, '4 months', 1, 'Active', 35, 3, 'Is a talented artist and loves to create beautiful paintings', 3, 9, 1); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); +insert into Student(Name, Major) values ('Kevin Chen', 'Data Science') + -- 6. Events Data (depends on CityCommunity) insert into Events (CommunityID, Date, Name, Description) values (1, '2024-01-01', 'New Year Celebration', 'Community gathering'); From 412ed23db1b5850acb3add0cbf5b3df9e3de90f8 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 01:15:26 -0500 Subject: [PATCH 199/305] u --- api/backend/community/community_routes.py | 15 +++++++++------ app/src/pages/24_Edit_Profile.py | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 3f796a2bdc..1293474b81 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -99,33 +99,36 @@ def get_profile(name): response.status_code = 200 return response -# +# kevins profile - update @community.route('/profile', methods=['PUT']) def update_profile(): - # Get the data sent with the PUT request the_data = request.json current_app.logger.info(the_data) - # Extract relevant fields from the received data company = the_data.get('Company') location = the_data.get('Location') housing_status = the_data.get('HousingStatus') carpool_status = the_data.get('CarpoolStatus') lease_duration = the_data.get('LeaseDuration') - budget = the_date.get('Budget') + budget = the_data.get('Budget') + cleanliness = the_data.get('Cleanliness') + lifestyle = the_data.get('Lifestyle') + time = the_data.get('CommuteTime') + days = the_data.get('CommuteDays') bio = the_data.get('Bio') query = ''' UPDATE Student SET Company = %s, Location = %s, HousingStatus = %s, - CarpoolStatus = %s, Budget = %s, LeaseDuration = %s, Bio = %s + CarpoolStatus = %s, Budget = %s, LeaseDuration = %s, + Cleanliness = %s, Lifestyle=%s, CommuteTime=%s, CommuteDays=%s, Bio = %s WHERE Name = 'Kevin Chen' ''' current_app.logger.info(query) cursor = db.get_db().cursor() - cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, bio)) + cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, cleanliness, lifestyle, time, days, bio)) db.get_db().commit() # Return success response diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index 33c6772a73..eabf101967 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -12,14 +12,14 @@ company=st.text_input('Company') location=st.text_input('Location') -housing_status=st.text_input('Housing Status') -carpool_status=st.text_input('Carpool Status') +housing_status=st.text_input('Housing Status', placeholder='e.g. Searching for Housing') +carpool_status=st.text_input('Carpool Status', placeholder='e.g. Has Car') budget= st.number_input('Budget', min_value=1000, max_value=3000, step=50) -lease_duration=st.text_input('Lease Duration') -#cleanliness = st.number_input('Cleanliness') -lifestyle = st.text_input('Lifestyle') -#commute_time = st.number_input('Commute Time') -#commute_days = st.number_input('Commute Days') +lease_duration=st.text_input('Lease Duration', placeholder='e.g. 1 year, 6 months') +cleanliness = st.number_input('Cleanliness', min_value=1, max_value=5, step=1) +lifestyle = st.text_input('Lifestyle', placeholder='e.g. Active, Quiet') +commute_time = st.number_input('Commute Time (minutes)', min_value=10, max_value=70, step=5) +commute_days = st.number_input('Number of Commute Days', min_value=1, max_value=5, step=1) bio = st.text_input('Biography') url = 'http://api:4000/c/profile' @@ -32,10 +32,10 @@ "CarpoolStatus" :carpool_status, "Budget" : budget, "LeaseDuration" : lease_duration, - #"Cleanliness" : cleanliness, + "Cleanliness" : cleanliness, "Lifestyle" : lifestyle, - #"CommuteTime": commute_time, - #"CommuteDays" : commute_days, + "CommuteTime": commute_time, + "CommuteDays" : commute_days, "Bio" : bio } response = requests.put(url, json=data) From 50367041537d3054e23b5bf3096b21cfe1e88ac6 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 01:21:23 -0500 Subject: [PATCH 200/305] rerouting pages --- app/src/Home.py | 4 ++-- app/src/modules/nav.py | 11 +++++++++-- app/src/pages/30_Student_Sarah_Home.py | 12 ++++++------ 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index 5ba0a41400..c1fd95ca4b 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -69,7 +69,7 @@ type = 'primary', use_container_width=True): st.session_state['authenticated'] = True - st.session_state['role'] = 'Student' + st.session_state['role'] = 'Student1' st.session_state['first_name'] = 'Kevin' st.switch_page('pages/20_Student_Kevin_Home.py') @@ -77,6 +77,6 @@ type = 'secondary', use_container_width=True): st.session_state['authenticated'] = True - st.session_state['role'] = 'Student' + st.session_state['role'] = 'Student2' st.switch_page('pages/30_Student_Sarah_Home.py') diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index f4486efe00..fe9eac80fb 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -51,7 +51,11 @@ def KevinPageNav(): st.sidebar.page_link("pages/22_Housing_Carpool.py", label="Housing & Transit", icon="🏘️") st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Communications", icon="🏫") - +def SarahPageNav(): + st.sidebar.page_link("pages/20_Student_Sarah_Home.py", label="Student Home", icon="📖") + st.sidebar.page_link("pages/31_Professional_Events.py", label="Events", icon="👤") + st.sidebar.page_link("pages/32_Browse_Profiles.py", label="Browse Profiles", icon="🏘️") + st.sidebar.page_link("pages/33_Advisor_Feedback.py", label="Advisor Feedback", icon="🏫") # --------------------------------Links Function ----------------------------------------------- def SideBarLinks(show_home=False): @@ -85,9 +89,12 @@ def SideBarLinks(show_home=False): JessicaPageNav() # If the user is a student, give them access to the student pages - if st.session_state["role"] == "Student": + if st.session_state["role"] == "Student1": KevinPageNav() + if st.session_state["role"] == "Student2": + SarahPageNav() + # Always show the About page at the bottom of the list of links AboutPageNav() diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index 02a357110e..76df2b446f 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -14,17 +14,17 @@ st.write('') st.write('### What would you like to do today?') -if st.button('View Advisor Feedback', +if st.button('View Events', type='primary', use_container_width=True): - st.switch_page('pages/21_Advisor_Feedback.py') + st.switch_page('pages/31_Professional_Events.py') -if st.button('View Professional Events', +if st.button('View Profiles', type='primary', use_container_width=True): - st.switch_page('pages/31_Professional_Events.py') + st.switch_page('pages/32_Browse_Profiles.py') -if st.button('View Alumni Board', +if st.button('View Advisor Feedback', type='primary', use_container_width=True): - st.switch_page('pages/31_Professional_Events.py') \ No newline at end of file + st.switch_page('pages/33_Advisor_Feedback.py') \ No newline at end of file From d9524b1e5937458166764a06be5f5b2a0fca53bb Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 01:24:58 -0500 Subject: [PATCH 201/305] update --- app/src/Home.py | 1 + app/src/modules/nav.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/Home.py b/app/src/Home.py index c1fd95ca4b..8c753bf13b 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -78,5 +78,6 @@ use_container_width=True): st.session_state['authenticated'] = True st.session_state['role'] = 'Student2' + st.session_state['first_name'] = 'Sarah' st.switch_page('pages/30_Student_Sarah_Home.py') diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index fe9eac80fb..c859156bd2 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -52,7 +52,7 @@ def KevinPageNav(): st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Communications", icon="🏫") def SarahPageNav(): - st.sidebar.page_link("pages/20_Student_Sarah_Home.py", label="Student Home", icon="📖") + st.sidebar.page_link("pages/30_Student_Sarah_Home.py", label="Student Home", icon="📖") st.sidebar.page_link("pages/31_Professional_Events.py", label="Events", icon="👤") st.sidebar.page_link("pages/32_Browse_Profiles.py", label="Browse Profiles", icon="🏘️") st.sidebar.page_link("pages/33_Advisor_Feedback.py", label="Advisor Feedback", icon="🏫") From be7c1552333219b3ed3dc3620d19f0be2eb48122 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 01:30:42 -0500 Subject: [PATCH 202/305] m m n m blkhvjnm, --- app/src/modules/nav.py | 2 +- app/src/pages/20_Student_Kevin_Home.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index c859156bd2..bdd6e56ab1 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -54,7 +54,7 @@ def KevinPageNav(): def SarahPageNav(): st.sidebar.page_link("pages/30_Student_Sarah_Home.py", label="Student Home", icon="📖") st.sidebar.page_link("pages/31_Professional_Events.py", label="Events", icon="👤") - st.sidebar.page_link("pages/32_Browse_Profiles.py", label="Browse Profiles", icon="🏘️") + st.sidebar.page_link("pages/32_Browse_Profiles.py", label="Browse Profiles", icon="🔍") st.sidebar.page_link("pages/33_Advisor_Feedback.py", label="Advisor Feedback", icon="🏫") # --------------------------------Links Function ----------------------------------------------- diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 61d48f1f7d..1fcc2ec286 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -14,12 +14,12 @@ st.write('') st.write('### What would you like to do today?') -if st.button('Access My Profile', +if st.button('View and Edit My Profile', type='primary', use_container_width=True): st.switch_page('pages/23_My_Profile.py') -if st.button('Access Housing & Transit Search', +if st.button('🔍 Access Housing & Transit Search', type='primary', use_container_width=True): st.switch_page('pages/22_Housing_Carpool.py') From fd8144f683d65b34ad4eedb478ea4656afcc1e61 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 01:33:32 -0500 Subject: [PATCH 203/305] m --- api/backend/community/community_routes.py | 9 ++------- app/src/pages/20_Student_Kevin_Home.py | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 1293474b81..900e845bf7 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -16,7 +16,6 @@ def community_housing(communityid): lease_duration_filter = request.args.get('lease_duration', type=str) budget_filter = request.args.get('budget', type=int) - # Base query query = ''' SELECT s.Name, s.Major, s.Company, c.Location, s.HousingStatus, s.Budget, s.LeaseDuration, s.Cleanliness, s.Lifestyle, s.Bio FROM Student s @@ -52,7 +51,6 @@ def community_carpool(communityid): time_filter = request.args.get('commute_time', type=int) days_filter = request.args.get('commute_days', type=int) - # Base query query = ''' SELECT s.Name, s.Major, s.Company, c.Location, s.CarpoolStatus, s.Budget, s.CommuteTime, s.CommuteDays, s.Bio FROM Student s @@ -61,7 +59,6 @@ def community_carpool(communityid): ''' params = [communityid] - # Append filters conditionally if time_filter is not None: query += ' AND s.CommuteTime <= %s' params.append(time_filter) @@ -70,12 +67,11 @@ def community_carpool(communityid): query += ' AND s.CommuteDays <= %s' params.append(days_filter) - # Execute the query + cursor = db.get_db().cursor() cursor.execute(query, tuple(params)) theData = cursor.fetchall() - - # Format the response + response = make_response(jsonify(theData)) response.status_code = 200 return response @@ -131,7 +127,6 @@ def update_profile(): cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, cleanliness, lifestyle, time, days, bio)) db.get_db().commit() - # Return success response response = make_response({"message": "Profile updated successfully"}) response.status_code = 200 return response diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 1fcc2ec286..0937e5173f 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -19,7 +19,7 @@ use_container_width=True): st.switch_page('pages/23_My_Profile.py') -if st.button('🔍 Access Housing & Transit Search', +if st.button('Access Housing & Transit Search', type='primary', use_container_width=True): st.switch_page('pages/22_Housing_Carpool.py') From 37346d249873f02fa800b148aa684ada0a9163ae Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 01:36:14 -0500 Subject: [PATCH 204/305] Update rest_entry.py --- api/backend/rest_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 73b253aba6..17c0754fd0 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -28,7 +28,7 @@ def create_app(): app.config['MYSQL_DATABASE_PASSWORD'] = os.getenv('MYSQL_ROOT_PASSWORD').strip() app.config['MYSQL_DATABASE_HOST'] = os.getenv('DB_HOST').strip() app.config['MYSQL_DATABASE_PORT'] = int(os.getenv('DB_PORT').strip()) - app.config['MYSQL_DATABASE_DB'] = os.getenv('DB_NAME').strip() # Change this to your DB name + app.config['MYSQL_DATABASE_DB'] = os.getenv('SyncSpace').strip() # Change this to your DB name # Initialize the database object with the settings above. app.logger.info('current_app(): starting the database connection') From aae97cf2b52e28ab17e31ee6e260ce8db58c79f7 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 01:37:02 -0500 Subject: [PATCH 205/305] Update rest_entry.py --- api/backend/rest_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 17c0754fd0..73b253aba6 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -28,7 +28,7 @@ def create_app(): app.config['MYSQL_DATABASE_PASSWORD'] = os.getenv('MYSQL_ROOT_PASSWORD').strip() app.config['MYSQL_DATABASE_HOST'] = os.getenv('DB_HOST').strip() app.config['MYSQL_DATABASE_PORT'] = int(os.getenv('DB_PORT').strip()) - app.config['MYSQL_DATABASE_DB'] = os.getenv('SyncSpace').strip() # Change this to your DB name + app.config['MYSQL_DATABASE_DB'] = os.getenv('DB_NAME').strip() # Change this to your DB name # Initialize the database object with the settings above. app.logger.info('current_app(): starting the database connection') From c9025028a36d4c92071293349ae94222ef18abdf Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 02:44:56 -0500 Subject: [PATCH 206/305] updating streamlit page --- app/src/pages/01_Run_System_Logs.py | 51 ++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index 6772d182ee..7e8ee3162e 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -3,13 +3,56 @@ import streamlit as st from modules.nav import SideBarLinks import requests +from datetime import datetime st.set_page_config(layout = 'wide') SideBarLinks() -st.title('Access System Logs') +# Page Configuration +st.set_page_config(page_title="Run System Logs", layout='wide') -st.write('\n\n') -st.write('## test') -st.write("Test") \ No newline at end of file +# Page Header +st.title("Access System Logs") +st.write("### Analyze and export system logs for troubleshooting.") + +# Log Filters +st.sidebar.header("Filter Logs") +log_level = st.sidebar.selectbox("Log Level", ["INFO", "WARNING", "ERROR", "DEBUG"]) +date_filter = st.sidebar.date_input("Date", datetime.now()) + +# Log Simulation (Replace with actual log fetching) +def fetch_logs(log_level, date_filter): + logs = [ + f"[INFO] {date_filter} - System started successfully.", + f"[WARNING] {date_filter} - Disk usage is at 85%.", + f"[ERROR] {date_filter} - Database connection timeout.", + f"[DEBUG] {date_filter} - Debugging user authentication module.", + ] + return [log for log in logs if log.startswith(f"[{log_level}]")] + +logs = fetch_logs(log_level, date_filter) + +# Display Logs +if logs: + st.write(f"### Logs for {log_level} on {date_filter}:") + for log in logs: + st.text(log) +else: + st.write(f"No logs found for {log_level} on {date_filter}.") + +# Download Logs +if st.button("Export Logs as File"): + log_file_content = "\n".join(logs) + st.download_button( + label="Download Logs", + data=log_file_content, + file_name=f"system_logs_{log_level}_{date_filter}.txt", + mime="text/plain", + ) + +# Placeholder for Future Enhancements +st.write("### Future Enhancements") +st.text("- Add filtering by user or system module.") +st.text("- Connect to a real logging database.") +st.text("- Real-time log monitoring.") \ No newline at end of file From 587563f78d2b6c9e0a11831effdcbdfe09629a55 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 02:46:13 -0500 Subject: [PATCH 207/305] removing duplicates --- app/src/pages/01_Run_System_Logs.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index 7e8ee3162e..95b65a7571 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -9,9 +9,6 @@ SideBarLinks() -# Page Configuration -st.set_page_config(page_title="Run System Logs", layout='wide') - # Page Header st.title("Access System Logs") st.write("### Analyze and export system logs for troubleshooting.") From 1c2d5c8a8f7fa1d5755f8798a46d530747f3d024 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 02:49:36 -0500 Subject: [PATCH 208/305] renaming --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index bdd6e56ab1..097226f704 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -35,7 +35,7 @@ def SysHealthDashNav(): st.sidebar.page_link("pages/04_Access_System_Health_Dashboard.py", label="System Health Dashboard", icon="📊") -## ------------------------ Examples for Role of usaid_worker ------------------------ +## ------------------------ Role of Co-op Advisor ------------------------ From 7fda8686706af48c374033704a256fdd387e0d0b Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 03:06:13 -0500 Subject: [PATCH 209/305] testing a version of streamlit page --- app/src/pages/02_Ticket_Overview.py | 59 +++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 4 deletions(-) diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index aef8bbc53e..3a6633d099 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -3,13 +3,64 @@ import streamlit as st from modules.nav import SideBarLinks import requests +import pandas as pd st.set_page_config(layout = 'wide') SideBarLinks() -st.title('Access System Logs') +# Page Header +st.title("Run System Logs") +st.write("### Analyze and export system logs for troubleshooting.") -st.write('\n\n') -st.write('## test') -st.write("Test") +# Backend API Configuration +API_URL = "http://your_backend_url/SystemLog" # Replace with actual backend URL + +# Fetch Logs from Backend +@st.cache_data(show_spinner=True) +def fetch_logs(): + try: + response = requests.get(API_URL) + response.raise_for_status() + data = response.json() + # Convert to DataFrame for easier manipulation + df = pd.DataFrame(data, columns=["TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) + return df + except requests.exceptions.RequestException as e: + st.error(f"Error fetching logs: {e}") + return pd.DataFrame() # Return empty DataFrame on error + +logs_df = fetch_logs() + +# Display Logs +if not logs_df.empty: + st.write("### System Logs") + + # Add filters + activity_filter = st.multiselect("Filter by Activity", options=logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) + metric_filter = st.multiselect("Filter by Metric Type", options=logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) + + filtered_logs = logs_df[ + (logs_df["Activity"].isin(activity_filter)) & + (logs_df["MetricType"].isin(metric_filter)) + ] + + st.dataframe(filtered_logs, use_container_width=True) + + # Download Logs + if st.button("Export Logs as CSV"): + csv = filtered_logs.to_csv(index=False) + st.download_button( + label="Download Logs", + data=csv, + file_name="filtered_system_logs.csv", + mime="text/csv", + ) +else: + st.write("No logs available at the moment.") + +# Placeholder for Future Enhancements +st.write("### Future Enhancements") +st.text("- Real-time log updates.") +st.text("- Advanced filtering options.") +st.text("- Integration with alert systems.") From 1e21211ee985d285d70f3a22ad5d7bd3b9ca6f75 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 10:10:37 -0500 Subject: [PATCH 210/305] u --- api/backend/co-op_advisor/__init__.py | 1 + app/src/pages/11_Student_Tasks.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 api/backend/co-op_advisor/__init__.py diff --git a/api/backend/co-op_advisor/__init__.py b/api/backend/co-op_advisor/__init__.py new file mode 100644 index 0000000000..7302df41f6 --- /dev/null +++ b/api/backend/co-op_advisor/__init__.py @@ -0,0 +1 @@ +# This can be empty, just needs to exist \ No newline at end of file diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index 1e711aa648..54d9715f70 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -14,7 +14,7 @@ # Load and display task data try: - response = requests.get('http://api:4000/api/advisor/tasks') + response = requests.get('http://api:4000/api/advisor') if response.status_code == 200: data = response.json() if data: From 9a03eb6f4a359b1fecd50e47aa9c3bd9f87c87fc Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 11:01:20 -0500 Subject: [PATCH 211/305] uuu --- api/app.py | 9 +- .../__init__.py | 0 .../co_op_advisor_routes.py} | 88 ++++++++++++------- app/src/pages/11_Student_Tasks.py | 46 ++++------ 4 files changed, 79 insertions(+), 64 deletions(-) rename api/backend/{co-op_advisor => co_op_advisor}/__init__.py (100%) rename api/backend/{co-op_advisor/co-op_advisor_routes.py => co_op_advisor/co_op_advisor_routes.py} (57%) diff --git a/api/app.py b/api/app.py index f159ff68a8..6ff03e5c25 100644 --- a/api/app.py +++ b/api/app.py @@ -5,15 +5,16 @@ from backend.co-op_advisor.co-op_advisor_routes import advisor +app = Flask(__name__) + +init_app(app) + # Register blueprints app.register_blueprint(students, url_prefix='/api/students') app.register_blueprint(advisor, url_prefix='/api/advisor') -app = Flask(__name__) - -# Initialize database -init_app(app) +@@ -15,6 +17,7 @@ init_app(app) # Register blueprints app.register_blueprint(students, url_prefix='/api') diff --git a/api/backend/co-op_advisor/__init__.py b/api/backend/co_op_advisor/__init__.py similarity index 100% rename from api/backend/co-op_advisor/__init__.py rename to api/backend/co_op_advisor/__init__.py diff --git a/api/backend/co-op_advisor/co-op_advisor_routes.py b/api/backend/co_op_advisor/co_op_advisor_routes.py similarity index 57% rename from api/backend/co-op_advisor/co-op_advisor_routes.py rename to api/backend/co_op_advisor/co_op_advisor_routes.py index 6ccd34a381..f334083ea9 100644 --- a/api/backend/co-op_advisor/co-op_advisor_routes.py +++ b/api/backend/co_op_advisor/co_op_advisor_routes.py @@ -1,25 +1,9 @@ -from flask import Blueprint -from flask import request -from flask import jsonify -from flask import make_response -from flask import current_app from backend.db_connection import db +from flask import Blueprint, jsonify, make_response -advisor = Blueprint('advisor', __name__) -@advisor.route('/advisor', methods=['GET']) -# route for retreiving all student profiles -def get_advisor(): - query = ''' +advisor = Blueprint('advisor', __name__) - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response @advisor.route('/students//reminders', methods=['GET']) # route for retrieving recommendation for specific student @@ -73,30 +57,68 @@ def get_notifications(): print(f"Database error: {str(e)}") return jsonify({'error': 'Failed to fetch notifications'}), 500 -@advisor.route('/advisor/tasks', methods=['GET']) -def get_student_tasks(): +@advisor.route('/', methods=['GET']) +def get_all_tasks(): + """ + Fetch all tasks with student details. + """ try: - cursor = db.get_db().cursor() + connection = db.get_db() + cursor = connection.cursor() query = ''' SELECT - s.Name as student_name, - t.Status as task_status, - t.DueDate as due_date, - t.Reminder as date_assigned, - t.Description as description + t.TaskID, + t.Description, + t.Reminder, + t.DueDate, + t.Status, + t.AdvisorID, + s.StudentID, + s.Name AS student_name FROM Task t - JOIN Student s ON t.AssignedTo = s.StudentID - ORDER BY t.DueDate ASC + JOIN Student s ON t.AssignedTo = s.StudentID; ''' cursor.execute(query) theData = cursor.fetchall() - - if not theData: - return jsonify([]), 200 - + + # Debug: Temporarily return raw data for troubleshooting + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + except Exception as e: + print(f"Database error: {str(e)}") + return jsonify({'error': 'Failed to fetch tasks'}), 500 + + + +@advisor.route('/advisor', methods=['GET']) +def get_all_tasks2(): + """ + Fetch all tasks with student details. + """ + try: + connection = db.get_db() + cursor = connection.cursor() + query = ''' + SELECT + t.TaskID, + t.Description, + t.Reminder, + t.DueDate, + t.Status, + t.AdvisorID, + s.StudentID, + s.Name AS student_name + FROM Task t + JOIN Student s ON t.AssignedTo = s.StudentID; + ''' + cursor.execute(query) + theData = cursor.fetchall() + + # Debug: Temporarily return raw data for troubleshooting response = make_response(jsonify(theData)) response.status_code = 200 return response except Exception as e: print(f"Database error: {str(e)}") - return jsonify({'error': 'Failed to fetch student tasks'}), 500 + return jsonify({'error': 'Failed to fetch tasks'}), 500 \ No newline at end of file diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index 54d9715f70..ac4daf6c4c 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -1,46 +1,38 @@ -import logging import streamlit as st -from modules.nav import SideBarLinks -import requests import pandas as pd +import requests -# Configure logging -logger = logging.getLogger(__name__) - +# Configure Streamlit page st.set_page_config(layout='wide') -SideBarLinks() +st.title("All Tasks") -st.title("Student Tasks") +# API endpoint for tasks +api_url = 'http://localhost:4000/api/advisor/tasks' -# Load and display task data +# Fetch task data from the API try: - response = requests.get('http://api:4000/api/advisor') + response = requests.get(api_url) if response.status_code == 200: + # Parse API response JSON data = response.json() + + # Check if data is available if data: - # Convert data to DataFrame and ensure all columns are strings - df = pd.DataFrame(data).astype(str) + # Convert to DataFrame + df = pd.DataFrame(data) - # Display filtered dataframe with explicit column types + # Display the table dynamically st.dataframe( - df.astype(str), + df, use_container_width=True, - column_config={ - "student_name": "Student Name", - "task_status": "Task Status", - "due_date": "Due Date", - "date_assigned": "Date Assigned", - "description": "Description" - }, hide_index=True ) else: - logger.warning("No student tasks data received from API") - st.warning("No student tasks available") + st.warning("No tasks available.") else: - logger.error(f"API request failed with status code: {response.status_code}") - st.error(f"Failed to fetch student tasks. Status code: {response.status_code}") + st.error(f"Failed to fetch data. API returned status code: {response.status_code}") except Exception as e: - logger.error(f"Error loading student tasks: {str(e)}") - st.error("Error loading student tasks. Please try again later.") + st.error(f"Error loading tasks: {str(e)}") + + From d671a3c06328a0885a9d2ed0c120dd6dc848d7e5 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 11:43:38 -0500 Subject: [PATCH 212/305] Update community_routes.py --- api/backend/community/community_routes.py | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 900e845bf7..9b1f396376 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -130,3 +130,27 @@ def update_profile(): response = make_response({"message": "Profile updated successfully"}) response.status_code = 200 return response + +# obtain housing resources based on location +@community.route('/community//housing-resources', methods=['GET']) +def get_feedback(community_id): + query = ''' + SELECT * FROM + CityCommunity c + JOIN Housing h + ON c.CommunityID=h.CommunityID + WHERE c.Location = %s + ''' + # Execute the query + cursor = db.get_db().cursor() + cursor.execute(query, (community_id, )) + theData = cursor.fetchall() + + # Format the response + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +# route to provide feedback to advisor +@community.route('/feedback', methods=['POST']) + From 2077be10ba693456e2fb92b0c8eae83d8ca62c9d Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 11:45:56 -0500 Subject: [PATCH 213/305] Update community_routes.py --- api/backend/community/community_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index 9b1f396376..d9e2d908d2 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -152,5 +152,5 @@ def get_feedback(community_id): return response # route to provide feedback to advisor -@community.route('/feedback', methods=['POST']) +#@community.route('/feedback', methods=['POST']) From b6beadfa7498c141d110471c2b313a99c0537297 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 11:48:20 -0500 Subject: [PATCH 214/305] nnn --- api/backend/{co-op_advisor => advisor}/__init__.py | 0 .../co_op_advisor_routes.py} | 0 app/src/pages/11_Student_Tasks.py | 4 ++++ 3 files changed, 4 insertions(+) rename api/backend/{co-op_advisor => advisor}/__init__.py (100%) rename api/backend/{co-op_advisor/co-op_advisor_routes.py => advisor/co_op_advisor_routes.py} (100%) diff --git a/api/backend/co-op_advisor/__init__.py b/api/backend/advisor/__init__.py similarity index 100% rename from api/backend/co-op_advisor/__init__.py rename to api/backend/advisor/__init__.py diff --git a/api/backend/co-op_advisor/co-op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py similarity index 100% rename from api/backend/co-op_advisor/co-op_advisor_routes.py rename to api/backend/advisor/co_op_advisor_routes.py diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index 54d9715f70..1e096f0016 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -1,3 +1,7 @@ +import sys +import os +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) + import logging import streamlit as st from modules.nav import SideBarLinks From d77b7bf5ec9be9c2f6169e6224fbbfb89a6aefb2 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 12:08:01 -0500 Subject: [PATCH 215/305] updates --- app/src/pages/21_Advisor_Rec.py | 33 ++++++++++++++++++++++++++++ database-files/02_SyncSpace-data.sql | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index 506d9a84a7..9afed8de89 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -3,6 +3,7 @@ import streamlit as st from modules.nav import SideBarLinks import requests +import pandas as pd st.set_page_config(layout = 'wide') @@ -10,4 +11,36 @@ st.title('Advisor Communications') +def get_profile(name): + url = f'http://api:4000/c/profile/{name}' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +name = 'Kevin Chen' +student = get_profile(name) +df = pd.DataFrame([student]) + +if student and isinstance(student, list): + record = student[0] + name = record.get("c.Location", "Not available") + + + +url = "http://api:4000/c//community/{SanJose}/housing-resources" + +data = {} +try: + data = requests.get(url).json() +except: + st.write("**Important**: Could not connect to sample api, so using dummy data.") + data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} + +st.dataframe(data) + + + diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index ae0695a0c8..9d6ddde12a 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -211,7 +211,7 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Egan Deedes', 'Marketing', 'Shell', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 2300, '4 months', 1, 'Active', 35, 3, 'Is a talented artist and loves to create beautiful paintings', 3, 9, 1); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); -insert into Student(Name, Major) values ('Kevin Chen', 'Data Science') +insert into Student(Name, Major, Location, CommunityID) values ('Kevin Chen', 'Data Science', 'San Jose', 2); -- 6. Events Data (depends on CityCommunity) From 88167c561de63c91e1bf41d274b032cf539f6fb0 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 12:33:48 -0500 Subject: [PATCH 216/305] u --- app/src/pages/11_Student_Tasks.py | 13 ++++--------- app/src/pages/{12_Form.py => 12_Feedback.py} | 0 2 files changed, 4 insertions(+), 9 deletions(-) rename app/src/pages/{12_Form.py => 12_Feedback.py} (100%) diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index e66436a801..2828caefbd 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -1,21 +1,16 @@ -<<<<<<< HEAD -import sys -import os -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) - import logging -======= ->>>>>>> 2077be10ba693456e2fb92b0c8eae83d8ca62c9d import streamlit as st -import pandas as pd import requests +import pandas as pd +from modules.nav import SideBarLinks + # Configure Streamlit page st.set_page_config(layout='wide') st.title("All Tasks") # API endpoint for tasks -api_url = 'http://localhost:4000/api/advisor/tasks' +api_url = 'http://localhost:4000/api/advisor' # Fetch task data from the API try: diff --git a/app/src/pages/12_Form.py b/app/src/pages/12_Feedback.py similarity index 100% rename from app/src/pages/12_Form.py rename to app/src/pages/12_Feedback.py From 038ce54f48f68ca6f2d1203180e457cd11b4d612 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 13:02:37 -0500 Subject: [PATCH 217/305] advisor comms --- api/backend/community/community_routes.py | 3 +- app/src/pages/21_Advisor_Rec.py | 37 ++++++++++++++--------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/api/backend/community/community_routes.py b/api/backend/community/community_routes.py index d9e2d908d2..25431d33bb 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/community/community_routes.py @@ -83,6 +83,7 @@ def get_profile(name): SELECT * FROM Student s JOIN CityCommunity c + ON s.CommunityID = c.CommunityID WHERE s.Name = %s ''' # Execute the query @@ -139,7 +140,7 @@ def get_feedback(community_id): CityCommunity c JOIN Housing h ON c.CommunityID=h.CommunityID - WHERE c.Location = %s + WHERE c.CommunityID = %s ''' # Execute the query cursor = db.get_db().cursor() diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index 9afed8de89..0daf60a3dd 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -22,25 +22,32 @@ def get_profile(name): name = 'Kevin Chen' student = get_profile(name) -df = pd.DataFrame([student]) -if student and isinstance(student, list): - record = student[0] - name = record.get("c.Location", "Not available") - - - -url = "http://api:4000/c//community/{SanJose}/housing-resources" +def get_id(communityid): + url = f"http://api:4000/c/community/{communityid}/housing-resources" + + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] -data = {} -try: - data = requests.get(url).json() -except: - st.write("**Important**: Could not connect to sample api, so using dummy data.") - data = {"a":{"b": "123", "c": "hello"}, "z": {"b": "456", "c": "goodbye"}} -st.dataframe(data) +if student and isinstance(student, list): + record = student[0] + community_id = record.get('CommunityID') + location = record.get('Location') + resources = get_id(community_id) + + if resources: + st.write(f'Housing Resources in {location}') + df = pd.DataFrame(resources) + st.dataframe(df) + else: + st.write('No resources found') + From 7890d2a9262f73ce6ef35623cead7d6219adce42 Mon Sep 17 00:00:00 2001 From: Pratyusha Chamarthi Date: Wed, 4 Dec 2024 13:19:34 -0500 Subject: [PATCH 218/305] Fixed errors in Home.py and updated my pages --- api/.env copy.template | 6 ++ api/backend/rest_entry.py | 3 + api/backend/students/students_routes.py | 33 ++++++++ app/src/Home.py | 3 +- app/src/modules/nav.py | 15 +++- app/src/pages/.py | 0 app/src/pages/30_1_Manage_Student_Profile.py | 76 +++++++++++++++++++ app/src/pages/30_2_View_Student_List.py | 51 +++++++++++++ app/src/pages/30_3_Connect_Community.py | 26 +++++++ app/src/pages/30_4_View_Events.py | 23 ++++++ app/src/pages/30_5_Submit_Feedback.py | 26 +++++++ app/src/pages/30_6_Advisor_Recommendations.py | 26 +++++++ app/src/pages/30_Student_Sarah_Home.py | 37 +++++++-- database-files/SyncSpace.sql | 1 + 14 files changed, 316 insertions(+), 10 deletions(-) create mode 100644 api/.env copy.template create mode 100644 api/backend/students/students_routes.py delete mode 100644 app/src/pages/.py create mode 100644 app/src/pages/30_1_Manage_Student_Profile.py create mode 100644 app/src/pages/30_2_View_Student_List.py create mode 100644 app/src/pages/30_3_Connect_Community.py create mode 100644 app/src/pages/30_4_View_Events.py create mode 100644 app/src/pages/30_5_Submit_Feedback.py create mode 100644 app/src/pages/30_6_Advisor_Recommendations.py diff --git a/api/.env copy.template b/api/.env copy.template new file mode 100644 index 0000000000..b24b99326f --- /dev/null +++ b/api/.env copy.template @@ -0,0 +1,6 @@ +SECRET_KEY=someCrazyS3cR3T!Key.! +DB_USER=root +DB_HOST=db +DB_PORT=3306 +DB_NAME=northwind +MYSQL_ROOT_PASSWORD= diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index d8d78502d9..e0ff51c0d8 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -4,6 +4,8 @@ from backend.customers.customer_routes import customers from backend.products.products_routes import products from backend.simple.simple_routes import simple_routes +from backend.students.students_routes import students + import os from dotenv import load_dotenv @@ -42,6 +44,7 @@ def create_app(): app.register_blueprint(simple_routes) app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(products, url_prefix='/p') + app.register_blueprint(students, url_prefix='/s') # Don't forget to return the app object return app diff --git a/api/backend/students/students_routes.py b/api/backend/students/students_routes.py new file mode 100644 index 0000000000..7ec3644059 --- /dev/null +++ b/api/backend/students/students_routes.py @@ -0,0 +1,33 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response +from flask import current_app +from backend.db_connection import db +from backend.ml_models.model01 import predict + +#------------------------------------------------------------ +# Create a new Blueprint object, which is a collection of +# routes. +students = Blueprint('students', __name__) + + +#------------------------------------------------------------ +# Get all students from the system +@students.route('/students', methods=['GET']) +def get_students(): + + cursor = db.get_db().cursor() + cursor.execute('''SELECT StudentId, Name, Major, + Company, Lifestyle FROM students + ''') + + theData = cursor.fetchall() + + the_response = make_response(jsonify(theData)) + the_response.status_code = 200 + return the_response \ No newline at end of file diff --git a/app/src/Home.py b/app/src/Home.py index 491114a703..5df75fcd7e 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -77,7 +77,8 @@ type = 'secondary', use_container_width=True): st.session_state['authenticated'] = True - st.session_state['role'] = 'Student' + st.session_state['role'] = 'Student1' + st.session_state['first_name'] = 'Sarah' st.switch_page('pages/30_Student_Sarah_Home.py') # Add a button for the Warehouse Manager Portal diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 17d773b627..acc4864092 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -51,10 +51,11 @@ def ClassificationNav(): #### ------------------------ Student Housing/Carpool Role ------------------------ def AdminPageNav(): st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student - Kevin Chen", icon="🖥️") - st.sidebar.page_link( - "pages/21_ML_Model_Mgmt.py", label="ML Model Management", icon="🏢" - ) - + #st.sidebar.page_link( + #"pages/21_ML_Model_Mgmt.py", label="ML Model Management", icon="🏢" + #) +def StudentPageNav(): + st.sidebar.page_link("pages/30_Student_Sarah_Home.py", label="Student - Sarah Lopez", icon="🖥️") # --------------------------------Links Function ----------------------------------------------- def SideBarLinks(show_home=False): @@ -92,6 +93,12 @@ def SideBarLinks(show_home=False): # If the user is an administrator, give them access to the administrator pages if st.session_state["role"] == "Student": AdminPageNav() + + if st.session_state["role"] == "Student1": + StudentPageNav() + + + # Always show the About page at the bottom of the list of links AboutPageNav() diff --git a/app/src/pages/.py b/app/src/pages/.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/app/src/pages/30_1_Manage_Student_Profile.py b/app/src/pages/30_1_Manage_Student_Profile.py new file mode 100644 index 0000000000..6df6c7d1b0 --- /dev/null +++ b/app/src/pages/30_1_Manage_Student_Profile.py @@ -0,0 +1,76 @@ +import logging +import streamlit as st +import requests + +# Configure logger +logger = logging.getLogger(__name__) + +# Set the layout +st.set_page_config(layout='wide') + +# Title of the page +st.title('Manage Student Profile') +st.subheader('Update Your Profile') + +# Form layout +name = st.text_input('Name', value='Sarah Lopez', placeholder='Enter your full name') +email = st.text_input('Email', value='sarah.lopez@example.com', placeholder='Enter your email') +professional_interests = st.text_area( + 'Professional Interests', + placeholder='E.g., Data Science, AI, etc.' +) +housing_preferences = st.text_area( + 'Housing Preferences', + placeholder='E.g., Close to campus, shared apartment, etc.' +) + +# Submit button +if st.button('Save Changes'): + # Mocked API request for demonstration + profile_data = { + "name": name, + "email": email, + "professional_interests": professional_interests, + "housing_preferences": housing_preferences, + } + try: + response = requests.put( + 'http://api.example.com/community/{community_id}', + json=profile_data + ) + if response.status_code == 200: + st.success('Profile updated successfully!') + else: + st.error(f'Failed to update profile. Server responded with: {response.text}') + except Exception as e: + st.error(f'An error occurred: {str(e)}') + + +''' +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Manage Student Profile') +st.write('\n\n') + +# Add a text input field +first_name = st.text_input("First Name:", value="") +last_name = st.text_input("Last Name:", value="") + +if user_input: + st.write(f"Hello, {user_input}!") + + +if st.button('Create Student', + type = 'primary', + use_container_width=True): + results = requests.get('http://api:4000/c/prediction/10/25').json() + st.dataframe(results) +''' \ No newline at end of file diff --git a/app/src/pages/30_2_View_Student_List.py b/app/src/pages/30_2_View_Student_List.py new file mode 100644 index 0000000000..2c66ede275 --- /dev/null +++ b/app/src/pages/30_2_View_Student_List.py @@ -0,0 +1,51 @@ +import logging +import streamlit as st +import requests +from modules.nav import SideBarLinks + +logger = logging.getLogger(__name__) + +# Configure Streamlit page +st.set_page_config(layout='wide') + +# Sidebar Navigation + +SideBarLinks() + + +# Page Title +st.title('Student List') +st.subheader('View Students in Your Community') + +# Fetch Data from API +try: + # Make the API request + results = requests.get('http://api:4000/students').json() + st.dataframe(results) +except requests.exceptions.RequestException as e: + # Handle any request exceptions (e.g., connection errors) + st.error("An error occurred while fetching student profiles. Please try again later.") + logger.error(f"RequestException: {e}") + +# Debugging Information +st.write("If the above table is empty, please verify the API connection and response format.") + + + +''' +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Student List') +st.write('\n\n') + +results = requests.get('http://api:4000/c/students').json() +st.dataframe(results) +''' \ No newline at end of file diff --git a/app/src/pages/30_3_Connect_Community.py b/app/src/pages/30_3_Connect_Community.py new file mode 100644 index 0000000000..0665367ab4 --- /dev/null +++ b/app/src/pages/30_3_Connect_Community.py @@ -0,0 +1,26 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Manage Student Profile') +st.write('\n\n') + +# Add a text input field +first_name = st.text_input("First Name:", value="") +last_name = st.text_input("Last Name:", value="") + +if user_input: + st.write(f"Hello, {user_input}!") + + +if st.button('Create Student', + type = 'primary', + use_container_width=True): + results = requests.get('http://api:4000/c/prediction/10/25').json() + st.dataframe(results) diff --git a/app/src/pages/30_4_View_Events.py b/app/src/pages/30_4_View_Events.py new file mode 100644 index 0000000000..03e56533c1 --- /dev/null +++ b/app/src/pages/30_4_View_Events.py @@ -0,0 +1,23 @@ +import logging +import streamlit as st +import requests + +logger = logging.getLogger(__name__) + +st.title("Upcoming Events and Workshops") + +try: + response = requests.get("http://your-api-url.com/community/{community_id}/events") + if response.status_code == 200: + events = response.json() + for event in events: + st.subheader(event["title"]) + st.text(f"Date: {event['date']}") + st.text(f"Location: {event['location']}") + st.text(f"Description: {event['description']}") + st.write("---") + else: + st.error(f"Failed to fetch events. Error: {response.status_code}") +except requests.exceptions.RequestException as e: + logger.error(f"Error fetching events: {e}") + st.error("An error occurred while fetching events. Please try again later.") diff --git a/app/src/pages/30_5_Submit_Feedback.py b/app/src/pages/30_5_Submit_Feedback.py new file mode 100644 index 0000000000..0665367ab4 --- /dev/null +++ b/app/src/pages/30_5_Submit_Feedback.py @@ -0,0 +1,26 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Manage Student Profile') +st.write('\n\n') + +# Add a text input field +first_name = st.text_input("First Name:", value="") +last_name = st.text_input("Last Name:", value="") + +if user_input: + st.write(f"Hello, {user_input}!") + + +if st.button('Create Student', + type = 'primary', + use_container_width=True): + results = requests.get('http://api:4000/c/prediction/10/25').json() + st.dataframe(results) diff --git a/app/src/pages/30_6_Advisor_Recommendations.py b/app/src/pages/30_6_Advisor_Recommendations.py new file mode 100644 index 0000000000..0665367ab4 --- /dev/null +++ b/app/src/pages/30_6_Advisor_Recommendations.py @@ -0,0 +1,26 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Manage Student Profile') +st.write('\n\n') + +# Add a text input field +first_name = st.text_input("First Name:", value="") +last_name = st.text_input("Last Name:", value="") + +if user_input: + st.write(f"Hello, {user_input}!") + + +if st.button('Create Student', + type = 'primary', + use_container_width=True): + results = requests.get('http://api:4000/c/prediction/10/25').json() + st.dataframe(results) diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index ed7f519eb5..37e0fc1891 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -1,3 +1,4 @@ + import logging logger = logging.getLogger(__name__) @@ -9,9 +10,35 @@ SideBarLinks() -st.title('Student Home Page') +#st.session_state["first_name"] = st.text_input("Enter your first name:", "Default Name") +st.title(f"Welcome Student, {st.session_state['first_name']}.") +st.write('') +st.write('') +st.write('### What would you like to do today?') + + + +# View Student List Button +if st.button('View Student List', type='primary', use_container_width=True): + st.switch_page('pages/30_2_View_Student_List.py') + +# Manage Student Profile Button +if st.button('Manage Student Profile', type='primary', use_container_width=True): + st.switch_page('pages/30_1_Manage_Student_Profile.py') + +# Additional Sections for Sarah's Use Case +if st.button('Connect with Community', type='primary', use_container_width=True): + st.switch_page('pages/30_3_Connect_Community.py') + +if st.button('View Events & Workshops', type='primary', use_container_width=True): + st.switch_page('pages/30_4_View_Events.py') + +if st.button('Submit Feedback', type='primary', use_container_width=True): + st.switch_page('pages/30_5_Submit_Feedback.py') + +if st.button('Advisor Recommendations', type='primary', use_container_width=True): + st.switch_page('pages/30_6_Advisor_Recommendations.py') -if st.button('View Advisor Feedback', - type='primary', - use_container_width=True): - st.switch_page('pages/21_Advisor_Feedback.py') \ No newline at end of file +# Example for loading data in a page if required +if 'data' not in st.session_state: + st.session_state['data'] = {} # Placeholder for any session-wide data diff --git a/database-files/SyncSpace.sql b/database-files/SyncSpace.sql index 1088085515..8b43331783 100644 --- a/database-files/SyncSpace.sql +++ b/database-files/SyncSpace.sql @@ -211,3 +211,4 @@ VALUES ( -- 4.3 INSERT INTO Housing (Style, Availability, Location) VALUES ('Apartment', 'Available', 'New York City'); + From 7e293d0129d06ad326762053aa5e3a7054c6a075 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 13:20:35 -0500 Subject: [PATCH 219/305] 888 --- api/app.py | 15 ++- api/backend/advisor/co_op_advisor_routes.py | 85 +++---------- api/backend/students/student_routes.py | 76 ++++++----- app/src/modules/nav.py | 4 +- app/src/pages/10_Co-op_Advisor_Home.py | 6 +- app/src/pages/11_Student_Tasks.py | 1 + app/src/pages/12_Feedback.py | 133 +++++++++----------- database-files/01_SyncSpace.sql | 4 +- 8 files changed, 134 insertions(+), 190 deletions(-) diff --git a/api/app.py b/api/app.py index 6ff03e5c25..c43c670926 100644 --- a/api/app.py +++ b/api/app.py @@ -2,16 +2,13 @@ from flask import Flask from backend.db_connection import init_app from backend.students.student_routes import students -from backend.co-op_advisor.co-op_advisor_routes import advisor +from backend.advisor.co_op_advisor_routes import advisor app = Flask(__name__) init_app(app) -# Register blueprints -app.register_blueprint(students, url_prefix='/api/students') -app.register_blueprint(advisor, url_prefix='/api/advisor') @@ -15,6 +17,7 @@ init_app(app) @@ -20,6 +17,14 @@ app.register_blueprint(students, url_prefix='/api') app.register_blueprint(advisor, url_prefix='/api') + +# Register blueprints +app.register_blueprint(students, url_prefix='/api/students') +app.register_blueprint(advisor, url_prefix='/api/advisor') + if __name__ == '__main__': app.run(host='0.0.0.0', port=4000) -''' \ No newline at end of file +''' + + + diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index f334083ea9..3b989fb77f 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -1,9 +1,25 @@ -from backend.db_connection import db -from flask import Blueprint, jsonify, make_response +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response + + advisor = Blueprint('advisor', __name__) +@advisor.route('/advisor', methods=['GET']) +def get_all_tasks(): + query = ''' + SELECT * from Task + limit 10 + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + response = make_response(jsonify(theData)) + response.status_code = 200 + return response @advisor.route('/students//reminders', methods=['GET']) # route for retrieving recommendation for specific student @@ -57,68 +73,3 @@ def get_notifications(): print(f"Database error: {str(e)}") return jsonify({'error': 'Failed to fetch notifications'}), 500 -@advisor.route('/', methods=['GET']) -def get_all_tasks(): - """ - Fetch all tasks with student details. - """ - try: - connection = db.get_db() - cursor = connection.cursor() - query = ''' - SELECT - t.TaskID, - t.Description, - t.Reminder, - t.DueDate, - t.Status, - t.AdvisorID, - s.StudentID, - s.Name AS student_name - FROM Task t - JOIN Student s ON t.AssignedTo = s.StudentID; - ''' - cursor.execute(query) - theData = cursor.fetchall() - - # Debug: Temporarily return raw data for troubleshooting - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - except Exception as e: - print(f"Database error: {str(e)}") - return jsonify({'error': 'Failed to fetch tasks'}), 500 - - - -@advisor.route('/advisor', methods=['GET']) -def get_all_tasks2(): - """ - Fetch all tasks with student details. - """ - try: - connection = db.get_db() - cursor = connection.cursor() - query = ''' - SELECT - t.TaskID, - t.Description, - t.Reminder, - t.DueDate, - t.Status, - t.AdvisorID, - s.StudentID, - s.Name AS student_name - FROM Task t - JOIN Student s ON t.AssignedTo = s.StudentID; - ''' - cursor.execute(query) - theData = cursor.fetchall() - - # Debug: Temporarily return raw data for troubleshooting - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - except Exception as e: - print(f"Database error: {str(e)}") - return jsonify({'error': 'Failed to fetch tasks'}), 500 \ No newline at end of file diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 2712729415..c677b1cb91 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -1,34 +1,32 @@ -from flask import Blueprint, jsonify, make_response +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response + from backend.db_connection import db students = Blueprint('students', __name__) + @students.route('/students', methods=['GET']) def get_all_students(): - try: - connection = db.get_db() - cursor = connection.cursor() - query = ''' + query = ''' SELECT - s.Name as student_name, - s.StudentID as student_id, - s.Location as co_op_location, - s.Company as company_name, - s.Major as major - FROM Student s - JOIN CityCommunity c ON s.CommunityID = c.CommunityID - ORDER BY s.StudentID ASC + StudentID as student_id, + Name as student_name, + Location as co_op_location, + Company as company_name, + Major as major + FROM Student + ORDER BY StudentID ASC ''' - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - except Exception as e: - print(f"Database error: {str(e)}") - return jsonify({'error': 'Failed to fetch students'}), 500 + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + response = make_response(jsonify(theData)) + response.status_code = 200 + return response @students.route('/students//reminders', methods=['GET']) def get_student_reminders(student_id): @@ -56,18 +54,28 @@ def get_student_feedback(student_id): response.status_code = 200 return response -@students.route('/test', methods=['GET']) -def test_connection(): - try: - connection = db.get_db() - cursor = connection.cursor(dictionary=True) - cursor.execute('SELECT COUNT(*) as count FROM Student') - result = cursor.fetchone() - cursor.close() - return jsonify({'student_count': result['count']}), 200 - except Exception as e: - print(f"Database connection test failed: {str(e)}") - return jsonify({'error': 'Database connection test failed'}), 500 + +@students.route('/students/feedback', methods=['GET']) +def get_all_feedback(): + query = ''' + SELECT + s.StudentID, + s.Name as student_name, + f.FeedbackID, + f.Description, + f.Date, + f.ProgressRating, + FROM Feedback f + JOIN Student s ON f.StudentID = s.StudentID + JOIN Advisor a ON f.AdvisorID = a.AdvisorID + ORDER BY f.Date DESC; + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + response = make_response(jsonify(theData)) + response.status_code = 200 + return response \ No newline at end of file diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 086508dd65..2d4f2c4223 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -40,8 +40,8 @@ def SysHealthDashNav(): def JessicaPageNav(): - st.sidebar.page_link("pages/11_Student_Tasks.py", label="Student Tasks", icon="🔔") - st.sidebar.page_link("pages/12_Form.py", label="Forms", icon="📝") + st.sidebar.page_link("pages/11_Student_Tasks.py", label="Student Tasks", icon="📝") + st.sidebar.page_link("pages/12_Feedback.py", label="Feedback", icon="🧐") st.sidebar.page_link("pages/13_Housing.py", label="Housing", icon="🏘️") #### ------------------------ Student Housing/Carpool Role ------------------------ diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 7b8b4798f3..1e8d05cc61 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -23,12 +23,12 @@ col1, col2, col3, col4 = st.columns([1, 1, 1, 1]) with col1: - if st.button("📝 STUDENT TASKS\nStudent Tasks", key="notification_btn"): + if st.button("📝 Student_tasks\n Student Tasks", key="notification_btn"): st.switch_page("pages/11_Student_Tasks.py") with col2: - if st.button("📝 FORMS\n Student Forms Update", key="forms_btn"): - st.switch_page("pages/12_Form.py") + if st.button("🧐 FEEDBACK\n Student Feedback", key="forms_btn"): + st.switch_page("pages/12_Feedback.py") with col3: if st.button("🏠 HOUSING\n Students Waiting", key="housing_btn"): diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index 2828caefbd..2e0cc8ce17 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -8,6 +8,7 @@ # Configure Streamlit page st.set_page_config(layout='wide') st.title("All Tasks") +SideBarLinks() # API endpoint for tasks api_url = 'http://localhost:4000/api/advisor' diff --git a/app/src/pages/12_Feedback.py b/app/src/pages/12_Feedback.py index 343bc9e235..24bc4c56cf 100644 --- a/app/src/pages/12_Feedback.py +++ b/app/src/pages/12_Feedback.py @@ -1,95 +1,74 @@ import streamlit as st import pandas as pd import requests - -st.set_page_config(page_title="Unread Notifications", layout="wide") - -# Add sidebar navigation from modules.nav import SideBarLinks + +# Configure Streamlit page +st.set_page_config(layout='wide') +st.title("Tasks Dashboard") SideBarLinks() -# Page Title -st.title("🔔 Unread Notifications") -st.write("Below is a list of notifications regarding your students.") -# Fetch notifications from the API +# API endpoint for tasks +api_url = 'http://localhost:4000/api/students/feedback' # Adjust the URL to match your actual Flask route + +# Fetch task data from the API try: - response = requests.get('http://web-api:4000/api/notifications') # Replace with your actual API endpoint + response = requests.get(api_url) if response.status_code == 200: - notifications = response.json() + # Parse API response JSON + data = response.json() + + if data: + # Convert to DataFrame + df = pd.DataFrame(data) + + # Sidebar Filters + st.sidebar.header("Filter Tasks") + student_filter = st.sidebar.text_input("Search by Student Name") + student_id_filter = st.sidebar.text_input("Search by Student ID") + task_status_filter = st.sidebar.text_input("Search by Task Status") + + # Apply filters + if student_filter: + df = df[df['student_name'].str.contains(student_filter, case=False, na=False)] + if student_id_filter: + df = df[df['StudentID'].astype(str).str.contains(student_id_filter, case=False, na=False)] + if task_status_filter: + df = df[df['task_status'].str.contains(task_status_filter, case=False, na=False)] + + # Reorder columns to match SQL query + column_order = [ + "TaskID", "Description", "Reminder", "DueDate", "Status", + "AdvisorID", "StudentID", "student_name" + ] + df = df[column_order] - if notifications: - # Convert notifications to DataFrame - df_notifications = pd.DataFrame(notifications) - - # Display unread notifications - st.subheader(f"Unread Notifications ({len(df_notifications)})") + # Display Data + st.subheader(f"Showing {len(df)} Task Entries") st.dataframe( - df_notifications, + df, use_container_width=True, - column_config={ - "student_name": "Student Name", - "notification_type": "Notification Type", - "date": "Date", - "message": "Message" - } + hide_index=True ) - - # Mark notifications as read button - if st.button("Mark All as Read"): - try: - mark_as_read_response = requests.post( - 'http://web-api:4000/api/notifications/mark-as-read' - ) # Replace with your actual endpoint - if mark_as_read_response.status_code == 200: - st.success("All notifications have been marked as read.") - st.experimental_rerun() # Refresh the page - else: - st.error("Failed to mark notifications as read.") - except Exception as e: - st.error(f"Error while marking notifications as read: {e}") + + # Detailed View + if st.checkbox("Show Detailed Task View"): + for index, row in df.iterrows(): + with st.expander(f"Task ID: {row['TaskID']}"): + st.markdown(f"**Student Name:** {row['student_name']}") + st.markdown(f"**Student ID:** {row['StudentID']}") + st.markdown(f"**Task Description:** {row['Description']}") + st.markdown(f"**Reminder Date:** {row['Reminder']}") + st.markdown(f"**Due Date:** {row['DueDate']}") + st.markdown(f"**Task Status:** {row['Status']}") + st.markdown(f"**Advisor ID:** {row['AdvisorID']}") + st.markdown("---") else: - st.info("You have no unread notifications.") + st.warning("No task entries found.") else: - st.error(f"Failed to fetch notifications (Status code: {response.status_code})") + st.error(f"Failed to fetch tasks. API returned status code: {response.status_code}") except Exception as e: - st.error(f"Error loading notifications: {e}") - -# Notification Management Section -st.write("---") -st.subheader("Manage Notifications") -st.write("You can search and filter through your notifications below.") - -# Advanced filtering/search options -filter_col1, filter_col2 = st.columns([1, 1]) - -with filter_col1: - search_term = st.text_input("Search by Student Name or Message") - -with filter_col2: - notification_type_filter = st.selectbox( - "Filter by Notification Type", - options=["All", "Form Update", "Housing Request", "Case Update", "Other"] - ) - -# Apply filters -if notifications: - filtered_notifications = df_notifications.copy() - - # Apply search term filter - if search_term: - filtered_notifications = filtered_notifications[ - filtered_notifications.apply(lambda row: search_term.lower() in str(row).lower(), axis=1) - ] + st.error(f"Error loading tasks: {str(e)}") - # Apply notification type filter - if notification_type_filter != "All": - filtered_notifications = filtered_notifications[ - filtered_notifications["notification_type"] == notification_type_filter - ] - st.write(f"Filtered Notifications ({len(filtered_notifications)})") - st.dataframe(filtered_notifications, use_container_width=True) -else: - st.info("No notifications to filter.") - diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index b06b558d49..b8aa046ea4 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -67,7 +67,7 @@ CREATE TABLE IF NOT EXISTS Student ( FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); --- Create table for Events +/*-- Create table for Events DROP TABLE IF EXISTS Events; CREATE TABLE IF NOT EXISTS Events ( EventID INT AUTO_INCREMENT PRIMARY KEY, @@ -77,7 +77,7 @@ CREATE TABLE IF NOT EXISTS Events ( Description TEXT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); - +*/ -- Create table for Advisor DROP TABLE IF EXISTS Advisor; From d14902cc9e594fd3c96132c0d552c345be56963c Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 13:21:03 -0500 Subject: [PATCH 220/305] kebin-aviosr --- app/src/pages/21_Advisor_Rec.py | 43 +++------------------- app/src/pages/25_Advisor_Feedback.py | 0 app/src/pages/26_Advisor_Housing.py | 53 ++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 39 deletions(-) create mode 100644 app/src/pages/25_Advisor_Feedback.py create mode 100644 app/src/pages/26_Advisor_Housing.py diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index 0daf60a3dd..2033861fe2 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -11,43 +11,8 @@ st.title('Advisor Communications') -def get_profile(name): - url = f'http://api:4000/c/profile/{name}' - response = requests.get(url) - if response.status_code == 200: - return response.json() - else: - st.error(f"Error fetching data: {response.status_code}") - return [] - -name = 'Kevin Chen' -student = get_profile(name) - -def get_id(communityid): - url = f"http://api:4000/c/community/{communityid}/housing-resources" - - response = requests.get(url) - if response.status_code == 200: - return response.json() - else: - st.error(f"Error fetching data: {response.status_code}") - return [] - - -if student and isinstance(student, list): - record = student[0] - community_id = record.get('CommunityID') - location = record.get('Location') - resources = get_id(community_id) - - if resources: - st.write(f'Housing Resources in {location}') - df = pd.DataFrame(resources) - st.dataframe(df) - else: - st.write('No resources found') - - - - +if st.button('View Housing Recommendations'): + st.switch_page('pages/26_Advisor_Housing.py') +if st.button('Feedback Form'): + st.switch_page('pages/25_Advisor_Feedback.py') diff --git a/app/src/pages/25_Advisor_Feedback.py b/app/src/pages/25_Advisor_Feedback.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/app/src/pages/26_Advisor_Housing.py b/app/src/pages/26_Advisor_Housing.py new file mode 100644 index 0000000000..a9b4ef838c --- /dev/null +++ b/app/src/pages/26_Advisor_Housing.py @@ -0,0 +1,53 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests +import pandas as pd + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Advisor Communications') + +def get_profile(name): + url = f'http://api:4000/c/profile/{name}' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +name = 'Kevin Chen' +student = get_profile(name) + +def get_id(communityid): + url = f"http://api:4000/c/community/{communityid}/housing-resources" + + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + + +if student and isinstance(student, list): + record = student[0] + community_id = record.get('CommunityID') + location = record.get('Location') + resources = get_id(community_id) + + if resources: + st.write(f'Housing Resources in {location}') + df = pd.DataFrame(resources) + st.dataframe(df[['Availability', 'Location', 'Style']]) + else: + st.write('No resources found') + + + + + From 624b6172aeca1627cef9a20e4549c47f511762f7 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 14:01:08 -0500 Subject: [PATCH 221/305] updates --- api/backend/rest_entry.py | 4 +- .../kevin_routes.py} | 41 +++++++++++++++---- app/src/pages/21_Advisor_Rec.py | 25 ++++++++++- app/src/pages/25_Advisor_Feedback.py | 17 ++++++++ app/src/pages/26_Advisor_Housing.py | 2 +- 5 files changed, 76 insertions(+), 13 deletions(-) rename api/backend/{community/community_routes.py => student_kevin/kevin_routes.py} (82%) diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 73b253aba6..88248af77f 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -1,7 +1,7 @@ from flask import Flask from backend.db_connection import db -from backend.community.community_routes import community +from backend.student_kevin.kevin_routes import kevin from backend.students.student_routes import students import os from dotenv import load_dotenv @@ -40,7 +40,7 @@ def create_app(): app.logger.info('current_app(): registering blueprints with Flask app object.') #app.register_blueprint(simple_routes) #app.register_blueprint(customers, url_prefix='/c') - app.register_blueprint(community, url_prefix='/c') + app.register_blueprint(kevin, url_prefix='/c') app.register_blueprint(students, url_prefix='/api') # Don't forget to return the app object diff --git a/api/backend/community/community_routes.py b/api/backend/student_kevin/kevin_routes.py similarity index 82% rename from api/backend/community/community_routes.py rename to api/backend/student_kevin/kevin_routes.py index 25431d33bb..09faa396b6 100644 --- a/api/backend/community/community_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -7,9 +7,9 @@ # Kevin routes -community = Blueprint('community', __name__) +kevin = Blueprint('kevin', __name__) -@community.route('/community//housing', methods=['GET']) +@kevin.route('/community//housing', methods=['GET']) # Route for retrieving housing for students in the same community def community_housing(communityid): cleanliness_filter = request.args.get('cleanliness', type=int) @@ -46,7 +46,7 @@ def community_housing(communityid): return response -@community.route('/community//carpool', methods=['GET']) +@kevin.route('/community//carpool', methods=['GET']) def community_carpool(communityid): time_filter = request.args.get('commute_time', type=int) days_filter = request.args.get('commute_days', type=int) @@ -77,7 +77,7 @@ def community_carpool(communityid): return response # retrieve kevin's profile -@community.route('/profile/', methods=['GET']) +@kevin.route('/profile/', methods=['GET']) def get_profile(name): query = ''' SELECT * @@ -97,7 +97,7 @@ def get_profile(name): return response # kevins profile - update -@community.route('/profile', methods=['PUT']) +@kevin.route('/profile', methods=['PUT']) def update_profile(): the_data = request.json current_app.logger.info(the_data) @@ -133,8 +133,8 @@ def update_profile(): return response # obtain housing resources based on location -@community.route('/community//housing-resources', methods=['GET']) -def get_feedback(community_id): +@kevin.route('/community//housing-resources', methods=['GET']) +def get_resources(community_id): query = ''' SELECT * FROM CityCommunity c @@ -153,5 +153,30 @@ def get_feedback(community_id): return response # route to provide feedback to advisor -#@community.route('/feedback', methods=['POST']) +@kevin.route('/feedback', methods=['POST']) +def give_feedback(): + data = request.json + current_app.logger.info(data) + + description = data['Description'] + date = data['Date'] + rating = data['ProgressRating'] + + query = ''' + INSERT INTO Feedback (Description, Date, ProgressRating) + VALUES ('{description}', '{date}', '{rating}') + ''' + + current_app.logger.info(query) + + cursor = db.get_db().cursor() + cursor.execute(query) + db.get_db().commit() + + response = make_response("Feedback Submitted") + response.status_code = 200 + return response + + + diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index 2033861fe2..7dd5cb5557 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -11,8 +11,29 @@ st.title('Advisor Communications') -if st.button('View Housing Recommendations'): +def get_profile(name): + url = f'http://api:4000/c/profile/{name}' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +name = 'Kevin Chen' +student = get_profile(name) + +if student and isinstance(student, list): + record = student[0] + reminders = record.get('Reminder') + st.write(f'🔔 You have {reminders} reminders from your advisor') + +st.write('') +st.write('') +st.write('') + +if st.button('View Housing Recommendations', use_container_width=True): st.switch_page('pages/26_Advisor_Housing.py') -if st.button('Feedback Form'): +if st.button('Feedback Form', use_container_width=True): st.switch_page('pages/25_Advisor_Feedback.py') diff --git a/app/src/pages/25_Advisor_Feedback.py b/app/src/pages/25_Advisor_Feedback.py index e69de29bb2..9497e8769e 100644 --- a/app/src/pages/25_Advisor_Feedback.py +++ b/app/src/pages/25_Advisor_Feedback.py @@ -0,0 +1,17 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests +import pandas as pd + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title('Feedback Form') + +url = "http://api:4000/c/feedback" + + + diff --git a/app/src/pages/26_Advisor_Housing.py b/app/src/pages/26_Advisor_Housing.py index a9b4ef838c..e736ad0f1c 100644 --- a/app/src/pages/26_Advisor_Housing.py +++ b/app/src/pages/26_Advisor_Housing.py @@ -9,7 +9,7 @@ SideBarLinks() -st.title('Advisor Communications') +st.title('Housing in Your Location') def get_profile(name): url = f'http://api:4000/c/profile/{name}' From 028b1055df51b9ef9ca80598ac7f5ece36c53601 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 14:38:02 -0500 Subject: [PATCH 222/305] upate --- api/backend/student_kevin/kevin_routes.py | 27 ++++++++++++++--------- app/src/Home.py | 2 +- app/src/pages/23_My_Profile.py | 2 +- app/src/pages/24_Edit_Profile.py | 4 +++- app/src/pages/25_Advisor_Feedback.py | 22 ++++++++++++++++++ 5 files changed, 44 insertions(+), 13 deletions(-) diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index 09faa396b6..a0a4b2aaee 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -113,19 +113,20 @@ def update_profile(): time = the_data.get('CommuteTime') days = the_data.get('CommuteDays') bio = the_data.get('Bio') + name = the_data.get('Name') query = ''' UPDATE Student SET Company = %s, Location = %s, HousingStatus = %s, CarpoolStatus = %s, Budget = %s, LeaseDuration = %s, Cleanliness = %s, Lifestyle=%s, CommuteTime=%s, CommuteDays=%s, Bio = %s - WHERE Name = 'Kevin Chen' + WHERE Name = %s ''' current_app.logger.info(query) cursor = db.get_db().cursor() - cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, cleanliness, lifestyle, time, days, bio)) + cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, cleanliness, lifestyle, time, days, bio, name)) db.get_db().commit() response = make_response({"message": "Profile updated successfully"}) @@ -162,16 +163,22 @@ def give_feedback(): date = data['Date'] rating = data['ProgressRating'] - query = ''' - INSERT INTO Feedback (Description, Date, ProgressRating) - VALUES ('{description}', '{date}', '{rating}') - ''' + student = st.session_state['first_name'] - current_app.logger.info(query) + db = get_db() + cursor = db.cursor() + cursor.execute('SELECT StudentID, AdvisorID FROM Student WHERE Name = %s', (student,)) + result = cursor.fetchone() - cursor = db.get_db().cursor() - cursor.execute(query) - db.get_db().commit() + advisor_id, student_id = result + + insert_query = ''' + INSERT INTO Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) + VALUES (%s, %s, %s, %s, %s) + ''' + + cursor.execute(insert_query, (description, date, rating, student_id, advisor_id)) + db.commit() response = make_response("Feedback Submitted") response.status_code = 200 diff --git a/app/src/Home.py b/app/src/Home.py index 8c753bf13b..5cd52f4f9c 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -70,7 +70,7 @@ use_container_width=True): st.session_state['authenticated'] = True st.session_state['role'] = 'Student1' - st.session_state['first_name'] = 'Kevin' + st.session_state['first_name'] = 'Kevin Chen' st.switch_page('pages/20_Student_Kevin_Home.py') if st.button('Act as Student - Sarah Lopez', diff --git a/app/src/pages/23_My_Profile.py b/app/src/pages/23_My_Profile.py index ad2ecead02..301659afce 100644 --- a/app/src/pages/23_My_Profile.py +++ b/app/src/pages/23_My_Profile.py @@ -20,7 +20,7 @@ def get_profile(name): st.error(f"Error fetching data: {response.status_code}") return [] -name = 'Kevin Chen' +name = st.session_state['first_name'] student = get_profile(name) df = pd.DataFrame([student]) diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index eabf101967..7c6b63b40e 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -21,6 +21,7 @@ commute_time = st.number_input('Commute Time (minutes)', min_value=10, max_value=70, step=5) commute_days = st.number_input('Number of Commute Days', min_value=1, max_value=5, step=1) bio = st.text_input('Biography') +name = st.session_state['first_name'] url = 'http://api:4000/c/profile' @@ -36,7 +37,8 @@ "Lifestyle" : lifestyle, "CommuteTime": commute_time, "CommuteDays" : commute_days, - "Bio" : bio + "Bio" : bio, + "Name": name } response = requests.put(url, json=data) diff --git a/app/src/pages/25_Advisor_Feedback.py b/app/src/pages/25_Advisor_Feedback.py index 9497e8769e..a2042aaf62 100644 --- a/app/src/pages/25_Advisor_Feedback.py +++ b/app/src/pages/25_Advisor_Feedback.py @@ -13,5 +13,27 @@ url = "http://api:4000/c/feedback" +description = st.text_area("Feedback Description", placeholder="Enter your feedback here") +date = st.date_input("Date") +progress_rating = st.slider("Progress Rating", min_value=1, max_value=5, step=1) +if st.button("Submit Feedback"): + # Prepare data for submission + feedback_data = { + "Description": description, + "Date": date.isoformat(), # Convert to ISO format + "ProgressRating": progress_rating, + } + + try: + # Make a POST request to the backend API + response = requests.post(url, json=feedback_data) + + if response.status_code == 200: + st.success("Feedback submitted successfully!") + else: + st.error(f"Failed to submit feedback: {response.text}") + + except Exception as e: + st.error(f"An error occurred: {str(e)}") \ No newline at end of file From 62e2d0917d7923e853a49a1d2451b0a3652b3989 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 14:59:14 -0500 Subject: [PATCH 223/305] feeback form code --- api/backend/student_kevin/kevin_routes.py | 26 +++++----- app/src/pages/20_Student_Kevin_Home.py | 6 +-- app/src/pages/25_Advisor_Feedback.py | 61 +++++++++++++++-------- 3 files changed, 55 insertions(+), 38 deletions(-) diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index a0a4b2aaee..c4fe247a44 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -162,28 +162,28 @@ def give_feedback(): description = data['Description'] date = data['Date'] rating = data['ProgressRating'] + student_id = data['StudentID'] + advisor_id = data['AdvisorID'] - student = st.session_state['first_name'] - - db = get_db() - cursor = db.cursor() - cursor.execute('SELECT StudentID, AdvisorID FROM Student WHERE Name = %s', (student,)) - result = cursor.fetchone() - - advisor_id, student_id = result - - insert_query = ''' + query = ''' INSERT INTO Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) VALUES (%s, %s, %s, %s, %s) ''' - cursor.execute(insert_query, (description, date, rating, student_id, advisor_id)) - db.commit() + current_app.logger.info(query) + connection = db.get_db() # Get the actual database connection + cursor = connection.cursor() # Get a cursor from the connection + + cursor.execute(query, (description, date, rating, student_id, advisor_id)) + connection.commit() # Commit the transaction - response = make_response("Feedback Submitted") + cursor.close() # Always close the cursor after use + + response = make_response("Successfully added feedback") response.status_code = 200 return response + diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 0937e5173f..1a3db1f823 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -13,19 +13,17 @@ st.write('') st.write('') st.write('### What would you like to do today?') +st.write('') if st.button('View and Edit My Profile', - type='primary', use_container_width=True): st.switch_page('pages/23_My_Profile.py') -if st.button('Access Housing & Transit Search', - type='primary', +if st.button('Access Housing & Transit Search', use_container_width=True): st.switch_page('pages/22_Housing_Carpool.py') if st.button('View Advisor Communications', - type='primary', use_container_width=True): st.switch_page('pages/21_Advisor_Rec.py') diff --git a/app/src/pages/25_Advisor_Feedback.py b/app/src/pages/25_Advisor_Feedback.py index a2042aaf62..823304ec59 100644 --- a/app/src/pages/25_Advisor_Feedback.py +++ b/app/src/pages/25_Advisor_Feedback.py @@ -13,27 +13,46 @@ url = "http://api:4000/c/feedback" -description = st.text_area("Feedback Description", placeholder="Enter your feedback here") date = st.date_input("Date") progress_rating = st.slider("Progress Rating", min_value=1, max_value=5, step=1) +description = st.text_area("Feedback Description", placeholder="Enter your feedback here") - -if st.button("Submit Feedback"): - # Prepare data for submission - feedback_data = { - "Description": description, - "Date": date.isoformat(), # Convert to ISO format - "ProgressRating": progress_rating, - } - - try: - # Make a POST request to the backend API - response = requests.post(url, json=feedback_data) - - if response.status_code == 200: - st.success("Feedback submitted successfully!") - else: - st.error(f"Failed to submit feedback: {response.text}") - - except Exception as e: - st.error(f"An error occurred: {str(e)}") \ No newline at end of file +def get_profile(name): + url = f'http://api:4000/c/profile/{name}' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +name = st.session_state['first_name'] +student = get_profile(name) + +if student and isinstance(student, list): + # Access the first record in the list + record = student[0] + s_id = record.get("StudentID", "Not available") + a_id = record.get("AdvisorID", "Not available") + + if st.button("Submit Feedback"): + # Prepare data for submission + feedback_data = { + "Description": description, + "Date": date.isoformat(), # Convert to ISO format + "ProgressRating": progress_rating, + "StudentID" : s_id, + "AdvisorID" : a_id, + } + + try: + # Make a POST request to the backend API + response = requests.post(url, json=feedback_data) + + if response.status_code == 200: + st.success("Feedback submitted successfully!") + else: + st.error(f"Failed to submit feedback: {response.text}") + + except Exception as e: + st.error(f"An error occurred: {str(e)}") \ No newline at end of file From 6902ab07ddd6247c64d440964451fa8655790f6c Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 15:05:18 -0500 Subject: [PATCH 224/305] testing url --- app/src/pages/02_Ticket_Overview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index 3a6633d099..9a978b1721 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -14,7 +14,7 @@ st.write("### Analyze and export system logs for troubleshooting.") # Backend API Configuration -API_URL = "http://your_backend_url/SystemLog" # Replace with actual backend URL +API_URL = "http://api:4000/c/SystemLog" # Replace with actual backend URL # Fetch Logs from Backend @st.cache_data(show_spinner=True) From 50e9266b780edb54c886b9f5355ee639d9ef2a55 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 15:25:56 -0500 Subject: [PATCH 225/305] updates --- api/backend/students/student_routes.py | 6 ++++-- app/src/pages/21_Advisor_Rec.py | 19 ++++++++++++++++++- app/src/pages/25_Advisor_Feedback.py | 1 + 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index c677b1cb91..733a16600a 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -43,11 +43,13 @@ def get_student_reminders(student_id): @students.route('/students//feedback', methods=['GET']) def get_student_feedback(student_id): + query = ''' - -- Add your SQL query here + SELECT * FROM Feedback + WHERE StudentID = %s ''' cursor = db.get_db().cursor() - cursor.execute(query) + cursor.execute(query, (student_id, )) theData = cursor.fetchall() response = make_response(jsonify(theData)) diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index 7dd5cb5557..6f539e4232 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -20,12 +20,29 @@ def get_profile(name): st.error(f"Error fetching data: {response.status_code}") return [] -name = 'Kevin Chen' +def get_feedback(student_id): + url = f'http://api:4000/api/students/{student_id}/feedback' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +name = st.session_state['first_name'] student = get_profile(name) + if student and isinstance(student, list): record = student[0] reminders = record.get('Reminder') + s_id = record.get('StudentID') + + feedback = get_feedback(s_id) + df = pd.DataFrame(feedback) + st.write(df) + + st.write(f'🔔 You have {reminders} reminders from your advisor') st.write('') diff --git a/app/src/pages/25_Advisor_Feedback.py b/app/src/pages/25_Advisor_Feedback.py index 823304ec59..3b24a168e8 100644 --- a/app/src/pages/25_Advisor_Feedback.py +++ b/app/src/pages/25_Advisor_Feedback.py @@ -51,6 +51,7 @@ def get_profile(name): if response.status_code == 200: st.success("Feedback submitted successfully!") + st.switch_page('pages/21_Advisor_Rec.py') else: st.error(f"Failed to submit feedback: {response.text}") From 15a6bd76839f5d8c4c16339fc4b0c67b20d518c7 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 15:46:40 -0500 Subject: [PATCH 226/305] updatw --- app/src/pages/21_Advisor_Rec.py | 9 ++++----- app/src/pages/25_Advisor_Feedback.py | 1 + app/src/pages/26_Advisor_Housing.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index 6f539e4232..d59dcd7c4f 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -36,16 +36,15 @@ def get_feedback(student_id): if student and isinstance(student, list): record = student[0] reminders = record.get('Reminder') + st.write(f'🔔 You have {reminders} reminders from your advisor') + st.write('') s_id = record.get('StudentID') - feedback = get_feedback(s_id) df = pd.DataFrame(feedback) - st.write(df) + st.write('Past Reports') + st.write(df[['Date', 'Description', 'ProgressRating']]) - st.write(f'🔔 You have {reminders} reminders from your advisor') - -st.write('') st.write('') st.write('') diff --git a/app/src/pages/25_Advisor_Feedback.py b/app/src/pages/25_Advisor_Feedback.py index 3b24a168e8..af082dd20b 100644 --- a/app/src/pages/25_Advisor_Feedback.py +++ b/app/src/pages/25_Advisor_Feedback.py @@ -4,6 +4,7 @@ from modules.nav import SideBarLinks import requests import pandas as pd +from datetime import datetime st.set_page_config(layout = 'wide') diff --git a/app/src/pages/26_Advisor_Housing.py b/app/src/pages/26_Advisor_Housing.py index e736ad0f1c..93f5bcbf01 100644 --- a/app/src/pages/26_Advisor_Housing.py +++ b/app/src/pages/26_Advisor_Housing.py @@ -20,7 +20,7 @@ def get_profile(name): st.error(f"Error fetching data: {response.status_code}") return [] -name = 'Kevin Chen' +name = st.session_state['first_name'] student = get_profile(name) def get_id(communityid): From f92b8de0dcd9cd10929b9935727000080ec8d3ce Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 15:49:54 -0500 Subject: [PATCH 227/305] testing this streamlit page --- app/src/pages/02_Ticket_Overview.py | 78 +++++++++++++++++------------ 1 file changed, 47 insertions(+), 31 deletions(-) diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index 9a978b1721..487b822edf 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -10,57 +10,73 @@ SideBarLinks() # Page Header -st.title("Run System Logs") -st.write("### Analyze and export system logs for troubleshooting.") +st.title("Real-Time App Diagnostics") +st.write("### Monitor system activity and analyze logs in real-time.") -# Backend API Configuration -API_URL = "http://api:4000/c/SystemLog" # Replace with actual backend URL +# Backend API URL +API_URL = "http://api:4000/c/SystemLog" # Replace with your backend API URL -# Fetch Logs from Backend +# Fetch Logs from API @st.cache_data(show_spinner=True) -def fetch_logs(): +def fetch_system_logs(): + """Fetch system logs from the Flask API.""" try: response = requests.get(API_URL) response.raise_for_status() - data = response.json() - # Convert to DataFrame for easier manipulation - df = pd.DataFrame(data, columns=["TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) - return df + logs = response.json() # Assuming the API returns a JSON list + # Convert to a DataFrame for easier handling + logs_df = pd.DataFrame(logs, columns=["TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) + return logs_df except requests.exceptions.RequestException as e: - st.error(f"Error fetching logs: {e}") - return pd.DataFrame() # Return empty DataFrame on error + st.error(f"Failed to fetch system logs: {e}") + return pd.DataFrame() -logs_df = fetch_logs() +# Fetch the logs +logs_df = fetch_system_logs() # Display Logs if not logs_df.empty: st.write("### System Logs") - # Add filters - activity_filter = st.multiselect("Filter by Activity", options=logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) - metric_filter = st.multiselect("Filter by Metric Type", options=logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) + # Add Filters + col1, col2 = st.columns(2) + with col1: + activity_filter = st.multiselect("Filter by Activity", options=logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) + with col2: + metric_filter = st.multiselect("Filter by Metric Type", options=logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) + # Apply Filters filtered_logs = logs_df[ (logs_df["Activity"].isin(activity_filter)) & (logs_df["MetricType"].isin(metric_filter)) ] + # Display Filtered Data st.dataframe(filtered_logs, use_container_width=True) - # Download Logs - if st.button("Export Logs as CSV"): - csv = filtered_logs.to_csv(index=False) - st.download_button( - label="Download Logs", - data=csv, - file_name="filtered_system_logs.csv", - mime="text/csv", - ) + # Metrics Summary + st.write("### Diagnostics Summary") + col1, col2, col3 = st.columns(3) + with col1: + st.metric("Total Logs", len(filtered_logs)) + with col2: + st.metric("High Priority Logs", len(filtered_logs[filtered_logs["MetricType"] == "High"])) + with col3: + st.metric("Unique Activities", filtered_logs["Activity"].nunique()) + + # Download Filtered Logs + st.write("### Export Data") + csv = filtered_logs.to_csv(index=False) + st.download_button( + label="Download Logs as CSV", + data=csv, + file_name="filtered_system_logs.csv", + mime="text/csv", + ) else: - st.write("No logs available at the moment.") + st.warning("No logs available to display.") -# Placeholder for Future Enhancements -st.write("### Future Enhancements") -st.text("- Real-time log updates.") -st.text("- Advanced filtering options.") -st.text("- Integration with alert systems.") +# Footer +st.write("---") +st.write("#### Notes") +st.text("This page refreshes automatically with the latest system logs.") From d75722437b998058f40eea879d3ad6cca7d5672d Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 16:01:29 -0500 Subject: [PATCH 228/305] inputting persona --- api/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/app.py b/api/app.py index c43c670926..638cf85d79 100644 --- a/api/app.py +++ b/api/app.py @@ -19,6 +19,7 @@ # Register blueprints +app.register_blueprint(tech_support_analyst, url_prefix='/api/tech_support_analyst') app.register_blueprint(students, url_prefix='/api/students') app.register_blueprint(advisor, url_prefix='/api/advisor') From 0b391c3014d3ea64a740b45a283b173fd36fe242 Mon Sep 17 00:00:00 2001 From: Pratyusha Chamarthi Date: Wed, 4 Dec 2024 16:57:24 -0500 Subject: [PATCH 229/305] Sarah fixes --- api/backend/rest_entry.py | 2 +- app/src/pages/30_Student_Sarah_Home.py | 65 -------------------------- 2 files changed, 1 insertion(+), 66 deletions(-) delete mode 100644 app/src/pages/30_Student_Sarah_Home.py diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index d68af63fdf..eb4b704198 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -52,7 +52,7 @@ def create_app(): #app.register_blueprint(simple_routes) #app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(kevin, url_prefix='/c') - app.register_blueprint(students, url_prefix='/api') + #app.register_blueprint(students, url_prefix='/api') # Don't forget to return the app object return app diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py deleted file mode 100644 index d450c2c4bc..0000000000 --- a/app/src/pages/30_Student_Sarah_Home.py +++ /dev/null @@ -1,65 +0,0 @@ - -import logging -logger = logging.getLogger(__name__) - -import streamlit as st -from modules.nav import SideBarLinks -import requests - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -<<<<<<< HEAD -#st.session_state["first_name"] = st.text_input("Enter your first name:", "Default Name") -======= ->>>>>>> b7b4fa75cccf25a91b785f0a2f7cfce53b1a8555 -st.title(f"Welcome Student, {st.session_state['first_name']}.") -st.write('') -st.write('') -st.write('### What would you like to do today?') -<<<<<<< HEAD - - - -# View Student List Button -if st.button('View Student List', type='primary', use_container_width=True): - st.switch_page('pages/30_2_View_Student_List.py') - -# Manage Student Profile Button -if st.button('Manage Student Profile', type='primary', use_container_width=True): - st.switch_page('pages/30_1_Manage_Student_Profile.py') - -# Additional Sections for Sarah's Use Case -if st.button('Connect with Community', type='primary', use_container_width=True): - st.switch_page('pages/30_3_Connect_Community.py') - -if st.button('View Events & Workshops', type='primary', use_container_width=True): - st.switch_page('pages/30_4_View_Events.py') - -if st.button('Submit Feedback', type='primary', use_container_width=True): - st.switch_page('pages/30_5_Submit_Feedback.py') - -if st.button('Advisor Recommendations', type='primary', use_container_width=True): - st.switch_page('pages/30_6_Advisor_Recommendations.py') - -# Example for loading data in a page if required -if 'data' not in st.session_state: - st.session_state['data'] = {} # Placeholder for any session-wide data -======= - -if st.button('View Events', - type='primary', - use_container_width=True): - st.switch_page('pages/31_Professional_Events.py') - -if st.button('View Profiles', - type='primary', - use_container_width=True): - st.switch_page('pages/32_Browse_Profiles.py') - -if st.button('View Advisor Feedback', - type='primary', - use_container_width=True): - st.switch_page('pages/33_Advisor_Feedback.py') ->>>>>>> b7b4fa75cccf25a91b785f0a2f7cfce53b1a8555 From a48a9034f2849862c9d77c5031720daf9e2dc28c Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 17:08:46 -0500 Subject: [PATCH 230/305] 222 --- .../co_op_advisor/co_op_advisor_routes.py | 12 ---- api/backend/student_kevin/kevin_routes.py | 7 +- api/backend/students/student_routes.py | 32 +++------ app/src/pages/11_Student_Tasks.py | 2 +- app/src/pages/12_Feedback.py | 70 ++++++++----------- database-files/01_SyncSpace.sql | 10 ++- 6 files changed, 49 insertions(+), 84 deletions(-) diff --git a/api/backend/co_op_advisor/co_op_advisor_routes.py b/api/backend/co_op_advisor/co_op_advisor_routes.py index f334083ea9..6e3e98f0c9 100644 --- a/api/backend/co_op_advisor/co_op_advisor_routes.py +++ b/api/backend/co_op_advisor/co_op_advisor_routes.py @@ -19,19 +19,7 @@ def get_student_reminders(student_id): response.status_code = 200 return response -@advisor.route('/students//feedback', methods=['GET']) -# route for retrieving feedback for specific student -def get_student_feedback(student_id): - query = ''' - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response @advisor.route('/advisor/notifications', methods=['GET']) def get_notifications(): diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index a0a4b2aaee..da274848e2 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -153,6 +153,8 @@ def get_resources(community_id): response.status_code = 200 return response + + # route to provide feedback to advisor @kevin.route('/feedback', methods=['POST']) def give_feedback(): @@ -170,7 +172,8 @@ def give_feedback(): cursor.execute('SELECT StudentID, AdvisorID FROM Student WHERE Name = %s', (student,)) result = cursor.fetchone() - advisor_id, student_id = result + student_id, advisor_id = result + insert_query = ''' INSERT INTO Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) @@ -183,7 +186,7 @@ def give_feedback(): response = make_response("Feedback Submitted") response.status_code = 200 return response - + diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index c677b1cb91..750176d9ba 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -41,36 +41,20 @@ def get_student_reminders(student_id): response.status_code = 200 return response -@students.route('/students//feedback', methods=['GET']) -def get_student_feedback(student_id): - query = ''' - -- Add your SQL query here - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - - - @students.route('/students/feedback', methods=['GET']) def get_all_feedback(): query = ''' - SELECT - s.StudentID, - s.Name as student_name, - f.FeedbackID, - f.Description, - f.Date, - f.ProgressRating, + SELECT + s.Name AS student_name + s.StudentID, + f.Date, + f.FeedbackID, + f.Description, + f.ProgressRating, FROM Feedback f JOIN Student s ON f.StudentID = s.StudentID - JOIN Advisor a ON f.AdvisorID = a.AdvisorID ORDER BY f.Date DESC; ''' cursor = db.get_db().cursor() @@ -78,4 +62,4 @@ def get_all_feedback(): theData = cursor.fetchall() response = make_response(jsonify(theData)) response.status_code = 200 - return response \ No newline at end of file + return response diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index 2e0cc8ce17..baaa907c21 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -11,7 +11,7 @@ SideBarLinks() # API endpoint for tasks -api_url = 'http://localhost:4000/api/advisor' +api_url = 'http://api:4000/api/advisor' # Fetch task data from the API try: diff --git a/app/src/pages/12_Feedback.py b/app/src/pages/12_Feedback.py index 24bc4c56cf..24f1bfb56e 100644 --- a/app/src/pages/12_Feedback.py +++ b/app/src/pages/12_Feedback.py @@ -5,14 +5,13 @@ # Configure Streamlit page st.set_page_config(layout='wide') -st.title("Tasks Dashboard") +st.title("Feedback Dashboard") SideBarLinks() +# API endpoint for feedback +api_url = 'http://api:4000/api/students/feedback' -# API endpoint for tasks -api_url = 'http://localhost:4000/api/students/feedback' # Adjust the URL to match your actual Flask route - -# Fetch task data from the API +# Fetch feedback data from the API try: response = requests.get(api_url) if response.status_code == 200: @@ -20,55 +19,48 @@ data = response.json() if data: + # Convert to DataFrame # Convert to DataFrame df = pd.DataFrame(data) - # Sidebar Filters - st.sidebar.header("Filter Tasks") - student_filter = st.sidebar.text_input("Search by Student Name") - student_id_filter = st.sidebar.text_input("Search by Student ID") - task_status_filter = st.sidebar.text_input("Search by Task Status") + # Ensure the DataFrame is sorted in the same order as the SQL query + df = df.sort_values(by='Date', ascending=False) + + # Top Filters + col1, col2, col3 = st.columns([2, 2, 1]) + with col1: + student_filter = st.text_input("Search by Student Name") + with col2: + advisor_filter = st.text_input("Search by Student ID") + with col3: + min_rating = st.slider("Minimum Progress Rating", 1, 5, 1) # Apply filters if student_filter: df = df[df['student_name'].str.contains(student_filter, case=False, na=False)] - if student_id_filter: - df = df[df['StudentID'].astype(str).str.contains(student_id_filter, case=False, na=False)] - if task_status_filter: - df = df[df['task_status'].str.contains(task_status_filter, case=False, na=False)] + if advisor_filter: + df = df[df['student_id'].astype(str).str.contains(advisor_filter, case=False, na=False)] + df = df[df['ProgressRating'] >= min_rating] - # Reorder columns to match SQL query - column_order = [ - "TaskID", "Description", "Reminder", "DueDate", "Status", - "AdvisorID", "StudentID", "student_name" - ] - df = df[column_order] - - # Display Data - st.subheader(f"Showing {len(df)} Task Entries") - st.dataframe( - df, - use_container_width=True, - hide_index=True - ) + # Display filtered DataFrame + st.dataframe(df) # Detailed View - if st.checkbox("Show Detailed Task View"): + if st.checkbox("Show Detailed Feedback View"): for index, row in df.iterrows(): - with st.expander(f"Task ID: {row['TaskID']}"): + with st.expander(f"Feedback ID: {row['FeedbackID']}"): st.markdown(f"**Student Name:** {row['student_name']}") - st.markdown(f"**Student ID:** {row['StudentID']}") - st.markdown(f"**Task Description:** {row['Description']}") - st.markdown(f"**Reminder Date:** {row['Reminder']}") - st.markdown(f"**Due Date:** {row['DueDate']}") - st.markdown(f"**Task Status:** {row['Status']}") - st.markdown(f"**Advisor ID:** {row['AdvisorID']}") + st.markdown(f"**Student ID:** {row['student_id']}") + st.markdown(f"**Date:** {row['Date']}") + st.markdown(f"**Progress Rating:** {row['ProgressRating']}") + st.markdown(f"**Description:** {row['Description']}") st.markdown("---") else: - st.warning("No task entries found.") + st.warning("No feedback entries found.") else: - st.error(f"Failed to fetch tasks. API returned status code: {response.status_code}") + st.error(f"Failed to fetch feedback. API returned status code: {response.status_code}") except Exception as e: - st.error(f"Error loading tasks: {str(e)}") + st.error(f"Error loading feedback: {str(e)}") + diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index b8aa046ea4..108d383fe9 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -67,7 +67,9 @@ CREATE TABLE IF NOT EXISTS Student ( FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); -/*-- Create table for Events + + + DROP TABLE IF EXISTS Events; CREATE TABLE IF NOT EXISTS Events ( EventID INT AUTO_INCREMENT PRIMARY KEY, @@ -77,7 +79,7 @@ CREATE TABLE IF NOT EXISTS Events ( Description TEXT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); -*/ + -- Create table for Advisor DROP TABLE IF EXISTS Advisor; @@ -159,7 +161,6 @@ CREATE TABLE IF NOT EXISTS SystemHealth ( ); -- NOTE - need to add in data for our personas - -- 1.4 UPDATE Ticket SET Priority = 'Critical' @@ -178,6 +179,3 @@ INSERT INTO Housing (Style, Availability) VALUES ('Apartment', 'Available'); - - - From a3439f3471190db28efde0dfbae300ac61b5ff70 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 17:11:16 -0500 Subject: [PATCH 231/305] debugging --- api/app.py | 1 + api/backend/rest_entry.py | 2 ++ app/src/pages/02_Ticket_Overview.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/app.py b/api/app.py index 638cf85d79..469c66fecc 100644 --- a/api/app.py +++ b/api/app.py @@ -14,6 +14,7 @@ @@ -15,6 +17,7 @@ init_app(app) # Register blueprints +app.register_blueprint(tech_support_analyst, url_prefix='/api') app.register_blueprint(students, url_prefix='/api') app.register_blueprint(advisor, url_prefix='/api') diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 88248af77f..9efd442775 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -1,6 +1,7 @@ from flask import Flask from backend.db_connection import db +from backend.tech_support_analyst.michael_routes import tech_support_analyst from backend.student_kevin.kevin_routes import kevin from backend.students.student_routes import students import os @@ -40,6 +41,7 @@ def create_app(): app.logger.info('current_app(): registering blueprints with Flask app object.') #app.register_blueprint(simple_routes) #app.register_blueprint(customers, url_prefix='/c') + app.register_blueprint(tech_support_analyst, url_prefix='/t') app.register_blueprint(kevin, url_prefix='/c') app.register_blueprint(students, url_prefix='/api') diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index 487b822edf..0eac4aaace 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -14,7 +14,7 @@ st.write("### Monitor system activity and analyze logs in real-time.") # Backend API URL -API_URL = "http://api:4000/c/SystemLog" # Replace with your backend API URL +API_URL = "http://api:4000/t/SystemLog" # Replace with your backend API URL # Fetch Logs from API @st.cache_data(show_spinner=True) From 1a3ec0dc61c3ee9e5628a11c634b72cd677b4448 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 17:12:26 -0500 Subject: [PATCH 232/305] cleaning --- api/backend/rest_entry.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 9efd442775..f68d27fbaf 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -39,8 +39,6 @@ def create_app(): # Register the routes from each Blueprint with the app object # and give a url prefix to each app.logger.info('current_app(): registering blueprints with Flask app object.') - #app.register_blueprint(simple_routes) - #app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(tech_support_analyst, url_prefix='/t') app.register_blueprint(kevin, url_prefix='/c') app.register_blueprint(students, url_prefix='/api') From d7c102f74620a007f7e13c152ad5f2385a594fe9 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 17:19:27 -0500 Subject: [PATCH 233/305] testing my streamlit page --- app/src/pages/02_Ticket_Overview.py | 37 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index 0eac4aaace..daa879740c 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -16,46 +16,45 @@ # Backend API URL API_URL = "http://api:4000/t/SystemLog" # Replace with your backend API URL -# Fetch Logs from API +# Fetch System Logs @st.cache_data(show_spinner=True) def fetch_system_logs(): - """Fetch system logs from the Flask API.""" + """Fetch logs from the Flask API.""" try: response = requests.get(API_URL) - response.raise_for_status() - logs = response.json() # Assuming the API returns a JSON list - # Convert to a DataFrame for easier handling - logs_df = pd.DataFrame(logs, columns=["TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) + response.raise_for_status() # Raise exception for HTTP errors + data = response.json() # Assuming API returns JSON + # Convert to DataFrame for better handling + logs_df = pd.DataFrame(data, columns=["TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) return logs_df except requests.exceptions.RequestException as e: - st.error(f"Failed to fetch system logs: {e}") + st.error(f"Error fetching system logs: {e}") return pd.DataFrame() -# Fetch the logs +# Fetch data logs_df = fetch_system_logs() # Display Logs if not logs_df.empty: st.write("### System Logs") - - # Add Filters + # Interactive Filters col1, col2 = st.columns(2) with col1: - activity_filter = st.multiselect("Filter by Activity", options=logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) + activity_filter = st.multiselect("Filter by Activity", logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) with col2: - metric_filter = st.multiselect("Filter by Metric Type", options=logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) + metric_filter = st.multiselect("Filter by Metric Type", logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) # Apply Filters filtered_logs = logs_df[ - (logs_df["Activity"].isin(activity_filter)) & + (logs_df["Activity"].isin(activity_filter)) & (logs_df["MetricType"].isin(metric_filter)) ] - # Display Filtered Data + # Display Filtered Logs st.dataframe(filtered_logs, use_container_width=True) - # Metrics Summary - st.write("### Diagnostics Summary") + # Summary Metrics + st.write("### Summary Metrics") col1, col2, col3 = st.columns(3) with col1: st.metric("Total Logs", len(filtered_logs)) @@ -66,10 +65,10 @@ def fetch_system_logs(): # Download Filtered Logs st.write("### Export Data") - csv = filtered_logs.to_csv(index=False) + csv_data = filtered_logs.to_csv(index=False) st.download_button( label="Download Logs as CSV", - data=csv, + data=csv_data, file_name="filtered_system_logs.csv", mime="text/csv", ) @@ -79,4 +78,4 @@ def fetch_system_logs(): # Footer st.write("---") st.write("#### Notes") -st.text("This page refreshes automatically with the latest system logs.") +st.text("Data fetched directly from the system logs API in real time.") From 3bc0a0aafeced2edb178cf907f2c0e38b2378309 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 17:34:06 -0500 Subject: [PATCH 234/305] 222 --- api/app.py | 9 +- api/backend/advisor/co_op_advisor_routes.py | 121 +++++++++++++++----- api/backend/rest_entry.py | 3 +- api/backend/students/student_routes.py | 13 ++- app/src/pages/11_Student_Tasks.py | 74 ++++++++++-- app/src/pages/12_Feedback.py | 7 +- 6 files changed, 178 insertions(+), 49 deletions(-) diff --git a/api/app.py b/api/app.py index c43c670926..0f1de5e0b0 100644 --- a/api/app.py +++ b/api/app.py @@ -1,8 +1,9 @@ ''' from flask import Flask from backend.db_connection import init_app -from backend.students.student_routes import students from backend.advisor.co_op_advisor_routes import advisor +from backend.students.student_routes import students + app = Flask(__name__) @@ -14,13 +15,15 @@ @@ -15,6 +17,7 @@ init_app(app) # Register blueprints -app.register_blueprint(students, url_prefix='/api') app.register_blueprint(advisor, url_prefix='/api') +app.register_blueprint(students, url_prefix='/api') + # Register blueprints -app.register_blueprint(students, url_prefix='/api/students') app.register_blueprint(advisor, url_prefix='/api/advisor') +app.register_blueprint(students, url_prefix='/api/students') + if __name__ == '__main__': app.run(host='0.0.0.0', port=4000) diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index 3b989fb77f..fb28a2d917 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -2,52 +2,39 @@ from flask import request from flask import jsonify from flask import make_response +from datetime import datetime +from backend.db_connection import db +advisor = Blueprint('advisor', __name__) -advisor = Blueprint('advisor', __name__) -@advisor.route('/advisor', methods=['GET']) +@advisor.route('/advisor/tasks', methods=['GET']) def get_all_tasks(): query = ''' - SELECT * from Task - limit 10 - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - response = make_response(jsonify(theData)) - response.status_code = 200 - return response + SELECT + t.TaskID, + s.StudentID, + s.Name as student_name, + t.Status as task_status, + t.Description, + t.Reminder, + t.DueDate + FROM Task t + JOIN Student s ON t.AssignedTo = s.StudentID + ORDER BY t.DueDate ASC -@advisor.route('/students//reminders', methods=['GET']) -# route for retrieving recommendation for specific student -def get_student_reminders(student_id): - query = ''' - ''' + ''' cursor = db.get_db().cursor() cursor.execute(query) theData = cursor.fetchall() - response = make_response(jsonify(theData)) response.status_code = 200 return response -@advisor.route('/students//feedback', methods=['GET']) -# route for retrieving feedback for specific student -def get_student_feedback(student_id): - query = ''' - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response @advisor.route('/advisor/notifications', methods=['GET']) def get_notifications(): @@ -73,3 +60,79 @@ def get_notifications(): print(f"Database error: {str(e)}") return jsonify({'error': 'Failed to fetch notifications'}), 500 + + + +@advisor.route('/advisor/tasks/', methods=['PUT']) +def update_task_status(task_id): + try: + # Get the new status from request body + data = request.get_json() + new_status = data.get('status') + + # Validate the status + valid_statuses = ['Pending', 'In Progress', 'Completed', 'Received'] + if new_status not in valid_statuses: + return jsonify({ + 'error': f'Invalid status. Must be one of: {", ".join(valid_statuses)}' + }), 400 + + # Update the task status + query = ''' + UPDATE Task + SET Status = %s, + LastUpdated = %s + WHERE TaskID = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, (new_status, datetime.now(), task_id)) + db.get_db().commit() + + return jsonify({ + 'message': 'Task status updated successfully', + 'task_id': task_id, + 'new_status': new_status + }), 200 + + except Exception as e: + db.get_db().rollback() + return jsonify({'error': str(e)}), 500 + + +@advisor.route('/advisor/tasks//reminder', methods=['PUT']) +def update_task_reminder(task_id): + try: + # Get the new reminder date from request body + data = request.get_json() + new_reminder = data.get('reminder') + + # Validate the reminder date format + try: + # Convert string to datetime object to validate format + reminder_date = datetime.strptime(new_reminder, '%Y-%m-%d') + except ValueError: + return jsonify({ + 'error': 'Invalid date format. Please use YYYY-MM-DD format' + }), 400 + + # Update the task reminder + query = ''' + UPDATE Task + SET Reminder = %s, + LastUpdated = %s + WHERE TaskID = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, (reminder_date, datetime.now(), task_id)) + db.get_db().commit() + + return jsonify({ + 'message': 'Task reminder updated successfully', + 'task_id': task_id, + 'new_reminder': new_reminder + }), 200 + + except Exception as e: + db.get_db().rollback() + return jsonify({'error': str(e)}), 500 + diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 88248af77f..8816d11d36 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -3,6 +3,7 @@ from backend.db_connection import db from backend.student_kevin.kevin_routes import kevin from backend.students.student_routes import students +from backend.advisor.co_op_advisor_routes import advisor import os from dotenv import load_dotenv @@ -42,7 +43,7 @@ def create_app(): #app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(kevin, url_prefix='/c') app.register_blueprint(students, url_prefix='/api') - + app.register_blueprint(advisor, url_prefix='/api') # Don't forget to return the app object return app diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 750176d9ba..088c2aa396 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -46,17 +46,18 @@ def get_student_reminders(student_id): @students.route('/students/feedback', methods=['GET']) def get_all_feedback(): query = ''' - SELECT - s.Name AS student_name +SELECT s.StudentID, - f.Date, + s.Name AS student_name, f.FeedbackID, - f.Description, - f.ProgressRating, + f.Description, + f.Date, + f.ProgressRating + FROM Feedback f JOIN Student s ON f.StudentID = s.StudentID ORDER BY f.Date DESC; - ''' + ''' cursor = db.get_db().cursor() cursor.execute(query) theData = cursor.fetchall() diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index baaa907c21..e6fec66e88 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -2,35 +2,95 @@ import streamlit as st import requests import pandas as pd +from datetime import datetime from modules.nav import SideBarLinks - # Configure Streamlit page st.set_page_config(layout='wide') st.title("All Tasks") SideBarLinks() # API endpoint for tasks -api_url = 'http://api:4000/api/advisor' +api_url = 'http://api:4000/api/advisor/tasks' # Fetch task data from the API try: response = requests.get(api_url) if response.status_code == 200: - # Parse API response JSON data = response.json() - # Check if data is available if data: - # Convert to DataFrame df = pd.DataFrame(data) - # Display the table dynamically + # Sidebar Filters + st.sidebar.header("Filter Tasks") + student_name_filter = st.sidebar.text_input("Search by Student Name") + student_id_filter = st.sidebar.text_input("Search by Student ID") + + # Apply filters + filtered_df = df.copy() + if student_name_filter: + filtered_df = filtered_df[filtered_df['student_name'].str.contains(student_name_filter, case=False, na=False)] + if student_id_filter: + filtered_df = filtered_df[filtered_df['StudentID'].astype(str).str.contains(student_id_filter, na=False)] + + # Display filtered data + st.subheader(f"Showing {len(filtered_df)} Tasks") st.dataframe( - df, + filtered_df, use_container_width=True, hide_index=True ) + + # Task Editor + st.subheader("Edit Task") + col1, col2 = st.columns(2) + + with col1: + task_id = st.selectbox("Select Task ID", options=filtered_df['TaskID'].unique()) + if task_id: + task_row = filtered_df[filtered_df['TaskID'] == task_id].iloc[0] + st.write(f"Current Status: {task_row['task_status']}") + st.write(f"Current Reminder: {task_row['Reminder']}") + + # Status Update + new_status = st.selectbox( + "Update Status", + options=['Pending', 'In Progress', 'Completed', 'Received'], + index=['Pending', 'In Progress', 'Completed', 'Received'].index(task_row['task_status']) + ) + + if st.button("Update Status"): + status_response = requests.put( + f'http://api:4000/api/advisor/tasks/{task_id}', + json={'status': new_status} + ) + if status_response.status_code == 200: + st.success("Status updated successfully!") + st.rerun() + else: + st.error("Failed to update status") + + with col2: + if task_id: + # Reminder Date Update + new_reminder = st.date_input( + "Update Reminder Date", + datetime.strptime(task_row['Reminder'], '%Y-%m-%d').date() + if task_row['Reminder'] else datetime.now().date() + ) + + if st.button("Update Reminder"): + reminder_response = requests.put( + f'http://api:4000/api/advisor/tasks/{task_id}/reminder', + json={'reminder': new_reminder.strftime('%Y-%m-%d')} + ) + if reminder_response.status_code == 200: + st.success("Reminder updated successfully!") + st.rerun() + else: + st.error("Failed to update reminder") + else: st.warning("No tasks available.") else: diff --git a/app/src/pages/12_Feedback.py b/app/src/pages/12_Feedback.py index 24f1bfb56e..66ff76a51d 100644 --- a/app/src/pages/12_Feedback.py +++ b/app/src/pages/12_Feedback.py @@ -48,9 +48,10 @@ # Detailed View if st.checkbox("Show Detailed Feedback View"): for index, row in df.iterrows(): - with st.expander(f"Feedback ID: {row['FeedbackID']}"): - st.markdown(f"**Student Name:** {row['student_name']}") - st.markdown(f"**Student ID:** {row['student_id']}") + + with st.expander(f"**Student Name:** {row['student_name']}"): + st.markdown(f"Feedback ID: {row['FeedbackID']}") + st.markdown(f"**Student ID:** {row['StudentID']}") st.markdown(f"**Date:** {row['Date']}") st.markdown(f"**Progress Rating:** {row['ProgressRating']}") st.markdown(f"**Description:** {row['Description']}") From 146dae1b3ccc73237f367ae2a27211c9ba981e34 Mon Sep 17 00:00:00 2001 From: Pratyusha Chamarthi Date: Wed, 4 Dec 2024 17:41:33 -0500 Subject: [PATCH 235/305] Sarah Changes --- app/src/pages/30_Student_Sarah_Home.py | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 app/src/pages/30_Student_Sarah_Home.py diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py new file mode 100644 index 0000000000..a0aa4e7a6e --- /dev/null +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -0,0 +1,56 @@ + +import logging +logger = logging.getLogger(__name__) + +import streamlit as st +from modules.nav import SideBarLinks +import requests + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +st.title(f"Welcome Student, {st.session_state['first_name']}.") +st.write('') +st.write('') +st.write('### What would you like to do today?') + +# View Student List Button +if st.button('View Student List', type='primary', use_container_width=True): + st.switch_page('pages/30_2_View_Student_List.py') + +# Manage Student Profile Button +if st.button('Manage Student Profile', type='primary', use_container_width=True): + st.switch_page('pages/30_1_Manage_Student_Profile.py') + +# Additional Sections for Sarah's Use Case +if st.button('Connect with Community', type='primary', use_container_width=True): + st.switch_page('pages/30_3_Connect_Community.py') + +if st.button('View Events & Workshops', type='primary', use_container_width=True): + st.switch_page('pages/30_4_View_Events.py') + +if st.button('Submit Feedback', type='primary', use_container_width=True): + st.switch_page('pages/30_5_Submit_Feedback.py') + +if st.button('Advisor Recommendations', type='primary', use_container_width=True): + st.switch_page('pages/30_6_Advisor_Recommendations.py') + +# Example for loading data in a page if required +if 'data' not in st.session_state: + st.session_state['data'] = {} # Placeholder for any session-wide data + +if st.button('View Events', + type='primary', + use_container_width=True): + st.switch_page('pages/31_Professional_Events.py') + +if st.button('View Profiles', + type='primary', + use_container_width=True): + st.switch_page('pages/32_Browse_Profiles.py') + +if st.button('View Advisor Feedback', + type='primary', + use_container_width=True): + st.switch_page('pages/33_Advisor_Feedback.py') From f45c8118a463e1b58163898ddb04245f4df7bcc8 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 17:50:42 -0500 Subject: [PATCH 236/305] upfate --- api/backend/advisor/co_op_advisor_routes.py | 14 ++- api/backend/students/student_routes.py | 83 ++++++++++++++++ app/src/pages/11_Student_Tasks.py | 100 +++++++++++++++----- 3 files changed, 165 insertions(+), 32 deletions(-) diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index fb28a2d917..5e2738a9e7 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -77,15 +77,14 @@ def update_task_status(task_id): 'error': f'Invalid status. Must be one of: {", ".join(valid_statuses)}' }), 400 - # Update the task status + # Update using the correct column name (Status) query = ''' UPDATE Task - SET Status = %s, - LastUpdated = %s + SET Status = %s WHERE TaskID = %s ''' cursor = db.get_db().cursor() - cursor.execute(query, (new_status, datetime.now(), task_id)) + cursor.execute(query, (new_status, task_id)) db.get_db().commit() return jsonify({ @@ -115,15 +114,14 @@ def update_task_reminder(task_id): 'error': 'Invalid date format. Please use YYYY-MM-DD format' }), 400 - # Update the task reminder + # Update using the correct column name (Reminder) query = ''' UPDATE Task - SET Reminder = %s, - LastUpdated = %s + SET Reminder = %s WHERE TaskID = %s ''' cursor = db.get_db().cursor() - cursor.execute(query, (reminder_date, datetime.now(), task_id)) + cursor.execute(query, (reminder_date, task_id)) db.get_db().commit() return jsonify({ diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 088c2aa396..dba133c19f 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -64,3 +64,86 @@ def get_all_feedback(): response = make_response(jsonify(theData)) response.status_code = 200 return response + +@students.route('/students/housing-preferences', methods=['GET']) +def get_student_housing_preferences(): + query = ''' + SELECT + s.StudentID, + s.Name as student_name, + s.HousingStatus, + s.Budget, + s.LeaseDuration, + s.Cleanliness, + s.Lifestyle, + s.CommuteTime, + cc.Name as preferred_community, + s.CommunityID + FROM Student s + LEFT JOIN CityCommunity cc ON s.CommunityID = cc.CommunityID + ORDER BY s.StudentID + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@students.route('/housing/available', methods=['GET']) +def get_available_housing(): + query = ''' + SELECT + h.HousingID, + h.Style, + h.Availability, + cc.Name as community_name, + h.CommunityID + FROM Housing h + LEFT JOIN CityCommunity cc ON h.CommunityID = cc.CommunityID + WHERE h.Availability = 'Available' + ORDER BY h.HousingID + ''' + cursor = db.get_db().cursor() + cursor.execute(query) + theData = cursor.fetchall() + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +@students.route('/housing/match', methods=['PUT']) +def update_housing_match(): + try: + data = request.get_json() + student_id = data.get('student_id') + housing_id = data.get('housing_id') + + # Update student's housing status and community + student_query = ''' + UPDATE Student + SET HousingStatus = 'Assigned', + CommunityID = (SELECT CommunityID FROM Housing WHERE HousingID = %s) + WHERE StudentID = %s + ''' + + # Update housing availability + housing_query = ''' + UPDATE Housing + SET Availability = 'Occupied' + WHERE HousingID = %s + ''' + + cursor = db.get_db().cursor() + cursor.execute(student_query, (housing_id, student_id)) + cursor.execute(housing_query, (housing_id,)) + db.get_db().commit() + + return jsonify({ + 'message': 'Housing match updated successfully', + 'student_id': student_id, + 'housing_id': housing_id + }), 200 + + except Exception as e: + db.get_db().rollback() + return jsonify({'error': str(e)}), 500 diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index e6fec66e88..ac2d29486b 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -4,10 +4,11 @@ import pandas as pd from datetime import datetime from modules.nav import SideBarLinks +import numpy as np # Configure Streamlit page st.set_page_config(layout='wide') -st.title("All Tasks") +st.title("All Student Tasks") SideBarLinks() # API endpoint for tasks @@ -22,10 +23,44 @@ if data: df = pd.DataFrame(data) - # Sidebar Filters - st.sidebar.header("Filter Tasks") - student_name_filter = st.sidebar.text_input("Search by Student Name") - student_id_filter = st.sidebar.text_input("Search by Student ID") + # Define status colors + def style_status(val): + if val == 'Completed': + return 'background-color: #32CD32' # Darker green (Lime Green) + elif val == 'In Progress': + return 'background-color: #98FB98' # Light green + elif val == 'Received': + return 'background-color: #FFB6B6' # Light red + elif val == 'Pending': + return 'background-color: #FFE5B4' # Light yellow/peach + else: + return '' + + # Apply styling to the DataFrame + styled_df = df.style.apply(lambda x: np.where(x == x, '', None)) # Reset styling + styled_df = styled_df.applymap(style_status, subset=['task_status']) + + # Reorder and rename columns to match SQL query + columns_to_display = [ + 'TaskID', + 'StudentID', + 'student_name', + 'task_status', + 'Description', + 'Reminder', + 'DueDate' + ] + + # Ensure all columns exist and are in the right order + df = df[columns_to_display] + + # Filters above table + st.subheader("Filter Tasks") + col1, col2 = st.columns(2) + with col1: + student_name_filter = st.text_input("Search by Student Name") + with col2: + student_id_filter = st.text_input("Search by Student ID") # Apply filters filtered_df = df.copy() @@ -34,25 +69,28 @@ if student_id_filter: filtered_df = filtered_df[filtered_df['StudentID'].astype(str).str.contains(student_id_filter, na=False)] + # Style the filtered DataFrame + styled_filtered_df = filtered_df.style.apply(lambda x: np.where(x == x, '', None)) + styled_filtered_df = styled_filtered_df.applymap(style_status, subset=['task_status']) + # Display filtered data st.subheader(f"Showing {len(filtered_df)} Tasks") st.dataframe( - filtered_df, + styled_filtered_df, use_container_width=True, hide_index=True ) # Task Editor st.subheader("Edit Task") - col1, col2 = st.columns(2) - - with col1: - task_id = st.selectbox("Select Task ID", options=filtered_df['TaskID'].unique()) - if task_id: - task_row = filtered_df[filtered_df['TaskID'] == task_id].iloc[0] - st.write(f"Current Status: {task_row['task_status']}") - st.write(f"Current Reminder: {task_row['Reminder']}") - + if task_id := st.selectbox("Select Task ID", options=filtered_df['TaskID'].unique()): + task_row = filtered_df[filtered_df['TaskID'] == task_id].iloc[0] + st.write(f"Current Status: {task_row['task_status']}") + st.write(f"Current Reminder: {task_row['Reminder']}") + + col1, col2 = st.columns(2) + + with col1: # Status Update new_status = st.selectbox( "Update Status", @@ -63,33 +101,48 @@ if st.button("Update Status"): status_response = requests.put( f'http://api:4000/api/advisor/tasks/{task_id}', - json={'status': new_status} + json={'status': new_status}, + headers={'Content-Type': 'application/json'} ) if status_response.status_code == 200: st.success("Status updated successfully!") st.rerun() else: - st.error("Failed to update status") + st.error(f"Failed to update status: {status_response.text}") + + with col2: + # Parse the reminder date correctly + try: + # First try to parse the date if it's in GMT format + current_reminder = datetime.strptime(task_row['Reminder'], '%a, %d %b %Y %H:%M:%S GMT') + except ValueError: + try: + # Fallback to simple YYYY-MM-DD format + current_reminder = datetime.strptime(task_row['Reminder'], '%Y-%m-%d') + except ValueError: + # If all parsing fails, use current date + current_reminder = datetime.now() - with col2: - if task_id: # Reminder Date Update new_reminder = st.date_input( "Update Reminder Date", - datetime.strptime(task_row['Reminder'], '%Y-%m-%d').date() - if task_row['Reminder'] else datetime.now().date() + current_reminder.date() ) + # Add some vertical space to align with status button + st.write("") + if st.button("Update Reminder"): reminder_response = requests.put( f'http://api:4000/api/advisor/tasks/{task_id}/reminder', - json={'reminder': new_reminder.strftime('%Y-%m-%d')} + json={'reminder': new_reminder.strftime('%Y-%m-%d')}, + headers={'Content-Type': 'application/json'} ) if reminder_response.status_code == 200: st.success("Reminder updated successfully!") st.rerun() else: - st.error("Failed to update reminder") + st.error(f"Failed to update reminder: {reminder_response.text}") else: st.warning("No tasks available.") @@ -99,4 +152,3 @@ st.error(f"Error loading tasks: {str(e)}") - From 5638ba2382a5b5ce4248bcf1a525927fb07fe3b4 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 18:04:54 -0500 Subject: [PATCH 237/305] kevin updates --- api/backend/student_kevin/kevin_routes.py | 2 + api/backend/students/student_routes.py | 25 ++++++++++++ app/src/pages/20_Student_Kevin_Home.py | 8 ++-- app/src/pages/21_Advisor_Rec.py | 46 +++++++++++++++++------ 4 files changed, 65 insertions(+), 16 deletions(-) diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index c4fe247a44..46c8752907 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -182,6 +182,8 @@ def give_feedback(): response = make_response("Successfully added feedback") response.status_code = 200 return response + + diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 733a16600a..bd71db7c32 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -56,7 +56,32 @@ def get_student_feedback(student_id): response.status_code = 200 return response +@students.route('/students//feedback/', methods=['DELETE']) +def del_feedback(feedback_id, student_id): + try: + query = ''' + DELETE FROM Feedback + WHERE StudentID = %s AND FeedbackID = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, (student_id, feedback_id)) + + db.get_db().commit() + if cursor.rowcount == 0: + response = make_response(jsonify({ + "error": "No feedback entry found for the given student ID and feedback ID." + })) + response.status_code = 404 + return response + + response = make_response(jsonify({"message": "Feedback entry deleted successfully."})) + response.status_code = 200 + return response + except Exception as e: + response = make_response(jsonify({"error": str(e)})) + response.status_code = 500 + return response diff --git a/app/src/pages/20_Student_Kevin_Home.py b/app/src/pages/20_Student_Kevin_Home.py index 1a3db1f823..0ea07a6381 100644 --- a/app/src/pages/20_Student_Kevin_Home.py +++ b/app/src/pages/20_Student_Kevin_Home.py @@ -15,17 +15,17 @@ st.write('### What would you like to do today?') st.write('') -if st.button('View and Edit My Profile', +if st.button('View and Edit My Profile', type='primary', use_container_width=True): st.switch_page('pages/23_My_Profile.py') -if st.button('Access Housing & Transit Search', +if st.button('Access Housing & Transit Search', type='primary', use_container_width=True): st.switch_page('pages/22_Housing_Carpool.py') -if st.button('View Advisor Communications', +if st.button('View Advisor Communications', type='primary', use_container_width=True): - st.switch_page('pages/21_Advisor_Rec.py') + st.switch_page('pages/21_Advisor_Rec.py') diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index d59dcd7c4f..ff1529ce87 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -29,23 +29,44 @@ def get_feedback(student_id): st.error(f"Error fetching data: {response.status_code}") return [] +def del_feedback(feedback_id, student_id): + url = f'http://api:4000/api/students/{student_id}/feedback/{feedback_id}' + try: + # Send the DELETE request to the Flask backend + response = requests.delete(url) + + # Check if the request was successful + if response.status_code == 200: + st.success("Feedback deleted successfully!") + else: + st.error(f"Feedback entry does not exist: {response.json().get('message')}") + + except Exception as e: + st.error(f"An error occurred: {str(e)}") + + name = st.session_state['first_name'] student = get_profile(name) +record = student[0] +reminders = record.get('Reminder') +s_id = record.get('StudentID') +feedback = get_feedback(s_id) +df = pd.DataFrame(feedback) -if student and isinstance(student, list): - record = student[0] - reminders = record.get('Reminder') - st.write(f'🔔 You have {reminders} reminders from your advisor') - st.write('') - s_id = record.get('StudentID') - feedback = get_feedback(s_id) - df = pd.DataFrame(feedback) - st.write('Past Reports') - st.write(df[['Date', 'Description', 'ProgressRating']]) - - +st.write(f'🔔 You have {reminders} reminders from your advisor') st.write('') + +with st.expander('Past Reports'): + if df.empty: + st.write("No forms found.") + else: + st.write(df[['FeedbackID', 'Date', 'Description', 'ProgressRating']]) + feedback_id = st.number_input("Enter Feedback ID", min_value=1, step=1) + if st.button("Delete Feedback"): + # Call the delete_feedback function + del_feedback(feedback_id, s_id) + st.write('') if st.button('View Housing Recommendations', use_container_width=True): @@ -53,3 +74,4 @@ def get_feedback(student_id): if st.button('Feedback Form', use_container_width=True): st.switch_page('pages/25_Advisor_Feedback.py') + From 1910a3636a2e3abbc76d23740f80b237c666bd51 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 18:07:53 -0500 Subject: [PATCH 238/305] Update rest_entry.py --- api/backend/rest_entry.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index b3bf8f622f..5445972a59 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -1,18 +1,10 @@ from flask import Flask from backend.db_connection import db -<<<<<<< HEAD -from backend.customers.customer_routes import customers -from backend.products.products_routes import products -from backend.simple.simple_routes import simple_routes from backend.students.student2_routes import student2 - -#from backend.community.community_routes import community -======= from backend.tech_support_analyst.michael_routes import tech_support_analyst ->>>>>>> d7c102f74620a007f7e13c152ad5f2385a594fe9 from backend.student_kevin.kevin_routes import kevin -#from backend.students.student_routes import students +from backend.students.student_routes import students import os from dotenv import load_dotenv @@ -48,16 +40,10 @@ def create_app(): # Register the routes from each Blueprint with the app object # and give a url prefix to each app.logger.info('current_app(): registering blueprints with Flask app object.') - app.register_blueprint(simple_routes) - app.register_blueprint(customers, url_prefix='/c') - app.register_blueprint(products, url_prefix='/p') app.register_blueprint(student2, url_prefix='/s') - - #app.register_blueprint(simple_routes) - #app.register_blueprint(customers, url_prefix='/c') app.register_blueprint(tech_support_analyst, url_prefix='/t') app.register_blueprint(kevin, url_prefix='/c') - #app.register_blueprint(students, url_prefix='/api') + app.register_blueprint(students, url_prefix='/api') # Don't forget to return the app object return app From f770c17c4cf114f800a51881f6eea8cf88962058 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 18:16:43 -0500 Subject: [PATCH 239/305] button --- app/src/pages/21_Advisor_Rec.py | 4 +- app/src/pages/22_Housing_Carpool.py | 137 ++++++++++++++-------------- 2 files changed, 71 insertions(+), 70 deletions(-) diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index ff1529ce87..3f72fa3ee3 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -69,9 +69,9 @@ def del_feedback(feedback_id, student_id): st.write('') -if st.button('View Housing Recommendations', use_container_width=True): +if st.button('View Housing Recommendations', use_container_width=True, type='primary'): st.switch_page('pages/26_Advisor_Housing.py') -if st.button('Feedback Form', use_container_width=True): +if st.button('Feedback Form', use_container_width=True, type='primary'): st.switch_page('pages/25_Advisor_Feedback.py') diff --git a/app/src/pages/22_Housing_Carpool.py b/app/src/pages/22_Housing_Carpool.py index 26046c844e..b91194a2da 100644 --- a/app/src/pages/22_Housing_Carpool.py +++ b/app/src/pages/22_Housing_Carpool.py @@ -81,72 +81,73 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): time_filter = st.sidebar.slider("Travel Time (minutes)", min_value=10, max_value=70, step=5, value=20) # Fetch data based on the selected search type -if communityid: - if search_type == "Housing": - student_profiles = fetch_housing_profiles(communityid, cleanliness_filter, lease_duration_filter, budget_filter) - if student_profiles: - col1, col2 = st.columns(2) - for i, student in enumerate(student_profiles): - # Alternate between the columns - if i % 2 == 0: - with col1: - container=st.container(border=True, height=520) - container.markdown(f"### {student['Name']}") - container.write(f"**Major:** {student['Major']}") - container.write(f"**Company:** {student['Company']}") - container.write(f"**Location:** {student['Location']}") - container.write(f"**Housing Status:** {student['HousingStatus']}") - container.write(f"**Budget:** {student['Budget']}") - container.write(f"**Lease Duration:** {student['LeaseDuration']}") - container.write(f"**Cleanliness:** {student['Cleanliness']}") - container.write(f"**Lifestyle:** {student['Lifestyle']}") - container.write(f"**Bio:** {student['Bio']}") - else: - with col2: - container=st.container(border=True, height=520) - container.markdown(f"### {student['Name']}") - container.write(f"**Major:** {student['Major']}") - container.write(f"**Company:** {student['Company']}") - container.write(f"**Location:** {student['Location']}") - container.write(f"**Housing Status:** {student['HousingStatus']}") - container.write(f"**Budget:** {student['Budget']}") - container.write(f"**Lease Duration:** {student['LeaseDuration']}") - container.write(f"**Cleanliness:** {student['Cleanliness']}") - container.write(f"**Lifestyle:** {student['Lifestyle']}") - container.write(f"**Bio:** {student['Bio']}") - else: - st.write("No profiles found.") +if st.button("Search Profiles"): + if communityid: + if search_type == "Housing": + student_profiles = fetch_housing_profiles(communityid, cleanliness_filter, lease_duration_filter, budget_filter) + if student_profiles: + col1, col2 = st.columns(2) + for i, student in enumerate(student_profiles): + # Alternate between the columns + if i % 2 == 0: + with col1: + container=st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Housing Status:** {student['HousingStatus']}") + container.write(f"**Budget:** {student['Budget']}") + container.write(f"**Lease Duration:** {student['LeaseDuration']}") + container.write(f"**Cleanliness:** {student['Cleanliness']}") + container.write(f"**Lifestyle:** {student['Lifestyle']}") + container.write(f"**Bio:** {student['Bio']}") + else: + with col2: + container=st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Housing Status:** {student['HousingStatus']}") + container.write(f"**Budget:** {student['Budget']}") + container.write(f"**Lease Duration:** {student['LeaseDuration']}") + container.write(f"**Cleanliness:** {student['Cleanliness']}") + container.write(f"**Lifestyle:** {student['Lifestyle']}") + container.write(f"**Bio:** {student['Bio']}") + else: + st.write("No profiles found.") - elif search_type == "Carpool": - student_profiles = fetch_carpool_profiles(communityid, days_filter, time_filter) - if student_profiles: - # Split the profiles into two columns - col1, col2 = st.columns(2) - for i, student in enumerate(student_profiles): - # Alternate between the columns - if i % 2 == 0: - with col1: - #with st.expander(f"{student['Name']}"): - container = st.container(border=True, height=520) - container.markdown(f"### {student['Name']}") - container.write(f"**Major:** {student['Major']}") - container.write(f"**Company:** {student['Company']}") - container.write(f"**Location:** {student['Location']}") - container.write(f"**Carpool Status:** {student['CarpoolStatus']}") - container.write(f"**Travel time:** {student['CommuteTime']}") - container.write(f"**Number of Days Commuting:** {student['CommuteDays']}") - container.write(f"**Bio:** {student['Bio']}") - else: - with col2: - #with st.expander(f"{student['Name']}"): - container = st.container(border=True, height=520) - container.markdown(f"### {student['Name']}") - container.write(f"**Major:** {student['Major']}") - container.write(f"**Company:** {student['Company']}") - container.write(f"**Location:** {student['Location']}") - container.write(f"**Carpool Status:** {student['CarpoolStatus']}") - container.write(f"**Travel time:** {student['CommuteTime']}") - container.write(f"**Number of Days Commuting:** {student['CommuteDays']}") - container.write(f"**Bio:** {student['Bio']}") - else: - st.write("No profiles found.") + elif search_type == "Carpool": + student_profiles = fetch_carpool_profiles(communityid, days_filter, time_filter) + if student_profiles: + # Split the profiles into two columns + col1, col2 = st.columns(2) + for i, student in enumerate(student_profiles): + # Alternate between the columns + if i % 2 == 0: + with col1: + #with st.expander(f"{student['Name']}"): + container = st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Carpool Status:** {student['CarpoolStatus']}") + container.write(f"**Travel time:** {student['CommuteTime']}") + container.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + container.write(f"**Bio:** {student['Bio']}") + else: + with col2: + #with st.expander(f"{student['Name']}"): + container = st.container(border=True, height=520) + container.markdown(f"### {student['Name']}") + container.write(f"**Major:** {student['Major']}") + container.write(f"**Company:** {student['Company']}") + container.write(f"**Location:** {student['Location']}") + container.write(f"**Carpool Status:** {student['CarpoolStatus']}") + container.write(f"**Travel time:** {student['CommuteTime']}") + container.write(f"**Number of Days Commuting:** {student['CommuteDays']}") + container.write(f"**Bio:** {student['Bio']}") + else: + st.write("No profiles found.") From 729f735b7b25d1018848de92ac4d3fbfd293778f Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 18:24:35 -0500 Subject: [PATCH 240/305] re-ordering --- .../tech_support_analyst/michael_routes.py | 21 ++-- app/src/pages/01_Run_System_Logs.py | 107 ++++++++++++------ app/src/pages/02_Ticket_Overview.py | 7 +- 3 files changed, 88 insertions(+), 47 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index c2c214ff2f..06d38556e4 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -12,19 +12,26 @@ @tech_support_analyst.route('/SystemLog', methods=['GET']) def get_SystemLog(): query = ''' - SELECT TicketID, - Timestamp, - Activity, - MetricType, - Privacy, - Security + SELECT LogID, + TicketID, + Timestamp, + Activity, + MetricType, + Privacy, + Security FROM SystemLog ''' cursor = db.get_db().cursor() cursor.execute(query) theData = cursor.fetchall() - response = make_response(jsonify(theData)) + + # Convert the fetched data (list of tuples) to a list of dictionaries + column_names = ["LogID", "TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"] + formatted_data = [dict(zip(column_names, row)) for row in theData] + + # Return the formatted data as JSON + response = make_response(jsonify(formatted_data)) response.status_code = 200 return response diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index 95b65a7571..7b96c553c3 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -3,7 +3,7 @@ import streamlit as st from modules.nav import SideBarLinks import requests -from datetime import datetime +import pandas as pd st.set_page_config(layout = 'wide') @@ -11,45 +11,80 @@ # Page Header st.title("Access System Logs") -st.write("### Analyze and export system logs for troubleshooting.") - -# Log Filters -st.sidebar.header("Filter Logs") -log_level = st.sidebar.selectbox("Log Level", ["INFO", "WARNING", "ERROR", "DEBUG"]) -date_filter = st.sidebar.date_input("Date", datetime.now()) - -# Log Simulation (Replace with actual log fetching) -def fetch_logs(log_level, date_filter): - logs = [ - f"[INFO] {date_filter} - System started successfully.", - f"[WARNING] {date_filter} - Disk usage is at 85%.", - f"[ERROR] {date_filter} - Database connection timeout.", - f"[DEBUG] {date_filter} - Debugging user authentication module.", - ] - return [log for log in logs if log.startswith(f"[{log_level}]")] +st.write("### Monitor system activity and analyze logs in real-time.") + +# Backend API URL +API_URL = "http://api:4000/t/SystemLog" + +# Fetch System Logs +def fetch_system_logs(): + """Fetch logs from the Flask API.""" + try: + response = requests.get(API_URL) + response.raise_for_status() # Raise exception for HTTP errors + + st.write("Raw API Response:", response.text) # Print raw response for debugging + + data = response.json() # Assuming API returns JSON (list of dictionaries) + + if not data: + st.warning("No data returned from the API.") + return pd.DataFrame() # Return an empty DataFrame if no data is returned + + # Convert the list of dictionaries directly into a DataFrame + logs_df = pd.DataFrame(data) # Pandas will automatically handle the keys as column headers + + st.write("Logs DataFrame:", logs_df) # Debug DataFrame + return logs_df + except requests.exceptions.RequestException as e: + st.error(f"Error fetching system logs: {e}") + return pd.DataFrame() # Return empty DataFrame on error -logs = fetch_logs(log_level, date_filter) +# Fetch data +logs_df = fetch_system_logs() # Display Logs -if logs: - st.write(f"### Logs for {log_level} on {date_filter}:") - for log in logs: - st.text(log) -else: - st.write(f"No logs found for {log_level} on {date_filter}.") +if not logs_df.empty: + st.write("### System Logs") + # Interactive Filters + col1, col2 = st.columns(2) + with col1: + activity_filter = st.multiselect("Filter by Activity", logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) + with col2: + metric_filter = st.multiselect("Filter by Metric Type", logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) -# Download Logs -if st.button("Export Logs as File"): - log_file_content = "\n".join(logs) + # Apply Filters + filtered_logs = logs_df[ + (logs_df["Activity"].isin(activity_filter)) & + (logs_df["MetricType"].isin(metric_filter)) + ] + + # Display Filtered Logs + st.dataframe(filtered_logs, use_container_width=True) + + # Summary Metrics + st.write("### Summary Metrics") + col1, col2, col3 = st.columns(3) + with col1: + st.metric("Total Logs", len(filtered_logs)) + with col2: + st.metric("High Priority Logs", len(filtered_logs[filtered_logs["MetricType"] == "High"])) + with col3: + st.metric("Unique Activities", filtered_logs["Activity"].nunique()) + + # Download Filtered Logs + st.write("### Export Data") + csv_data = filtered_logs.to_csv(index=False) st.download_button( - label="Download Logs", - data=log_file_content, - file_name=f"system_logs_{log_level}_{date_filter}.txt", - mime="text/plain", + label="Download Logs as CSV", + data=csv_data, + file_name="filtered_system_logs.csv", + mime="text/csv", ) +else: + st.warning("No logs available to display.") -# Placeholder for Future Enhancements -st.write("### Future Enhancements") -st.text("- Add filtering by user or system module.") -st.text("- Connect to a real logging database.") -st.text("- Real-time log monitoring.") \ No newline at end of file +# Footer +st.write("---") +st.write("#### Notes") +st.text("Data fetched directly from the system logs API in real time.") diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index daa879740c..5dcabccb41 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -14,7 +14,7 @@ st.write("### Monitor system activity and analyze logs in real-time.") # Backend API URL -API_URL = "http://api:4000/t/SystemLog" # Replace with your backend API URL +API_URL = "http://api:4000/t/SystemLog" # Fetch System Logs @st.cache_data(show_spinner=True) @@ -24,12 +24,11 @@ def fetch_system_logs(): response = requests.get(API_URL) response.raise_for_status() # Raise exception for HTTP errors data = response.json() # Assuming API returns JSON - # Convert to DataFrame for better handling - logs_df = pd.DataFrame(data, columns=["TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) + logs_df = pd.DataFrame(data, columns=["LogID", "TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) return logs_df except requests.exceptions.RequestException as e: st.error(f"Error fetching system logs: {e}") - return pd.DataFrame() + return pd.DataFrame() # Return empty DataFrame on error # Fetch data logs_df = fetch_system_logs() From 991c668170834a763ded55dffb19d8399f7997d3 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 18:25:43 -0500 Subject: [PATCH 241/305] 88 --- api/backend/students/student_routes.py | 15 +- app/src/pages/13_Housing.py | 198 +++++++++++++++++++------ 2 files changed, 157 insertions(+), 56 deletions(-) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index dba133c19f..54407e7f9d 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -68,7 +68,7 @@ def get_all_feedback(): @students.route('/students/housing-preferences', methods=['GET']) def get_student_housing_preferences(): query = ''' - SELECT + SELECT s.StudentID, s.Name as student_name, s.HousingStatus, @@ -77,10 +77,8 @@ def get_student_housing_preferences(): s.Cleanliness, s.Lifestyle, s.CommuteTime, - cc.Name as preferred_community, s.CommunityID FROM Student s - LEFT JOIN CityCommunity cc ON s.CommunityID = cc.CommunityID ORDER BY s.StudentID ''' cursor = db.get_db().cursor() @@ -93,15 +91,14 @@ def get_student_housing_preferences(): @students.route('/housing/available', methods=['GET']) def get_available_housing(): query = ''' - SELECT + SELECT h.HousingID, h.Style, h.Availability, - cc.Name as community_name, + cc.Location as community_name, h.CommunityID FROM Housing h LEFT JOIN CityCommunity cc ON h.CommunityID = cc.CommunityID - WHERE h.Availability = 'Available' ORDER BY h.HousingID ''' cursor = db.get_db().cursor() @@ -118,15 +115,15 @@ def update_housing_match(): student_id = data.get('student_id') housing_id = data.get('housing_id') - # Update student's housing status and community + # Update student's housing status to Complete student_query = ''' UPDATE Student - SET HousingStatus = 'Assigned', + SET HousingStatus = 'Complete', CommunityID = (SELECT CommunityID FROM Housing WHERE HousingID = %s) WHERE StudentID = %s ''' - # Update housing availability + # Update housing availability to Occupied housing_query = ''' UPDATE Housing SET Availability = 'Occupied' diff --git a/app/src/pages/13_Housing.py b/app/src/pages/13_Housing.py index be2535c49d..dcd2155e49 100644 --- a/app/src/pages/13_Housing.py +++ b/app/src/pages/13_Housing.py @@ -1,57 +1,161 @@ -import logging -logger = logging.getLogger(__name__) import streamlit as st import pandas as pd -from sklearn import datasets -from sklearn.ensemble import RandomForestClassifier -from streamlit_extras.app_logo import add_logo +import requests +from datetime import datetime from modules.nav import SideBarLinks +# Configure Streamlit page +st.set_page_config(layout='wide') +st.title("Housing Management") SideBarLinks() -st.write(""" -# Simple Iris Flower Prediction App +# API endpoints +preferences_url = 'http://api:4000/api/students/housing-preferences' +housing_url = 'http://api:4000/api/housing/available' +match_url = 'http://api:4000/api/housing/match' -This example is borrowed from [The Data Professor](https://github.com/dataprofessor/streamlit_freecodecamp/tree/main/app_7_classification_iris) - -This app predicts the **Iris flower** type! -""") +try: + # Fetch data + preferences_response = requests.get(preferences_url) + housing_response = requests.get(housing_url) + + if preferences_response.status_code == 200 and housing_response.status_code == 200: + preferences_data = preferences_response.json() + housing_data = housing_response.json() + + # Convert to DataFrames + preferences_df = pd.DataFrame(preferences_data) + housing_df = pd.DataFrame(housing_data) + + # Create two columns for the layout + col1, col2 = st.columns(2) + + with col1: + st.subheader("Student Housing Preferences") + if len(preferences_df) > 0: + # Filters for students + student_name_filter = st.text_input("Search by Student Name") + housing_status_filter = st.multiselect( + "Filter by Housing Status", + options=['Searching for Housing', 'Searching for Roommates', 'Complete'] + ) + + # Apply filters + filtered_preferences = preferences_df.copy() + if student_name_filter: + filtered_preferences = filtered_preferences[ + filtered_preferences['student_name'].str.contains(student_name_filter, case=False, na=False) + ] + if housing_status_filter: + filtered_preferences = filtered_preferences[ + filtered_preferences['HousingStatus'].isin(housing_status_filter) + ] + + # Display filtered students + st.dataframe(filtered_preferences, use_container_width=True) + else: + st.warning("No student preferences data available") + + with col2: + st.subheader("Available Housing") + if len(housing_df) > 0: + # Filters for housing + availability_filter = st.multiselect( + "Filter by Availability", + options=['Available', 'Vacant', 'Pending Approval', 'Occupied'], + default=['Available', 'Vacant'] + ) + + # Apply filters + filtered_housing = housing_df.copy() + if availability_filter: + filtered_housing = filtered_housing[ + filtered_housing['Availability'].isin(availability_filter) + ] + + # Add color styling for availability status + def style_availability(val): + if val == 'Available': + return 'background-color: #90EE90' # Light green + elif val == 'Vacant': + return 'background-color: #98FB98' # Lighter green + elif val == 'Pending Approval': + return 'background-color: #FFE5B4' # Light yellow + elif val == 'Occupied': + return 'background-color: #FFB6B6' # Light red + else: + return '' -st.sidebar.header('User Input Parameters') + # Style the filtered DataFrame + styled_filtered_housing = filtered_housing.style.applymap( + style_availability, + subset=['Availability'] + ) + + # Display filtered housing with styling + st.dataframe(styled_filtered_housing, use_container_width=True) + else: + st.warning("No housing data available") + + if len(preferences_df) > 0 and len(housing_df) > 0: + # Housing Assignment Section + st.subheader("Make Housing Assignment") + col3, col4 = st.columns(2) + + with col3: + searching_students = filtered_preferences[filtered_preferences['HousingStatus'] == 'Searching for Housing'] + if not searching_students.empty: + selected_student = st.selectbox( + "Select Student", + options=searching_students['StudentID'].unique(), + format_func=lambda x: searching_students[searching_students['StudentID'] == x]['student_name'].iloc[0] + ) + + # Display student's preferences + student_pref = searching_students[searching_students['StudentID'] == selected_student].iloc[0] + st.markdown(f"**Budget:** ${student_pref['Budget']}") + st.markdown(f"**Lease Duration:** {student_pref['LeaseDuration']}") + st.markdown(f"**Cleanliness Level:** {student_pref['Cleanliness']}/5") + st.markdown(f"**Lifestyle:** {student_pref['Lifestyle']}") + st.markdown(f"**Commute Time:** {student_pref['CommuteTime']} minutes") + else: + st.warning("No students currently searching for housing") + + with col4: + if not filtered_housing.empty: + selected_housing = st.selectbox( + "Select Housing", + options=filtered_housing['HousingID'].unique(), + format_func=lambda x: f"ID: {x} - {filtered_housing[filtered_housing['HousingID'] == x]['Style'].iloc[0]}" + ) + + # Display housing details + housing_details = filtered_housing[filtered_housing['HousingID'] == selected_housing].iloc[0] + st.markdown(f"**Style:** {housing_details['Style']}") + st.markdown(f"**Availability:** {housing_details['Availability']}") + else: + st.warning("No available housing units") + + if st.button("Assign Housing"): + if 'selected_student' in locals() and 'selected_housing' in locals(): + match_response = requests.put( + match_url, + json={ + 'student_id': int(selected_student), + 'housing_id': int(selected_housing) + } + ) -def user_input_features(): - sepal_length = st.sidebar.slider('Sepal length', 4.3, 7.9, 5.4) - sepal_width = st.sidebar.slider('Sepal width', 2.0, 4.4, 3.4) - petal_length = st.sidebar.slider('Petal length', 1.0, 6.9, 1.3) - petal_width = st.sidebar.slider('Petal width', 0.1, 2.5, 0.2) - data = {'sepal_length': sepal_length, - 'sepal_width': sepal_width, - 'petal_length': petal_length, - 'petal_width': petal_width} - features = pd.DataFrame(data, index=[0]) - return features + + if match_response.status_code == 200: + st.success("Housing assignment successful!") + st.rerun() + else: + st.error(f"Failed to assign housing: {match_response.text}") + else: + st.warning("Please select both a student and a housing unit") + else: + st.error("Failed to fetch data from APIs") -df = user_input_features() - -st.subheader('User Input parameters') -st.write(df) - -iris = datasets.load_iris() -X = iris.data -Y = iris.target - -clf = RandomForestClassifier() -clf.fit(X, Y) - -prediction = clf.predict(df) -prediction_proba = clf.predict_proba(df) - -st.subheader('Class labels and their corresponding index number') -st.write(iris.target_names) - -st.subheader('Prediction') -st.write(iris.target_names[prediction]) -#st.write(prediction) - -st.subheader('Prediction Probability') -st.write(prediction_proba) \ No newline at end of file +except Exception as e: + st.error(f"Error loading data: {str(e)}") \ No newline at end of file From e8d51363aba18d24cf491d3c12d9a6dcc24c31b8 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 18:47:45 -0500 Subject: [PATCH 242/305] Update 02_Ticket_Overview.py --- app/src/pages/02_Ticket_Overview.py | 66 +---------------------------- 1 file changed, 2 insertions(+), 64 deletions(-) diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index 5dcabccb41..eb420ecd69 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -10,71 +10,9 @@ SideBarLinks() # Page Header -st.title("Real-Time App Diagnostics") +st.title("Ticket Overview") st.write("### Monitor system activity and analyze logs in real-time.") -# Backend API URL -API_URL = "http://api:4000/t/SystemLog" +API_URL = "http://api:4000/t/tickets" -# Fetch System Logs -@st.cache_data(show_spinner=True) -def fetch_system_logs(): - """Fetch logs from the Flask API.""" - try: - response = requests.get(API_URL) - response.raise_for_status() # Raise exception for HTTP errors - data = response.json() # Assuming API returns JSON - logs_df = pd.DataFrame(data, columns=["LogID", "TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"]) - return logs_df - except requests.exceptions.RequestException as e: - st.error(f"Error fetching system logs: {e}") - return pd.DataFrame() # Return empty DataFrame on error -# Fetch data -logs_df = fetch_system_logs() - -# Display Logs -if not logs_df.empty: - st.write("### System Logs") - # Interactive Filters - col1, col2 = st.columns(2) - with col1: - activity_filter = st.multiselect("Filter by Activity", logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) - with col2: - metric_filter = st.multiselect("Filter by Metric Type", logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) - - # Apply Filters - filtered_logs = logs_df[ - (logs_df["Activity"].isin(activity_filter)) & - (logs_df["MetricType"].isin(metric_filter)) - ] - - # Display Filtered Logs - st.dataframe(filtered_logs, use_container_width=True) - - # Summary Metrics - st.write("### Summary Metrics") - col1, col2, col3 = st.columns(3) - with col1: - st.metric("Total Logs", len(filtered_logs)) - with col2: - st.metric("High Priority Logs", len(filtered_logs[filtered_logs["MetricType"] == "High"])) - with col3: - st.metric("Unique Activities", filtered_logs["Activity"].nunique()) - - # Download Filtered Logs - st.write("### Export Data") - csv_data = filtered_logs.to_csv(index=False) - st.download_button( - label="Download Logs as CSV", - data=csv_data, - file_name="filtered_system_logs.csv", - mime="text/csv", - ) -else: - st.warning("No logs available to display.") - -# Footer -st.write("---") -st.write("#### Notes") -st.text("Data fetched directly from the system logs API in real time.") From 797ffad2b9eb15b6025ca9811e9dce2ba8493c42 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 18:53:36 -0500 Subject: [PATCH 243/305] 2 --- api/backend/student_kevin/kevin_routes.py | 212 ++++++++++++++++++++-- api/backend/students/student_routes.py | 2 +- app/src/modules/nav.py | 4 - app/src/pages/12_Feedback.py | 17 +- app/src/pages/13_Housing.py | 46 ++++- 5 files changed, 248 insertions(+), 33 deletions(-) diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index bddb0c3874..b2ba7c79f2 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -153,8 +153,6 @@ def get_resources(community_id): response.status_code = 200 return response - - # route to provide feedback to advisor @kevin.route('/feedback', methods=['POST']) def give_feedback(): @@ -167,21 +165,7 @@ def give_feedback(): student_id = data['StudentID'] advisor_id = data['AdvisorID'] -<<<<<<< HEAD - student = st.session_state['first_name'] - - db = get_db() - cursor = db.cursor() - cursor.execute('SELECT StudentID, AdvisorID FROM Student WHERE Name = %s', (student,)) - result = cursor.fetchone() - - student_id, advisor_id = result - - - insert_query = ''' -======= query = ''' ->>>>>>> 1eed14d6d3f5a36b845857ec00d885b4e4efb85a INSERT INTO Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) VALUES (%s, %s, %s, %s, %s) ''' @@ -199,12 +183,202 @@ def give_feedback(): response.status_code = 200 return response -<<<<<<< HEAD -======= ->>>>>>> 1eed14d6d3f5a36b845857ec00d885b4e4efb85a + + + + +from flask import Blueprint +from flask import request +from flask import jsonify +from flask import make_response +from flask import current_app +from backend.db_connection import db + +# Kevin routes + +kevin = Blueprint('kevin', __name__) + +@kevin.route('/community//housing', methods=['GET']) +# Route for retrieving housing for students in the same community +def community_housing(communityid): + cleanliness_filter = request.args.get('cleanliness', type=int) + lease_duration_filter = request.args.get('lease_duration', type=str) + budget_filter = request.args.get('budget', type=int) + + query = ''' + SELECT s.Name, s.Major, s.Company, c.Location, s.HousingStatus, s.Budget, s.LeaseDuration, s.Cleanliness, s.Lifestyle, s.Bio + FROM Student s + JOIN CityCommunity c ON s.CommunityID=c.CommunityID + WHERE c.Location = %s + ''' + + params = [communityid] + + if cleanliness_filter is not None: + query += ' AND s.Cleanliness >= %s' + params.append(cleanliness_filter) + + if lease_duration_filter and lease_duration_filter != "Any": + query += ' AND s.LeaseDuration = %s' + params.append(lease_duration_filter) + + if budget_filter is not None: + query += ' AND s.Budget <= %s' + params.append(budget_filter) + + cursor = db.get_db().cursor() + cursor.execute(query, tuple(params)) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + + +@kevin.route('/community//carpool', methods=['GET']) +def community_carpool(communityid): + time_filter = request.args.get('commute_time', type=int) + days_filter = request.args.get('commute_days', type=int) + + query = ''' + SELECT s.Name, s.Major, s.Company, c.Location, s.CarpoolStatus, s.Budget, s.CommuteTime, s.CommuteDays, s.Bio + FROM Student s + JOIN CityCommunity c ON s.CommunityID=c.CommunityID + WHERE c.Location = %s + ''' + params = [communityid] + + if time_filter is not None: + query += ' AND s.CommuteTime <= %s' + params.append(time_filter) + + if days_filter is not None: + query += ' AND s.CommuteDays <= %s' + params.append(days_filter) + + + cursor = db.get_db().cursor() + cursor.execute(query, tuple(params)) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +# retrieve kevin's profile +@kevin.route('/profile/', methods=['GET']) +def get_profile(name): + query = ''' + SELECT * + FROM Student s + JOIN CityCommunity c + ON s.CommunityID = c.CommunityID + WHERE s.Name = %s + ''' + # Execute the query + cursor = db.get_db().cursor() + cursor.execute(query, (name, )) + theData = cursor.fetchall() + + # Format the response + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + +# kevins profile - update +@kevin.route('/profile', methods=['PUT']) +def update_profile(): + the_data = request.json + current_app.logger.info(the_data) + + company = the_data.get('Company') + location = the_data.get('Location') + housing_status = the_data.get('HousingStatus') + carpool_status = the_data.get('CarpoolStatus') + lease_duration = the_data.get('LeaseDuration') + budget = the_data.get('Budget') + cleanliness = the_data.get('Cleanliness') + lifestyle = the_data.get('Lifestyle') + time = the_data.get('CommuteTime') + days = the_data.get('CommuteDays') + bio = the_data.get('Bio') + name = the_data.get('Name') + + query = ''' + UPDATE Student + SET Company = %s, Location = %s, HousingStatus = %s, + CarpoolStatus = %s, Budget = %s, LeaseDuration = %s, + Cleanliness = %s, Lifestyle=%s, CommuteTime=%s, CommuteDays=%s, Bio = %s + WHERE Name = %s + ''' + + current_app.logger.info(query) + + cursor = db.get_db().cursor() + cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, cleanliness, lifestyle, time, days, bio, name)) + db.get_db().commit() + + response = make_response({"message": "Profile updated successfully"}) + response.status_code = 200 + return response + +# obtain housing resources based on location +@kevin.route('/community//housing-resources', methods=['GET']) +def get_resources(community_id): + query = ''' + SELECT * FROM + CityCommunity c + JOIN Housing h + ON c.CommunityID=h.CommunityID + WHERE c.CommunityID = %s + ''' + # Execute the query + cursor = db.get_db().cursor() + cursor.execute(query, (community_id, )) + theData = cursor.fetchall() + + # Format the response + response = make_response(jsonify(theData)) + response.status_code = 200 + return response + + + +# route to provide feedback to advisor +@kevin.route('/feedback', methods=['POST']) +def give_feedback(): + data = request.json + current_app.logger.info(data) + + description = data['Description'] + date = data['Date'] + rating = data['ProgressRating'] + + student = st.session_state['first_name'] + + db = get_db() + cursor = db.cursor() + cursor.execute('SELECT StudentID, AdvisorID FROM Student WHERE Name = %s', (student,)) + result = cursor.fetchone() + + student_id, advisor_id = result + + + insert_query = ''' + INSERT INTO Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) + VALUES (%s, %s, %s, %s, %s) + ''' + + cursor.execute(insert_query, (description, date, rating, student_id, advisor_id)) + db.commit() + + response = make_response("Feedback Submitted") + response.status_code = 200 + return response + diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index fbc33fa076..a7135233d3 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -137,7 +137,7 @@ def get_available_housing(): h.HousingID, h.Style, h.Availability, - cc.Location as community_name, + cc.Location as Location, h.CommunityID FROM Housing h LEFT JOIN CityCommunity cc ON h.CommunityID = cc.CommunityID diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 2d4f2c4223..ac10dfc2ce 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -10,8 +10,6 @@ def HomeNav(): st.sidebar.page_link("Home.py", label="Home", icon="🏠") -def AboutPageNav(): - st.sidebar.page_link("pages/50_About.py", label="About", icon="🧠") #### ------------------------ Role of Technical Support Analyst ------------------------ @@ -95,8 +93,6 @@ def SideBarLinks(show_home=False): if st.session_state["role"] == "Student2": SarahPageNav() - # Always show the About page at the bottom of the list of links - AboutPageNav() if st.session_state["authenticated"]: # Always show a logout button if there is a logged in user diff --git a/app/src/pages/12_Feedback.py b/app/src/pages/12_Feedback.py index 66ff76a51d..7e9c3afb28 100644 --- a/app/src/pages/12_Feedback.py +++ b/app/src/pages/12_Feedback.py @@ -19,10 +19,23 @@ data = response.json() if data: - # Convert to DataFrame # Convert to DataFrame df = pd.DataFrame(data) - + + + # Reorder columns to match SQL query + columns_to_display = [ + 'StudentID', + 'student_name', + 'FeedbackID', + 'Description', + 'Date', + 'ProgressRating' + ] + + # Ensure all columns exist and are in the right order + df = df[columns_to_display] + # Ensure the DataFrame is sorted in the same order as the SQL query df = df.sort_values(by='Date', ascending=False) diff --git a/app/src/pages/13_Housing.py b/app/src/pages/13_Housing.py index 272efc1ba8..7cbb25ca11 100644 --- a/app/src/pages/13_Housing.py +++ b/app/src/pages/13_Housing.py @@ -27,18 +27,46 @@ preferences_df = pd.DataFrame(preferences_data) housing_df = pd.DataFrame(housing_data) + # Reorder columns for preferences table to match SQL + preferences_columns = [ + 'StudentID', + 'student_name', + 'HousingStatus', + 'Budget', + 'LeaseDuration', + 'Cleanliness', + 'Lifestyle', + 'CommuteTime', + ] + + + # Reorder columns for housing table to match SQL + housing_columns = [ + 'HousingID', + 'Style', + 'Availability', + 'Location', + ] + + # Ensure all columns exist and are in the right order + preferences_df = preferences_df[preferences_columns] + housing_df = housing_df[housing_columns] + # Create two columns for the layout col1, col2 = st.columns(2) with col1: st.subheader("Student Housing Preferences") if len(preferences_df) > 0: - # Filters for students - student_name_filter = st.text_input("Search by Student Name") - housing_status_filter = st.multiselect( - "Filter by Housing Status", - options=['Searching for Housing', 'Searching for Roommates', 'Complete'] - ) + # Put filters in two columns + filter_col1, filter_col2 = st.columns(2) + with filter_col1: + student_name_filter = st.text_input("Search by Student Name") + with filter_col2: + housing_status_filter = st.multiselect( + "Filter by Housing Status", + options=['Searching for Housing', 'Searching for Roommates', 'Complete'] + ) # Apply filters filtered_preferences = preferences_df.copy() @@ -59,11 +87,15 @@ with col2: st.subheader("Available Housing") if len(housing_df) > 0: + # Add some vertical space to align with left table + st.write("") + st.write("") + # Filters for housing availability_filter = st.multiselect( "Filter by Availability", options=['Available', 'Vacant', 'Pending Approval', 'Occupied'], - default=['Vacant'] + default=['Available', 'Vacant'] ) # Apply filters From ea46da405d9eea6102b3b2293532de156545c2d4 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Wed, 4 Dec 2024 19:08:55 -0500 Subject: [PATCH 244/305] dddd --- api/backend/advisor/co_op_advisor_routes.py | 84 ++++++++++++ app/src/pages/10_Co-op_Advisor_Home.py | 11 +- app/src/pages/11_Student_Tasks.py | 3 +- app/src/pages/14_Create_Event.py | 136 ++++++++++++++++++++ 4 files changed, 227 insertions(+), 7 deletions(-) create mode 100644 app/src/pages/14_Create_Event.py diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index 5e2738a9e7..7b688e86cb 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -134,3 +134,87 @@ def update_task_reminder(task_id): db.get_db().rollback() return jsonify({'error': str(e)}), 500 + +@advisor.route('/advisor/events', methods=['POST']) +def create_event(): + try: + data = request.get_json() + + query = ''' + INSERT INTO Events ( + CommunityID, + Date, + Name, + Description + ) VALUES (%s, %s, %s, %s) + ''' + + cursor = db.get_db().cursor() + cursor.execute(query, ( + data.get('community_id'), + data.get('date'), + data.get('name'), + data.get('description') + )) + db.get_db().commit() + + return jsonify({ + 'message': 'Event created successfully' + }), 201 + + except Exception as e: + db.get_db().rollback() + return jsonify({'error': str(e)}), 500 + +@advisor.route('/advisor/events/', methods=['PUT']) +def update_event(event_id): + try: + data = request.get_json() + + query = ''' + UPDATE Events + SET CommunityID = %s, + Date = %s, + Name = %s, + Description = %s + WHERE EventID = %s + ''' + + cursor = db.get_db().cursor() + cursor.execute(query, ( + data.get('community_id'), + data.get('date'), + data.get('name'), + data.get('description'), + event_id + )) + db.get_db().commit() + + return jsonify({ + 'message': 'Event updated successfully' + }), 200 + + except Exception as e: + db.get_db().rollback() + return jsonify({'error': str(e)}), 500 + +@advisor.route('/advisor/events/', methods=['DELETE']) +def delete_event(event_id): + try: + query = ''' + DELETE FROM Event + WHERE EventID = %s + ''' + + cursor = db.get_db().cursor() + cursor.execute(query, (event_id,)) + db.get_db().commit() + + return jsonify({ + 'message': 'Event deleted successfully' + }), 200 + + except Exception as e: + db.get_db().rollback() + return jsonify({'error': str(e)}), 500 + diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 1e8d05cc61..8a6a8a26ab 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -23,20 +23,21 @@ col1, col2, col3, col4 = st.columns([1, 1, 1, 1]) with col1: - if st.button("📝 Student_tasks\n Student Tasks", key="notification_btn"): + if st.button("📝 Student Tasks", key="notification_btn"): st.switch_page("pages/11_Student_Tasks.py") with col2: - if st.button("🧐 FEEDBACK\n Student Feedback", key="forms_btn"): + if st.button("🧐 Student Feedback", key="forms_btn"): st.switch_page("pages/12_Feedback.py") with col3: - if st.button("🏠 HOUSING\n Students Waiting", key="housing_btn"): + if st.button("🏠 HOUSING\n...Students Waiting", key="housing_btn"): st.switch_page("pages/13_Housing.py") with col4: - if st.button("➕ CREATE NEW\nCase", key="create_btn"): - st.switch_page("pages/14_Create_Case.py") + if st.button("➕ CREATE NEW\nEvent", key="create_btn"): + st.switch_page("pages/14_Create_Event.py") + # Load and display student data try: diff --git a/app/src/pages/11_Student_Tasks.py b/app/src/pages/11_Student_Tasks.py index ac2d29486b..1cdbd8cddf 100644 --- a/app/src/pages/11_Student_Tasks.py +++ b/app/src/pages/11_Student_Tasks.py @@ -129,8 +129,7 @@ def style_status(val): current_reminder.date() ) - # Add some vertical space to align with status button - st.write("") + if st.button("Update Reminder"): reminder_response = requests.put( diff --git a/app/src/pages/14_Create_Event.py b/app/src/pages/14_Create_Event.py new file mode 100644 index 0000000000..400f59b9c5 --- /dev/null +++ b/app/src/pages/14_Create_Event.py @@ -0,0 +1,136 @@ +import streamlit as st +import requests +from datetime import datetime + +# Configure Streamlit page +st.set_page_config(layout='wide') +st.title("Event Management") + +# API endpoints +create_url = 'http://api:4000/api/advisor/events' +update_url = 'http://api:4000/api/advisor/events/' +delete_url = 'http://api:4000/api/advisor/events/' + +def create_new_event(): + st.subheader("Create New Event") + + # Event form + with st.form("event_form"): + name = st.text_input("Event Name") + description = st.text_area("Description") + date = st.date_input("Date") + community_id = st.number_input("Community ID", min_value=1, step=1) + + # Submit button + submitted = st.form_submit_button("Create Event") + + if submitted: + try: + response = requests.post( + create_url, + json={ + 'name': name, + 'description': description, + 'date': date.strftime('%Y-%m-%d'), + 'community_id': community_id + } + ) + + if response.status_code == 201: + # Success message and toast notification + st.success("Event created successfully!") + st.toast("New event created: " + name, icon="✅") + # Wait a moment to show the notification + st.balloons() + # Redirect after a brief pause + st.query_params["page"] = "10_Events" + st.rerun() + else: + st.error("Failed to create event") + st.toast("Failed to create event", icon="❌") + + except Exception as e: + st.error(f"Error: {str(e)}") + st.toast("Error creating event", icon="⚠️") + +def update_event(event_id): + st.subheader("Update Event") + + # Fetch current event details + response = requests.get(f'http://api:4000/api/advisor/events/{event_id}') + if response.status_code == 200: + event_data = response.json() + + # Event update form + with st.form("update_event_form"): + name = st.text_input("Event Name", value=event_data['Name']) + description = st.text_area("Description", value=event_data['Description']) + date = st.date_input("Date", value=datetime.strptime(event_data['Date'], '%Y-%m-%d')) + community_id = st.number_input("Community ID", + value=event_data['CommunityID'], + min_value=1, + step=1) + + # Submit button + submitted = st.form_submit_button("Update Event") + + if submitted: + try: + response = requests.put( + update_url + str(event_id), + json={ + 'name': name, + 'description': description, + 'date': date.strftime('%Y-%m-%d'), + 'community_id': community_id + } + ) + + if response.status_code == 200: + st.success("Event updated successfully!") + st.toast("Event updated: " + name, icon="✅") + st.query_params["page"] = "10_Events" + st.rerun() + else: + st.error("Failed to update event") + st.toast("Failed to update event", icon="❌") + + except Exception as e: + st.error(f"Error: {str(e)}") + st.toast("Error updating event", icon="⚠️") + +def delete_event(event_id): + with st.form("delete_event_form"): + st.write("Are you sure you want to delete this event?") + submitted = st.form_submit_button("Delete Event") + + if submitted: + try: + response = requests.delete(delete_url + str(event_id)) + + if response.status_code == 200: + st.success("Event deleted successfully!") + st.toast("Event deleted successfully", icon="✅") + st.query_params["page"] = "10_Events" + st.rerun() + else: + st.error("Failed to delete event") + st.toast("Failed to delete event", icon="❌") + + except Exception as e: + st.error(f"Error: {str(e)}") + st.toast("Error deleting event", icon="⚠️") + +# Main page logic +event_id = st.query_params.get("event_id") + +if event_id: + # Show update/delete interface + col1, col2 = st.columns(2) + with col1: + update_event(event_id) + with col2: + delete_event(event_id) +else: + # Show create interface + create_new_event() \ No newline at end of file From 21baa5f3080774b98d6ad56efef5bc66f6fd8145 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 19:34:23 -0500 Subject: [PATCH 245/305] tickets overview updares --- .../tech_support_analyst/michael_routes.py | 20 ++++---- app/src/pages/02_Ticket_Overview.py | 49 +++++++++++++++++-- 2 files changed, 55 insertions(+), 14 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 06d38556e4..fe37a87e8b 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -3,6 +3,7 @@ from flask import jsonify from flask import make_response from flask import current_app +from datetime import datetime from backend.db_connection import db @@ -64,7 +65,7 @@ def get_tickets(): Priority, ReceivedDate, ResolvedDate - FROM ticket + FROM Ticket ''' cursor = db.get_db().cursor() @@ -84,20 +85,19 @@ def add_new_tickets(): current_app.logger.info(the_data) # Extracting the variables - ticket_id = the_data['TicketID'] - timestamp = the_data['Timestamp'] - activity = the_data['Activity'] - metric_type = the_data['MetricType'] - privacy = the_data['Privacy'] - security = the_data['Security'] + user_id = 1 + issue = the_data['IssueType'] + status = the_data['Status'] + priority = the_data['Priority'] + received = the_data['ReceivedDate'] + resolved = the_data.get('ResolvedDate', None) query = ''' - INSERT INTO tickets (TicketID, Timestamp, Activity, MetricType, Privacy, Security) + INSERT INTO Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedDate) VALUES (%s, %s, %s, %s, %s, %s) ''' - data = (ticket_id, timestamp, activity, metric_type, privacy, security) + data = (user_id, issue, status, priority, received, resolved) - # Executing and committing the insert statement cursor = db.get_db().cursor() cursor.execute(query, data) db.get_db().commit() diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index eb420ecd69..ce821c3704 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -9,10 +9,51 @@ SideBarLinks() -# Page Header -st.title("Ticket Overview") -st.write("### Monitor system activity and analyze logs in real-time.") +url = "http://api:4000/t/tickets" -API_URL = "http://api:4000/t/tickets" +st.title("Ticket Management System") + +### DISPLAYING TICKET DATA IN DF +try: + response = requests.get(url) + if response.status_code == 200: + tickets_data = response.json() + df = pd.DataFrame(tickets_data, columns=[ + "TicketID", "IssueType", + "Status", "Priority", "ReceivedDate", + "ResolvedDate" + ]) + with st.expander("Ticket Data"): + st.dataframe(df) + else: + st.error(f"Error: {response.status_code} - {response.reason}") +except Exception as e: + st.error(f"An error occurred: {str(e)}") + +#### CREATING NEW TICKET +st.title("Create a New Ticket") +issue = st.text_input("IssueType", placeholder="Describe the activity") +priority = st.selectbox("Priority", ["High", "Medium", "Low"]) +status = st.selectbox("Status", ['Open', 'Completed', 'Pending', 'Cancelled']) +received = st.date_input("Date Created") +resolved = st.date_input("Date Resolved (optional)") + +if st.button("Submit Ticket"): + # Prepare data payload for the API request + payload = { + "IssueType": issue, + "Status": status, + "Priority": priority, + "ReceivedDate": received.isoformat(), # Format the date as string + "ResolvedDate": resolved.isoformat() if resolved else None, # Format if provided, else None + } + + # Sending POST request to Flask backend + response = requests.post(url, json=payload) + + if response.status_code == 200: + st.success("Ticket successfully created!") + else: + st.error(f"Failed to create ticket. Error: {response.text}") From 723b7852cddca7918545212ef0cf4059f81e31cc Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 19:38:43 -0500 Subject: [PATCH 246/305] Update 02_Ticket_Overview.py --- app/src/pages/02_Ticket_Overview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index ce821c3704..c2486cbf67 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -32,7 +32,7 @@ #### CREATING NEW TICKET st.title("Create a New Ticket") -issue = st.text_input("IssueType", placeholder="Describe the activity") +issue = st.text_input("Issue Type", placeholder="Describe the activity") priority = st.selectbox("Priority", ["High", "Medium", "Low"]) status = st.selectbox("Status", ['Open', 'Completed', 'Pending', 'Cancelled']) received = st.date_input("Date Created") From 79fa28afd502af5f8016005e09561a6cd6f58200 Mon Sep 17 00:00:00 2001 From: yupark04 <110935773+yupark04@users.noreply.github.com> Date: Wed, 4 Dec 2024 20:00:07 -0500 Subject: [PATCH 247/305] debugging --- api/backend/students/student_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index bd71db7c32..7773300286 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -94,7 +94,7 @@ def get_all_feedback(): f.FeedbackID, f.Description, f.Date, - f.ProgressRating, + f.ProgressRating FROM Feedback f JOIN Student s ON f.StudentID = s.StudentID JOIN Advisor a ON f.AdvisorID = a.AdvisorID From d6721561909998caa47154add4624f3709b82d57 Mon Sep 17 00:00:00 2001 From: yupark04 <110935773+yupark04@users.noreply.github.com> Date: Wed, 4 Dec 2024 20:09:28 -0500 Subject: [PATCH 248/305] feedback_id --- api/backend/students/student_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 7773300286..992aec901c 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -57,7 +57,7 @@ def get_student_feedback(student_id): return response @students.route('/students//feedback/', methods=['DELETE']) -def del_feedback(feedback_id, student_id): +def del_feedback(student_id, feedback_id): try: query = ''' DELETE FROM Feedback From 13ccab1fb8b6ab4bf306201088b230da99ba6efb Mon Sep 17 00:00:00 2001 From: yupark04 <110935773+yupark04@users.noreply.github.com> Date: Wed, 4 Dec 2024 20:09:28 -0500 Subject: [PATCH 249/305] Misordered Function Arguments --- api/backend/students/student_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 7773300286..992aec901c 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -57,7 +57,7 @@ def get_student_feedback(student_id): return response @students.route('/students//feedback/', methods=['DELETE']) -def del_feedback(feedback_id, student_id): +def del_feedback(student_id, feedback_id): try: query = ''' DELETE FROM Feedback From 927817b57133ba31efe895b29afb3eb9a31691f1 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 20:23:27 -0500 Subject: [PATCH 250/305] ticket overview --- .../tech_support_analyst/michael_routes.py | 69 +++++++----- app/src/pages/02_Ticket_Overview.py | 106 +++++++++++++----- 2 files changed, 121 insertions(+), 54 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index fe37a87e8b..09c25eeb04 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -111,32 +111,24 @@ def add_new_tickets(): @tech_support_analyst.route('/tickets', methods = ['PUT']) def update_tickets(): current_app.logger.info('PUT /tickets route') - ticket_info = request.json - ticket_id = ticket_info['TicketID'] - timestamp = ticket_info.get('Timestamp') - activity = ticket_info.get('Activity') - metric_type = ticket_info.get('MetricType') - privacy = ticket_info.get('Privacy') - security = ticket_info.get('Security') + the_data = request.json + ticket_id = the_data['TicketID'] + status = the_data['Status'] + priority = the_data['Priority'] + resolved = the_data['ResolvedDate'] # Build the SQL query update_fields = [] params = [] - if timestamp: - update_fields.append("Timestamp = %s") - params.append(timestamp) - if activity: - update_fields.append("Activity = %s") - params.append(activity) - if metric_type: - update_fields.append("MetricType = %s") - params.append(metric_type) - if privacy: - update_fields.append("Privacy = %s") - params.append(privacy) - if security: - update_fields.append("Security = %s") - params.append(security) + if status: + update_fields.append("Status = %s") + params.append(status) + if priority: + update_fields.append("Priority = %s") + params.append(priority) + if resolved: + update_fields.append("ResolvedDate = %s") + params.append(resolved) if not update_fields: return 'No valid fields to update', 400 @@ -145,7 +137,7 @@ def update_tickets(): params.append(ticket_id) # Prepare the SQL query - query = f'UPDATE tickets SET {", ".join(update_fields)} WHERE TicketID = %s' + query = f'UPDATE Ticket SET {", ".join(update_fields)} WHERE TicketID = %s' # Execute the query cursor = db.get_db().cursor() @@ -161,9 +153,28 @@ def update_tickets(): # Archive completed tickets @tech_support_analyst.route('/tickets/', methods=['DELETE']) def archive_ticket(ticket_id): - ticket = TicketModel.query.filter_by(id=ticket_id, status="completed").first() - if not ticket: - return {"error": "Ticket not found or not completed"}, 404 - db.session.delete(ticket) - db.session.commit() - return {"message": "Ticket archived successfully"}, 200 \ No newline at end of file + try: + query = ''' + DELETE FROM Ticket WHERE TicketID = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, ticket_id) + db.get_db().commit() + + if cursor.rowcount == 0: + response = make_response(jsonify({ + "error": "No feedback entry found for the given student ID and feedback ID." + })) + response.status_code = 404 + return response + + response = make_response(jsonify({"message": "Feedback entry deleted successfully."})) + response.status_code = 200 + return response + except Exception as e: + response = make_response(jsonify({"error": str(e)})) + response.status_code = 500 + return response + + + diff --git a/app/src/pages/02_Ticket_Overview.py b/app/src/pages/02_Ticket_Overview.py index c2486cbf67..d6b374f190 100644 --- a/app/src/pages/02_Ticket_Overview.py +++ b/app/src/pages/02_Ticket_Overview.py @@ -23,37 +23,93 @@ "Status", "Priority", "ReceivedDate", "ResolvedDate" ]) - with st.expander("Ticket Data"): - st.dataframe(df) + st.dataframe(df) else: st.error(f"Error: {response.status_code} - {response.reason}") except Exception as e: st.error(f"An error occurred: {str(e)}") #### CREATING NEW TICKET -st.title("Create a New Ticket") -issue = st.text_input("Issue Type", placeholder="Describe the activity") -priority = st.selectbox("Priority", ["High", "Medium", "Low"]) -status = st.selectbox("Status", ['Open', 'Completed', 'Pending', 'Cancelled']) -received = st.date_input("Date Created") -resolved = st.date_input("Date Resolved (optional)") - -if st.button("Submit Ticket"): - # Prepare data payload for the API request - payload = { - "IssueType": issue, - "Status": status, - "Priority": priority, - "ReceivedDate": received.isoformat(), # Format the date as string - "ResolvedDate": resolved.isoformat() if resolved else None, # Format if provided, else None - } - - # Sending POST request to Flask backend - response = requests.post(url, json=payload) +st.title("Create a New Tickets") +with st.expander('Create Ticket'): + issue = st.text_input("Issue Type", placeholder="Describe the activity") + priority = st.selectbox("Priority", ["High", "Medium", "Low"]) + status = st.selectbox("Status", ['Open', 'Completed', 'Pending', 'Cancelled']) + received = st.date_input("Date Created") + resolved = st.date_input("Date Resolved (optional)", value=None) - if response.status_code == 200: - st.success("Ticket successfully created!") - else: - st.error(f"Failed to create ticket. Error: {response.text}") + if st.button("Submit Ticket"): + # Prepare data payload for the API request + payload = { + "IssueType": issue, + "Status": status, + "Priority": priority, + "ReceivedDate": received.isoformat(), # Format the date as string + "ResolvedDate": resolved.isoformat() if resolved else None, # Format if provided, else None + } + + # Sending POST request to Flask backend + response = requests.post(url, json=payload) + + if response.status_code == 200: + st.success("Ticket successfully created!") + else: + st.error(f"Failed to create ticket. Error: {response.text}") + +### UPDATING TICKET + +st.title("Update Tickets") + +with st.expander("Update Ticket"): + ticket_id= st.text_input("Ticket ID", placeholder="Enter Ticket ID") + status = st.selectbox("Status", ["open", "pending", "completed", "cancelled"]) + priority = st.selectbox("Priority", ["Low", "Medium", "High"]) + resolved_date = st.date_input("Resolved Date", value=None) + + if st.button("Update Ticket"): + # Check if ticket_id is provided + if ticket_id: + # Prepare data payload for the API request + payload = { + "IssueType": issue, + "Status": status, + "Priority": priority, + "ResolvedDate": resolved_date.isoformat() if resolved_date else None, + "TicketID" : ticket_id + } + + # Sending PUT request to Flask backend + response = requests.put(f"http://api:4000/t/tickets", json=payload) + + if response.status_code == 200: + st.success("Ticket updated successfully!") + elif response.status_code == 404: + st.error("No ticket found with the given Ticket ID.") + else: + st.error(f"Failed to update ticket. Error: {response.text}") + else: + st.error("Please enter a Ticket ID.") + +### DELETING TICKET +st.title("Archive Tickets") + +with st.expander('Archive Ticket'): + ticket_id = st.text_input('Enter Ticket ID to Archive') + + def delete_ticket(ticket_id): + url = f'http://api:4000/t/tickets/{ticket_id}' # Replace with your actual backend URL + response = requests.delete(url) + + if response.status_code == 200: + st.success("Ticket archived successfully") + else: + st.error(response.json().get("error", "An error occurred")) + + # Delete button + if st.button("Archive Ticket"): + if ticket_id: + delete_ticket(ticket_id) + else: + st.error("Please enter a valid Ticket ID") From df3bd2248a014afd6b0b1948aeb4a94cff8ba589 Mon Sep 17 00:00:00 2001 From: Pratyusha Chamarthi Date: Wed, 4 Dec 2024 20:27:45 -0500 Subject: [PATCH 251/305] sql fix --- database-files/01_SyncSpace.sql | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index 448c004616..9879aee964 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -174,15 +174,10 @@ WHERE TaskID = 5; -- 4.3 -<<<<<<< HEAD:database-files/SyncSpace.sql INSERT INTO Housing (Style, Availability, Location) VALUES ('Apartment', 'Available', 'New York City'); -======= + INSERT INTO Housing (Style, Availability) VALUES ('Apartment', 'Available'); - - ->>>>>>> b7b4fa75cccf25a91b785f0a2f7cfce53b1a8555:database-files/01_SyncSpace.sql - From f02fa90c87c6987573f5b333a32949dbcc594aa0 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 20:32:09 -0500 Subject: [PATCH 252/305] TEST --- api/backend/tech_support_analyst/michael_routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 09c25eeb04..50aba8c5ed 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -26,6 +26,8 @@ def get_SystemLog(): cursor = db.get_db().cursor() cursor.execute(query) theData = cursor.fetchall() + + # test # Convert the fetched data (list of tuples) to a list of dictionaries column_names = ["LogID", "TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"] From 2f1382d8b506d37f76462095c82eb80aa82bb852 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 20:35:23 -0500 Subject: [PATCH 253/305] Delete .env copy.template --- api/.env copy.template | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 api/.env copy.template diff --git a/api/.env copy.template b/api/.env copy.template deleted file mode 100644 index b24b99326f..0000000000 --- a/api/.env copy.template +++ /dev/null @@ -1,6 +0,0 @@ -SECRET_KEY=someCrazyS3cR3T!Key.! -DB_USER=root -DB_HOST=db -DB_PORT=3306 -DB_NAME=northwind -MYSQL_ROOT_PASSWORD= From 932b1ab5fcfb8c4e522f0bea1c6636f078bc80a5 Mon Sep 17 00:00:00 2001 From: Pratyusha Chamarthi Date: Wed, 4 Dec 2024 20:42:29 -0500 Subject: [PATCH 254/305] file change --- app/src/pages/30_2_View_Student_List.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/app/src/pages/30_2_View_Student_List.py b/app/src/pages/30_2_View_Student_List.py index 2c66ede275..daf1308580 100644 --- a/app/src/pages/30_2_View_Student_List.py +++ b/app/src/pages/30_2_View_Student_List.py @@ -20,7 +20,7 @@ # Fetch Data from API try: # Make the API request - results = requests.get('http://api:4000/students').json() + results = requests.get('http://api:4000/student2').json() st.dataframe(results) except requests.exceptions.RequestException as e: # Handle any request exceptions (e.g., connection errors) @@ -30,22 +30,3 @@ # Debugging Information st.write("If the above table is empty, please verify the API connection and response format.") - - -''' -import logging -logger = logging.getLogger(__name__) -import streamlit as st -from modules.nav import SideBarLinks -import requests - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -st.title('Student List') -st.write('\n\n') - -results = requests.get('http://api:4000/c/students').json() -st.dataframe(results) -''' \ No newline at end of file From 63e3a1ce64d93311c11dd95520c2ecd81ea88f87 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 21:44:00 -0500 Subject: [PATCH 255/305] Update 21_Advisor_Rec.py --- app/src/pages/21_Advisor_Rec.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index 3f72fa3ee3..b451758f9a 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -32,10 +32,8 @@ def get_feedback(student_id): def del_feedback(feedback_id, student_id): url = f'http://api:4000/api/students/{student_id}/feedback/{feedback_id}' try: - # Send the DELETE request to the Flask backend response = requests.delete(url) - # Check if the request was successful if response.status_code == 200: st.success("Feedback deleted successfully!") else: @@ -64,7 +62,6 @@ def del_feedback(feedback_id, student_id): st.write(df[['FeedbackID', 'Date', 'Description', 'ProgressRating']]) feedback_id = st.number_input("Enter Feedback ID", min_value=1, step=1) if st.button("Delete Feedback"): - # Call the delete_feedback function del_feedback(feedback_id, s_id) st.write('') From 06d1ce027bf21925d07276980719c59e676f942a Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 21:44:29 -0500 Subject: [PATCH 256/305] Update michael_routes.py --- api/backend/tech_support_analyst/michael_routes.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 50aba8c5ed..43ca6ee051 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -119,7 +119,6 @@ def update_tickets(): priority = the_data['Priority'] resolved = the_data['ResolvedDate'] - # Build the SQL query update_fields = [] params = [] if status: @@ -135,18 +134,14 @@ def update_tickets(): if not update_fields: return 'No valid fields to update', 400 - # Add TicketID to parameters params.append(ticket_id) - # Prepare the SQL query query = f'UPDATE Ticket SET {", ".join(update_fields)} WHERE TicketID = %s' - # Execute the query cursor = db.get_db().cursor() cursor.execute(query, params) db.get_db().commit() - # Check if the update was successful if cursor.rowcount == 0: return 'No ticket found with the given TicketID', 404 From 644119a425085c1dfadd3eab3b6e457b592e309a Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 21:46:46 -0500 Subject: [PATCH 257/305] Update 22_Housing_Carpool.py --- app/src/pages/22_Housing_Carpool.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/app/src/pages/22_Housing_Carpool.py b/app/src/pages/22_Housing_Carpool.py index b91194a2da..418f8c89e7 100644 --- a/app/src/pages/22_Housing_Carpool.py +++ b/app/src/pages/22_Housing_Carpool.py @@ -12,7 +12,6 @@ def fetch_housing_profiles(communityid, cleanliness_filter=None, lease_duration_filter=None, budget_filter=None): url = f'http://api:4000/c/community/{communityid}/housing' - # Append filters if cleanliness_filter: url += f"?cleanliness={cleanliness_filter}" if lease_duration_filter: @@ -33,11 +32,9 @@ def fetch_housing_profiles(communityid, cleanliness_filter=None, lease_duration_ st.error(f"Error fetching data: {response.status_code}") return [] -# Function to fetch student profiles for carpool def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): url = f'http://api:4000/c/community/{communityid}/carpool' - # Append filters if days_filter: url += f"?commute_days={days_filter}" if time_filter: @@ -53,16 +50,11 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): st.error(f"Error fetching data: {response.status_code}") return [] -# Streamlit app UI + st.title("Community Profiles") st.write('Filter based on preferences') -# Text field for co-op location communityid = st.text_input("Enter Co-op Location:", placeholder="e.g., San Francisco") - -# Sidebar for filtering options st.sidebar.header('Preference Filters') - -# Select the type of search (Housing or Carpool) search_type = st.sidebar.radio("Choose Search Type", ["Housing", "Carpool"]) # Housing filters @@ -80,7 +72,6 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): days_filter = st.sidebar.slider("Number of Commute Days", min_value=1, max_value=6, step=1, value=5) time_filter = st.sidebar.slider("Travel Time (minutes)", min_value=10, max_value=70, step=5, value=20) -# Fetch data based on the selected search type if st.button("Search Profiles"): if communityid: if search_type == "Housing": @@ -88,7 +79,6 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): if student_profiles: col1, col2 = st.columns(2) for i, student in enumerate(student_profiles): - # Alternate between the columns if i % 2 == 0: with col1: container=st.container(border=True, height=520) @@ -121,13 +111,10 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): elif search_type == "Carpool": student_profiles = fetch_carpool_profiles(communityid, days_filter, time_filter) if student_profiles: - # Split the profiles into two columns col1, col2 = st.columns(2) for i, student in enumerate(student_profiles): - # Alternate between the columns if i % 2 == 0: with col1: - #with st.expander(f"{student['Name']}"): container = st.container(border=True, height=520) container.markdown(f"### {student['Name']}") container.write(f"**Major:** {student['Major']}") @@ -139,7 +126,6 @@ def fetch_carpool_profiles(communityid, days_filter=None, time_filter=None): container.write(f"**Bio:** {student['Bio']}") else: with col2: - #with st.expander(f"{student['Name']}"): container = st.container(border=True, height=520) container.markdown(f"### {student['Name']}") container.write(f"**Major:** {student['Major']}") From f782969ceb7d3dd7a98f1bda5128d08c3881fb79 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 21:47:53 -0500 Subject: [PATCH 258/305] deleting lines --- app/src/pages/23_My_Profile.py | 1 - app/src/pages/24_Edit_Profile.py | 1 - app/src/pages/25_Advisor_Feedback.py | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/pages/23_My_Profile.py b/app/src/pages/23_My_Profile.py index 301659afce..a707be0d22 100644 --- a/app/src/pages/23_My_Profile.py +++ b/app/src/pages/23_My_Profile.py @@ -25,7 +25,6 @@ def get_profile(name): df = pd.DataFrame([student]) if student and isinstance(student, list): - # Access the first record in the list record = student[0] name = record.get("Name", "Not available") major = record.get("Major", "Not available") diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index 7c6b63b40e..bdb96c9956 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -44,7 +44,6 @@ if response.status_code == 200: st.success("Profile created successfully!") - #st.write(response.json()) st.switch_page('pages/23_My_Profile.py') else: st.error(f"Failed to create item: {response.text}") diff --git a/app/src/pages/25_Advisor_Feedback.py b/app/src/pages/25_Advisor_Feedback.py index af082dd20b..d30351f420 100644 --- a/app/src/pages/25_Advisor_Feedback.py +++ b/app/src/pages/25_Advisor_Feedback.py @@ -31,23 +31,20 @@ def get_profile(name): student = get_profile(name) if student and isinstance(student, list): - # Access the first record in the list record = student[0] s_id = record.get("StudentID", "Not available") a_id = record.get("AdvisorID", "Not available") if st.button("Submit Feedback"): - # Prepare data for submission feedback_data = { "Description": description, - "Date": date.isoformat(), # Convert to ISO format + "Date": date.isoformat(), "ProgressRating": progress_rating, "StudentID" : s_id, "AdvisorID" : a_id, } try: - # Make a POST request to the backend API response = requests.post(url, json=feedback_data) if response.status_code == 200: From 08630654051cfc02abbb209cebd741eae67466eb Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 21:49:28 -0500 Subject: [PATCH 259/305] Update kevin_routes.py --- api/backend/student_kevin/kevin_routes.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index 46c8752907..11be478746 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -86,12 +86,10 @@ def get_profile(name): ON s.CommunityID = c.CommunityID WHERE s.Name = %s ''' - # Execute the query cursor = db.get_db().cursor() cursor.execute(query, (name, )) theData = cursor.fetchall() - # Format the response response = make_response(jsonify(theData)) response.status_code = 200 return response @@ -143,12 +141,11 @@ def get_resources(community_id): ON c.CommunityID=h.CommunityID WHERE c.CommunityID = %s ''' - # Execute the query + cursor = db.get_db().cursor() cursor.execute(query, (community_id, )) theData = cursor.fetchall() - # Format the response response = make_response(jsonify(theData)) response.status_code = 200 return response @@ -171,13 +168,13 @@ def give_feedback(): ''' current_app.logger.info(query) - connection = db.get_db() # Get the actual database connection - cursor = connection.cursor() # Get a cursor from the connection + connection = db.get_db() + cursor = connection.cursor() cursor.execute(query, (description, date, rating, student_id, advisor_id)) - connection.commit() # Commit the transaction + connection.commit() - cursor.close() # Always close the cursor after use + cursor.close() response = make_response("Successfully added feedback") response.status_code = 200 From 87f6bb8bc85f8032b63830e91b6b0f880659e2b0 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 21:52:32 -0500 Subject: [PATCH 260/305] changes --- api/backend/student_kevin/kevin_routes.py | 27 +++++++++++++++++++++- api/backend/students/student_routes.py | 28 ----------------------- app/src/pages/21_Advisor_Rec.py | 2 +- 3 files changed, 27 insertions(+), 30 deletions(-) diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index 11be478746..a60a8baa1c 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -180,7 +180,32 @@ def give_feedback(): response.status_code = 200 return response - +@kevin.route('/students//feedback/', methods=['DELETE']) +def del_feedback(student_id, feedback_id): + try: + query = ''' + DELETE FROM Feedback + WHERE StudentID = %s AND FeedbackID = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, (student_id, feedback_id)) + + db.get_db().commit() + + if cursor.rowcount == 0: + response = make_response(jsonify({ + "error": "No feedback entry found for the given student ID and feedback ID." + })) + response.status_code = 404 + return response + + response = make_response(jsonify({"message": "Feedback entry deleted successfully."})) + response.status_code = 200 + return response + except Exception as e: + response = make_response(jsonify({"error": str(e)})) + response.status_code = 500 + return response diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 992aec901c..99906e8a3d 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -56,34 +56,6 @@ def get_student_feedback(student_id): response.status_code = 200 return response -@students.route('/students//feedback/', methods=['DELETE']) -def del_feedback(student_id, feedback_id): - try: - query = ''' - DELETE FROM Feedback - WHERE StudentID = %s AND FeedbackID = %s - ''' - cursor = db.get_db().cursor() - cursor.execute(query, (student_id, feedback_id)) - - db.get_db().commit() - - if cursor.rowcount == 0: - response = make_response(jsonify({ - "error": "No feedback entry found for the given student ID and feedback ID." - })) - response.status_code = 404 - return response - - response = make_response(jsonify({"message": "Feedback entry deleted successfully."})) - response.status_code = 200 - return response - except Exception as e: - response = make_response(jsonify({"error": str(e)})) - response.status_code = 500 - return response - - @students.route('/students/feedback', methods=['GET']) def get_all_feedback(): diff --git a/app/src/pages/21_Advisor_Rec.py b/app/src/pages/21_Advisor_Rec.py index b451758f9a..4c157488b4 100644 --- a/app/src/pages/21_Advisor_Rec.py +++ b/app/src/pages/21_Advisor_Rec.py @@ -30,7 +30,7 @@ def get_feedback(student_id): return [] def del_feedback(feedback_id, student_id): - url = f'http://api:4000/api/students/{student_id}/feedback/{feedback_id}' + url = f'http://api:4000/c/students/{student_id}/feedback/{feedback_id}' try: response = requests.delete(url) From 953c65ce6ee71cc03c4111269af6c4d07f6bc065 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 22:14:41 -0500 Subject: [PATCH 261/305] Sad logo --- app/src/assets/image.png | Bin 0 -> 18379 bytes app/src/modules/nav.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 app/src/assets/image.png diff --git a/app/src/assets/image.png b/app/src/assets/image.png new file mode 100644 index 0000000000000000000000000000000000000000..4acb2aca27f2706d7aadf35c71c752b173309d3f GIT binary patch literal 18379 zcmeFZhg(z46E=JjN{}7|si7ksR8){IL_tug(u;~pQ+f!UASz9oAUrC)2q>XQ??FXC zlul425Ghh3z4v$V_rBj>@o`;Vn8Tjg+1=UMduHxUl;KSsCVC!v2!fcd>7tDx2oC-W zhv;a*uXVq{UGR(ATkD!B9ry{NyB7&QpYYJN^oAhj&&U5@FQu7z!9#AJD;7Q`?hkyh zcf9UHSS(h~+0E74;f}|BId?C|H;bw~5F`j)Lti%aOZ!Xm_cPu2d9>0K{NP2Ih)WyZ zO;m`XQ?t|#7OIu4U#1DX+XUU+pv=&SP%<*=rX4GrFe6tBL;qf6(YbySpe&bf=b> zyWYl1hPWer9&2wnv`$(Lb%T~+xB$(0K|B16E@|~m%or^iA01`PjevybUxR3+@e{6x;lma+1HmaFNQzgy47W0eJ_v1RZxPr%pqqFpF8uKZ+tB zvN};!#Dc1*7i`C!CuoPR`LsBBkC@Q&IsS*FSymQYgWSii-fJYF;5l)>Ax-pxZ^t9= zy$26h?VvLq_4j#sVU2|ZZ~CR5(~BMX#LMW*?J%5^%Cow)PrRFBp=Hs0?=tucACn+w zj-d;}PSIB}D=$`lZV=NCjXS+(REr4QM6rc3dVkWAc=eq)4{x`O%;yiZW@nM&2{cgBEk^=O@dSh+( zQfEG91G$0kJDx9Y1*%PBHg0S64{`CtKW`P6qD_^zh{|KmF(d>Lq1&QV7 zc9}o$Uk-UoFo3NqMj6(9cwqDAdQz2xM0>h|QC3UE;+f?rErA3NAG3oS1x*epZFW~M zRsMxvjizG@o}xpt2_8R=f@=KioR(j7v0R%C?Dr;JVu1x@V1(1q1Y#&Z7=%l29iY7-pHE{*+U)Wi$A|~U2r%TuRleBd6DL4U};VyB&)QL7uJfU zDRizhdf2+16+;7N)zmCN!%F@H>CJas)7#%{8 z5aAnLzhj9{*y__BAOb7MufV0A?rggo@Md^+q#B*Kw+TNFK)JLPC1* z;~a;=ew``uE5|Sz1&a2|8|fLfCl3jjS~TatZ#uoA@79?(7*)12HK>Z4eT>CZvEiu5 zJ}YGs!}yYKzVE|*W$F8{q9gLgdO|cDu~f9F_-zyP$5@;Vt>8n_pe4U(Sj*)uHp*ja zVd!cEZp5ah-m7=eF=^-bwPZ5eCa08GY3tVcVEa$=TAqo~qHR5e5EY(Rxyv(WO)Y+$ zL%9QXMwy2x{pC#eD>0{ZGfKv0IfmWHx{((5_|vTdkIXOjTKCW4GKiPXiWQb}C%w$# z>@S+C_cn(GWMQtse?c82=0+7T&TBg#CG=GJD3Yx7Qf8Z|M(jX^VI5Vc?=k|q@uY#n z7j1e)x>%achDEb%D?c;lML_3XUdlcDiQ(xH4VjLTqNG0?KC|lDV}&5|P~t?- z8FKXesUI>}(YpNMBMf(aAth{F%cB^h(pvDB)G^qHPGAeG;#-FWAdj%zHPRqi+pbt|t8WYDf-Xk?r!mx#W%$^1!wP~OH^hA>IU9zmd9mJ0XKG? zJ>>%b39=J~IkdyxrF|y!ku6fX%T0AU>5p6YZJI+j(u=fpzDm7dx4E?U$~Rav+g4sIo~o}YQQ3G;TT@8=I7)X}g%AEt-gN0}Tkp=L#m0veF1?#YWe0kf zC*PUWVh3EHV7y7tvL^5-nbta=2Q;zW&G05OT&CcK!@6b7^TRcqK49BC5hr!rDVBE#oza1A{~X-7S!f_B_I{3kc)M}hS# zME8(q(|Px*4zsI8TiTSxxu=138#&fw#}%~EUt;K`4zBVV9Teo-x${2MJUxS7bJkPzjxHhM@_HQJVDK*s-C$iNN@Ds;DR2%fXWb%h! z%5EM0G)r<-z=Y?Xn3=0y%M|Vi|xpnutAS)-*WKuhEV=j2*-+7PHY6XUUox}7z6X#If zGS+(Y%Kwg8=g7i%iZL|Z;2pn3wq+on7d=|~{FGVvsFbL-;6P#hkos5SZ!$zL%~Sep zV$0L+G@NYI!*Jl%IUOMryJnS)TP-j}E&6xM!w!%y_UhmQh2a%Er#aT5UP{JMK{Q%- z+M?|*Py2p8bUa7jnk$5PE61mjb@ofU(#JJ-|cSPg0q4P5itZ6$-SmT1m&D{ueqRjwfZ{QrWmi!l17t2A<#y%y;z>DE6g zW6}8-x}V@E3o|w>UxmUHQPBcEt0JnAW&z0Smgm$P)Zcn0zxY6!Ph*{;)eL1MlrKh= z7e+oWePd&K2c>lgph%dHkH3SR=^5te7-;?HkcK=VRmwQZX=-c#i@{0)#f;_Sp9u3< z;MUdZn#N@7yXznC1M`J1ltqlqzA7)$$)3s96nqL_DAg1wEJn^2WaKj8);_)s`7XcO zsx}o7mVfIL>SY7O_khHvPd`e+rI!AwfEyzKxXfYZ`P0o3`utBhT#}}&0b{_ZHYhNs zVNGU^w}>#@_k;w6=kxyIPvW2R=D4mzQBHcP<*lZ~LlI_JXFL^zG~#?zr%twm#4Tz* zcZ|=kHP_=x*>Ae>L6MPnwZw+;&8!LIBA0G5sE!HD&3KCo`iuRNl|`ekqA4UK%caOE z>18bCH5b>x39F-X-_kSL3ogz!)KY1p*%6oWha5FMOQAjM8lPCxO`VbWx|0b(|N9$L zQcULjvvqBl|Bw27*UG7rm8x{Z(<{QA9tgoGfGrn9c=$y%GqgTHH>mgw*fWd#HYV=; z&grTc|F9^k=ey&!!J?MMN8l&Qri)K+xb-Pf=%c~fU;8u59UCk>w|Y`%UHqLAeZ#&= z$~0?mVO!E(YFyX;V5)8od-9TcMNP!A0PK0C+nfwck1~39xIX-DIF;rLuH(5Rg&s)@ z)gsgPQp)*ru=)5U^@ZuE@o_GSx-cAiIoe-$GAlp@$4Gg76IoXu;?*ZmtWZc%f<(g} zM}L9k_^}fbN+lYYP8PiO4N?YJLWA_Q}~NVr2Z2bnxUU-=uWFMLnqvp zi{Cm74T!`3a({{^K`a{Y>QpKAXZNoQyEu>+3^si)`UXN#J6_pl95c_KbrzUeM;Oj{ zLb|uZ9r1j{8Hy|me%5y4m2fUwg^QFgeYfC}3xrFSh{O2t)3#4{yx-WZRoWehYi8Qvt2hKBOSN0k~hYqCv%Llp3hd|cS zeUuie9VXaUJMY7iuL0)>9lKJ}@n~U8wJ)_Q()h;*UW1)HjeY}KL*V|9aK6Rt>9eM0 z&x)-J9sKA8TiH_-NwC?{AUoejq9Q?L3a3Ehml;fyvGFk=$Wlg~SQop2`!zp0LBXpO z9laYSjUw4-o1>B7QmF}mAE zKlt}ynpQca)#t~rc-72)V$92=n`JnDr^$&rvPcv`vEF^8T2i< zv4G*m+q^WlI&h%SkDO(OU>EKYzdnpKv%pr0Ny#2Jei){r+K)>ODIt)664}uo_^@`u z&C3#E9uQsDzop%1)cZWceU$$8-J4>dbp|DX$!&!i7UGcJ&)h`Q7s_61umMoZ(geh+ ziC4S$lEI@E(_T&8oeIQPTBchEX+LI!g_xIj9`^LCm z;Ni9DMLz82Wg_=F6OeiqgmHF*{&bq|l#~S{@=m+HC|F|jc-1ub{^f(!vRn3HYvQ$X z@hY&^mPnkRD`wyVj?bM`E|Rk=PN5YZDG#V|62>8b+~1*Io_{Y8k(JyC9K@yS+J=N* zFJJtDq~Qq+UTsYxqR^EJIUD}=v9PHVlo#m(l3+i>v5DSN6VPoL@2d{a0#?u92J2S7EUT~nzIe%3>jfCGqE+P!oFpje1Ry0 z9`w{FO&ByKU} zZS0?yzJ(k-dizFOXr|-7Vy2Zl>V-=!6YOG~y8Q5J#e@-4p3P{ZhdyhHKYkrL|62j2${gugq-K#XN>KjSVi3)fXG zIty4wGg}{tJ zcp2j$R~DyB1Ns#dy2R4Dx7ni3_}ng_?>7aEsU!3_1ts}$24>+%TD4t$6NC+sr$pZa zHiCe&TPr@)zw$+%@69boun~NDMorA1fTx&t-@laXX=O^}JKSOzM3WkdrEdO5G{K&>?AbJ~0&p!CDPq zg_y33daG~0f%sL}(i4hQFc5+5Vr4jD+V5#N*aC?r8g+gpa0R?dwa{{-G0>GGE8N7( zxP9kiJq!|ba+xbX`EfT>4DENI_H2Va*SB-3gXqQ@O)O_ zA@@f%6l~cg16AMLk9Ax)FjbGnOev4=eTE5k^UEg|!liGBpck!G9}pPcGNF@M=Se2^ zFi|H1gxdYv&O;uc_fIf_fILshfv2e2=RN1BLXs7-?i2w*L_NABRb!zj%F7I?v$o|v zaMdmeIhY6^w!j;pqY6OqYjy>MBR{^B`{xgd;6+}XKtKY6&%X!pKgKeqlvtg=xOO%i z6D84l;X3~c3v^Vu=%mk4g3&$)j0b^yDjw1@6AE8YLs^*H16uBzI7?-Rn`c_F(GFwD z!H?C&r$(}b(;~$hK)UYAZ<@KA!Z1R_>o#bd)+wv3*pr9)tN=Cj_Tb5x72n7idhehM>MAW6rMTl+y5{G8#fkW9DLqYZzR~FC1Ze~n@1_NuaOPVD`cerrl3nt zf66&WJN3GmTvy_Qp3CsO*|84Gcv7MvW(bq)q0@=CQ}WeJ=pH~Cu@$ACpJ0MQfz9a& zrSkvo9{*l1lIRJYsdRd{85(f^3F7iuBbCEJJRPn;)qr;R`FFmpi5{=VKJS^4V!7wj z8E=PUzMN`$lfNNOL`FRyhNwTE!G`!9jP1ognYeDStO36_p%SXGiX;z7rioi~#LFJr z@HH7^ez9uJJeK~I6A1>v&kxpJ@y8Wn^o4=R8PaeFY|>G_99XF>P$}U_3RY$-*6K*h zF5j6YZmlkBD8RY~!hPf&Bgfg?CM8BHL99rlh^g9J1JrE8)~|mVNKr^R-gs#?WGPG# zK>4|6&sAVS&ZP2J8EVJzC*}(11?2rvtMw{DOt?8B$~x~-4yUz_s4z1Ga^ZLIk=+pM zbMshfIqm!RJCsHGK!O*@arM%{b7YOyJH$|V&F{s1h|@iP4Cf0?(kgpxp^KJS2qz&| z>GuDgrjY!;ibEi2@neEfox9B8pPB`dS}inW&~%n4{2llQQMP|wIx{UwN<*s7U@qQm zmt(YrkF(ck+Z=*Bp7&zX@1HfQHJO+zIUt$>Py5NITBvUWX9=}ORcAP&5+(kLPL1l2 zq0mCC8MID{|AgMpaSnx*5$mZEMAk@-Yal@e1EG!Z{0A%S_AmsFQwU2nlfQ0+J%GC`uK z?l~gzIFEkZ`fs>M!-bc12*P&?L0uRoErq$=HSk=-<;z zh`S*?nz$yfx8Hd0k&vdx3nB5xWo1GiQva~XI+O$yi2kPlfLU||5@d*SOK1IGGdcF{ zRM7LC!eT~C9crT=%7VX(z9zC+dswQ(T=j>3k)bk?5@nj{*e%VKKIebK7eac+!M#sYpsTkH847k(Os@@dPVBg&k@pyT37$q@x;$Cxb zICC{zMI2t5=TeQun|dh(tFKZ28HN=u zE90t_pvvD@niya{Yr(dDsXI-lk%^ffUzgM2<{bL3pzIL6VD2um2gJ42!=Ham>-+Cc z`9)-+Ky_MRX$8Jl`_VAVDQ3u;G5ydE3q8HswKf0dw})$VY@L!LFh9c*7(P+HBi5W0}uJ2YD2CiNXc*9Csh;$5-{4V9uV$876RXIU7FUnn6tl^=BZSX7ilfvFDW3jt!lW1e$?S zL3bOe1VJ4l(pdNPq~%dJCDEJGsP>%qTmC+D=3BY|ZEw$ct?x$;g2Joc-!}UR;2eKu z$>R4cO9ZGTHK3rXcJ;v4?Qw01v@bDGl*Ikx#4RKFWEU;Wx5h?;&Nu|3b5!~=bJW+k zJc9^z8P!BjDN@o6m?0vJm}Atw9-$eA70O8g({Y%@a^0M>eRI$q%G-wonRhKpmI#}^ zT*AV<84J?AxBQS<7~BP;Uog!pbq5CMq7EO3RRRkYQ+?xRfp9@?4eH3mBlgw&>D`PC zl07V8l?oTRdGY4)c#Asx5I9cQ+kJ=(JNA!3r_S+1&@^-#b^FHcKzhyO0w_{qqwq%t z9Lg(Q*xdwLB-C-@*V8_$4)MPgc4Nv&wE|Nn6TVySTD$pR4i5f)0*JwDcwz4~|m zw!#P&Us)iRMyiDJ>ZoJ!X>9^(s0%mgxJ%vTroj@E7>9{8NfDMuI$-J>!k0CO;{-fb z@S7(D$+U#IKZ)cy)?D~`EI>!c&oV!^7eH)AdS1Px07!RdpcJe!UD-#Eg{$wYq9SFU z_P@ppv~{5%3J$WkS5=0PskC|%*^zuT77J}NrT`6dq`beK;(X;=4K}pc4F!HEnF@!& zRlx!o{rCxcA*JsLh!_o?<;HOe8Ub!iFCqUreN*{O#9F-<-lX}1rC)~8%Gipao!+$B&b3aHp=ZT<4u>s5jDr2U5L9@858(`&g zp86>IQ@cjp*%7ZlaIBvwbLI_nvZ3maMM&a!*qXhK+ZAb;3j+5uWTi}CpC>LI&?l<6 zsCTOt_y!#gpWRjkQpIs|5LuIG0d^GdLG2vweYM}N8KzN_zsm*npX0bx_u%@Us>bQ~ z$XQCQYvvHF$x#o)vt)wA~=9Psy5R-WWz(eclTpzB4j>SVj}y{us${9+rJE0Z4J`ec8#g zq(cPjLbX9lJa8Vzd12vD=XGfEaXe?d_QJ`7jIhF*2Ky4&%F< zMt}iF6dBp!NIzv&B5%kHJQzTC>L&%;y@IEK-}=`w7rs@*4_%jsoBoENV;Cwd@JQ?G z#pm&A@48h|C`>C7nM-YVO6ehR~aA3N}fHF~D^sx|;DFb+$>ik$igIaGBP=oY1!=GU^wCI7A2(wHegWCj`e6G5sE4h@a>HI z;hLv__xy*LB^I^poc_avQ{e$__y>U5vG0^e>xJm!ff4?b!y^7et~67zR%E>T5gj;J z(P(z_@VDLHpRQ2h2x~{Yhp2>awBrNo!Ay6QvUK2F(91>P4#Qa< zBg^Sa7I1W?rRoFn3=xk;pA}D3$hvC_^i(0h1i!3GyACvjCWgr2%B7Uq35psAIlZz+ zCRc>$p__SS#m+El7JzBJUau9`3hj)*iG_snW1&1ITw&x;MWbK*#@> zY*DGUy=1|aQvmJG+_JwYCt2tu6O9!|8Z}P;ThSFFD#MTA7!0dGXAKQk?y$7)?b_Ws zxR$D}JADTBj^QisQh3mXkd^;F61l|KkUQ@=X5e((=4h?xoi9vbZ77@^&$)^a7M)>@ z0%2Q~?HVCMe%vOWCm?iTv3&Qsu&{Mvg>G`KUI(sEy(eLTN&YysKuZ2s$4qtqg`t8XLD=jYMy07!6kT|vLC)b){M&kqv~QOhS=h8n+G%1} z>H)<%gR?{sy^6hcXQ$b6VKTc6gz|U8iu*=R+(Gk-1cdz5E`|sK! zefS_{srht=n%cM;>o<{3Gt{j=4$V7qiA+(z{~{#M40`Mc9Ty=U)~X}>e5VbHl=(En zFbJHy_O?qL1}zLQ|7EF;N}KVub+2PER;{CU;_K2|@!ErNbs$?88u+zB9U$j^LNrIP z6Z_uRoZL=C0do$ma?@o84Z3$}^hiyWy<%Sg_Bax!w}E990P*n@uVERG3OR1#)`Wos zCmEz%`irF_BhNXiz7b0B1VXYj#q{)Yh^VN?RGRHgt|+K2ET`e1LpeNBVn5#-iEF~E zKv3M4BIODCBP?rjtPJ?DNIQi2&Xx}PnJGH`Jzl!n;^!IX&(a`K@C1>-%$9gt)mAUj zx~%7`0$w3f0yACjtpk7U2!dc%Qz(bX9rXmv$(8=~P#C&c1=2Jvt#K2~F?~C1$@#GF z#oO%)3_1tk`pc!ZFE+RZhd>z5cZx7I_l|+3-3CGbzIT!Jei4YCL0d_$ zQcSBEGr<-TUQKseKTQEBcgvFVIPgz5RQQwdlOAMnAP8;nTMk0*NS0OxhzhoY1ZDX< z{?h$l%ECxbXqFL)5v(XysP;mKQr$YvNe^a4cM_Sbi^%G=C652{5kCE=!BWhUch)RJ@*Z)i-LQas+QsOSY1;Jnfh8ih$b{LcO zpG$h*7l#eSxNVS0G6KEQw~>e^9!-^6HJxLXpA^iQN)~V5r%n(7i9NRVS8k+)4!^P5 z82T<=`^$#apQx9Loxc#?p0NB*ltd@nY-S!BZ;iPQ%OaM8DW@Pq@;InGbb_UPt^(P< z4K0(~)`+Isd(go_mi>T&br(RZ94)`;qNuSXK=4nA-buXKJY7tV5kN9GE=| zEUVEf*ZD_wp+@`t^|`Ur8@pd0QXx#0U9OmsE2{!GC>+`<>zqIp6XpxBBK)Y zSrdSo2TB2{7#-dTrP_#6hSNE6Ma7I!5nfPhU7N+!;+8mnL!Yt;_cDYOktHdPF_0O+ zl*UPoHq6~Uwg(&kjbM3%p%ba^%WK9P4E+nkCt|5IpUX7OE^p+t`d?#(G*{l_I-cJw z?-tDYoOE2vlzMA{4T|YlA13{FEmn9zgTQgErp+=!pgwjOPY&!mZ{wN{G;Y@(5rFGYNsend(HB%PyiGn%PS4n7NE!L z+9NfA5(hTNN-{=}EJ-F=t;*@0?nj=j;Ha=W^gnc=TLj6uFP20YI+@FAm|_djT3{be zV)r)%0{Nhcto*%a8qoF+FyAM$ziz3s_T8LrxFrJZyaE~LW~VDY&p;X(WYrM*^2$MK z)HR@D)wk6VXok9t0_kDQF+nmQ!IEx7e**pXVqGrL%28B=8S?x93IxH>7|6Lwv9E3( zZ#?qXA5-7aIJ-?M2;MjZIAd<4#A2{E*B)I9iGh-UAsXuhS}B5z_jF44C0+sz5%r6W zJo5HL?smYM(r<`WCq}(Hh@J4}*q3CWK?zL4?;Oc-D`Gwvv|P~xd4Cp=A^rjr%&=Ke zefb`*014)e{Q@x~yUeH2o!>rB4ry<*P*NWG$JtOtT46;MfST3!Z2q*s_DM=26HkfF zjv&y2tw~zFmGVdf>3P-WAmhFmBC<1%3dfR@*n0uGXn`*!M7KH6TjPo1Ipj{sbn9Y5 zDNsFEj6K@U9hFG01Z|V6q?!G7aKG?Gte}Af{sy{L;h6N2GnUEv&4G~K<;GtHvh5ty zEAkqW8{g>0VYgqljlA>wcGp&zKI3up>q;lrbx$bJy5?c~J4|qZK}DP{2S_o0AWwuV zUXp4#ZxL|qd+oRTpq^?3J=%8KU<4!qQ0;)99Lx0kdzBJriYyja&&PdS{o(>$3BijK zUc~^`()4fuT181rT1Qr;yHl~Z$<^a3 z?Bk<8#l|5|Z ziu}B@lCqkpr{8+a5NgAsau!sks_TLkF8U|Io>TSWCo{7$r42_CYN{E<#QH3@@?ZS5 z&iEzI9yKWV-^_s!p%m1d$E~n=Ja$0h0~=qOtd*dejbW*=pQ_tQF9ES+h5JpTB5WU? zuDnf!`zx8y;7!?WPFU)m?kZL;0$kyUlTnBA@PK7RnU8$l_hkBMEj@vaMn~EkZ-zB)W@ehMj$TrPl!^5YI-o$&YHos8 zG3J(sGbZGIeSMRyPoG-pq~?K!QoGE^Q3EM4DA zurWG2Wj8;5mBrVyN`+qa2yL%XP7tbc>!T2biew5k_#_|Au5Z=XZ2mCK>(!?5qQk+2 zXNxj|PV}+RtUeeV;7kd6y(49_QXCkyIy!I7vAnReAhrAHS*OVMyB`Z3o-^zx)}0|| zqO3|zZzt1Yq$CklbesXkbf#E;rj!^+9)QQ6bUf=mRc4_f%IODLQ;&J1fgRfWw zXKSuD^L9Hm&AzEoHv}myKxQ|Dc{E^XSie@wm7VKN5B~2YCIe9xkLi*_vv2pk8O}Te z^rv9JC>5SBOY5KahWH#vuvUKJiBn#0O*xekW?1*#4-H%MXlu5`D9p#@eDt6YaC3Kz zUOfN+$nc(p__nOO-q4AO-{ZKy&ZK_kHJgt?K4$Q1Gw ztU!_YExO&ILx|l^Bl%Q4RMHjkl7<~<;8OExv3OAu=SnKSHR!2c=C-VFH<#82Kj6dx zrq4o|B=te-F?-~*@)O_V`Kq#}(Avb3ZG7Ic`SKKt>?cfizbbqeO2syr9HI4Ps9wab zYB4K)G8Y$BX#0V*6ZovRpE|1)({-w9!)-;75?TAMm~nb=BVCR_O-bG~CNI*~DBTG# zvHYQoi)7QL`>qIMOAZGa;yjGD>iurNiz0Zreby{7po$nFhPk=^OMUoA1khul|CpyJ z5-r$dZKu}piHKZz;ZLa;*SALPa%OGTSXGZV+##psyIqUH&{eU3fsTkp-Iap-99m`@ z;5~Fir+1EQYUU*>l?)(2DAq?jG(^nEq?-aTNLM9*faWVj_-(4J{Y)sG9#cw2jJL>w zuya0Zzd9~Le&(jBesKyKgCo1^@6D$|?vSpdQZ@4DJ$gRH7psgcQ%h9EMMl`v?5aX6 z&}%yLU3ZSB9W+cy(Wd~DsC`*jbG}Td!t8H0Tzgwtlr| zok{KO?KO_hbdp*$T*7^>{P##cC#qT97sJj1EcOl@u#j|kWwQ;>yZ`*2Yi1SkS+Ci; zssXXXi!%WXq?=2HSRK*PUadDPm!Ls8oz&8AdgHwgLb#~ek)m8y+{zqpV57Pp@oQ^& zQSP=OQVDBi9`q(fY@k)c@$27g{xmV&j&O}bv!zq^j;PD&pycE0yj;wogB}V*YKDAM zH%%JqG=-a4My{PEU1ahq~d1`}-p|^ln>F zll$FCNob_V;p;q0w4Pr!Jh083BlxD6*YAIai96GL7W7|Kj zC%nUb_&g==7)z^{=s%ijSPS%jBe28!ANG4p#}B}d$fZ$HcvgZiT!*q zv61mnrMwljQ;nf(yP9(-Xq<*JF$+zg5Ba_Jf!Q>aq=?d|?@D1=@qaX;)#t?o_gO~x zT-j>E9_3=LI8NUvQm^kB!RWJ}Lq_eXY*iR`Nd9TnsPjPJs$D%SC!3_W9RFiQlCf$E z9~U3Tu#DaNk!Z~9{eH`Z<~2asZa?*YA7p{fpI~%!P*dGYL=;{wYxwpWNj}OYR;l|M zCh2DIcjYH{rHu-VqH{m-2jmve7YkIfnUO~@-xJ$LnU)Qt&v3)QY3oG!uYZhDT++{D>E zw=y?9vmLivZxJ>wq`nm8RSLR(NM<0o+JGlbGDCbaal6I7<&=&=Y5IAuL@-qdP#0BE zU3mrw7b4U{_S(ax5;E@f9m=OI{XO2obSoB}Cg+}AyV7H=Q)zzFd4t=TPL^s)O7yVx zNSY>^ayoXq6bLcMIZ80L=`bSF{1PFA;12x(k$PuB>7-rLLjpbJ?Y*)y6xdas`@26E(ok8t#)Qxw2;;&EZ5J^ltg4t-AA+ zG38XWMg}}Z7$~7_dP8@I_$F^J97{xPf4dO9HOthbY~R>bM_5!-GxLT8sP|Go)LsB=H|1lwG70~NT0^Ly-uK7$lbc;(Y{E}LPa zA!j1@ui6Hp+J-G9a-kFR{$^)eZ`(VoS6MyFa8nw@Z$lJX-- z8FB7hp*Ck5aJwVS!3csTCAvE?38llyVOH#SJ*U>QZ~CXZB`3|TX6siay~dO{_oQDg zq=_LShxK$r&mVs}d&KO{>mOTdOC8cidFe(=%txcjPxgUVY1Ut6JAcRC3=Y9xt_`;S z1ck?eK*uKq%g&F-IojOJ>DF1n+NsZm{dq-1LJ5lbQub;yRxAPPS)G1l1n$UoxL_-O z{2!EN{m|+PEDF7Th4PH6la;&+?Ax4PiU(oQPTfiPmHD@6S`rf`l%pu`+jAzk*JLdD z-M$UBTYJ8f7iSkawNGTBc`!IREwDs7QZlZ5 zMhbE<@#kp-c@;{MYFqx)9Z);{&{yCuQLxe&PY-NFxIYe15|3&Dxl8&p`D3!acj;kY+a#nuJZPS9DdhJLSS(RCg|^;%6O$DSE(g>+oYw4qhlx3yo_W3F zcE4Ucxcli>G^Dd#SDko+b-yyiYsG;m#LlQnqxoz4$;M5=Y&XQH7|mw%$H1JdiBAN+ zZJ8%oNyw~ljV$?X|K*-K%osml5Dy2=HqcA42+=Sf(l;(CjYX+$n^^NfP7SBP9V2z> zum+SgE$yYTT}dL+jP_=_nqineFwRxJ8D$M(=PP5|gc&n)UHx@iqfz?X_8LScT&n1e zh~<3sN?Bm!sIR5PHSdJeldP-JL9c@i>^JqtOc;KpNc(^ zhHM_8CJNFdDlL1#ePQv@3SW#yETN){iqke zx{E%y?gPbJMQjVT@Fq_y`f*$E&_OaeO!Lv~2c)I1h7X%f#Cx z4Z!~-1Lpg}>d4DW0?ghs0(+RF1NX<|2coSsc{xh7MQ0$u>CKb#;Pg2Rsk2_cqjO|f ztrFT(R>^GM#?8NeU1Il(h#ag4j@=q{jCVa1FZr-4F8eb9h8uYV2&!-b3eYea=E3#2 z`gn}VaEBoUt}!*VRi_({fsJy0C#9+UT4MqIMrd5lV_m)p^PufDE_}WH$x%jfxrk2A z=|3CQ;rgd+45hHFo05fvzjV&;pAi%XO!U@gfbgb<7nzt7#D>%?I$1K4Axg@T$bS|Z zb=zCN4vwUxwJ$LR$Fshi%nsngnIwuD zjdRBM+uyiy?b@L7Gq#fe<9!gCj@8ah(4h%P!079UtwA2M?iq`m&Nr=3WMyLXc|*-w zrF4w4G=*@~8nIIvFdj0w0CVj9YYgvB)}5dKVBY?qX;fC$i%W1C8mup%di|#4+r#p> z$W&eLkqtUxs{j-tOm7~hKnM@jDS|3Ksu=;4)CR{w5^rf!OI3e{k7Wurz@)*&Bc@7# z8UJtWTdbLtv15=fzT`Jy+ZePOxkD67Rt1)Mw#w-*ZbndTm8KR2_;nQ~Ir_yXC&c)i zn`l(G#ZUPEpfs--^6yI$L0eC6Q_F#CakB>yAXoh4=dfw^yKeRhqf-n3#8-2JF(~2N zQk4PCd%oFea7|N+!m4)@K$}|2b8>6ryt%Rwm(QHk>@6{kQ%+nyveNk+9^l36w`_0^ zN%KHSSK~P%G+KNSN|2}T;)$m|bMmnR-Wq})hYmjP+|9;ZJ?=yKvf55O27!r#xBK(wXk}`0$BPmoN95PR(F~Qmw5H6eJdF7PEYvjr%A(r{lLHFm(AB z!L=8c&QErlRU(hf#W~;2RX2WnHpd9MyJe`)fYAbWmrW-g_Wke#0%&Z0t(7`a{31DkEOY2)CR=woyAe*w(=fa zlU@O2HHmEhHO280n(6EuWDXWT-3Iqv%JEH6M-+OB^H{O#Lbu@0YZi6SND=huRYzX) z2RF_=Gs*;4=qy1sHJQM(+Wb1*dbkD|bnT=`b6{CWsJ4l!cY?5WI2fq*2**QGr42 zN(VrK(Sz5S%-j=trw^@va9jEL~S9hP~Mg6Zi1dHcM zBArb#V)F9N8`hb7u`O2d@DJb{BfRc?GZ;s)XC$y&y3Zw+ihWnE`SbT?-5!eQ4;o`Q+o@%k~HT0qhCp)KG$UZnI}Wp7=|A zOtU>ZeR`~S(vUV$8+S(&D00EdeKb3(08I^TBS2FJ%UGQ5oyIw71U>@tPpQH_f$Dol zcr+H+7yDNic8Y8BM7CV|3~XK0s5=zkP)D7=z5i)fBsnkUWSydXOX!2a0EPtfMmY5B zvqkXkChJGv`xFe}x0Vo3<{O!+VjvTYUOR7=w??d=`MwNX7<2k{v$8vob`lP8oeRB6 z@V(|}J&U5K(keRZoP$$c8*v4MrDwyV-rn> z6!^{#B*Z8Lhj60Kg9hgL%W09&Z3zzq_*^vIr6Pun$r~@ODNat3W9(l{e57D*;ST%o z>?8z*Dww%HWWL;UO}Q&TpR<|C=zL$vOZ94g_&pjJL>5Iu387#LJYMYJS4wn$Ke*O% zJR%yoYrgh>u(r-%u<)CJ5@g(GaEq;O<|RG}C!m#Q+;D2Cf*+p84J6pd4m#fDe8CBZ zsyp?Sp}BE5fG)v|8p0icb=m@oS#Kv}MM{L1sZ=)6pPjn5t10u#T(37zpy<4PzP=&@~Yr5^I> z5;iIC3Pskoc49PFr)h)k-;3l*_FxCqM7tN2Ujn-5QSt22H|#GtsZp1GJ^|qd`qx*a zqZkw=RK#KL+3NO+bs!>Gs@{_hzuuNGMg5YTvysAKadO>yC;)JNA*fej!D=Vv0GT6gmhBE;p2JK}o)oYC@Kc1wj8qD&DXU zkd_HOyIi=D653nN|G&3y{c2x&B5}=@T4}CqgOSNzul)j&zxUS-hPWpRpZ;;8HYRWZ!v|Lo_b-9Zx5zwCY3bM#Qu zTcaAgggyoag96?7pAKBAH(d`1vu``H@_&@#1%DO>24SGELexHqACDX4YxgWZq|98W zHo*!gVSM)1v+u$?C$Uu-Ua7H2lLpM2s1JqxYDHmzBJH8@#Sttn|F_spU(}J z2NsG~lo=Ri%w9kBTf4``U)Aal3fx;~@7q&;I7ogzV+tE^3xw#ctrhdT7x_-=`||KP zzkA?{f-n4kS{WE7NPXUV=^rqS^e$oE`}^t!d(8~z&0#-Rl<((Ekq7DveWtd$ecF~+ zS(-K~FMnkIxl*WZyJ5*yX)(3O=c~5zpWsfnWnl1I`eHe7_$#`pWcw0R?LX<=epRnp zxcG~n@XwI~n(=jA&5n)Vjx1W;CSc~JW%crq!rJLi=6nf_*k^vB Date: Wed, 4 Dec 2024 22:17:27 -0500 Subject: [PATCH 262/305] Update .env.template --- api/.env.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/.env.template b/api/.env.template index b24b99326f..8f86ce2cc0 100644 --- a/api/.env.template +++ b/api/.env.template @@ -2,5 +2,5 @@ SECRET_KEY=someCrazyS3cR3T!Key.! DB_USER=root DB_HOST=db DB_PORT=3306 -DB_NAME=northwind +DB_NAME=SyncSpace MYSQL_ROOT_PASSWORD= From d247cf2b6a9adab9b5bc69a03d27c0832d339798 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 22:29:59 -0500 Subject: [PATCH 263/305] deleting template files --- api/backend/customers/customer_routes.py | 83 --------- api/backend/ml_models/__init__.py | 0 api/backend/ml_models/model01.py | 48 ------ api/backend/products/products_routes.py | 209 ----------------------- api/backend/simple/playlist.py | 129 -------------- api/backend/simple/simple_routes.py | 48 ------ app/src/pages/40_Warehouse_Home.py | 44 ----- 7 files changed, 561 deletions(-) delete mode 100644 api/backend/customers/customer_routes.py delete mode 100644 api/backend/ml_models/__init__.py delete mode 100644 api/backend/ml_models/model01.py delete mode 100644 api/backend/products/products_routes.py delete mode 100644 api/backend/simple/playlist.py delete mode 100644 api/backend/simple/simple_routes.py delete mode 100644 app/src/pages/40_Warehouse_Home.py diff --git a/api/backend/customers/customer_routes.py b/api/backend/customers/customer_routes.py deleted file mode 100644 index 4fda460220..0000000000 --- a/api/backend/customers/customer_routes.py +++ /dev/null @@ -1,83 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint -from flask import request -from flask import jsonify -from flask import make_response -from flask import current_app -from backend.db_connection import db -from backend.ml_models.model01 import predict - -#------------------------------------------------------------ -# Create a new Blueprint object, which is a collection of -# routes. -customers = Blueprint('customers', __name__) - - -#------------------------------------------------------------ -# Get all customers from the system -@customers.route('/customers', methods=['GET']) -def get_customers(): - - cursor = db.get_db().cursor() - cursor.execute('''SELECT id, company, last_name, - first_name, job_title, business_phone FROM customers - ''') - - theData = cursor.fetchall() - - the_response = make_response(jsonify(theData)) - the_response.status_code = 200 - return the_response - -#------------------------------------------------------------ -# Update customer info for customer with particular userID -# Notice the manner of constructing the query. -@customers.route('/customers', methods=['PUT']) -def update_customer(): - current_app.logger.info('PUT /customers route') - cust_info = request.json - cust_id = cust_info['id'] - first = cust_info['first_name'] - last = cust_info['last_name'] - company = cust_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cust_id) - cursor = db.get_db().cursor() - r = cursor.execute(query, data) - db.get_db().commit() - return 'customer updated!' - -#------------------------------------------------------------ -# Get customer detail for customer with particular userID -# Notice the manner of constructing the query. -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - current_app.logger.info('GET /customers/ route') - cursor = db.get_db().cursor() - cursor.execute('SELECT id, first_name, last_name FROM customers WHERE id = {0}'.format(userID)) - - theData = cursor.fetchall() - - the_response = make_response(jsonify(theData)) - the_response.status_code = 200 - return the_response - -#------------------------------------------------------------ -# Makes use of the very simple ML model in to predict a value -# and returns it to the user -@customers.route('/prediction//', methods=['GET']) -def predict_value(var01, var02): - current_app.logger.info(f'var01 = {var01}') - current_app.logger.info(f'var02 = {var02}') - - returnVal = predict(var01, var02) - return_dict = {'result': returnVal} - - the_response = make_response(jsonify(return_dict)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response \ No newline at end of file diff --git a/api/backend/ml_models/__init__.py b/api/backend/ml_models/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/api/backend/ml_models/model01.py b/api/backend/ml_models/model01.py deleted file mode 100644 index 368152fbab..0000000000 --- a/api/backend/ml_models/model01.py +++ /dev/null @@ -1,48 +0,0 @@ -""" -model01.py is an example of how to access model parameter values that you are storing -in the database and use them to make a prediction when a route associated with prediction is -accessed. -""" -from backend.db_connection import db -import numpy as np -import logging - - -def train(): - """ - You could have a function that performs training from scratch as well as testing (see below). - It could be activated from a route for an "administrator role" or something similar. - """ - return 'Training the model' - -def test(): - return 'Testing the model' - -def predict(var01, var02): - """ - Retreives model parameters from the database and uses them for real-time prediction - """ - # get a database cursor - cursor = db.get_db().cursor() - # get the model params from the database - query = 'SELECT beta_vals FROM model1_params ORDER BY sequence_number DESC LIMIT 1' - cursor.execute(query) - return_val = cursor.fetchone() - - params = return_val['beta_vals'] - logging.info(f'params = {params}') - logging.info(f'params datatype = {type(params)}') - - # turn the values from the database into a numpy array - params_array = np.array(list(map(float, params[1:-1].split(',')))) - logging.info(f'params array = {params_array}') - logging.info(f'params_array datatype = {type(params_array)}') - - # turn the variables sent from the UI into a numpy array - input_array = np.array([1.0, float(var01), float(var02)]) - - # calculate the dot product (since this is a fake regression) - prediction = np.dot(params_array, input_array) - - return prediction - diff --git a/api/backend/products/products_routes.py b/api/backend/products/products_routes.py deleted file mode 100644 index 51c4533afc..0000000000 --- a/api/backend/products/products_routes.py +++ /dev/null @@ -1,209 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## - -from flask import Blueprint -from flask import request -from flask import jsonify -from flask import make_response -from flask import current_app -from backend.db_connection import db - -#------------------------------------------------------------ -# Create a new Blueprint object, which is a collection of -# routes. -products = Blueprint('products', __name__) - -#------------------------------------------------------------ -# Get all the products from the database, package them up, -# and return them to the client -@products.route('/products', methods=['GET']) -def get_products(): - query = ''' - SELECT id, - product_code, - product_name, - list_price, - category - FROM products - ''' - - # get a cursor object from the database - cursor = db.get_db().cursor() - - # use cursor to query the database for a list of products - cursor.execute(query) - - # fetch all the data from the cursor - # The cursor will return the data as a - # Python Dictionary - theData = cursor.fetchall() - - # Create a HTTP Response object and add results of the query to it - # after "jasonify"-ing it. - response = make_response(jsonify(theData)) - # set the proper HTTP Status code of 200 (meaning all good) - response.status_code = 200 - # send the response back to the client - return response - -# ------------------------------------------------------------ -# get product information about a specific product -# notice that the route takes and then you see id -# as a parameter to the function. This is one way to send -# parameterized information into the route handler. -@products.route('/product/', methods=['GET']) -def get_product_detail (id): - - query = f'''SELECT id, - product_name, - description, - list_price, - category - FROM products - WHERE id = {str(id)} - ''' - - # logging the query for debugging purposes. - # The output will appear in the Docker logs output - # This line has nothing to do with actually executing the query... - # It is only for debugging purposes. - current_app.logger.info(f'GET /product/ query={query}') - - # get the database connection, execute the query, and - # fetch the results as a Python Dictionary - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - # Another example of logging for debugging purposes. - # You can see if the data you're getting back is what you expect. - current_app.logger.info(f'GET /product/ Result of query = {theData}') - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - -# ------------------------------------------------------------ -# Get the top 5 most expensive products from the database -@products.route('/mostExpensive') -def get_most_pop_products(): - - query = ''' - SELECT product_code, - product_name, - list_price, - reorder_level - FROM products - ORDER BY list_price DESC - LIMIT 5 - ''' - - # Same process as handler above - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - -# ------------------------------------------------------------ -# Route to get the 10 most expensive items from the -# database. -@products.route('/tenMostExpensive', methods=['GET']) -def get_10_most_expensive_products(): - - query = ''' - SELECT product_code, - product_name, - list_price, - reorder_level - FROM products - ORDER BY list_price DESC - LIMIT 10 - ''' - - # Same process as above - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - - -# ------------------------------------------------------------ -# This is a POST route to add a new product. -# Remember, we are using POST routes to create new entries -# in the database. -@products.route('/product', methods=['POST']) -def add_new_product(): - - # In a POST request, there is a - # collecting data from the request object - the_data = request.json - current_app.logger.info(the_data) - - #extracting the variable - name = the_data['product_name'] - description = the_data['product_description'] - price = the_data['product_price'] - category = the_data['product_category'] - - query = f''' - INSERT INTO products (product_name, - description, - category, - list_price) - VALUES ('{name}', '{description}', '{category}', {str(price)}) - ''' - # TODO: Make sure the version of the query above works properly - # Constructing the query - # query = 'insert into products (product_name, description, category, list_price) values ("' - # query += name + '", "' - # query += description + '", "' - # query += category + '", ' - # query += str(price) + ')' - current_app.logger.info(query) - - # executing and committing the insert statement - cursor = db.get_db().cursor() - cursor.execute(query) - db.get_db().commit() - - response = make_response("Successfully added product") - response.status_code = 200 - return response - -# ------------------------------------------------------------ -### Get all product categories -@products.route('/categories', methods = ['GET']) -def get_all_categories(): - query = ''' - SELECT DISTINCT category AS label, category as value - FROM products - WHERE category IS NOT NULL - ORDER BY category - ''' - - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - -# ------------------------------------------------------------ -# This is a stubbed route to update a product in the catalog -# The SQL query would be an UPDATE. -@products.route('/product', methods = ['PUT']) -def update_product(): - product_info = request.json - current_app.logger.info(product_info) - - return "Success" - diff --git a/api/backend/simple/playlist.py b/api/backend/simple/playlist.py deleted file mode 100644 index a9e7a9ef03..0000000000 --- a/api/backend/simple/playlist.py +++ /dev/null @@ -1,129 +0,0 @@ -# ------------------------------------------------------------ -# Sample data for testing generated by ChatGPT -# ------------------------------------------------------------ - -sample_playlist_data = { - "playlist": { - "id": "37i9dQZF1DXcBWIGoYBM5M", - "name": "Chill Hits", - "description": "Relax and unwind with the latest chill hits.", - "owner": { - "id": "spotify_user_123", - "display_name": "Spotify User" - }, - "tracks": { - "items": [ - { - "track": { - "id": "3n3Ppam7vgaVa1iaRUc9Lp", - "name": "Lose Yourself", - "artists": [ - { - "id": "1dfeR4HaWDbWqFHLkxsg1d", - "name": "Eminem" - } - ], - "album": { - "id": "1ATL5GLyefJaxhQzSPVrLX", - "name": "8 Mile" - }, - "duration_ms": 326000, - "track_number": 1, - "disc_number": 1, - "preview_url": "https://p.scdn.co/mp3-preview/lose-yourself.mp3", - "uri": "spotify:track:3n3Ppam7vgaVa1iaRUc9Lp" - } - }, - { - "track": { - "id": "7ouMYWpwJ422jRcDASZB7P", - "name": "Blinding Lights", - "artists": [ - { - "id": "0fW8E0XdT6aG9aFh6jGpYo", - "name": "The Weeknd" - } - ], - "album": { - "id": "1ATL5GLyefJaxhQzSPVrLX", - "name": "After Hours" - }, - "duration_ms": 200040, - "track_number": 9, - "disc_number": 1, - "preview_url": "https://p.scdn.co/mp3-preview/blinding-lights.mp3", - "uri": "spotify:track:7ouMYWpwJ422jRcDASZB7P" - } - }, - { - "track": { - "id": "4uLU6hMCjMI75M1A2tKUQC", - "name": "Shape of You", - "artists": [ - { - "id": "6eUKZXaKkcviH0Ku9w2n3V", - "name": "Ed Sheeran" - } - ], - "album": { - "id": "3fMbdgg4jU18AjLCKBhRSm", - "name": "Divide" - }, - "duration_ms": 233713, - "track_number": 4, - "disc_number": 1, - "preview_url": "https://p.scdn.co/mp3-preview/shape-of-you.mp3", - "uri": "spotify:track:4uLU6hMCjMI75M1A2tKUQC" - } - }, - { - "track": { - "id": "0VjIjW4GlUZAMYd2vXMi3b", - "name": "Levitating", - "artists": [ - { - "id": "4tZwfgrHOc3mvqYlEYSvVi", - "name": "Dua Lipa" - } - ], - "album": { - "id": "7dGJo4pcD2V6oG8kP0tJRR", - "name": "Future Nostalgia" - }, - "duration_ms": 203693, - "track_number": 5, - "disc_number": 1, - "preview_url": "https://p.scdn.co/mp3-preview/levitating.mp3", - "uri": "spotify:track:0VjIjW4GlUZAMYd2vXMi3b" - } - }, - { - "track": { - "id": "6habFhsOp2NvshLv26DqMb", - "name": "Sunflower", - "artists": [ - { - "id": "1dfeR4HaWDbWqFHLkxsg1d", - "name": "Post Malone" - }, - { - "id": "0C8ZW7ezQVs4URX5aX7Kqx", - "name": "Swae Lee" - } - ], - "album": { - "id": "6k3hyp4efgfHP5GMVd3Agw", - "name": "Spider-Man: Into the Spider-Verse (Soundtrack)" - }, - "duration_ms": 158000, - "track_number": 3, - "disc_number": 1, - "preview_url": "https://p.scdn.co/mp3-preview/sunflower.mp3", - "uri": "spotify:track:6habFhsOp2NvshLv26DqMb" - } - } - ] - }, - "uri": "spotify:playlist:37i9dQZF1DXcBWIGoYBM5M" - } -} \ No newline at end of file diff --git a/api/backend/simple/simple_routes.py b/api/backend/simple/simple_routes.py deleted file mode 100644 index 8685fbac76..0000000000 --- a/api/backend/simple/simple_routes.py +++ /dev/null @@ -1,48 +0,0 @@ -from flask import Blueprint, request, jsonify, make_response, current_app, redirect, url_for -import json -from backend.db_connection import db -from backend.simple.playlist import sample_playlist_data - -# This blueprint handles some basic routes that you can use for testing -simple_routes = Blueprint('simple_routes', __name__) - - -# ------------------------------------------------------------ -# / is the most basic route -# Once the api container is started, in a browser, go to -# localhost:4000/playlist -@simple_routes.route('/') -def welcome(): - current_app.logger.info('GET / handler') - welcome_message = '

Welcome to the CS 3200 Project Template REST API' - response = make_response(welcome_message) - response.status_code = 200 - return response - -# ------------------------------------------------------------ -# /playlist returns the sample playlist data contained in playlist.py -# (imported above) -@simple_routes.route('/playlist') -def get_playlist_data(): - current_app.logger.info('GET /playlist handler') - response = make_response(jsonify(sample_playlist_data)) - response.status_code = 200 - return response - -# ------------------------------------------------------------ -@simple_routes.route('/niceMesage', methods = ['GET']) -def affirmation(): - message = ''' -

Think about it...

-
- You only need to be 1% better today than you were yesterday! - ''' - response = make_response(message) - response.status_code = 200 - return response - -# ------------------------------------------------------------ -# Demonstrates how to redirect from one route to another. -@simple_routes.route('/message') -def mesage(): - return redirect(url_for(affirmation)) \ No newline at end of file diff --git a/app/src/pages/40_Warehouse_Home.py b/app/src/pages/40_Warehouse_Home.py deleted file mode 100644 index c30bab8860..0000000000 --- a/app/src/pages/40_Warehouse_Home.py +++ /dev/null @@ -1,44 +0,0 @@ -import logging -logger = logging.getLogger(__name__) - -import streamlit as st -from modules.nav import SideBarLinks - -st.set_page_config(layout='wide') - -# Show appropriate sidebar links for the role of the currently logged-in user -SideBarLinks() - -# Page Title -st.title(f"Warehouse Manager Portal") -st.write('') -st.write('') -st.write('### Reports') - -# Buttons for functionality -if st.button('Show All Reorders', - type='primary', - use_container_width=True): - st.switch_page('pages/41_Reorders.py') - -if st.button('Show Low Stock', - type='primary', - use_container_width=True): - st.switch_page('pages/42_Low_Stock.py') - - -st.write('### New Product and Categories') - - -if st.button("Add New Product Category", - type='primary', - use_container_width=True): - st.switch_page('pages/43_New_Cat.py') - -if st.button("Add New Product", - type='primary', - use_container_width=True): - st.switch_page('pages/44_New_Product.py') - - - From a8d395943d34bd7e7304f4b3f4a736ddee8cac4c Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 22:31:25 -0500 Subject: [PATCH 264/305] Update student2_routes.py --- api/backend/students/student2_routes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index f68e390d8b..8a6b21ccde 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -8,7 +8,6 @@ from flask import make_response from flask import current_app from backend.db_connection import db -from backend.ml_models.model01 import predict #------------------------------------------------------------ # Create a new Blueprint object, which is a collection of From 0cbd744cb1ef96c09c46543827fdf47748f62b72 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 22:33:37 -0500 Subject: [PATCH 265/305] updating --- app/src/pages/01_Run_System_Logs.py | 51 +++++++++++++++-------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index 7b96c553c3..63bae7dce4 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -9,49 +9,52 @@ SideBarLinks() -# Page Header -st.title("Access System Logs") -st.write("### Monitor system activity and analyze logs in real-time.") +# Set the URL of your API endpoint for system logs +url = "http://api:4000/t/SystemLog" -# Backend API URL -API_URL = "http://api:4000/t/SystemLog" +# Title of the Streamlit application +st.title("System Logs Viewer") -# Fetch System Logs +# Function to fetch system logs with caching +@st.cache_data(show_spinner=True) def fetch_system_logs(): """Fetch logs from the Flask API.""" try: - response = requests.get(API_URL) + response = requests.get(url) response.raise_for_status() # Raise exception for HTTP errors - - st.write("Raw API Response:", response.text) # Print raw response for debugging - - data = response.json() # Assuming API returns JSON (list of dictionaries) - - if not data: - st.warning("No data returned from the API.") - return pd.DataFrame() # Return an empty DataFrame if no data is returned - - # Convert the list of dictionaries directly into a DataFrame - logs_df = pd.DataFrame(data) # Pandas will automatically handle the keys as column headers - - st.write("Logs DataFrame:", logs_df) # Debug DataFrame + data = response.json() # Assuming API returns JSON + # Convert to DataFrame for better handling + logs_df = pd.DataFrame( + data, + columns=["LogID", "TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"] + ) return logs_df except requests.exceptions.RequestException as e: st.error(f"Error fetching system logs: {e}") - return pd.DataFrame() # Return empty DataFrame on error + return pd.DataFrame() # Fetch data logs_df = fetch_system_logs() # Display Logs if not logs_df.empty: + st.title("System Logs Viewer") st.write("### System Logs") + # Interactive Filters col1, col2 = st.columns(2) with col1: - activity_filter = st.multiselect("Filter by Activity", logs_df["Activity"].unique(), default=logs_df["Activity"].unique()) + activity_filter = st.multiselect( + "Filter by Activity", + logs_df["Activity"].unique(), + default=logs_df["Activity"].unique() + ) with col2: - metric_filter = st.multiselect("Filter by Metric Type", logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) + metric_filter = st.multiselect( + "Filter by Metric Type", + logs_df["MetricType"].unique(), + default=logs_df["MetricType"].unique() + ) # Apply Filters filtered_logs = logs_df[ @@ -68,7 +71,7 @@ def fetch_system_logs(): with col1: st.metric("Total Logs", len(filtered_logs)) with col2: - st.metric("High Priority Logs", len(filtered_logs[filtered_logs["MetricType"] == "High"])) + st.metric("High Privacy Logs", len(filtered_logs[filtered_logs["Privacy"] == "High"])) with col3: st.metric("Unique Activities", filtered_logs["Activity"].nunique()) From a9e5800eb618f631cf25e0e823fddc7b2fe14655 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 22:40:03 -0500 Subject: [PATCH 266/305] updates --- .../tech_support_analyst/michael_routes.py | 10 +- app/src/pages/01_Run_System_Logs.py | 92 +++++++------------ 2 files changed, 36 insertions(+), 66 deletions(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index 43ca6ee051..c653bf6781 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -26,15 +26,7 @@ def get_SystemLog(): cursor = db.get_db().cursor() cursor.execute(query) theData = cursor.fetchall() - - # test - - # Convert the fetched data (list of tuples) to a list of dictionaries - column_names = ["LogID", "TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"] - formatted_data = [dict(zip(column_names, row)) for row in theData] - - # Return the formatted data as JSON - response = make_response(jsonify(formatted_data)) + response = make_response(jsonify(theData)) response.status_code = 200 return response diff --git a/app/src/pages/01_Run_System_Logs.py b/app/src/pages/01_Run_System_Logs.py index 63bae7dce4..58c9c695eb 100644 --- a/app/src/pages/01_Run_System_Logs.py +++ b/app/src/pages/01_Run_System_Logs.py @@ -4,6 +4,7 @@ from modules.nav import SideBarLinks import requests import pandas as pd +import time st.set_page_config(layout = 'wide') @@ -15,15 +16,16 @@ # Title of the Streamlit application st.title("System Logs Viewer") -# Function to fetch system logs with caching -@st.cache_data(show_spinner=True) +# Function to fetch system logs +@st.cache_data(ttl=60, show_spinner=True) def fetch_system_logs(): """Fetch logs from the Flask API.""" try: response = requests.get(url) - response.raise_for_status() # Raise exception for HTTP errors - data = response.json() # Assuming API returns JSON - # Convert to DataFrame for better handling + response.raise_for_status() # Raise an exception for HTTP errors + data = response.json() + + # Convert to DataFrame logs_df = pd.DataFrame( data, columns=["LogID", "TicketID", "Timestamp", "Activity", "MetricType", "Privacy", "Security"] @@ -33,61 +35,37 @@ def fetch_system_logs(): st.error(f"Error fetching system logs: {e}") return pd.DataFrame() -# Fetch data -logs_df = fetch_system_logs() +# Streamlit App Layout +st.title("Real-Time App Performance Diagnostics") +st.markdown("This page provides real-time diagnostics on application performance using logs from the SystemLog API.") -# Display Logs -if not logs_df.empty: - st.title("System Logs Viewer") - st.write("### System Logs") - - # Interactive Filters - col1, col2 = st.columns(2) - with col1: - activity_filter = st.multiselect( - "Filter by Activity", - logs_df["Activity"].unique(), - default=logs_df["Activity"].unique() - ) - with col2: - metric_filter = st.multiselect( - "Filter by Metric Type", - logs_df["MetricType"].unique(), - default=logs_df["MetricType"].unique() - ) +# Set up auto-refresh +refresh_interval = st.slider("Set refresh interval (seconds):", min_value=10, max_value=60, value=30, step=5) +st.info(f"The page will refresh every {refresh_interval} seconds.") + +# Real-time Logs Display +placeholder = st.empty() # Placeholder for the data - # Apply Filters - filtered_logs = logs_df[ - (logs_df["Activity"].isin(activity_filter)) & - (logs_df["MetricType"].isin(metric_filter)) - ] +while True: + # Fetch system logs + logs_df = fetch_system_logs() - # Display Filtered Logs - st.dataframe(filtered_logs, use_container_width=True) + with placeholder.container(): + if not logs_df.empty: + st.dataframe(logs_df, use_container_width=True) - # Summary Metrics - st.write("### Summary Metrics") - col1, col2, col3 = st.columns(3) - with col1: - st.metric("Total Logs", len(filtered_logs)) - with col2: - st.metric("High Privacy Logs", len(filtered_logs[filtered_logs["Privacy"] == "High"])) - with col3: - st.metric("Unique Activities", filtered_logs["Activity"].nunique()) + # Show summary metrics + st.write("### Summary Metrics") + col1, col2, col3 = st.columns(3) + with col1: + st.metric("Total Logs", len(logs_df)) + with col2: + st.metric("Critical Logs", len(logs_df[logs_df["MetricType"] == "Critical"])) + with col3: + st.metric("Unique Activities", logs_df["Activity"].nunique()) + else: + st.warning("No logs available at the moment.") - # Download Filtered Logs - st.write("### Export Data") - csv_data = filtered_logs.to_csv(index=False) - st.download_button( - label="Download Logs as CSV", - data=csv_data, - file_name="filtered_system_logs.csv", - mime="text/csv", - ) -else: - st.warning("No logs available to display.") + # Refresh page at the specified interval + time.sleep(refresh_interval) -# Footer -st.write("---") -st.write("#### Notes") -st.text("Data fetched directly from the system logs API in real time.") From 1c8f59d15ada13ad4e213358c852241480283a70 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 22:55:23 -0500 Subject: [PATCH 267/305] removing template data files --- database-files/00_northwind.sql | 546 -- ...01_northwind-default-current-timestamp.sql | 546 -- database-files/02_northwind-data.sql | 654 -- database-files/03_add_to_northwind.sql | 22 - database-files/classicModels.sql | 7933 ----------------- database-files/ngo_db.sql | 63 - 6 files changed, 9764 deletions(-) delete mode 100644 database-files/00_northwind.sql delete mode 100644 database-files/01_northwind-default-current-timestamp.sql delete mode 100644 database-files/02_northwind-data.sql delete mode 100644 database-files/03_add_to_northwind.sql delete mode 100644 database-files/classicModels.sql delete mode 100644 database-files/ngo_db.sql diff --git a/database-files/00_northwind.sql b/database-files/00_northwind.sql deleted file mode 100644 index 57678cfc72..0000000000 --- a/database-files/00_northwind.sql +++ /dev/null @@ -1,546 +0,0 @@ -SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; -SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; -SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; - -DROP SCHEMA IF EXISTS `northwind` ; -CREATE SCHEMA IF NOT EXISTS `northwind` DEFAULT CHARACTER SET latin1 ; -USE `northwind` ; - --- ----------------------------------------------------- --- Table `northwind`.`customers` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`customers` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`employees` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`employees` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`privileges` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`privileges` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `privilege_name` VARCHAR(50) NULL DEFAULT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`employee_privileges` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`employee_privileges` ( - `employee_id` INT(11) NOT NULL, - `privilege_id` INT(11) NOT NULL, - PRIMARY KEY (`employee_id`, `privilege_id`), - INDEX `employee_id` (`employee_id` ASC), - INDEX `privilege_id` (`privilege_id` ASC), - INDEX `privilege_id_2` (`privilege_id` ASC), - CONSTRAINT `fk_employee_privileges_employees1` - FOREIGN KEY (`employee_id`) - REFERENCES `northwind`.`employees` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_employee_privileges_privileges1` - FOREIGN KEY (`privilege_id`) - REFERENCES `northwind`.`privileges` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`inventory_transaction_types` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`inventory_transaction_types` ( - `id` TINYINT(4) NOT NULL, - `type_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`shippers` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`shippers` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`orders_tax_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`orders_tax_status` ( - `id` TINYINT(4) NOT NULL, - `tax_status_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`orders_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`orders_status` ( - `id` TINYINT(4) NOT NULL, - `status_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`orders` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`orders` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `employee_id` INT(11) NULL DEFAULT NULL, - `customer_id` INT(11) NULL DEFAULT NULL, - `order_date` DATETIME NULL DEFAULT NULL, - `shipped_date` DATETIME NULL DEFAULT NULL, - `shipper_id` INT(11) NULL DEFAULT NULL, - `ship_name` VARCHAR(50) NULL DEFAULT NULL, - `ship_address` LONGTEXT NULL DEFAULT NULL, - `ship_city` VARCHAR(50) NULL DEFAULT NULL, - `ship_state_province` VARCHAR(50) NULL DEFAULT NULL, - `ship_zip_postal_code` VARCHAR(50) NULL DEFAULT NULL, - `ship_country_region` VARCHAR(50) NULL DEFAULT NULL, - `shipping_fee` DECIMAL(19,4) NULL DEFAULT '0.0000', - `taxes` DECIMAL(19,4) NULL DEFAULT '0.0000', - `payment_type` VARCHAR(50) NULL DEFAULT NULL, - `paid_date` DATETIME NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `tax_rate` DOUBLE NULL DEFAULT '0', - `tax_status_id` TINYINT(4) NULL DEFAULT NULL, - `status_id` TINYINT(4) NULL DEFAULT '0', - PRIMARY KEY (`id`), - INDEX `customer_id` (`customer_id` ASC), - INDEX `customer_id_2` (`customer_id` ASC), - INDEX `employee_id` (`employee_id` ASC), - INDEX `employee_id_2` (`employee_id` ASC), - INDEX `id` (`id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `shipper_id` (`shipper_id` ASC), - INDEX `shipper_id_2` (`shipper_id` ASC), - INDEX `id_3` (`id` ASC), - INDEX `tax_status` (`tax_status_id` ASC), - INDEX `ship_zip_postal_code` (`ship_zip_postal_code` ASC), - CONSTRAINT `fk_orders_customers` - FOREIGN KEY (`customer_id`) - REFERENCES `northwind`.`customers` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_employees1` - FOREIGN KEY (`employee_id`) - REFERENCES `northwind`.`employees` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_shippers1` - FOREIGN KEY (`shipper_id`) - REFERENCES `northwind`.`shippers` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_orders_tax_status1` - FOREIGN KEY (`tax_status_id`) - REFERENCES `northwind`.`orders_tax_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_orders_status1` - FOREIGN KEY (`status_id`) - REFERENCES `northwind`.`orders_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`products` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`products` ( - `supplier_ids` LONGTEXT NULL DEFAULT NULL, - `id` INT(11) NOT NULL AUTO_INCREMENT, - `product_code` VARCHAR(25) NULL DEFAULT NULL, - `product_name` VARCHAR(50) NULL DEFAULT NULL, - `description` LONGTEXT NULL DEFAULT NULL, - `standard_cost` DECIMAL(19,4) NULL DEFAULT '0.0000', - `list_price` DECIMAL(19,4) NOT NULL DEFAULT '0.0000', - `reorder_level` INT(11) NULL DEFAULT NULL, - `target_level` INT(11) NULL DEFAULT NULL, - `quantity_per_unit` VARCHAR(50) NULL DEFAULT NULL, - `discontinued` TINYINT(1) NOT NULL DEFAULT '0', - `minimum_reorder_quantity` INT(11) NULL DEFAULT NULL, - `category` VARCHAR(50) NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `product_code` (`product_code` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`purchase_order_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`purchase_order_status` ( - `id` INT(11) NOT NULL, - `status` VARCHAR(50) NULL DEFAULT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`suppliers` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`suppliers` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`purchase_orders` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`purchase_orders` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `supplier_id` INT(11) NULL DEFAULT NULL, - `created_by` INT(11) NULL DEFAULT NULL, - `submitted_date` DATETIME NULL DEFAULT NULL, - `creation_date` DATETIME NULL DEFAULT NULL, - `status_id` INT(11) NULL DEFAULT '0', - `expected_date` DATETIME NULL DEFAULT NULL, - `shipping_fee` DECIMAL(19,4) NOT NULL DEFAULT '0.0000', - `taxes` DECIMAL(19,4) NOT NULL DEFAULT '0.0000', - `payment_date` DATETIME NULL DEFAULT NULL, - `payment_amount` DECIMAL(19,4) NULL DEFAULT '0.0000', - `payment_method` VARCHAR(50) NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `approved_by` INT(11) NULL DEFAULT NULL, - `approved_date` DATETIME NULL DEFAULT NULL, - `submitted_by` INT(11) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE INDEX `id` (`id` ASC), - INDEX `created_by` (`created_by` ASC), - INDEX `status_id` (`status_id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `supplier_id` (`supplier_id` ASC), - INDEX `supplier_id_2` (`supplier_id` ASC), - CONSTRAINT `fk_purchase_orders_employees1` - FOREIGN KEY (`created_by`) - REFERENCES `northwind`.`employees` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_orders_purchase_order_status1` - FOREIGN KEY (`status_id`) - REFERENCES `northwind`.`purchase_order_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_orders_suppliers1` - FOREIGN KEY (`supplier_id`) - REFERENCES `northwind`.`suppliers` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`inventory_transactions` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`inventory_transactions` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `transaction_type` TINYINT(4) NOT NULL, - `transaction_created_date` DATETIME NULL DEFAULT NULL, - `transaction_modified_date` DATETIME NULL DEFAULT NULL, - `product_id` INT(11) NOT NULL, - `quantity` INT(11) NOT NULL, - `purchase_order_id` INT(11) NULL DEFAULT NULL, - `customer_order_id` INT(11) NULL DEFAULT NULL, - `comments` VARCHAR(255) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `customer_order_id` (`customer_order_id` ASC), - INDEX `customer_order_id_2` (`customer_order_id` ASC), - INDEX `product_id` (`product_id` ASC), - INDEX `product_id_2` (`product_id` ASC), - INDEX `purchase_order_id` (`purchase_order_id` ASC), - INDEX `purchase_order_id_2` (`purchase_order_id` ASC), - INDEX `transaction_type` (`transaction_type` ASC), - CONSTRAINT `fk_inventory_transactions_orders1` - FOREIGN KEY (`customer_order_id`) - REFERENCES `northwind`.`orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_inventory_transactions_products1` - FOREIGN KEY (`product_id`) - REFERENCES `northwind`.`products` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_inventory_transactions_purchase_orders1` - FOREIGN KEY (`purchase_order_id`) - REFERENCES `northwind`.`purchase_orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_inventory_transactions_inventory_transaction_types1` - FOREIGN KEY (`transaction_type`) - REFERENCES `northwind`.`inventory_transaction_types` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`invoices` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`invoices` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `order_id` INT(11) NULL DEFAULT NULL, - `invoice_date` DATETIME NULL DEFAULT NULL, - `due_date` DATETIME NULL DEFAULT NULL, - `tax` DECIMAL(19,4) NULL DEFAULT '0.0000', - `shipping` DECIMAL(19,4) NULL DEFAULT '0.0000', - `amount_due` DECIMAL(19,4) NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - INDEX `id` (`id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `fk_invoices_orders1_idx` (`order_id` ASC), - CONSTRAINT `fk_invoices_orders1` - FOREIGN KEY (`order_id`) - REFERENCES `northwind`.`orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`order_details_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`order_details_status` ( - `id` INT(11) NOT NULL, - `status_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`order_details` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`order_details` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `order_id` INT(11) NOT NULL, - `product_id` INT(11) NULL DEFAULT NULL, - `quantity` DECIMAL(18,4) NOT NULL DEFAULT '0.0000', - `unit_price` DECIMAL(19,4) NULL DEFAULT '0.0000', - `discount` DOUBLE NOT NULL DEFAULT '0', - `status_id` INT(11) NULL DEFAULT NULL, - `date_allocated` DATETIME NULL DEFAULT NULL, - `purchase_order_id` INT(11) NULL DEFAULT NULL, - `inventory_id` INT(11) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `id` (`id` ASC), - INDEX `inventory_id` (`inventory_id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `id_3` (`id` ASC), - INDEX `id_4` (`id` ASC), - INDEX `product_id` (`product_id` ASC), - INDEX `product_id_2` (`product_id` ASC), - INDEX `purchase_order_id` (`purchase_order_id` ASC), - INDEX `id_5` (`id` ASC), - INDEX `fk_order_details_orders1_idx` (`order_id` ASC), - INDEX `fk_order_details_order_details_status1_idx` (`status_id` ASC), - CONSTRAINT `fk_order_details_orders1` - FOREIGN KEY (`order_id`) - REFERENCES `northwind`.`orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_order_details_products1` - FOREIGN KEY (`product_id`) - REFERENCES `northwind`.`products` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_order_details_order_details_status1` - FOREIGN KEY (`status_id`) - REFERENCES `northwind`.`order_details_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`purchase_order_details` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`purchase_order_details` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `purchase_order_id` INT(11) NOT NULL, - `product_id` INT(11) NULL DEFAULT NULL, - `quantity` DECIMAL(18,4) NOT NULL, - `unit_cost` DECIMAL(19,4) NOT NULL, - `date_received` DATETIME NULL DEFAULT NULL, - `posted_to_inventory` TINYINT(1) NOT NULL DEFAULT '0', - `inventory_id` INT(11) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `id` (`id` ASC), - INDEX `inventory_id` (`inventory_id` ASC), - INDEX `inventory_id_2` (`inventory_id` ASC), - INDEX `purchase_order_id` (`purchase_order_id` ASC), - INDEX `product_id` (`product_id` ASC), - INDEX `product_id_2` (`product_id` ASC), - INDEX `purchase_order_id_2` (`purchase_order_id` ASC), - CONSTRAINT `fk_purchase_order_details_inventory_transactions1` - FOREIGN KEY (`inventory_id`) - REFERENCES `northwind`.`inventory_transactions` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_order_details_products1` - FOREIGN KEY (`product_id`) - REFERENCES `northwind`.`products` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_order_details_purchase_orders1` - FOREIGN KEY (`purchase_order_id`) - REFERENCES `northwind`.`purchase_orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`sales_reports` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`sales_reports` ( - `group_by` VARCHAR(50) NOT NULL, - `display` VARCHAR(50) NULL DEFAULT NULL, - `title` VARCHAR(50) NULL DEFAULT NULL, - `filter_row_source` LONGTEXT NULL DEFAULT NULL, - `default` TINYINT(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`group_by`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`strings` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`strings` ( - `string_id` INT(11) NOT NULL AUTO_INCREMENT, - `string_data` VARCHAR(255) NULL DEFAULT NULL, - PRIMARY KEY (`string_id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - -SET SQL_MODE=@OLD_SQL_MODE; -SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; -SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; diff --git a/database-files/01_northwind-default-current-timestamp.sql b/database-files/01_northwind-default-current-timestamp.sql deleted file mode 100644 index 5596e4759c..0000000000 --- a/database-files/01_northwind-default-current-timestamp.sql +++ /dev/null @@ -1,546 +0,0 @@ -SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; -SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; -SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; - -DROP SCHEMA IF EXISTS `northwind` ; -CREATE SCHEMA IF NOT EXISTS `northwind` DEFAULT CHARACTER SET latin1 ; -USE `northwind` ; - --- ----------------------------------------------------- --- Table `northwind`.`customers` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`customers` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`employees` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`employees` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`privileges` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`privileges` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `privilege_name` VARCHAR(50) NULL DEFAULT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`employee_privileges` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`employee_privileges` ( - `employee_id` INT(11) NOT NULL, - `privilege_id` INT(11) NOT NULL, - PRIMARY KEY (`employee_id`, `privilege_id`), - INDEX `employee_id` (`employee_id` ASC), - INDEX `privilege_id` (`privilege_id` ASC), - INDEX `privilege_id_2` (`privilege_id` ASC), - CONSTRAINT `fk_employee_privileges_employees1` - FOREIGN KEY (`employee_id`) - REFERENCES `northwind`.`employees` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_employee_privileges_privileges1` - FOREIGN KEY (`privilege_id`) - REFERENCES `northwind`.`privileges` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`inventory_transaction_types` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`inventory_transaction_types` ( - `id` TINYINT(4) NOT NULL, - `type_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`shippers` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`shippers` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`orders_tax_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`orders_tax_status` ( - `id` TINYINT(4) NOT NULL, - `tax_status_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`orders_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`orders_status` ( - `id` TINYINT(4) NOT NULL, - `status_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`orders` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`orders` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `employee_id` INT(11) NULL DEFAULT NULL, - `customer_id` INT(11) NULL DEFAULT NULL, - `order_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `shipped_date` DATETIME NULL DEFAULT NULL, - `shipper_id` INT(11) NULL DEFAULT NULL, - `ship_name` VARCHAR(50) NULL DEFAULT NULL, - `ship_address` LONGTEXT NULL DEFAULT NULL, - `ship_city` VARCHAR(50) NULL DEFAULT NULL, - `ship_state_province` VARCHAR(50) NULL DEFAULT NULL, - `ship_zip_postal_code` VARCHAR(50) NULL DEFAULT NULL, - `ship_country_region` VARCHAR(50) NULL DEFAULT NULL, - `shipping_fee` DECIMAL(19,4) NULL DEFAULT '0.0000', - `taxes` DECIMAL(19,4) NULL DEFAULT '0.0000', - `payment_type` VARCHAR(50) NULL DEFAULT NULL, - `paid_date` DATETIME NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `tax_rate` DOUBLE NULL DEFAULT '0', - `tax_status_id` TINYINT(4) NULL DEFAULT NULL, - `status_id` TINYINT(4) NULL DEFAULT '0', - PRIMARY KEY (`id`), - INDEX `customer_id` (`customer_id` ASC), - INDEX `customer_id_2` (`customer_id` ASC), - INDEX `employee_id` (`employee_id` ASC), - INDEX `employee_id_2` (`employee_id` ASC), - INDEX `id` (`id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `shipper_id` (`shipper_id` ASC), - INDEX `shipper_id_2` (`shipper_id` ASC), - INDEX `id_3` (`id` ASC), - INDEX `tax_status` (`tax_status_id` ASC), - INDEX `ship_zip_postal_code` (`ship_zip_postal_code` ASC), - CONSTRAINT `fk_orders_customers` - FOREIGN KEY (`customer_id`) - REFERENCES `northwind`.`customers` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_employees1` - FOREIGN KEY (`employee_id`) - REFERENCES `northwind`.`employees` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_shippers1` - FOREIGN KEY (`shipper_id`) - REFERENCES `northwind`.`shippers` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_orders_tax_status1` - FOREIGN KEY (`tax_status_id`) - REFERENCES `northwind`.`orders_tax_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_orders_orders_status1` - FOREIGN KEY (`status_id`) - REFERENCES `northwind`.`orders_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`products` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`products` ( - `supplier_ids` LONGTEXT NULL DEFAULT NULL, - `id` INT(11) NOT NULL AUTO_INCREMENT, - `product_code` VARCHAR(25) NULL DEFAULT NULL, - `product_name` VARCHAR(50) NULL DEFAULT NULL, - `description` LONGTEXT NULL DEFAULT NULL, - `standard_cost` DECIMAL(19,4) NULL DEFAULT '0.0000', - `list_price` DECIMAL(19,4) NOT NULL DEFAULT '0.0000', - `reorder_level` INT(11) NULL DEFAULT NULL, - `target_level` INT(11) NULL DEFAULT NULL, - `quantity_per_unit` VARCHAR(50) NULL DEFAULT NULL, - `discontinued` TINYINT(1) NOT NULL DEFAULT '0', - `minimum_reorder_quantity` INT(11) NULL DEFAULT NULL, - `category` VARCHAR(50) NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `product_code` (`product_code` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`purchase_order_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`purchase_order_status` ( - `id` INT(11) NOT NULL, - `status` VARCHAR(50) NULL DEFAULT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`suppliers` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`suppliers` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `company` VARCHAR(50) NULL DEFAULT NULL, - `last_name` VARCHAR(50) NULL DEFAULT NULL, - `first_name` VARCHAR(50) NULL DEFAULT NULL, - `email_address` VARCHAR(50) NULL DEFAULT NULL, - `job_title` VARCHAR(50) NULL DEFAULT NULL, - `business_phone` VARCHAR(25) NULL DEFAULT NULL, - `home_phone` VARCHAR(25) NULL DEFAULT NULL, - `mobile_phone` VARCHAR(25) NULL DEFAULT NULL, - `fax_number` VARCHAR(25) NULL DEFAULT NULL, - `address` LONGTEXT NULL DEFAULT NULL, - `city` VARCHAR(50) NULL DEFAULT NULL, - `state_province` VARCHAR(50) NULL DEFAULT NULL, - `zip_postal_code` VARCHAR(15) NULL DEFAULT NULL, - `country_region` VARCHAR(50) NULL DEFAULT NULL, - `web_page` LONGTEXT NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `attachments` LONGBLOB NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `city` (`city` ASC), - INDEX `company` (`company` ASC), - INDEX `first_name` (`first_name` ASC), - INDEX `last_name` (`last_name` ASC), - INDEX `zip_postal_code` (`zip_postal_code` ASC), - INDEX `state_province` (`state_province` ASC)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`purchase_orders` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`purchase_orders` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `supplier_id` INT(11) NULL DEFAULT NULL, - `created_by` INT(11) NULL DEFAULT NULL, - `submitted_date` DATETIME NULL DEFAULT NULL, - `creation_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `status_id` INT(11) NULL DEFAULT '0', - `expected_date` DATETIME NULL DEFAULT NULL, - `shipping_fee` DECIMAL(19,4) NOT NULL DEFAULT '0.0000', - `taxes` DECIMAL(19,4) NOT NULL DEFAULT '0.0000', - `payment_date` DATETIME NULL DEFAULT NULL, - `payment_amount` DECIMAL(19,4) NULL DEFAULT '0.0000', - `payment_method` VARCHAR(50) NULL DEFAULT NULL, - `notes` LONGTEXT NULL DEFAULT NULL, - `approved_by` INT(11) NULL DEFAULT NULL, - `approved_date` DATETIME NULL DEFAULT NULL, - `submitted_by` INT(11) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE INDEX `id` (`id` ASC), - INDEX `created_by` (`created_by` ASC), - INDEX `status_id` (`status_id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `supplier_id` (`supplier_id` ASC), - INDEX `supplier_id_2` (`supplier_id` ASC), - CONSTRAINT `fk_purchase_orders_employees1` - FOREIGN KEY (`created_by`) - REFERENCES `northwind`.`employees` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_orders_purchase_order_status1` - FOREIGN KEY (`status_id`) - REFERENCES `northwind`.`purchase_order_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_orders_suppliers1` - FOREIGN KEY (`supplier_id`) - REFERENCES `northwind`.`suppliers` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`inventory_transactions` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`inventory_transactions` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `transaction_type` TINYINT(4) NOT NULL, - `transaction_created_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `transaction_modified_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `product_id` INT(11) NOT NULL, - `quantity` INT(11) NOT NULL, - `purchase_order_id` INT(11) NULL DEFAULT NULL, - `customer_order_id` INT(11) NULL DEFAULT NULL, - `comments` VARCHAR(255) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `customer_order_id` (`customer_order_id` ASC), - INDEX `customer_order_id_2` (`customer_order_id` ASC), - INDEX `product_id` (`product_id` ASC), - INDEX `product_id_2` (`product_id` ASC), - INDEX `purchase_order_id` (`purchase_order_id` ASC), - INDEX `purchase_order_id_2` (`purchase_order_id` ASC), - INDEX `transaction_type` (`transaction_type` ASC), - CONSTRAINT `fk_inventory_transactions_orders1` - FOREIGN KEY (`customer_order_id`) - REFERENCES `northwind`.`orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_inventory_transactions_products1` - FOREIGN KEY (`product_id`) - REFERENCES `northwind`.`products` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_inventory_transactions_purchase_orders1` - FOREIGN KEY (`purchase_order_id`) - REFERENCES `northwind`.`purchase_orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_inventory_transactions_inventory_transaction_types1` - FOREIGN KEY (`transaction_type`) - REFERENCES `northwind`.`inventory_transaction_types` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`invoices` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`invoices` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `order_id` INT(11) NULL DEFAULT NULL, - `invoice_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - `due_date` DATETIME NULL DEFAULT NULL, - `tax` DECIMAL(19,4) NULL DEFAULT '0.0000', - `shipping` DECIMAL(19,4) NULL DEFAULT '0.0000', - `amount_due` DECIMAL(19,4) NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - INDEX `id` (`id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `fk_invoices_orders1_idx` (`order_id` ASC), - CONSTRAINT `fk_invoices_orders1` - FOREIGN KEY (`order_id`) - REFERENCES `northwind`.`orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`order_details_status` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`order_details_status` ( - `id` INT(11) NOT NULL, - `status_name` VARCHAR(50) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`order_details` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`order_details` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `order_id` INT(11) NOT NULL, - `product_id` INT(11) NULL DEFAULT NULL, - `quantity` DECIMAL(18,4) NOT NULL DEFAULT '0.0000', - `unit_price` DECIMAL(19,4) NULL DEFAULT '0.0000', - `discount` DOUBLE NOT NULL DEFAULT '0', - `status_id` INT(11) NULL DEFAULT NULL, - `date_allocated` DATETIME NULL DEFAULT NULL, - `purchase_order_id` INT(11) NULL DEFAULT NULL, - `inventory_id` INT(11) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `id` (`id` ASC), - INDEX `inventory_id` (`inventory_id` ASC), - INDEX `id_2` (`id` ASC), - INDEX `id_3` (`id` ASC), - INDEX `id_4` (`id` ASC), - INDEX `product_id` (`product_id` ASC), - INDEX `product_id_2` (`product_id` ASC), - INDEX `purchase_order_id` (`purchase_order_id` ASC), - INDEX `id_5` (`id` ASC), - INDEX `fk_order_details_orders1_idx` (`order_id` ASC), - INDEX `fk_order_details_order_details_status1_idx` (`status_id` ASC), - CONSTRAINT `fk_order_details_orders1` - FOREIGN KEY (`order_id`) - REFERENCES `northwind`.`orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_order_details_products1` - FOREIGN KEY (`product_id`) - REFERENCES `northwind`.`products` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_order_details_order_details_status1` - FOREIGN KEY (`status_id`) - REFERENCES `northwind`.`order_details_status` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`purchase_order_details` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`purchase_order_details` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `purchase_order_id` INT(11) NOT NULL, - `product_id` INT(11) NULL DEFAULT NULL, - `quantity` DECIMAL(18,4) NOT NULL, - `unit_cost` DECIMAL(19,4) NOT NULL, - `date_received` DATETIME NULL DEFAULT NULL, - `posted_to_inventory` TINYINT(1) NOT NULL DEFAULT '0', - `inventory_id` INT(11) NULL DEFAULT NULL, - PRIMARY KEY (`id`), - INDEX `id` (`id` ASC), - INDEX `inventory_id` (`inventory_id` ASC), - INDEX `inventory_id_2` (`inventory_id` ASC), - INDEX `purchase_order_id` (`purchase_order_id` ASC), - INDEX `product_id` (`product_id` ASC), - INDEX `product_id_2` (`product_id` ASC), - INDEX `purchase_order_id_2` (`purchase_order_id` ASC), - CONSTRAINT `fk_purchase_order_details_inventory_transactions1` - FOREIGN KEY (`inventory_id`) - REFERENCES `northwind`.`inventory_transactions` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_order_details_products1` - FOREIGN KEY (`product_id`) - REFERENCES `northwind`.`products` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_purchase_order_details_purchase_orders1` - FOREIGN KEY (`purchase_order_id`) - REFERENCES `northwind`.`purchase_orders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`sales_reports` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`sales_reports` ( - `group_by` VARCHAR(50) NOT NULL, - `display` VARCHAR(50) NULL DEFAULT NULL, - `title` VARCHAR(50) NULL DEFAULT NULL, - `filter_row_source` LONGTEXT NULL DEFAULT NULL, - `default` TINYINT(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`group_by`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - --- ----------------------------------------------------- --- Table `northwind`.`strings` --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS `northwind`.`strings` ( - `string_id` INT(11) NOT NULL AUTO_INCREMENT, - `string_data` VARCHAR(255) NULL DEFAULT NULL, - PRIMARY KEY (`string_id`)) -ENGINE = InnoDB -DEFAULT CHARACTER SET = utf8; - - -SET SQL_MODE=@OLD_SQL_MODE; -SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; -SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; diff --git a/database-files/02_northwind-data.sql b/database-files/02_northwind-data.sql deleted file mode 100644 index e4477299ac..0000000000 --- a/database-files/02_northwind-data.sql +++ /dev/null @@ -1,654 +0,0 @@ -# -# Converted from MS Access 2010 Northwind database (northwind.accdb) using -# Bullzip MS Access to MySQL Version 5.1.242. http://www.bullzip.com -# -# CHANGES MADE AFTER INITIAL CONVERSION -# * column and row names in CamelCase converted to lower_case_with_underscore -# * space and slash ("/") in table and column names replaced with _underscore_ -# * id column names converted to "id" -# * foreign key column names converted to xxx_id -# * variables of type TIMESTAMP converted to DATETIME to avoid TIMESTAMP -# range limitation (1997 - 2038 UTC), and other limitations. -# * unique and foreign key checks disabled while loading data -# -#------------------------------------------------------------------ -# - -SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; -SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; - -USE `northwind`; - -# -# Dumping data for table 'customers' -# - -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (1, 'Company A', 'Bedecs', 'Anna', NULL, 'Owner', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 1st Street', 'Seattle', 'WA', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (2, 'Company B', 'Gratacos Solsona', 'Antonio', NULL, 'Owner', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 2nd Street', 'Boston', 'MA', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (3, 'Company C', 'Axen', 'Thomas', NULL, 'Purchasing Representative', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 3rd Street', 'Los Angelas', 'CA', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (4, 'Company D', 'Lee', 'Christina', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 4th Street', 'New York', 'NY', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (5, 'Company E', 'O’Donnell', 'Martin', NULL, 'Owner', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 5th Street', 'Minneapolis', 'MN', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (6, 'Company F', 'Pérez-Olaeta', 'Francisco', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 6th Street', 'Milwaukee', 'WI', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (7, 'Company G', 'Xie', 'Ming-Yang', NULL, 'Owner', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 7th Street', 'Boise', 'ID', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (8, 'Company H', 'Andersen', 'Elizabeth', NULL, 'Purchasing Representative', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 8th Street', 'Portland', 'OR', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (9, 'Company I', 'Mortensen', 'Sven', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 9th Street', 'Salt Lake City', 'UT', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (10, 'Company J', 'Wacker', 'Roland', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 10th Street', 'Chicago', 'IL', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (11, 'Company K', 'Krschne', 'Peter', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 11th Street', 'Miami', 'FL', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (12, 'Company L', 'Edwards', 'John', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 12th Street', 'Las Vegas', 'NV', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (13, 'Company M', 'Ludick', 'Andre', NULL, 'Purchasing Representative', '(123)555-0100', NULL, NULL, '(123)555-0101', '456 13th Street', 'Memphis', 'TN', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (14, 'Company N', 'Grilo', 'Carlos', NULL, 'Purchasing Representative', '(123)555-0100', NULL, NULL, '(123)555-0101', '456 14th Street', 'Denver', 'CO', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (15, 'Company O', 'Kupkova', 'Helena', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '456 15th Street', 'Honolulu', 'HI', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (16, 'Company P', 'Goldschmidt', 'Daniel', NULL, 'Purchasing Representative', '(123)555-0100', NULL, NULL, '(123)555-0101', '456 16th Street', 'San Francisco', 'CA', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (17, 'Company Q', 'Bagel', 'Jean Philippe', NULL, 'Owner', '(123)555-0100', NULL, NULL, '(123)555-0101', '456 17th Street', 'Seattle', 'WA', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (18, 'Company R', 'Autier Miconi', 'Catherine', NULL, 'Purchasing Representative', '(123)555-0100', NULL, NULL, '(123)555-0101', '456 18th Street', 'Boston', 'MA', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (19, 'Company S', 'Eggerer', 'Alexander', NULL, 'Accounting Assistant', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 19th Street', 'Los Angelas', 'CA', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (20, 'Company T', 'Li', 'George', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 20th Street', 'New York', 'NY', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (21, 'Company U', 'Tham', 'Bernard', NULL, 'Accounting Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 21th Street', 'Minneapolis', 'MN', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (22, 'Company V', 'Ramos', 'Luciana', NULL, 'Purchasing Assistant', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 22th Street', 'Milwaukee', 'WI', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (23, 'Company W', 'Entin', 'Michael', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 23th Street', 'Portland', 'OR', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (24, 'Company X', 'Hasselberg', 'Jonas', NULL, 'Owner', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 24th Street', 'Salt Lake City', 'UT', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (25, 'Company Y', 'Rodman', 'John', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 25th Street', 'Chicago', 'IL', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (26, 'Company Z', 'Liu', 'Run', NULL, 'Accounting Assistant', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 26th Street', 'Miami', 'FL', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (27, 'Company AA', 'Toh', 'Karen', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 27th Street', 'Las Vegas', 'NV', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (28, 'Company BB', 'Raghav', 'Amritansh', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 28th Street', 'Memphis', 'TN', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `customers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (29, 'Company CC', 'Lee', 'Soo Jung', NULL, 'Purchasing Manager', '(123)555-0100', NULL, NULL, '(123)555-0101', '789 29th Street', 'Denver', 'CO', '99999', 'USA', NULL, NULL, ''); -# 29 records - -# -# Dumping data for table 'employee_privileges' -# - -INSERT INTO `employee_privileges` (`employee_id`, `privilege_id`) VALUES (2, 2); -# 1 records - -# -# Dumping data for table 'employees' -# - -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (1, 'Northwind Traders', 'Freehafer', 'Nancy', 'nancy@northwindtraders.com', 'Sales Representative', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 1st Avenue', 'Seattle', 'WA', '99999', 'USA', '#http://northwindtraders.com#', NULL, ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (2, 'Northwind Traders', 'Cencini', 'Andrew', 'andrew@northwindtraders.com', 'Vice President, Sales', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 2nd Avenue', 'Bellevue', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', 'Joined the company as a sales representative, was promoted to sales manager and was then named vice president of sales.', ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (3, 'Northwind Traders', 'Kotas', 'Jan', 'jan@northwindtraders.com', 'Sales Representative', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 3rd Avenue', 'Redmond', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', 'Was hired as a sales associate and was promoted to sales representative.', ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (4, 'Northwind Traders', 'Sergienko', 'Mariya', 'mariya@northwindtraders.com', 'Sales Representative', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 4th Avenue', 'Kirkland', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', NULL, ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (5, 'Northwind Traders', 'Thorpe', 'Steven', 'steven@northwindtraders.com', 'Sales Manager', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 5th Avenue', 'Seattle', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', 'Joined the company as a sales representative and was promoted to sales manager. Fluent in French.', ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (6, 'Northwind Traders', 'Neipper', 'Michael', 'michael@northwindtraders.com', 'Sales Representative', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 6th Avenue', 'Redmond', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', 'Fluent in Japanese and can read and write French, Portuguese, and Spanish.', ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (7, 'Northwind Traders', 'Zare', 'Robert', 'robert@northwindtraders.com', 'Sales Representative', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 7th Avenue', 'Seattle', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', NULL, ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (8, 'Northwind Traders', 'Giussani', 'Laura', 'laura@northwindtraders.com', 'Sales Coordinator', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 8th Avenue', 'Redmond', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', 'Reads and writes French.', ''); -INSERT INTO `employees` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (9, 'Northwind Traders', 'Hellung-Larsen', 'Anne', 'anne@northwindtraders.com', 'Sales Representative', '(123)555-0100', '(123)555-0102', NULL, '(123)555-0103', '123 9th Avenue', 'Seattle', 'WA', '99999', 'USA', 'http://northwindtraders.com#http://northwindtraders.com/#', 'Fluent in French and German.', ''); -# 9 records - -# -# Dumping data for table 'inventory_transaction_types' -# - -INSERT INTO `inventory_transaction_types` (`id`, `type_name`) VALUES (1, 'Purchased'); -INSERT INTO `inventory_transaction_types` (`id`, `type_name`) VALUES (2, 'Sold'); -INSERT INTO `inventory_transaction_types` (`id`, `type_name`) VALUES (3, 'On Hold'); -INSERT INTO `inventory_transaction_types` (`id`, `type_name`) VALUES (4, 'Waste'); -# 4 records - -# -# Dumping data for table 'inventory_transactions' -# - -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (35, 1, '2006-03-22 16:02:28', '2006-03-22 16:02:28', 80, 75, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (36, 1, '2006-03-22 16:02:48', '2006-03-22 16:02:48', 72, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (37, 1, '2006-03-22 16:03:04', '2006-03-22 16:03:04', 52, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (38, 1, '2006-03-22 16:03:09', '2006-03-22 16:03:09', 56, 120, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (39, 1, '2006-03-22 16:03:14', '2006-03-22 16:03:14', 57, 80, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (40, 1, '2006-03-22 16:03:40', '2006-03-22 16:03:40', 6, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (41, 1, '2006-03-22 16:03:47', '2006-03-22 16:03:47', 7, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (42, 1, '2006-03-22 16:03:54', '2006-03-22 16:03:54', 8, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (43, 1, '2006-03-22 16:04:02', '2006-03-22 16:04:02', 14, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (44, 1, '2006-03-22 16:04:07', '2006-03-22 16:04:07', 17, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (45, 1, '2006-03-22 16:04:12', '2006-03-22 16:04:12', 19, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (46, 1, '2006-03-22 16:04:17', '2006-03-22 16:04:17', 20, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (47, 1, '2006-03-22 16:04:20', '2006-03-22 16:04:20', 21, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (48, 1, '2006-03-22 16:04:24', '2006-03-22 16:04:24', 40, 120, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (49, 1, '2006-03-22 16:04:28', '2006-03-22 16:04:28', 41, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (50, 1, '2006-03-22 16:04:31', '2006-03-22 16:04:31', 48, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (51, 1, '2006-03-22 16:04:38', '2006-03-22 16:04:38', 51, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (52, 1, '2006-03-22 16:04:41', '2006-03-22 16:04:41', 74, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (53, 1, '2006-03-22 16:04:45', '2006-03-22 16:04:45', 77, 60, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (54, 1, '2006-03-22 16:05:07', '2006-03-22 16:05:07', 3, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (55, 1, '2006-03-22 16:05:11', '2006-03-22 16:05:11', 4, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (56, 1, '2006-03-22 16:05:14', '2006-03-22 16:05:14', 5, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (57, 1, '2006-03-22 16:05:26', '2006-03-22 16:05:26', 65, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (58, 1, '2006-03-22 16:05:32', '2006-03-22 16:05:32', 66, 80, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (59, 1, '2006-03-22 16:05:47', '2006-03-22 16:05:47', 1, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (60, 1, '2006-03-22 16:05:51', '2006-03-22 16:05:51', 34, 60, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (61, 1, '2006-03-22 16:06:00', '2006-03-22 16:06:00', 43, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (62, 1, '2006-03-22 16:06:03', '2006-03-22 16:06:03', 81, 125, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (63, 2, '2006-03-22 16:07:56', '2006-03-24 11:03:00', 80, 30, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (64, 2, '2006-03-22 16:08:19', '2006-03-22 16:08:59', 7, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (65, 2, '2006-03-22 16:08:29', '2006-03-22 16:08:59', 51, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (66, 2, '2006-03-22 16:08:37', '2006-03-22 16:08:59', 80, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (67, 2, '2006-03-22 16:09:46', '2006-03-22 16:10:27', 1, 15, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (68, 2, '2006-03-22 16:10:06', '2006-03-22 16:10:27', 43, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (69, 2, '2006-03-22 16:11:39', '2006-03-24 11:00:55', 19, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (70, 2, '2006-03-22 16:11:56', '2006-03-24 10:59:41', 48, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (71, 2, '2006-03-22 16:12:29', '2006-03-24 10:57:38', 8, 17, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (72, 1, '2006-03-24 10:41:30', '2006-03-24 10:41:30', 81, 200, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (73, 2, '2006-03-24 10:41:33', '2006-03-24 10:41:42', 81, 200, NULL, NULL, 'Fill Back Ordered product, Order #40'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (74, 1, '2006-03-24 10:53:13', '2006-03-24 10:53:13', 48, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (75, 2, '2006-03-24 10:53:16', '2006-03-24 10:55:46', 48, 100, NULL, NULL, 'Fill Back Ordered product, Order #39'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (76, 1, '2006-03-24 10:53:36', '2006-03-24 10:53:36', 43, 300, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (77, 2, '2006-03-24 10:53:39', '2006-03-24 10:56:57', 43, 300, NULL, NULL, 'Fill Back Ordered product, Order #38'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (78, 1, '2006-03-24 10:54:04', '2006-03-24 10:54:04', 41, 200, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (79, 2, '2006-03-24 10:54:07', '2006-03-24 10:58:40', 41, 200, NULL, NULL, 'Fill Back Ordered product, Order #36'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (80, 1, '2006-03-24 10:54:33', '2006-03-24 10:54:33', 19, 30, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (81, 2, '2006-03-24 10:54:35', '2006-03-24 11:02:02', 19, 30, NULL, NULL, 'Fill Back Ordered product, Order #33'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (82, 1, '2006-03-24 10:54:58', '2006-03-24 10:54:58', 34, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (83, 2, '2006-03-24 10:55:02', '2006-03-24 11:03:00', 34, 100, NULL, NULL, 'Fill Back Ordered product, Order #30'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (84, 2, '2006-03-24 14:48:15', '2006-04-04 11:41:14', 6, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (85, 2, '2006-03-24 14:48:23', '2006-04-04 11:41:14', 4, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (86, 3, '2006-03-24 14:49:16', '2006-03-24 14:49:16', 80, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (87, 3, '2006-03-24 14:49:20', '2006-03-24 14:49:20', 81, 50, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (88, 3, '2006-03-24 14:50:09', '2006-03-24 14:50:09', 1, 25, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (89, 3, '2006-03-24 14:50:14', '2006-03-24 14:50:14', 43, 25, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (90, 3, '2006-03-24 14:50:18', '2006-03-24 14:50:18', 81, 25, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (91, 2, '2006-03-24 14:51:03', '2006-04-04 11:09:24', 40, 50, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (92, 2, '2006-03-24 14:55:03', '2006-04-04 11:06:56', 21, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (93, 2, '2006-03-24 14:55:39', '2006-04-04 11:06:13', 5, 25, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (94, 2, '2006-03-24 14:55:52', '2006-04-04 11:06:13', 41, 30, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (95, 2, '2006-03-24 14:56:09', '2006-04-04 11:06:13', 40, 30, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (96, 3, '2006-03-30 16:46:34', '2006-03-30 16:46:34', 34, 12, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (97, 3, '2006-03-30 17:23:27', '2006-03-30 17:23:27', 34, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (98, 3, '2006-03-30 17:24:33', '2006-03-30 17:24:33', 34, 1, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (99, 2, '2006-04-03 13:50:08', '2006-04-03 13:50:15', 48, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (100, 1, '2006-04-04 11:00:54', '2006-04-04 11:00:54', 57, 100, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (101, 2, '2006-04-04 11:00:56', '2006-04-04 11:08:49', 57, 100, NULL, NULL, 'Fill Back Ordered product, Order #46'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (102, 1, '2006-04-04 11:01:14', '2006-04-04 11:01:14', 34, 50, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (103, 1, '2006-04-04 11:01:35', '2006-04-04 11:01:35', 43, 250, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (104, 3, '2006-04-04 11:01:37', '2006-04-04 11:01:37', 43, 300, NULL, NULL, 'Fill Back Ordered product, Order #41'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (105, 1, '2006-04-04 11:01:55', '2006-04-04 11:01:55', 8, 25, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (106, 2, '2006-04-04 11:01:58', '2006-04-04 11:07:37', 8, 25, NULL, NULL, 'Fill Back Ordered product, Order #48'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (107, 1, '2006-04-04 11:02:17', '2006-04-04 11:02:17', 34, 300, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (108, 2, '2006-04-04 11:02:19', '2006-04-04 11:08:14', 34, 300, NULL, NULL, 'Fill Back Ordered product, Order #47'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (109, 1, '2006-04-04 11:02:37', '2006-04-04 11:02:37', 19, 25, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (110, 2, '2006-04-04 11:02:39', '2006-04-04 11:41:14', 19, 10, NULL, NULL, 'Fill Back Ordered product, Order #42'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (111, 1, '2006-04-04 11:02:56', '2006-04-04 11:02:56', 19, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (112, 2, '2006-04-04 11:02:58', '2006-04-04 11:07:37', 19, 25, NULL, NULL, 'Fill Back Ordered product, Order #48'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (113, 1, '2006-04-04 11:03:12', '2006-04-04 11:03:12', 72, 50, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (114, 2, '2006-04-04 11:03:14', '2006-04-04 11:08:49', 72, 50, NULL, NULL, 'Fill Back Ordered product, Order #46'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (115, 1, '2006-04-04 11:03:38', '2006-04-04 11:03:38', 41, 50, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (116, 2, '2006-04-04 11:03:39', '2006-04-04 11:09:24', 41, 50, NULL, NULL, 'Fill Back Ordered product, Order #45'); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (117, 2, '2006-04-04 11:04:55', '2006-04-04 11:05:04', 34, 87, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (118, 2, '2006-04-04 11:35:50', '2006-04-04 11:35:54', 51, 30, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (119, 2, '2006-04-04 11:35:51', '2006-04-04 11:35:54', 7, 30, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (120, 2, '2006-04-04 11:36:15', '2006-04-04 11:36:21', 17, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (121, 2, '2006-04-04 11:36:39', '2006-04-04 11:36:47', 6, 90, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (122, 2, '2006-04-04 11:37:06', '2006-04-04 11:37:09', 4, 30, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (123, 2, '2006-04-04 11:37:45', '2006-04-04 11:37:49', 48, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (124, 2, '2006-04-04 11:38:07', '2006-04-04 11:38:11', 48, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (125, 2, '2006-04-04 11:38:27', '2006-04-04 11:38:32', 41, 10, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (126, 2, '2006-04-04 11:38:48', '2006-04-04 11:38:53', 43, 5, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (127, 2, '2006-04-04 11:39:12', '2006-04-04 11:39:29', 40, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (128, 2, '2006-04-04 11:39:50', '2006-04-04 11:39:53', 8, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (129, 2, '2006-04-04 11:40:13', '2006-04-04 11:40:16', 80, 15, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (130, 2, '2006-04-04 11:40:32', '2006-04-04 11:40:38', 74, 20, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (131, 2, '2006-04-04 11:41:39', '2006-04-04 11:41:45', 72, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (132, 2, '2006-04-04 11:42:17', '2006-04-04 11:42:26', 3, 50, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (133, 2, '2006-04-04 11:42:24', '2006-04-04 11:42:26', 8, 3, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (134, 2, '2006-04-04 11:42:48', '2006-04-04 11:43:08', 20, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (135, 2, '2006-04-04 11:43:05', '2006-04-04 11:43:08', 52, 40, NULL, NULL, NULL); -INSERT INTO `inventory_transactions` (`id`, `transaction_type`, `transaction_created_date`, `transaction_modified_date`, `product_id`, `quantity`, `purchase_order_id`, `customer_order_id`, `comments`) VALUES (136, 3, '2006-04-25 17:04:05', '2006-04-25 17:04:57', 56, 110, NULL, NULL, NULL); -# 102 records - -# -# Dumping data for table 'invoices' -# - -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (5, 31, '2006-03-22 16:08:59', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (6, 32, '2006-03-22 16:10:27', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (7, 40, '2006-03-24 10:41:41', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (8, 39, '2006-03-24 10:55:46', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (9, 38, '2006-03-24 10:56:57', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (10, 37, '2006-03-24 10:57:38', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (11, 36, '2006-03-24 10:58:40', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (12, 35, '2006-03-24 10:59:41', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (13, 34, '2006-03-24 11:00:55', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (14, 33, '2006-03-24 11:02:02', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (15, 30, '2006-03-24 11:03:00', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (16, 56, '2006-04-03 13:50:15', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (17, 55, '2006-04-04 11:05:04', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (18, 51, '2006-04-04 11:06:13', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (19, 50, '2006-04-04 11:06:56', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (20, 48, '2006-04-04 11:07:37', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (21, 47, '2006-04-04 11:08:14', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (22, 46, '2006-04-04 11:08:49', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (23, 45, '2006-04-04 11:09:24', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (24, 79, '2006-04-04 11:35:54', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (25, 78, '2006-04-04 11:36:21', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (26, 77, '2006-04-04 11:36:47', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (27, 76, '2006-04-04 11:37:09', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (28, 75, '2006-04-04 11:37:49', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (29, 74, '2006-04-04 11:38:11', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (30, 73, '2006-04-04 11:38:32', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (31, 72, '2006-04-04 11:38:53', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (32, 71, '2006-04-04 11:39:29', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (33, 70, '2006-04-04 11:39:53', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (34, 69, '2006-04-04 11:40:16', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (35, 67, '2006-04-04 11:40:38', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (36, 42, '2006-04-04 11:41:14', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (37, 60, '2006-04-04 11:41:45', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (38, 63, '2006-04-04 11:42:26', NULL, 0, 0, 0); -INSERT INTO `invoices` (`id`, `order_id`, `invoice_date`, `due_date`, `tax`, `shipping`, `amount_due`) VALUES (39, 58, '2006-04-04 11:43:08', NULL, 0, 0, 0); -# 35 records - -# -# Dumping data for table 'order_details' -# - -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (27, 30, 34, 100, 14, 0, 2, NULL, 96, 83); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (28, 30, 80, 30, 3.5, 0, 2, NULL, NULL, 63); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (29, 31, 7, 10, 30, 0, 2, NULL, NULL, 64); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (30, 31, 51, 10, 53, 0, 2, NULL, NULL, 65); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (31, 31, 80, 10, 3.5, 0, 2, NULL, NULL, 66); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (32, 32, 1, 15, 18, 0, 2, NULL, NULL, 67); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (33, 32, 43, 20, 46, 0, 2, NULL, NULL, 68); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (34, 33, 19, 30, 9.2, 0, 2, NULL, 97, 81); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (35, 34, 19, 20, 9.2, 0, 2, NULL, NULL, 69); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (36, 35, 48, 10, 12.75, 0, 2, NULL, NULL, 70); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (37, 36, 41, 200, 9.65, 0, 2, NULL, 98, 79); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (38, 37, 8, 17, 40, 0, 2, NULL, NULL, 71); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (39, 38, 43, 300, 46, 0, 2, NULL, 99, 77); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (40, 39, 48, 100, 12.75, 0, 2, NULL, 100, 75); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (41, 40, 81, 200, 2.99, 0, 2, NULL, 101, 73); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (42, 41, 43, 300, 46, 0, 1, NULL, 102, 104); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (43, 42, 6, 10, 25, 0, 2, NULL, NULL, 84); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (44, 42, 4, 10, 22, 0, 2, NULL, NULL, 85); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (45, 42, 19, 10, 9.2, 0, 2, NULL, 103, 110); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (46, 43, 80, 20, 3.5, 0, 1, NULL, NULL, 86); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (47, 43, 81, 50, 2.99, 0, 1, NULL, NULL, 87); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (48, 44, 1, 25, 18, 0, 1, NULL, NULL, 88); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (49, 44, 43, 25, 46, 0, 1, NULL, NULL, 89); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (50, 44, 81, 25, 2.99, 0, 1, NULL, NULL, 90); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (51, 45, 41, 50, 9.65, 0, 2, NULL, 104, 116); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (52, 45, 40, 50, 18.4, 0, 2, NULL, NULL, 91); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (53, 46, 57, 100, 19.5, 0, 2, NULL, 105, 101); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (54, 46, 72, 50, 34.8, 0, 2, NULL, 106, 114); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (55, 47, 34, 300, 14, 0, 2, NULL, 107, 108); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (56, 48, 8, 25, 40, 0, 2, NULL, 108, 106); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (57, 48, 19, 25, 9.2, 0, 2, NULL, 109, 112); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (59, 50, 21, 20, 10, 0, 2, NULL, NULL, 92); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (60, 51, 5, 25, 21.35, 0, 2, NULL, NULL, 93); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (61, 51, 41, 30, 9.65, 0, 2, NULL, NULL, 94); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (62, 51, 40, 30, 18.4, 0, 2, NULL, NULL, 95); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (66, 56, 48, 10, 12.75, 0, 2, NULL, 111, 99); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (67, 55, 34, 87, 14, 0, 2, NULL, NULL, 117); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (68, 79, 7, 30, 30, 0, 2, NULL, NULL, 119); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (69, 79, 51, 30, 53, 0, 2, NULL, NULL, 118); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (70, 78, 17, 40, 39, 0, 2, NULL, NULL, 120); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (71, 77, 6, 90, 25, 0, 2, NULL, NULL, 121); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (72, 76, 4, 30, 22, 0, 2, NULL, NULL, 122); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (73, 75, 48, 40, 12.75, 0, 2, NULL, NULL, 123); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (74, 74, 48, 40, 12.75, 0, 2, NULL, NULL, 124); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (75, 73, 41, 10, 9.65, 0, 2, NULL, NULL, 125); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (76, 72, 43, 5, 46, 0, 2, NULL, NULL, 126); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (77, 71, 40, 40, 18.4, 0, 2, NULL, NULL, 127); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (78, 70, 8, 20, 40, 0, 2, NULL, NULL, 128); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (79, 69, 80, 15, 3.5, 0, 2, NULL, NULL, 129); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (80, 67, 74, 20, 10, 0, 2, NULL, NULL, 130); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (81, 60, 72, 40, 34.8, 0, 2, NULL, NULL, 131); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (82, 63, 3, 50, 10, 0, 2, NULL, NULL, 132); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (83, 63, 8, 3, 40, 0, 2, NULL, NULL, 133); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (84, 58, 20, 40, 81, 0, 2, NULL, NULL, 134); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (85, 58, 52, 40, 7, 0, 2, NULL, NULL, 135); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (86, 80, 56, 10, 38, 0, 1, NULL, NULL, 136); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (90, 81, 81, 0, 2.99, 0, 5, NULL, NULL, NULL); -INSERT INTO `order_details` (`id`, `order_id`, `product_id`, `quantity`, `unit_price`, `discount`, `status_id`, `date_allocated`, `purchase_order_id`, `inventory_id`) VALUES (91, 81, 56, 0, 38, 0, 0, NULL, NULL, NULL); -# 58 records - -# -# Dumping data for table 'order_details_status' -# - -INSERT INTO `order_details_status` (`id`, `status_name`) VALUES (0, 'None'); -INSERT INTO `order_details_status` (`id`, `status_name`) VALUES (1, 'Allocated'); -INSERT INTO `order_details_status` (`id`, `status_name`) VALUES (2, 'Invoiced'); -INSERT INTO `order_details_status` (`id`, `status_name`) VALUES (3, 'Shipped'); -INSERT INTO `order_details_status` (`id`, `status_name`) VALUES (4, 'On Order'); -INSERT INTO `order_details_status` (`id`, `status_name`) VALUES (5, 'No Stock'); -# 6 records - -# -# Dumping data for table 'orders' -# - -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (30, 9, 27, '2006-01-15 00:00:00', '2006-01-22 00:00:00', 2, 'Karen Toh', '789 27th Street', 'Las Vegas', 'NV', '99999', 'USA', 200, 0, 'Check', '2006-01-15 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (31, 3, 4, '2006-01-20 00:00:00', '2006-01-22 00:00:00', 1, 'Christina Lee', '123 4th Street', 'New York', 'NY', '99999', 'USA', 5, 0, 'Credit Card', '2006-01-20 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (32, 4, 12, '2006-01-22 00:00:00', '2006-01-22 00:00:00', 2, 'John Edwards', '123 12th Street', 'Las Vegas', 'NV', '99999', 'USA', 5, 0, 'Credit Card', '2006-01-22 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (33, 6, 8, '2006-01-30 00:00:00', '2006-01-31 00:00:00', 3, 'Elizabeth Andersen', '123 8th Street', 'Portland', 'OR', '99999', 'USA', 50, 0, 'Credit Card', '2006-01-30 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (34, 9, 4, '2006-02-06 00:00:00', '2006-02-07 00:00:00', 3, 'Christina Lee', '123 4th Street', 'New York', 'NY', '99999', 'USA', 4, 0, 'Check', '2006-02-06 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (35, 3, 29, '2006-02-10 00:00:00', '2006-02-12 00:00:00', 2, 'Soo Jung Lee', '789 29th Street', 'Denver', 'CO', '99999', 'USA', 7, 0, 'Check', '2006-02-10 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (36, 4, 3, '2006-02-23 00:00:00', '2006-02-25 00:00:00', 2, 'Thomas Axen', '123 3rd Street', 'Los Angelas', 'CA', '99999', 'USA', 7, 0, 'Cash', '2006-02-23 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (37, 8, 6, '2006-03-06 00:00:00', '2006-03-09 00:00:00', 2, 'Francisco Pérez-Olaeta', '123 6th Street', 'Milwaukee', 'WI', '99999', 'USA', 12, 0, 'Credit Card', '2006-03-06 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (38, 9, 28, '2006-03-10 00:00:00', '2006-03-11 00:00:00', 3, 'Amritansh Raghav', '789 28th Street', 'Memphis', 'TN', '99999', 'USA', 10, 0, 'Check', '2006-03-10 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (39, 3, 8, '2006-03-22 00:00:00', '2006-03-24 00:00:00', 3, 'Elizabeth Andersen', '123 8th Street', 'Portland', 'OR', '99999', 'USA', 5, 0, 'Check', '2006-03-22 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (40, 4, 10, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, 'Roland Wacker', '123 10th Street', 'Chicago', 'IL', '99999', 'USA', 9, 0, 'Credit Card', '2006-03-24 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (41, 1, 7, '2006-03-24 00:00:00', NULL, NULL, 'Ming-Yang Xie', '123 7th Street', 'Boise', 'ID', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (42, 1, 10, '2006-03-24 00:00:00', '2006-04-07 00:00:00', 1, 'Roland Wacker', '123 10th Street', 'Chicago', 'IL', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 2); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (43, 1, 11, '2006-03-24 00:00:00', NULL, 3, 'Peter Krschne', '123 11th Street', 'Miami', 'FL', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (44, 1, 1, '2006-03-24 00:00:00', NULL, NULL, 'Anna Bedecs', '123 1st Street', 'Seattle', 'WA', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (45, 1, 28, '2006-04-07 00:00:00', '2006-04-07 00:00:00', 3, 'Amritansh Raghav', '789 28th Street', 'Memphis', 'TN', '99999', 'USA', 40, 0, 'Credit Card', '2006-04-07 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (46, 7, 9, '2006-04-05 00:00:00', '2006-04-05 00:00:00', 1, 'Sven Mortensen', '123 9th Street', 'Salt Lake City', 'UT', '99999', 'USA', 100, 0, 'Check', '2006-04-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (47, 6, 6, '2006-04-08 00:00:00', '2006-04-08 00:00:00', 2, 'Francisco Pérez-Olaeta', '123 6th Street', 'Milwaukee', 'WI', '99999', 'USA', 300, 0, 'Credit Card', '2006-04-08 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (48, 4, 8, '2006-04-05 00:00:00', '2006-04-05 00:00:00', 2, 'Elizabeth Andersen', '123 8th Street', 'Portland', 'OR', '99999', 'USA', 50, 0, 'Check', '2006-04-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (50, 9, 25, '2006-04-05 00:00:00', '2006-04-05 00:00:00', 1, 'John Rodman', '789 25th Street', 'Chicago', 'IL', '99999', 'USA', 5, 0, 'Cash', '2006-04-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (51, 9, 26, '2006-04-05 00:00:00', '2006-04-05 00:00:00', 3, 'Run Liu', '789 26th Street', 'Miami', 'FL', '99999', 'USA', 60, 0, 'Credit Card', '2006-04-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (55, 1, 29, '2006-04-05 00:00:00', '2006-04-05 00:00:00', 2, 'Soo Jung Lee', '789 29th Street', 'Denver', 'CO', '99999', 'USA', 200, 0, 'Check', '2006-04-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (56, 2, 6, '2006-04-03 00:00:00', '2006-04-03 00:00:00', 3, 'Francisco Pérez-Olaeta', '123 6th Street', 'Milwaukee', 'WI', '99999', 'USA', 0, 0, 'Check', '2006-04-03 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (57, 9, 27, '2006-04-22 00:00:00', '2006-04-22 00:00:00', 2, 'Karen Toh', '789 27th Street', 'Las Vegas', 'NV', '99999', 'USA', 200, 0, 'Check', '2006-04-22 00:00:00', NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (58, 3, 4, '2006-04-22 00:00:00', '2006-04-22 00:00:00', 1, 'Christina Lee', '123 4th Street', 'New York', 'NY', '99999', 'USA', 5, 0, 'Credit Card', '2006-04-22 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (59, 4, 12, '2006-04-22 00:00:00', '2006-04-22 00:00:00', 2, 'John Edwards', '123 12th Street', 'Las Vegas', 'NV', '99999', 'USA', 5, 0, 'Credit Card', '2006-04-22 00:00:00', NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (60, 6, 8, '2006-04-30 00:00:00', '2006-04-30 00:00:00', 3, 'Elizabeth Andersen', '123 8th Street', 'Portland', 'OR', '99999', 'USA', 50, 0, 'Credit Card', '2006-04-30 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (61, 9, 4, '2006-04-07 00:00:00', '2006-04-07 00:00:00', 3, 'Christina Lee', '123 4th Street', 'New York', 'NY', '99999', 'USA', 4, 0, 'Check', '2006-04-07 00:00:00', NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (62, 3, 29, '2006-04-12 00:00:00', '2006-04-12 00:00:00', 2, 'Soo Jung Lee', '789 29th Street', 'Denver', 'CO', '99999', 'USA', 7, 0, 'Check', '2006-04-12 00:00:00', NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (63, 4, 3, '2006-04-25 00:00:00', '2006-04-25 00:00:00', 2, 'Thomas Axen', '123 3rd Street', 'Los Angelas', 'CA', '99999', 'USA', 7, 0, 'Cash', '2006-04-25 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (64, 8, 6, '2006-05-09 00:00:00', '2006-05-09 00:00:00', 2, 'Francisco Pérez-Olaeta', '123 6th Street', 'Milwaukee', 'WI', '99999', 'USA', 12, 0, 'Credit Card', '2006-05-09 00:00:00', NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (65, 9, 28, '2006-05-11 00:00:00', '2006-05-11 00:00:00', 3, 'Amritansh Raghav', '789 28th Street', 'Memphis', 'TN', '99999', 'USA', 10, 0, 'Check', '2006-05-11 00:00:00', NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (66, 3, 8, '2006-05-24 00:00:00', '2006-05-24 00:00:00', 3, 'Elizabeth Andersen', '123 8th Street', 'Portland', 'OR', '99999', 'USA', 5, 0, 'Check', '2006-05-24 00:00:00', NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (67, 4, 10, '2006-05-24 00:00:00', '2006-05-24 00:00:00', 2, 'Roland Wacker', '123 10th Street', 'Chicago', 'IL', '99999', 'USA', 9, 0, 'Credit Card', '2006-05-24 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (68, 1, 7, '2006-05-24 00:00:00', NULL, NULL, 'Ming-Yang Xie', '123 7th Street', 'Boise', 'ID', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (69, 1, 10, '2006-05-24 00:00:00', NULL, 1, 'Roland Wacker', '123 10th Street', 'Chicago', 'IL', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (70, 1, 11, '2006-05-24 00:00:00', NULL, 3, 'Peter Krschne', '123 11th Street', 'Miami', 'FL', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (71, 1, 1, '2006-05-24 00:00:00', NULL, 3, 'Anna Bedecs', '123 1st Street', 'Seattle', 'WA', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (72, 1, 28, '2006-06-07 00:00:00', '2006-06-07 00:00:00', 3, 'Amritansh Raghav', '789 28th Street', 'Memphis', 'TN', '99999', 'USA', 40, 0, 'Credit Card', '2006-06-07 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (73, 7, 9, '2006-06-05 00:00:00', '2006-06-05 00:00:00', 1, 'Sven Mortensen', '123 9th Street', 'Salt Lake City', 'UT', '99999', 'USA', 100, 0, 'Check', '2006-06-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (74, 6, 6, '2006-06-08 00:00:00', '2006-06-08 00:00:00', 2, 'Francisco Pérez-Olaeta', '123 6th Street', 'Milwaukee', 'WI', '99999', 'USA', 300, 0, 'Credit Card', '2006-06-08 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (75, 4, 8, '2006-06-05 00:00:00', '2006-06-05 00:00:00', 2, 'Elizabeth Andersen', '123 8th Street', 'Portland', 'OR', '99999', 'USA', 50, 0, 'Check', '2006-06-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (76, 9, 25, '2006-06-05 00:00:00', '2006-06-05 00:00:00', 1, 'John Rodman', '789 25th Street', 'Chicago', 'IL', '99999', 'USA', 5, 0, 'Cash', '2006-06-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (77, 9, 26, '2006-06-05 00:00:00', '2006-06-05 00:00:00', 3, 'Run Liu', '789 26th Street', 'Miami', 'FL', '99999', 'USA', 60, 0, 'Credit Card', '2006-06-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (78, 1, 29, '2006-06-05 00:00:00', '2006-06-05 00:00:00', 2, 'Soo Jung Lee', '789 29th Street', 'Denver', 'CO', '99999', 'USA', 200, 0, 'Check', '2006-06-05 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (79, 2, 6, '2006-06-23 00:00:00', '2006-06-23 00:00:00', 3, 'Francisco Pérez-Olaeta', '123 6th Street', 'Milwaukee', 'WI', '99999', 'USA', 0, 0, 'Check', '2006-06-23 00:00:00', NULL, 0, NULL, 3); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (80, 2, 4, '2006-04-25 17:03:55', NULL, NULL, 'Christina Lee', '123 4th Street', 'New York', 'NY', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -INSERT INTO `orders` (`id`, `employee_id`, `customer_id`, `order_date`, `shipped_date`, `shipper_id`, `ship_name`, `ship_address`, `ship_city`, `ship_state_province`, `ship_zip_postal_code`, `ship_country_region`, `shipping_fee`, `taxes`, `payment_type`, `paid_date`, `notes`, `tax_rate`, `tax_status_id`, `status_id`) VALUES (81, 2, 3, '2006-04-25 17:26:53', NULL, NULL, 'Thomas Axen', '123 3rd Street', 'Los Angelas', 'CA', '99999', 'USA', 0, 0, NULL, NULL, NULL, 0, NULL, 0); -# 48 records - -# -# Dumping data for table 'orders_status' -# - -INSERT INTO `orders_status` (`id`, `status_name`) VALUES (0, 'New'); -INSERT INTO `orders_status` (`id`, `status_name`) VALUES (1, 'Invoiced'); -INSERT INTO `orders_status` (`id`, `status_name`) VALUES (2, 'Shipped'); -INSERT INTO `orders_status` (`id`, `status_name`) VALUES (3, 'Closed'); -# 4 records - -# -# Dumping data for table 'orders_tax_status' -# - -INSERT INTO `orders_tax_status` (`id`, `tax_status_name`) VALUES (0, 'Tax Exempt'); -INSERT INTO `orders_tax_status` (`id`, `tax_status_name`) VALUES (1, 'Taxable'); -# 2 records - -# -# Dumping data for table 'privileges' -# - -INSERT INTO `privileges` (`id`, `privilege_name`) VALUES (2, 'Purchase Approvals'); -# 1 records - -# -# Dumping data for table 'products' -# - -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('4', 1, 'NWTB-1', 'Northwind Traders Chai', NULL, 13.5, 18, 10, 40, '10 boxes x 20 bags', 0, 10, 'Beverages', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('10', 3, 'NWTCO-3', 'Northwind Traders Syrup', NULL, 7.5, 10, 25, 100, '12 - 550 ml bottles', 0, 25, 'Condiments', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('10', 4, 'NWTCO-4', 'Northwind Traders Cajun Seasoning', NULL, 16.5, 22, 10, 40, '48 - 6 oz jars', 0, 10, 'Condiments', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('10', 5, 'NWTO-5', 'Northwind Traders Olive Oil', NULL, 16.0125, 21.35, 10, 40, '36 boxes', 0, 10, 'Oil', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('2;6', 6, 'NWTJP-6', 'Northwind Traders Boysenberry Spread', NULL, 18.75, 25, 25, 100, '12 - 8 oz jars', 0, 25, 'Jams, Preserves', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('2', 7, 'NWTDFN-7', 'Northwind Traders Dried Pears', NULL, 22.5, 30, 10, 40, '12 - 1 lb pkgs.', 0, 10, 'Dried Fruit & Nuts', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('8', 8, 'NWTS-8', 'Northwind Traders Curry Sauce', NULL, 30, 40, 10, 40, '12 - 12 oz jars', 0, 10, 'Sauces', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('2;6', 14, 'NWTDFN-14', 'Northwind Traders Walnuts', NULL, 17.4375, 23.25, 10, 40, '40 - 100 g pkgs.', 0, 10, 'Dried Fruit & Nuts', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 17, 'NWTCFV-17', 'Northwind Traders Fruit Cocktail', NULL, 29.25, 39, 10, 40, '15.25 OZ', 0, 10, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 19, 'NWTBGM-19', 'Northwind Traders Chocolate Biscuits Mix', NULL, 6.9, 9.2, 5, 20, '10 boxes x 12 pieces', 0, 5, 'Baked Goods & Mixes', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('2;6', 20, 'NWTJP-6', 'Northwind Traders Marmalade', NULL, 60.75, 81, 10, 40, '30 gift boxes', 0, 10, 'Jams, Preserves', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 21, 'NWTBGM-21', 'Northwind Traders Scones', NULL, 7.5, 10, 5, 20, '24 pkgs. x 4 pieces', 0, 5, 'Baked Goods & Mixes', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('4', 34, 'NWTB-34', 'Northwind Traders Beer', NULL, 10.5, 14, 15, 60, '24 - 12 oz bottles', 0, 15, 'Beverages', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('7', 40, 'NWTCM-40', 'Northwind Traders Crab Meat', NULL, 13.8, 18.4, 30, 120, '24 - 4 oz tins', 0, 30, 'Canned Meat', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 41, 'NWTSO-41', 'Northwind Traders Clam Chowder', NULL, 7.2375, 9.65, 10, 40, '12 - 12 oz cans', 0, 10, 'Soups', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('3;4', 43, 'NWTB-43', 'Northwind Traders Coffee', NULL, 34.5, 46, 25, 100, '16 - 500 g tins', 0, 25, 'Beverages', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('10', 48, 'NWTCA-48', 'Northwind Traders Chocolate', NULL, 9.5625, 12.75, 25, 100, '10 pkgs', 0, 25, 'Candy', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('2', 51, 'NWTDFN-51', 'Northwind Traders Dried Apples', NULL, 39.75, 53, 10, 40, '50 - 300 g pkgs.', 0, 10, 'Dried Fruit & Nuts', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 52, 'NWTG-52', 'Northwind Traders Long Grain Rice', NULL, 5.25, 7, 25, 100, '16 - 2 kg boxes', 0, 25, 'Grains', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 56, 'NWTP-56', 'Northwind Traders Gnocchi', NULL, 28.5, 38, 30, 120, '24 - 250 g pkgs.', 0, 30, 'Pasta', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 57, 'NWTP-57', 'Northwind Traders Ravioli', NULL, 14.625, 19.5, 20, 80, '24 - 250 g pkgs.', 0, 20, 'Pasta', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('8', 65, 'NWTS-65', 'Northwind Traders Hot Pepper Sauce', NULL, 15.7875, 21.05, 10, 40, '32 - 8 oz bottles', 0, 10, 'Sauces', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('8', 66, 'NWTS-66', 'Northwind Traders Tomato Sauce', NULL, 12.75, 17, 20, 80, '24 - 8 oz jars', 0, 20, 'Sauces', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('5', 72, 'NWTD-72', 'Northwind Traders Mozzarella', NULL, 26.1, 34.8, 10, 40, '24 - 200 g pkgs.', 0, 10, 'Dairy products', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('2;6', 74, 'NWTDFN-74', 'Northwind Traders Almonds', NULL, 7.5, 10, 5, 20, '5 kg pkg.', 0, 5, 'Dried Fruit & Nuts', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('10', 77, 'NWTCO-77', 'Northwind Traders Mustard', NULL, 9.75, 13, 15, 60, '12 boxes', 0, 15, 'Condiments', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('2', 80, 'NWTDFN-80', 'Northwind Traders Dried Plums', NULL, 3, 3.5, 50, 75, '1 lb bag', 0, 25, 'Dried Fruit & Nuts', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('3', 81, 'NWTB-81', 'Northwind Traders Green Tea', NULL, 2, 2.99, 100, 125, '20 bags per box', 0, 25, 'Beverages', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 82, 'NWTC-82', 'Northwind Traders Granola', NULL, 2, 4, 20, 100, NULL, 0, NULL, 'Cereal', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('9', 83, 'NWTCS-83', 'Northwind Traders Potato Chips', NULL, .5, 1.8, 30, 200, NULL, 0, NULL, 'Chips, Snacks', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 85, 'NWTBGM-85', 'Northwind Traders Brownie Mix', NULL, 9, 12.49, 10, 20, '3 boxes', 0, 5, 'Baked Goods & Mixes', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 86, 'NWTBGM-86', 'Northwind Traders Cake Mix', NULL, 10.5, 15.99, 10, 20, '4 boxes', 0, 5, 'Baked Goods & Mixes', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('7', 87, 'NWTB-87', 'Northwind Traders Tea', NULL, 2, 4, 20, 50, '100 count per box', 0, NULL, 'Beverages', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 88, 'NWTCFV-88', 'Northwind Traders Pears', NULL, 1, 1.3, 10, 40, '15.25 OZ', 0, NULL, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 89, 'NWTCFV-89', 'Northwind Traders Peaches', NULL, 1, 1.5, 10, 40, '15.25 OZ', 0, NULL, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 90, 'NWTCFV-90', 'Northwind Traders Pineapple', NULL, 1, 1.8, 10, 40, '15.25 OZ', 0, NULL, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 91, 'NWTCFV-91', 'Northwind Traders Cherry Pie Filling', NULL, 1, 2, 10, 40, '15.25 OZ', 0, NULL, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 92, 'NWTCFV-92', 'Northwind Traders Green Beans', NULL, 1, 1.2, 10, 40, '14.5 OZ', 0, NULL, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 93, 'NWTCFV-93', 'Northwind Traders Corn', NULL, 1, 1.2, 10, 40, '14.5 OZ', 0, NULL, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 94, 'NWTCFV-94', 'Northwind Traders Peas', NULL, 1, 1.5, 10, 40, '14.5 OZ', 0, NULL, 'Canned Fruit & Vegetables', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('7', 95, 'NWTCM-95', 'Northwind Traders Tuna Fish', NULL, .5, 2, 30, 50, '5 oz', 0, NULL, 'Canned Meat', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('7', 96, 'NWTCM-96', 'Northwind Traders Smoked Salmon', NULL, 2, 4, 30, 50, '5 oz', 0, NULL, 'Canned Meat', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('1', 97, 'NWTC-82', 'Northwind Traders Hot Cereal', NULL, 3, 5, 50, 200, NULL, 0, NULL, 'Cereal', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 98, 'NWTSO-98', 'Northwind Traders Vegetable Soup', NULL, 1, 1.89, 100, 200, NULL, 0, NULL, 'Soups', ''); -INSERT INTO `products` (`supplier_ids`, `id`, `product_code`, `product_name`, `description`, `standard_cost`, `list_price`, `reorder_level`, `target_level`, `quantity_per_unit`, `discontinued`, `minimum_reorder_quantity`, `category`, `attachments`) VALUES ('6', 99, 'NWTSO-99', 'Northwind Traders Chicken Soup', NULL, 1, 1.95, 100, 200, NULL, 0, NULL, 'Soups', ''); -# 45 records - -# -# Dumping data for table 'purchase_order_details' -# - -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (238, 90, 1, 40, 14, '2006-01-22 00:00:00', 1, 59); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (239, 91, 3, 100, 8, '2006-01-22 00:00:00', 1, 54); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (240, 91, 4, 40, 16, '2006-01-22 00:00:00', 1, 55); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (241, 91, 5, 40, 16, '2006-01-22 00:00:00', 1, 56); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (242, 92, 6, 100, 19, '2006-01-22 00:00:00', 1, 40); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (243, 92, 7, 40, 22, '2006-01-22 00:00:00', 1, 41); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (244, 92, 8, 40, 30, '2006-01-22 00:00:00', 1, 42); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (245, 92, 14, 40, 17, '2006-01-22 00:00:00', 1, 43); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (246, 92, 17, 40, 29, '2006-01-22 00:00:00', 1, 44); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (247, 92, 19, 20, 7, '2006-01-22 00:00:00', 1, 45); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (248, 92, 20, 40, 61, '2006-01-22 00:00:00', 1, 46); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (249, 92, 21, 20, 8, '2006-01-22 00:00:00', 1, 47); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (250, 90, 34, 60, 10, '2006-01-22 00:00:00', 1, 60); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (251, 92, 40, 120, 14, '2006-01-22 00:00:00', 1, 48); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (252, 92, 41, 40, 7, '2006-01-22 00:00:00', 1, 49); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (253, 90, 43, 100, 34, '2006-01-22 00:00:00', 1, 61); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (254, 92, 48, 100, 10, '2006-01-22 00:00:00', 1, 50); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (255, 92, 51, 40, 40, '2006-01-22 00:00:00', 1, 51); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (256, 93, 52, 100, 5, '2006-01-22 00:00:00', 1, 37); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (257, 93, 56, 120, 28, '2006-01-22 00:00:00', 1, 38); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (258, 93, 57, 80, 15, '2006-01-22 00:00:00', 1, 39); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (259, 91, 65, 40, 16, '2006-01-22 00:00:00', 1, 57); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (260, 91, 66, 80, 13, '2006-01-22 00:00:00', 1, 58); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (261, 94, 72, 40, 26, '2006-01-22 00:00:00', 1, 36); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (262, 92, 74, 20, 8, '2006-01-22 00:00:00', 1, 52); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (263, 92, 77, 60, 10, '2006-01-22 00:00:00', 1, 53); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (264, 95, 80, 75, 3, '2006-01-22 00:00:00', 1, 35); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (265, 90, 81, 125, 2, '2006-01-22 00:00:00', 1, 62); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (266, 96, 34, 100, 10, '2006-01-22 00:00:00', 1, 82); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (267, 97, 19, 30, 7, '2006-01-22 00:00:00', 1, 80); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (268, 98, 41, 200, 7, '2006-01-22 00:00:00', 1, 78); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (269, 99, 43, 300, 34, '2006-01-22 00:00:00', 1, 76); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (270, 100, 48, 100, 10, '2006-01-22 00:00:00', 1, 74); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (271, 101, 81, 200, 2, '2006-01-22 00:00:00', 1, 72); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (272, 102, 43, 300, 34, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (273, 103, 19, 10, 7, '2006-04-17 00:00:00', 1, 111); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (274, 104, 41, 50, 7, '2006-04-06 00:00:00', 1, 115); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (275, 105, 57, 100, 15, '2006-04-05 00:00:00', 1, 100); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (276, 106, 72, 50, 26, '2006-04-05 00:00:00', 1, 113); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (277, 107, 34, 300, 10, '2006-04-05 00:00:00', 1, 107); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (278, 108, 8, 25, 30, '2006-04-05 00:00:00', 1, 105); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (279, 109, 19, 25, 7, '2006-04-05 00:00:00', 1, 109); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (280, 110, 43, 250, 34, '2006-04-10 00:00:00', 1, 103); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (281, 90, 1, 40, 14, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (282, 92, 19, 20, 7, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (283, 111, 34, 50, 10, '2006-04-04 00:00:00', 1, 102); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (285, 91, 3, 50, 8, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (286, 91, 4, 40, 16, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (288, 140, 85, 10, 9, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (289, 141, 6, 10, 18.75, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (290, 142, 1, 1, 13.5, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (292, 146, 20, 40, 60, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (293, 146, 51, 40, 39, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (294, 147, 40, 120, 13, NULL, 0, NULL); -INSERT INTO `purchase_order_details` (`id`, `purchase_order_id`, `product_id`, `quantity`, `unit_cost`, `date_received`, `posted_to_inventory`, `inventory_id`) VALUES (295, 148, 72, 40, 26, NULL, 0, NULL); -# 55 records - -# -# Dumping data for table 'purchase_order_status' -# - -INSERT INTO `purchase_order_status` (`id`, `status`) VALUES (0, 'New'); -INSERT INTO `purchase_order_status` (`id`, `status`) VALUES (1, 'Submitted'); -INSERT INTO `purchase_order_status` (`id`, `status`) VALUES (2, 'Approved'); -INSERT INTO `purchase_order_status` (`id`, `status`) VALUES (3, 'Closed'); -# 4 records - -# -# Dumping data for table 'purchase_orders' -# - -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (90, 1, 2, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-01-22 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (91, 3, 2, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-01-22 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (92, 2, 2, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-01-22 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (93, 5, 2, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-01-22 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (94, 6, 2, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-01-22 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (95, 4, 2, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-01-22 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (96, 1, 5, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #30', 2, '2006-01-22 00:00:00', 5); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (97, 2, 7, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #33', 2, '2006-01-22 00:00:00', 7); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (98, 2, 4, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #36', 2, '2006-01-22 00:00:00', 4); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (99, 1, 3, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #38', 2, '2006-01-22 00:00:00', 3); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (100, 2, 9, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #39', 2, '2006-01-22 00:00:00', 9); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (101, 1, 2, '2006-01-14 00:00:00', '2006-01-22 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #40', 2, '2006-01-22 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (102, 1, 1, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #41', 2, '2006-04-04 00:00:00', 1); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (103, 2, 1, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #42', 2, '2006-04-04 00:00:00', 1); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (104, 2, 1, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #45', 2, '2006-04-04 00:00:00', 1); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (105, 5, 7, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, 'Check', 'Purchase generated based on Order #46', 2, '2006-04-04 00:00:00', 7); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (106, 6, 7, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #46', 2, '2006-04-04 00:00:00', 7); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (107, 1, 6, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #47', 2, '2006-04-04 00:00:00', 6); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (108, 2, 4, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #48', 2, '2006-04-04 00:00:00', 4); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (109, 2, 4, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #48', 2, '2006-04-04 00:00:00', 4); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (110, 1, 3, '2006-03-24 00:00:00', '2006-03-24 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #49', 2, '2006-04-04 00:00:00', 3); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (111, 1, 2, '2006-03-31 00:00:00', '2006-03-31 00:00:00', 2, NULL, 0, 0, NULL, 0, NULL, 'Purchase generated based on Order #56', 2, '2006-04-04 00:00:00', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (140, 6, NULL, '2006-04-25 00:00:00', '2006-04-25 16:40:51', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-04-25 16:41:33', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (141, 8, NULL, '2006-04-25 00:00:00', '2006-04-25 17:10:35', 2, NULL, 0, 0, NULL, 0, NULL, NULL, 2, '2006-04-25 17:10:55', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (142, 8, NULL, '2006-04-25 00:00:00', '2006-04-25 17:18:29', 2, NULL, 0, 0, NULL, 0, 'Check', NULL, 2, '2006-04-25 17:18:51', 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (146, 2, 2, '2006-04-26 18:26:37', '2006-04-26 18:26:37', 1, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (147, 7, 2, '2006-04-26 18:33:28', '2006-04-26 18:33:28', 1, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, 2); -INSERT INTO `purchase_orders` (`id`, `supplier_id`, `created_by`, `submitted_date`, `creation_date`, `status_id`, `expected_date`, `shipping_fee`, `taxes`, `payment_date`, `payment_amount`, `payment_method`, `notes`, `approved_by`, `approved_date`, `submitted_by`) VALUES (148, 5, 2, '2006-04-26 18:33:52', '2006-04-26 18:33:52', 1, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, 2); -# 28 records - -# -# Dumping data for table 'sales_reports' -# - -INSERT INTO `sales_reports` (`group_by`, `display`, `title`, `filter_row_source`, `default`) VALUES ('Category', 'Category', 'Sales By Category', 'SELECT DISTINCT [Category] FROM [products] ORDER BY [Category];', 0); -INSERT INTO `sales_reports` (`group_by`, `display`, `title`, `filter_row_source`, `default`) VALUES ('country_region', 'Country/Region', 'Sales By Country', 'SELECT DISTINCT [country_region] FROM [customers Extended] ORDER BY [country_region];', 0); -INSERT INTO `sales_reports` (`group_by`, `display`, `title`, `filter_row_source`, `default`) VALUES ('Customer ID', 'Customer', 'Sales By Customer', 'SELECT DISTINCT [Company] FROM [customers Extended] ORDER BY [Company];', 0); -INSERT INTO `sales_reports` (`group_by`, `display`, `title`, `filter_row_source`, `default`) VALUES ('employee_id', 'Employee', 'Sales By Employee', 'SELECT DISTINCT [Employee Name] FROM [employees Extended] ORDER BY [Employee Name];', 0); -INSERT INTO `sales_reports` (`group_by`, `display`, `title`, `filter_row_source`, `default`) VALUES ('Product ID', 'Product', 'Sales by Product', 'SELECT DISTINCT [Product Name] FROM [products] ORDER BY [Product Name];', 1); -# 5 records - -# -# Dumping data for table 'shippers' -# - -INSERT INTO `shippers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (1, 'Shipping Company A', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '123 Any Street', 'Memphis', 'TN', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `shippers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (2, 'Shipping Company B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '123 Any Street', 'Memphis', 'TN', '99999', 'USA', NULL, NULL, ''); -INSERT INTO `shippers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (3, 'Shipping Company C', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '123 Any Street', 'Memphis', 'TN', '99999', 'USA', NULL, NULL, ''); -# 3 records - -# -# Dumping data for table 'strings' -# - -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (2, 'Northwind Traders'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (3, 'Cannot remove posted inventory!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (4, 'Back ordered product filled for Order #|'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (5, 'Discounted price below cost!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (6, 'Insufficient inventory.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (7, 'Insufficient inventory. Do you want to create a purchase order?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (8, 'Purchase orders were successfully created for | products'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (9, 'There are no products below their respective reorder levels'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (10, 'Must specify customer name!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (11, 'Restocking will generate purchase orders for all products below desired inventory levels. Do you want to continue?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (12, 'Cannot create purchase order. No suppliers listed for specified product'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (13, 'Discounted price is below cost!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (14, 'Do you want to continue?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (15, 'Order is already invoiced. Do you want to print the invoice?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (16, 'Order does not contain any line items'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (17, 'Cannot create invoice! Inventory has not been allocated for each specified product.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (18, 'Sorry, there are no sales in the specified time period'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (19, 'Product successfully restocked.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (21, 'Product does not need restocking! Product is already at desired inventory level.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (22, 'Product restocking failed!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (23, 'Invalid login specified!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (24, 'Must first select reported!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (25, 'Changing supplier will remove purchase line items, continue?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (26, 'Purchase orders were successfully submitted for | products. Do you want to view the restocking report?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (27, 'There was an error attempting to restock inventory levels.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (28, '| product(s) were successfully restocked. Do you want to view the restocking report?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (29, 'You cannot remove purchase line items already posted to inventory!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (30, 'There was an error removing one or more purchase line items.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (31, 'You cannot modify quantity for purchased product already received or posted to inventory.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (32, 'You cannot modify price for purchased product already received or posted to inventory.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (33, 'Product has been successfully posted to inventory.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (34, 'Sorry, product cannot be successfully posted to inventory.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (35, 'There are orders with this product on back order. Would you like to fill them now?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (36, 'Cannot post product to inventory without specifying received date!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (37, 'Do you want to post received product to inventory?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (38, 'Initialize purchase, orders, and inventory data?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (39, 'Must first specify employee name!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (40, 'Specified user must be logged in to approve purchase!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (41, 'Purchase order must contain completed line items before it can be approved'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (42, 'Sorry, you do not have permission to approve purchases.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (43, 'Purchase successfully approved'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (44, 'Purchase cannot be approved'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (45, 'Purchase successfully submitted for approval'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (46, 'Purchase cannot be submitted for approval'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (47, 'Sorry, purchase order does not contain line items'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (48, 'Do you want to cancel this order?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (49, 'Canceling an order will permanently delete the order. Are you sure you want to cancel?'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (100, 'Your order was successfully canceled.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (101, 'Cannot cancel an order that has items received and posted to inventory.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (102, 'There was an error trying to cancel this order.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (103, 'The invoice for this order has not yet been created.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (104, 'Shipping information is not complete. Please specify all shipping information and try again.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (105, 'Cannot mark as shipped. Order must first be invoiced!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (106, 'Cannot cancel an order that has already shipped!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (107, 'Must first specify salesperson!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (108, 'Order is now marked closed.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (109, 'Order must first be marked shipped before closing.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (110, 'Must first specify payment information!'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (111, 'There was an error attempting to restock inventory levels. | product(s) were successfully restocked.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (112, 'You must supply a Unit Cost.'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (113, 'Fill back ordered product, Order #|'); -INSERT INTO `strings` (`string_id`, `string_data`) VALUES (114, 'Purchase generated based on Order #|'); -# 62 records - -# -# Dumping data for table 'suppliers' -# - -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (1, 'Supplier A', 'Andersen', 'Elizabeth A.', NULL, 'Sales Manager', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (2, 'Supplier B', 'Weiler', 'Cornelia', NULL, 'Sales Manager', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (3, 'Supplier C', 'Kelley', 'Madeleine', NULL, 'Sales Representative', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (4, 'Supplier D', 'Sato', 'Naoki', NULL, 'Marketing Manager', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (5, 'Supplier E', 'Hernandez-Echevarria', 'Amaya', NULL, 'Sales Manager', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (6, 'Supplier F', 'Hayakawa', 'Satomi', NULL, 'Marketing Assistant', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (7, 'Supplier G', 'Glasson', 'Stuart', NULL, 'Marketing Manager', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (8, 'Supplier H', 'Dunton', 'Bryn Paul', NULL, 'Sales Representative', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (9, 'Supplier I', 'Sandberg', 'Mikael', NULL, 'Sales Manager', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -INSERT INTO `suppliers` (`id`, `company`, `last_name`, `first_name`, `email_address`, `job_title`, `business_phone`, `home_phone`, `mobile_phone`, `fax_number`, `address`, `city`, `state_province`, `zip_postal_code`, `country_region`, `web_page`, `notes`, `attachments`) VALUES (10, 'Supplier J', 'Sousa', 'Luis', NULL, 'Sales Manager', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''); -# 10 records - -SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; -SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; \ No newline at end of file diff --git a/database-files/03_add_to_northwind.sql b/database-files/03_add_to_northwind.sql deleted file mode 100644 index 4587e2b616..0000000000 --- a/database-files/03_add_to_northwind.sql +++ /dev/null @@ -1,22 +0,0 @@ -USE northwind; - --- ----------------------------------------------------- --- Model Params Table and data added by Dr. Fontenot --- ----------------------------------------------------- -CREATE TABLE IF NOT EXISTS model1_param_vals( - sequence_number INTEGER AUTO_INCREMENT PRIMARY KEY, - beta_0 FLOAT, - beta_1 FLOAT, - beta_2 FLOAT -); - -INSERT INTO model1_param_vals(beta_0, beta_1, beta_2) values (0.1214, 0.2354, 0.3245); - -CREATE TABLE IF NOT EXISTS model1_params( - sequence_number INTEGER AUTO_INCREMENT PRIMARY KEY, - beta_vals varchar(100) -); - -INSERT INTO model1_params (beta_vals) VALUES ("[0.124, 0.2354, 0.3245]"); - -commit; diff --git a/database-files/classicModels.sql b/database-files/classicModels.sql deleted file mode 100644 index 0b26e399ef..0000000000 --- a/database-files/classicModels.sql +++ /dev/null @@ -1,7933 +0,0 @@ -/* -********************************************************************* -http://www.mysqltutorial.org -********************************************************************* -Name: MySQL Sample Database classicmodels -Link: http://www.mysqltutorial.org/mysql-sample-database.aspx -Version 3.1 -+ changed data type from DOUBLE to DECIMAL for amount columns -Version 3.0 -+ changed DATETIME to DATE for some colunmns -Version 2.0 -+ changed table type from MyISAM to InnoDB -+ added foreign keys for all tables -********************************************************************* -*/ - - -/*!40101 SET NAMES utf8 */; - -/*!40101 SET SQL_MODE=''*/; - -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -CREATE DATABASE /*!32312 IF NOT EXISTS*/`classicmodels` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `classicmodels`; - -flush privileges; - -/*Table structure for table `customers` */ - -DROP TABLE IF EXISTS `customers`; - -CREATE TABLE `customers` ( - `customerNumber` int(11) NOT NULL, - `customerName` varchar(50) NOT NULL, - `contactLastName` varchar(50) NOT NULL, - `contactFirstName` varchar(50) NOT NULL, - `phone` varchar(50) NOT NULL, - `addressLine1` varchar(50) NOT NULL, - `addressLine2` varchar(50) DEFAULT NULL, - `city` varchar(50) NOT NULL, - `state` varchar(50) DEFAULT NULL, - `postalCode` varchar(15) DEFAULT NULL, - `country` varchar(50) NOT NULL, - `salesRepEmployeeNumber` int(11) DEFAULT NULL, - `creditLimit` decimal(10,2) DEFAULT NULL, - PRIMARY KEY (`customerNumber`), - KEY `salesRepEmployeeNumber` (`salesRepEmployeeNumber`), - CONSTRAINT `customers_ibfk_1` FOREIGN KEY (`salesRepEmployeeNumber`) REFERENCES `employees` (`employeeNumber`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `customers` */ - -insert into `customers`(`customerNumber`,`customerName`,`contactLastName`,`contactFirstName`,`phone`,`addressLine1`,`addressLine2`,`city`,`state`,`postalCode`,`country`,`salesRepEmployeeNumber`,`creditLimit`) values - -(103,'Atelier graphique','Schmitt','Carine ','40.32.2555','54, rue Royale',NULL,'Nantes',NULL,'44000','France',1370,'21000.00'), - -(112,'Signal Gift Stores','King','Jean','7025551838','8489 Strong St.',NULL,'Las Vegas','NV','83030','USA',1166,'71800.00'), - -(114,'Australian Collectors, Co.','Ferguson','Peter','03 9520 4555','636 St Kilda Road','Level 3','Melbourne','Victoria','3004','Australia',1611,'117300.00'), - -(119,'La Rochelle Gifts','Labrune','Janine ','40.67.8555','67, rue des Cinquante Otages',NULL,'Nantes',NULL,'44000','France',1370,'118200.00'), - -(121,'Baane Mini Imports','Bergulfsen','Jonas ','07-98 9555','Erling Skakkes gate 78',NULL,'Stavern',NULL,'4110','Norway',1504,'81700.00'), - -(124,'Mini Gifts Distributors Ltd.','Nelson','Susan','4155551450','5677 Strong St.',NULL,'San Rafael','CA','97562','USA',1165,'210500.00'), - -(125,'Havel & Zbyszek Co','Piestrzeniewicz','Zbyszek ','(26) 642-7555','ul. Filtrowa 68',NULL,'Warszawa',NULL,'01-012','Poland',NULL,'0.00'), - -(128,'Blauer See Auto, Co.','Keitel','Roland','+49 69 66 90 2555','Lyonerstr. 34',NULL,'Frankfurt',NULL,'60528','Germany',1504,'59700.00'), - -(129,'Mini Wheels Co.','Murphy','Julie','6505555787','5557 North Pendale Street',NULL,'San Francisco','CA','94217','USA',1165,'64600.00'), - -(131,'Land of Toys Inc.','Lee','Kwai','2125557818','897 Long Airport Avenue',NULL,'NYC','NY','10022','USA',1323,'114900.00'), - -(141,'Euro+ Shopping Channel','Freyre','Diego ','(91) 555 94 44','C/ Moralzarzal, 86',NULL,'Madrid',NULL,'28034','Spain',1370,'227600.00'), - -(144,'Volvo Model Replicas, Co','Berglund','Christina ','0921-12 3555','Berguvsvägen 8',NULL,'Luleå',NULL,'S-958 22','Sweden',1504,'53100.00'), - -(145,'Danish Wholesale Imports','Petersen','Jytte ','31 12 3555','Vinbæltet 34',NULL,'Kobenhavn',NULL,'1734','Denmark',1401,'83400.00'), - -(146,'Saveley & Henriot, Co.','Saveley','Mary ','78.32.5555','2, rue du Commerce',NULL,'Lyon',NULL,'69004','France',1337,'123900.00'), - -(148,'Dragon Souveniers, Ltd.','Natividad','Eric','+65 221 7555','Bronz Sok.','Bronz Apt. 3/6 Tesvikiye','Singapore',NULL,'079903','Singapore',1621,'103800.00'), - -(151,'Muscle Machine Inc','Young','Jeff','2125557413','4092 Furth Circle','Suite 400','NYC','NY','10022','USA',1286,'138500.00'), - -(157,'Diecast Classics Inc.','Leong','Kelvin','2155551555','7586 Pompton St.',NULL,'Allentown','PA','70267','USA',1216,'100600.00'), - -(161,'Technics Stores Inc.','Hashimoto','Juri','6505556809','9408 Furth Circle',NULL,'Burlingame','CA','94217','USA',1165,'84600.00'), - -(166,'Handji Gifts& Co','Victorino','Wendy','+65 224 1555','106 Linden Road Sandown','2nd Floor','Singapore',NULL,'069045','Singapore',1612,'97900.00'), - -(167,'Herkku Gifts','Oeztan','Veysel','+47 2267 3215','Brehmen St. 121','PR 334 Sentrum','Bergen',NULL,'N 5804','Norway ',1504,'96800.00'), - -(168,'American Souvenirs Inc','Franco','Keith','2035557845','149 Spinnaker Dr.','Suite 101','New Haven','CT','97823','USA',1286,'0.00'), - -(169,'Porto Imports Co.','de Castro','Isabel ','(1) 356-5555','Estrada da saúde n. 58',NULL,'Lisboa',NULL,'1756','Portugal',NULL,'0.00'), - -(171,'Daedalus Designs Imports','Rancé','Martine ','20.16.1555','184, chaussée de Tournai',NULL,'Lille',NULL,'59000','France',1370,'82900.00'), - -(172,'La Corne D\'abondance, Co.','Bertrand','Marie','(1) 42.34.2555','265, boulevard Charonne',NULL,'Paris',NULL,'75012','France',1337,'84300.00'), - -(173,'Cambridge Collectables Co.','Tseng','Jerry','6175555555','4658 Baden Av.',NULL,'Cambridge','MA','51247','USA',1188,'43400.00'), - -(175,'Gift Depot Inc.','King','Julie','2035552570','25593 South Bay Ln.',NULL,'Bridgewater','CT','97562','USA',1323,'84300.00'), - -(177,'Osaka Souveniers Co.','Kentary','Mory','+81 06 6342 5555','1-6-20 Dojima',NULL,'Kita-ku','Osaka',' 530-0003','Japan',1621,'81200.00'), - -(181,'Vitachrome Inc.','Frick','Michael','2125551500','2678 Kingston Rd.','Suite 101','NYC','NY','10022','USA',1286,'76400.00'), - -(186,'Toys of Finland, Co.','Karttunen','Matti','90-224 8555','Keskuskatu 45',NULL,'Helsinki',NULL,'21240','Finland',1501,'96500.00'), - -(187,'AV Stores, Co.','Ashworth','Rachel','(171) 555-1555','Fauntleroy Circus',NULL,'Manchester',NULL,'EC2 5NT','UK',1501,'136800.00'), - -(189,'Clover Collections, Co.','Cassidy','Dean','+353 1862 1555','25 Maiden Lane','Floor No. 4','Dublin',NULL,'2','Ireland',1504,'69400.00'), - -(198,'Auto-Moto Classics Inc.','Taylor','Leslie','6175558428','16780 Pompton St.',NULL,'Brickhaven','MA','58339','USA',1216,'23000.00'), - -(201,'UK Collectables, Ltd.','Devon','Elizabeth','(171) 555-2282','12, Berkeley Gardens Blvd',NULL,'Liverpool',NULL,'WX1 6LT','UK',1501,'92700.00'), - -(202,'Canadian Gift Exchange Network','Tamuri','Yoshi ','(604) 555-3392','1900 Oak St.',NULL,'Vancouver','BC','V3F 2K1','Canada',1323,'90300.00'), - -(204,'Online Mini Collectables','Barajas','Miguel','6175557555','7635 Spinnaker Dr.',NULL,'Brickhaven','MA','58339','USA',1188,'68700.00'), - -(205,'Toys4GrownUps.com','Young','Julie','6265557265','78934 Hillside Dr.',NULL,'Pasadena','CA','90003','USA',1166,'90700.00'), - -(206,'Asian Shopping Network, Co','Walker','Brydey','+612 9411 1555','Suntec Tower Three','8 Temasek','Singapore',NULL,'038988','Singapore',NULL,'0.00'), - -(209,'Mini Caravy','Citeaux','Frédérique ','88.60.1555','24, place Kléber',NULL,'Strasbourg',NULL,'67000','France',1370,'53800.00'), - -(211,'King Kong Collectables, Co.','Gao','Mike','+852 2251 1555','Bank of China Tower','1 Garden Road','Central Hong Kong',NULL,NULL,'Hong Kong',1621,'58600.00'), - -(216,'Enaco Distributors','Saavedra','Eduardo ','(93) 203 4555','Rambla de Cataluña, 23',NULL,'Barcelona',NULL,'08022','Spain',1702,'60300.00'), - -(219,'Boards & Toys Co.','Young','Mary','3105552373','4097 Douglas Av.',NULL,'Glendale','CA','92561','USA',1166,'11000.00'), - -(223,'Natürlich Autos','Kloss','Horst ','0372-555188','Taucherstraße 10',NULL,'Cunewalde',NULL,'01307','Germany',NULL,'0.00'), - -(227,'Heintze Collectables','Ibsen','Palle','86 21 3555','Smagsloget 45',NULL,'Århus',NULL,'8200','Denmark',1401,'120800.00'), - -(233,'Québec Home Shopping Network','Fresnière','Jean ','(514) 555-8054','43 rue St. Laurent',NULL,'Montréal','Québec','H1J 1C3','Canada',1286,'48700.00'), - -(237,'ANG Resellers','Camino','Alejandra ','(91) 745 6555','Gran Vía, 1',NULL,'Madrid',NULL,'28001','Spain',NULL,'0.00'), - -(239,'Collectable Mini Designs Co.','Thompson','Valarie','7605558146','361 Furth Circle',NULL,'San Diego','CA','91217','USA',1166,'105000.00'), - -(240,'giftsbymail.co.uk','Bennett','Helen ','(198) 555-8888','Garden House','Crowther Way 23','Cowes','Isle of Wight','PO31 7PJ','UK',1501,'93900.00'), - -(242,'Alpha Cognac','Roulet','Annette ','61.77.6555','1 rue Alsace-Lorraine',NULL,'Toulouse',NULL,'31000','France',1370,'61100.00'), - -(247,'Messner Shopping Network','Messner','Renate ','069-0555984','Magazinweg 7',NULL,'Frankfurt',NULL,'60528','Germany',NULL,'0.00'), - -(249,'Amica Models & Co.','Accorti','Paolo ','011-4988555','Via Monte Bianco 34',NULL,'Torino',NULL,'10100','Italy',1401,'113000.00'), - -(250,'Lyon Souveniers','Da Silva','Daniel','+33 1 46 62 7555','27 rue du Colonel Pierre Avia',NULL,'Paris',NULL,'75508','France',1337,'68100.00'), - -(256,'Auto Associés & Cie.','Tonini','Daniel ','30.59.8555','67, avenue de l\'Europe',NULL,'Versailles',NULL,'78000','France',1370,'77900.00'), - -(259,'Toms Spezialitäten, Ltd','Pfalzheim','Henriette ','0221-5554327','Mehrheimerstr. 369',NULL,'Köln',NULL,'50739','Germany',1504,'120400.00'), - -(260,'Royal Canadian Collectables, Ltd.','Lincoln','Elizabeth ','(604) 555-4555','23 Tsawassen Blvd.',NULL,'Tsawassen','BC','T2F 8M4','Canada',1323,'89600.00'), - -(273,'Franken Gifts, Co','Franken','Peter ','089-0877555','Berliner Platz 43',NULL,'München',NULL,'80805','Germany',NULL,'0.00'), - -(276,'Anna\'s Decorations, Ltd','O\'Hara','Anna','02 9936 8555','201 Miller Street','Level 15','North Sydney','NSW','2060','Australia',1611,'107800.00'), - -(278,'Rovelli Gifts','Rovelli','Giovanni ','035-640555','Via Ludovico il Moro 22',NULL,'Bergamo',NULL,'24100','Italy',1401,'119600.00'), - -(282,'Souveniers And Things Co.','Huxley','Adrian','+61 2 9495 8555','Monitor Money Building','815 Pacific Hwy','Chatswood','NSW','2067','Australia',1611,'93300.00'), - -(286,'Marta\'s Replicas Co.','Hernandez','Marta','6175558555','39323 Spinnaker Dr.',NULL,'Cambridge','MA','51247','USA',1216,'123700.00'), - -(293,'BG&E Collectables','Harrison','Ed','+41 26 425 50 01','Rte des Arsenaux 41 ',NULL,'Fribourg',NULL,'1700','Switzerland',NULL,'0.00'), - -(298,'Vida Sport, Ltd','Holz','Mihael','0897-034555','Grenzacherweg 237',NULL,'Genève',NULL,'1203','Switzerland',1702,'141300.00'), - -(299,'Norway Gifts By Mail, Co.','Klaeboe','Jan','+47 2212 1555','Drammensveien 126A','PB 211 Sentrum','Oslo',NULL,'N 0106','Norway ',1504,'95100.00'), - -(303,'Schuyler Imports','Schuyler','Bradley','+31 20 491 9555','Kingsfordweg 151',NULL,'Amsterdam',NULL,'1043 GR','Netherlands',NULL,'0.00'), - -(307,'Der Hund Imports','Andersen','Mel','030-0074555','Obere Str. 57',NULL,'Berlin',NULL,'12209','Germany',NULL,'0.00'), - -(311,'Oulu Toy Supplies, Inc.','Koskitalo','Pirkko','981-443655','Torikatu 38',NULL,'Oulu',NULL,'90110','Finland',1501,'90500.00'), - -(314,'Petit Auto','Dewey','Catherine ','(02) 5554 67','Rue Joseph-Bens 532',NULL,'Bruxelles',NULL,'B-1180','Belgium',1401,'79900.00'), - -(319,'Mini Classics','Frick','Steve','9145554562','3758 North Pendale Street',NULL,'White Plains','NY','24067','USA',1323,'102700.00'), - -(320,'Mini Creations Ltd.','Huang','Wing','5085559555','4575 Hillside Dr.',NULL,'New Bedford','MA','50553','USA',1188,'94500.00'), - -(321,'Corporate Gift Ideas Co.','Brown','Julie','6505551386','7734 Strong St.',NULL,'San Francisco','CA','94217','USA',1165,'105000.00'), - -(323,'Down Under Souveniers, Inc','Graham','Mike','+64 9 312 5555','162-164 Grafton Road','Level 2','Auckland ',NULL,NULL,'New Zealand',1612,'88000.00'), - -(324,'Stylish Desk Decors, Co.','Brown','Ann ','(171) 555-0297','35 King George',NULL,'London',NULL,'WX3 6FW','UK',1501,'77000.00'), - -(328,'Tekni Collectables Inc.','Brown','William','2015559350','7476 Moss Rd.',NULL,'Newark','NJ','94019','USA',1323,'43000.00'), - -(333,'Australian Gift Network, Co','Calaghan','Ben','61-7-3844-6555','31 Duncan St. West End',NULL,'South Brisbane','Queensland','4101','Australia',1611,'51600.00'), - -(334,'Suominen Souveniers','Suominen','Kalle','+358 9 8045 555','Software Engineering Center','SEC Oy','Espoo',NULL,'FIN-02271','Finland',1501,'98800.00'), - -(335,'Cramer Spezialitäten, Ltd','Cramer','Philip ','0555-09555','Maubelstr. 90',NULL,'Brandenburg',NULL,'14776','Germany',NULL,'0.00'), - -(339,'Classic Gift Ideas, Inc','Cervantes','Francisca','2155554695','782 First Street',NULL,'Philadelphia','PA','71270','USA',1188,'81100.00'), - -(344,'CAF Imports','Fernandez','Jesus','+34 913 728 555','Merchants House','27-30 Merchant\'s Quay','Madrid',NULL,'28023','Spain',1702,'59600.00'), - -(347,'Men \'R\' US Retailers, Ltd.','Chandler','Brian','2155554369','6047 Douglas Av.',NULL,'Los Angeles','CA','91003','USA',1166,'57700.00'), - -(348,'Asian Treasures, Inc.','McKenna','Patricia ','2967 555','8 Johnstown Road',NULL,'Cork','Co. Cork',NULL,'Ireland',NULL,'0.00'), - -(350,'Marseille Mini Autos','Lebihan','Laurence ','91.24.4555','12, rue des Bouchers',NULL,'Marseille',NULL,'13008','France',1337,'65000.00'), - -(353,'Reims Collectables','Henriot','Paul ','26.47.1555','59 rue de l\'Abbaye',NULL,'Reims',NULL,'51100','France',1337,'81100.00'), - -(356,'SAR Distributors, Co','Kuger','Armand','+27 21 550 3555','1250 Pretorius Street',NULL,'Hatfield','Pretoria','0028','South Africa',NULL,'0.00'), - -(357,'GiftsForHim.com','MacKinlay','Wales','64-9-3763555','199 Great North Road',NULL,'Auckland',NULL,NULL,'New Zealand',1612,'77700.00'), - -(361,'Kommission Auto','Josephs','Karin','0251-555259','Luisenstr. 48',NULL,'Münster',NULL,'44087','Germany',NULL,'0.00'), - -(362,'Gifts4AllAges.com','Yoshido','Juri','6175559555','8616 Spinnaker Dr.',NULL,'Boston','MA','51003','USA',1216,'41900.00'), - -(363,'Online Diecast Creations Co.','Young','Dorothy','6035558647','2304 Long Airport Avenue',NULL,'Nashua','NH','62005','USA',1216,'114200.00'), - -(369,'Lisboa Souveniers, Inc','Rodriguez','Lino ','(1) 354-2555','Jardim das rosas n. 32',NULL,'Lisboa',NULL,'1675','Portugal',NULL,'0.00'), - -(376,'Precious Collectables','Urs','Braun','0452-076555','Hauptstr. 29',NULL,'Bern',NULL,'3012','Switzerland',1702,'0.00'), - -(379,'Collectables For Less Inc.','Nelson','Allen','6175558555','7825 Douglas Av.',NULL,'Brickhaven','MA','58339','USA',1188,'70700.00'), - -(381,'Royale Belge','Cartrain','Pascale ','(071) 23 67 2555','Boulevard Tirou, 255',NULL,'Charleroi',NULL,'B-6000','Belgium',1401,'23500.00'), - -(382,'Salzburg Collectables','Pipps','Georg ','6562-9555','Geislweg 14',NULL,'Salzburg',NULL,'5020','Austria',1401,'71700.00'), - -(385,'Cruz & Sons Co.','Cruz','Arnold','+63 2 555 3587','15 McCallum Street','NatWest Center #13-03','Makati City',NULL,'1227 MM','Philippines',1621,'81500.00'), - -(386,'L\'ordine Souveniers','Moroni','Maurizio ','0522-556555','Strada Provinciale 124',NULL,'Reggio Emilia',NULL,'42100','Italy',1401,'121400.00'), - -(398,'Tokyo Collectables, Ltd','Shimamura','Akiko','+81 3 3584 0555','2-2-8 Roppongi',NULL,'Minato-ku','Tokyo','106-0032','Japan',1621,'94400.00'), - -(406,'Auto Canal+ Petit','Perrier','Dominique','(1) 47.55.6555','25, rue Lauriston',NULL,'Paris',NULL,'75016','France',1337,'95000.00'), - -(409,'Stuttgart Collectable Exchange','Müller','Rita ','0711-555361','Adenauerallee 900',NULL,'Stuttgart',NULL,'70563','Germany',NULL,'0.00'), - -(412,'Extreme Desk Decorations, Ltd','McRoy','Sarah','04 499 9555','101 Lambton Quay','Level 11','Wellington',NULL,NULL,'New Zealand',1612,'86800.00'), - -(415,'Bavarian Collectables Imports, Co.','Donnermeyer','Michael',' +49 89 61 08 9555','Hansastr. 15',NULL,'Munich',NULL,'80686','Germany',1504,'77000.00'), - -(424,'Classic Legends Inc.','Hernandez','Maria','2125558493','5905 Pompton St.','Suite 750','NYC','NY','10022','USA',1286,'67500.00'), - -(443,'Feuer Online Stores, Inc','Feuer','Alexander ','0342-555176','Heerstr. 22',NULL,'Leipzig',NULL,'04179','Germany',NULL,'0.00'), - -(447,'Gift Ideas Corp.','Lewis','Dan','2035554407','2440 Pompton St.',NULL,'Glendale','CT','97561','USA',1323,'49700.00'), - -(448,'Scandinavian Gift Ideas','Larsson','Martha','0695-34 6555','Åkergatan 24',NULL,'Bräcke',NULL,'S-844 67','Sweden',1504,'116400.00'), - -(450,'The Sharp Gifts Warehouse','Frick','Sue','4085553659','3086 Ingle Ln.',NULL,'San Jose','CA','94217','USA',1165,'77600.00'), - -(452,'Mini Auto Werke','Mendel','Roland ','7675-3555','Kirchgasse 6',NULL,'Graz',NULL,'8010','Austria',1401,'45300.00'), - -(455,'Super Scale Inc.','Murphy','Leslie','2035559545','567 North Pendale Street',NULL,'New Haven','CT','97823','USA',1286,'95400.00'), - -(456,'Microscale Inc.','Choi','Yu','2125551957','5290 North Pendale Street','Suite 200','NYC','NY','10022','USA',1286,'39800.00'), - -(458,'Corrida Auto Replicas, Ltd','Sommer','Martín ','(91) 555 22 82','C/ Araquil, 67',NULL,'Madrid',NULL,'28023','Spain',1702,'104600.00'), - -(459,'Warburg Exchange','Ottlieb','Sven ','0241-039123','Walserweg 21',NULL,'Aachen',NULL,'52066','Germany',NULL,'0.00'), - -(462,'FunGiftIdeas.com','Benitez','Violeta','5085552555','1785 First Street',NULL,'New Bedford','MA','50553','USA',1216,'85800.00'), - -(465,'Anton Designs, Ltd.','Anton','Carmen','+34 913 728555','c/ Gobelas, 19-1 Urb. La Florida',NULL,'Madrid',NULL,'28023','Spain',NULL,'0.00'), - -(471,'Australian Collectables, Ltd','Clenahan','Sean','61-9-3844-6555','7 Allen Street',NULL,'Glen Waverly','Victoria','3150','Australia',1611,'60300.00'), - -(473,'Frau da Collezione','Ricotti','Franco','+39 022515555','20093 Cologno Monzese','Alessandro Volta 16','Milan',NULL,NULL,'Italy',1401,'34800.00'), - -(475,'West Coast Collectables Co.','Thompson','Steve','3105553722','3675 Furth Circle',NULL,'Burbank','CA','94019','USA',1166,'55400.00'), - -(477,'Mit Vergnügen & Co.','Moos','Hanna ','0621-08555','Forsterstr. 57',NULL,'Mannheim',NULL,'68306','Germany',NULL,'0.00'), - -(480,'Kremlin Collectables, Co.','Semenov','Alexander ','+7 812 293 0521','2 Pobedy Square',NULL,'Saint Petersburg',NULL,'196143','Russia',NULL,'0.00'), - -(481,'Raanan Stores, Inc','Altagar,G M','Raanan','+ 972 9 959 8555','3 Hagalim Blv.',NULL,'Herzlia',NULL,'47625','Israel',NULL,'0.00'), - -(484,'Iberia Gift Imports, Corp.','Roel','José Pedro ','(95) 555 82 82','C/ Romero, 33',NULL,'Sevilla',NULL,'41101','Spain',1702,'65700.00'), - -(486,'Motor Mint Distributors Inc.','Salazar','Rosa','2155559857','11328 Douglas Av.',NULL,'Philadelphia','PA','71270','USA',1323,'72600.00'), - -(487,'Signal Collectibles Ltd.','Taylor','Sue','4155554312','2793 Furth Circle',NULL,'Brisbane','CA','94217','USA',1165,'60300.00'), - -(489,'Double Decker Gift Stores, Ltd','Smith','Thomas ','(171) 555-7555','120 Hanover Sq.',NULL,'London',NULL,'WA1 1DP','UK',1501,'43300.00'), - -(495,'Diecast Collectables','Franco','Valarie','6175552555','6251 Ingle Ln.',NULL,'Boston','MA','51003','USA',1188,'85100.00'), - -(496,'Kelly\'s Gift Shop','Snowden','Tony','+64 9 5555500','Arenales 1938 3\'A\'',NULL,'Auckland ',NULL,NULL,'New Zealand',1612,'110000.00'); - -/*Table structure for table `employees` */ - -DROP TABLE IF EXISTS `employees`; - -CREATE TABLE `employees` ( - `employeeNumber` int(11) NOT NULL, - `lastName` varchar(50) NOT NULL, - `firstName` varchar(50) NOT NULL, - `extension` varchar(10) NOT NULL, - `email` varchar(100) NOT NULL, - `officeCode` varchar(10) NOT NULL, - `reportsTo` int(11) DEFAULT NULL, - `jobTitle` varchar(50) NOT NULL, - PRIMARY KEY (`employeeNumber`), - KEY `reportsTo` (`reportsTo`), - KEY `officeCode` (`officeCode`), - CONSTRAINT `employees_ibfk_1` FOREIGN KEY (`reportsTo`) REFERENCES `employees` (`employeeNumber`), - CONSTRAINT `employees_ibfk_2` FOREIGN KEY (`officeCode`) REFERENCES `offices` (`officeCode`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `employees` */ - -insert into `employees`(`employeeNumber`,`lastName`,`firstName`,`extension`,`email`,`officeCode`,`reportsTo`,`jobTitle`) values - -(1002,'Murphy','Diane','x5800','dmurphy@classicmodelcars.com','1',NULL,'President'), - -(1056,'Patterson','Mary','x4611','mpatterso@classicmodelcars.com','1',1002,'VP Sales'), - -(1076,'Firrelli','Jeff','x9273','jfirrelli@classicmodelcars.com','1',1002,'VP Marketing'), - -(1088,'Patterson','William','x4871','wpatterson@classicmodelcars.com','6',1056,'Sales Manager (APAC)'), - -(1102,'Bondur','Gerard','x5408','gbondur@classicmodelcars.com','4',1056,'Sale Manager (EMEA)'), - -(1143,'Bow','Anthony','x5428','abow@classicmodelcars.com','1',1056,'Sales Manager (NA)'), - -(1165,'Jennings','Leslie','x3291','ljennings@classicmodelcars.com','1',1143,'Sales Rep'), - -(1166,'Thompson','Leslie','x4065','lthompson@classicmodelcars.com','1',1143,'Sales Rep'), - -(1188,'Firrelli','Julie','x2173','jfirrelli@classicmodelcars.com','2',1143,'Sales Rep'), - -(1216,'Patterson','Steve','x4334','spatterson@classicmodelcars.com','2',1143,'Sales Rep'), - -(1286,'Tseng','Foon Yue','x2248','ftseng@classicmodelcars.com','3',1143,'Sales Rep'), - -(1323,'Vanauf','George','x4102','gvanauf@classicmodelcars.com','3',1143,'Sales Rep'), - -(1337,'Bondur','Loui','x6493','lbondur@classicmodelcars.com','4',1102,'Sales Rep'), - -(1370,'Hernandez','Gerard','x2028','ghernande@classicmodelcars.com','4',1102,'Sales Rep'), - -(1401,'Castillo','Pamela','x2759','pcastillo@classicmodelcars.com','4',1102,'Sales Rep'), - -(1501,'Bott','Larry','x2311','lbott@classicmodelcars.com','7',1102,'Sales Rep'), - -(1504,'Jones','Barry','x102','bjones@classicmodelcars.com','7',1102,'Sales Rep'), - -(1611,'Fixter','Andy','x101','afixter@classicmodelcars.com','6',1088,'Sales Rep'), - -(1612,'Marsh','Peter','x102','pmarsh@classicmodelcars.com','6',1088,'Sales Rep'), - -(1619,'King','Tom','x103','tking@classicmodelcars.com','6',1088,'Sales Rep'), - -(1621,'Nishi','Mami','x101','mnishi@classicmodelcars.com','5',1056,'Sales Rep'), - -(1625,'Kato','Yoshimi','x102','ykato@classicmodelcars.com','5',1621,'Sales Rep'), - -(1702,'Gerard','Martin','x2312','mgerard@classicmodelcars.com','4',1102,'Sales Rep'); - -/*Table structure for table `offices` */ - -DROP TABLE IF EXISTS `offices`; - -CREATE TABLE `offices` ( - `officeCode` varchar(10) NOT NULL, - `city` varchar(50) NOT NULL, - `phone` varchar(50) NOT NULL, - `addressLine1` varchar(50) NOT NULL, - `addressLine2` varchar(50) DEFAULT NULL, - `state` varchar(50) DEFAULT NULL, - `country` varchar(50) NOT NULL, - `postalCode` varchar(15) NOT NULL, - `territory` varchar(10) NOT NULL, - PRIMARY KEY (`officeCode`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `offices` */ - -insert into `offices`(`officeCode`,`city`,`phone`,`addressLine1`,`addressLine2`,`state`,`country`,`postalCode`,`territory`) values - -('1','San Francisco','+1 650 219 4782','100 Market Street','Suite 300','CA','USA','94080','NA'), - -('2','Boston','+1 215 837 0825','1550 Court Place','Suite 102','MA','USA','02107','NA'), - -('3','NYC','+1 212 555 3000','523 East 53rd Street','apt. 5A','NY','USA','10022','NA'), - -('4','Paris','+33 14 723 4404','43 Rue Jouffroy D\'abbans',NULL,NULL,'France','75017','EMEA'), - -('5','Tokyo','+81 33 224 5000','4-1 Kioicho',NULL,'Chiyoda-Ku','Japan','102-8578','Japan'), - -('6','Sydney','+61 2 9264 2451','5-11 Wentworth Avenue','Floor #2',NULL,'Australia','NSW 2010','APAC'), - -('7','London','+44 20 7877 2041','25 Old Broad Street','Level 7',NULL,'UK','EC2N 1HN','EMEA'); - -/*Table structure for table `orderdetails` */ - -DROP TABLE IF EXISTS `orderdetails`; - -CREATE TABLE `orderdetails` ( - `orderNumber` int(11) NOT NULL, - `productCode` varchar(15) NOT NULL, - `quantityOrdered` int(11) NOT NULL, - `priceEach` decimal(10,2) NOT NULL, - `orderLineNumber` smallint(6) NOT NULL, - PRIMARY KEY (`orderNumber`,`productCode`), - KEY `productCode` (`productCode`), - CONSTRAINT `orderdetails_ibfk_1` FOREIGN KEY (`orderNumber`) REFERENCES `orders` (`orderNumber`), - CONSTRAINT `orderdetails_ibfk_2` FOREIGN KEY (`productCode`) REFERENCES `products` (`productCode`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `orderdetails` */ - -insert into `orderdetails`(`orderNumber`,`productCode`,`quantityOrdered`,`priceEach`,`orderLineNumber`) values - -(10100,'S18_1749',30,'136.00',3), - -(10100,'S18_2248',50,'55.09',2), - -(10100,'S18_4409',22,'75.46',4), - -(10100,'S24_3969',49,'35.29',1), - -(10101,'S18_2325',25,'108.06',4), - -(10101,'S18_2795',26,'167.06',1), - -(10101,'S24_1937',45,'32.53',3), - -(10101,'S24_2022',46,'44.35',2), - -(10102,'S18_1342',39,'95.55',2), - -(10102,'S18_1367',41,'43.13',1), - -(10103,'S10_1949',26,'214.30',11), - -(10103,'S10_4962',42,'119.67',4), - -(10103,'S12_1666',27,'121.64',8), - -(10103,'S18_1097',35,'94.50',10), - -(10103,'S18_2432',22,'58.34',2), - -(10103,'S18_2949',27,'92.19',12), - -(10103,'S18_2957',35,'61.84',14), - -(10103,'S18_3136',25,'86.92',13), - -(10103,'S18_3320',46,'86.31',16), - -(10103,'S18_4600',36,'98.07',5), - -(10103,'S18_4668',41,'40.75',9), - -(10103,'S24_2300',36,'107.34',1), - -(10103,'S24_4258',25,'88.62',15), - -(10103,'S32_1268',31,'92.46',3), - -(10103,'S32_3522',45,'63.35',7), - -(10103,'S700_2824',42,'94.07',6), - -(10104,'S12_3148',34,'131.44',1), - -(10104,'S12_4473',41,'111.39',9), - -(10104,'S18_2238',24,'135.90',8), - -(10104,'S18_2319',29,'122.73',12), - -(10104,'S18_3232',23,'165.95',13), - -(10104,'S18_4027',38,'119.20',3), - -(10104,'S24_1444',35,'52.02',6), - -(10104,'S24_2840',44,'30.41',10), - -(10104,'S24_4048',26,'106.45',5), - -(10104,'S32_2509',35,'51.95',11), - -(10104,'S32_3207',49,'56.55',4), - -(10104,'S50_1392',33,'114.59',7), - -(10104,'S50_1514',32,'53.31',2), - -(10105,'S10_4757',50,'127.84',2), - -(10105,'S12_1108',41,'205.72',15), - -(10105,'S12_3891',29,'141.88',14), - -(10105,'S18_3140',22,'136.59',11), - -(10105,'S18_3259',38,'87.73',13), - -(10105,'S18_4522',41,'75.48',10), - -(10105,'S24_2011',43,'117.97',9), - -(10105,'S24_3151',44,'73.46',4), - -(10105,'S24_3816',50,'75.47',1), - -(10105,'S700_1138',41,'54.00',5), - -(10105,'S700_1938',29,'86.61',12), - -(10105,'S700_2610',31,'60.72',3), - -(10105,'S700_3505',39,'92.16',6), - -(10105,'S700_3962',22,'99.31',7), - -(10105,'S72_3212',25,'44.77',8), - -(10106,'S18_1662',36,'134.04',12), - -(10106,'S18_2581',34,'81.10',2), - -(10106,'S18_3029',41,'80.86',18), - -(10106,'S18_3856',41,'94.22',17), - -(10106,'S24_1785',28,'107.23',4), - -(10106,'S24_2841',49,'65.77',13), - -(10106,'S24_3420',31,'55.89',14), - -(10106,'S24_3949',50,'55.96',11), - -(10106,'S24_4278',26,'71.00',3), - -(10106,'S32_4289',33,'65.35',5), - -(10106,'S50_1341',39,'35.78',6), - -(10106,'S700_1691',31,'91.34',7), - -(10106,'S700_2047',30,'85.09',16), - -(10106,'S700_2466',34,'99.72',9), - -(10106,'S700_2834',32,'113.90',1), - -(10106,'S700_3167',44,'76.00',8), - -(10106,'S700_4002',48,'70.33',10), - -(10106,'S72_1253',48,'43.70',15), - -(10107,'S10_1678',30,'81.35',2), - -(10107,'S10_2016',39,'105.86',5), - -(10107,'S10_4698',27,'172.36',4), - -(10107,'S12_2823',21,'122.00',1), - -(10107,'S18_2625',29,'52.70',6), - -(10107,'S24_1578',25,'96.92',3), - -(10107,'S24_2000',38,'73.12',7), - -(10107,'S32_1374',20,'88.90',8), - -(10108,'S12_1099',33,'165.38',6), - -(10108,'S12_3380',45,'96.30',4), - -(10108,'S12_3990',39,'75.81',7), - -(10108,'S12_4675',36,'107.10',3), - -(10108,'S18_1889',38,'67.76',2), - -(10108,'S18_3278',26,'73.17',9), - -(10108,'S18_3482',29,'132.29',8), - -(10108,'S18_3782',43,'52.84',12), - -(10108,'S18_4721',44,'139.87',11), - -(10108,'S24_2360',35,'64.41',15), - -(10108,'S24_3371',30,'60.01',5), - -(10108,'S24_3856',40,'132.00',1), - -(10108,'S24_4620',31,'67.10',10), - -(10108,'S32_2206',27,'36.21',13), - -(10108,'S32_4485',31,'87.76',16), - -(10108,'S50_4713',34,'74.85',14), - -(10109,'S18_1129',26,'117.48',4), - -(10109,'S18_1984',38,'137.98',3), - -(10109,'S18_2870',26,'126.72',1), - -(10109,'S18_3232',46,'160.87',5), - -(10109,'S18_3685',47,'125.74',2), - -(10109,'S24_2972',29,'32.10',6), - -(10110,'S18_1589',37,'118.22',16), - -(10110,'S18_1749',42,'153.00',7), - -(10110,'S18_2248',32,'51.46',6), - -(10110,'S18_2325',33,'115.69',4), - -(10110,'S18_2795',31,'163.69',1), - -(10110,'S18_4409',28,'81.91',8), - -(10110,'S18_4933',42,'62.00',9), - -(10110,'S24_1046',36,'72.02',13), - -(10110,'S24_1628',29,'43.27',15), - -(10110,'S24_1937',20,'28.88',3), - -(10110,'S24_2022',39,'40.77',2), - -(10110,'S24_2766',43,'82.69',11), - -(10110,'S24_2887',46,'112.74',10), - -(10110,'S24_3191',27,'80.47',12), - -(10110,'S24_3432',37,'96.37',14), - -(10110,'S24_3969',48,'35.29',5), - -(10111,'S18_1342',33,'87.33',6), - -(10111,'S18_1367',48,'48.52',5), - -(10111,'S18_2957',28,'53.09',2), - -(10111,'S18_3136',43,'94.25',1), - -(10111,'S18_3320',39,'91.27',4), - -(10111,'S24_4258',26,'85.70',3), - -(10112,'S10_1949',29,'197.16',1), - -(10112,'S18_2949',23,'85.10',2), - -(10113,'S12_1666',21,'121.64',2), - -(10113,'S18_1097',49,'101.50',4), - -(10113,'S18_4668',50,'43.27',3), - -(10113,'S32_3522',23,'58.82',1), - -(10114,'S10_4962',31,'128.53',8), - -(10114,'S18_2319',39,'106.78',3), - -(10114,'S18_2432',45,'53.48',6), - -(10114,'S18_3232',48,'169.34',4), - -(10114,'S18_4600',41,'105.34',9), - -(10114,'S24_2300',21,'102.23',5), - -(10114,'S24_2840',24,'28.64',1), - -(10114,'S32_1268',32,'88.61',7), - -(10114,'S32_2509',28,'43.83',2), - -(10114,'S700_2824',42,'82.94',10), - -(10115,'S12_4473',46,'111.39',5), - -(10115,'S18_2238',46,'140.81',4), - -(10115,'S24_1444',47,'56.64',2), - -(10115,'S24_4048',44,'106.45',1), - -(10115,'S50_1392',27,'100.70',3), - -(10116,'S32_3207',27,'60.28',1), - -(10117,'S12_1108',33,'195.33',9), - -(10117,'S12_3148',43,'148.06',10), - -(10117,'S12_3891',39,'173.02',8), - -(10117,'S18_3140',26,'121.57',5), - -(10117,'S18_3259',21,'81.68',7), - -(10117,'S18_4027',22,'122.08',12), - -(10117,'S18_4522',23,'73.73',4), - -(10117,'S24_2011',41,'119.20',3), - -(10117,'S50_1514',21,'55.65',11), - -(10117,'S700_1938',38,'75.35',6), - -(10117,'S700_3962',45,'89.38',1), - -(10117,'S72_3212',50,'52.42',2), - -(10118,'S700_3505',36,'86.15',1), - -(10119,'S10_4757',46,'112.88',11), - -(10119,'S18_1662',43,'151.38',3), - -(10119,'S18_3029',21,'74.84',9), - -(10119,'S18_3856',27,'95.28',8), - -(10119,'S24_2841',41,'64.40',4), - -(10119,'S24_3151',35,'72.58',13), - -(10119,'S24_3420',20,'63.12',5), - -(10119,'S24_3816',35,'82.18',10), - -(10119,'S24_3949',28,'62.10',2), - -(10119,'S700_1138',25,'57.34',14), - -(10119,'S700_2047',29,'74.23',7), - -(10119,'S700_2610',38,'67.22',12), - -(10119,'S700_4002',26,'63.67',1), - -(10119,'S72_1253',28,'40.22',6), - -(10120,'S10_2016',29,'118.94',3), - -(10120,'S10_4698',46,'158.80',2), - -(10120,'S18_2581',29,'82.79',8), - -(10120,'S18_2625',46,'57.54',4), - -(10120,'S24_1578',35,'110.45',1), - -(10120,'S24_1785',39,'93.01',10), - -(10120,'S24_2000',34,'72.36',5), - -(10120,'S24_4278',29,'71.73',9), - -(10120,'S32_1374',22,'94.90',6), - -(10120,'S32_4289',29,'68.79',11), - -(10120,'S50_1341',49,'41.46',12), - -(10120,'S700_1691',47,'91.34',13), - -(10120,'S700_2466',24,'81.77',15), - -(10120,'S700_2834',24,'106.79',7), - -(10120,'S700_3167',43,'72.00',14), - -(10121,'S10_1678',34,'86.13',5), - -(10121,'S12_2823',50,'126.52',4), - -(10121,'S24_2360',32,'58.18',2), - -(10121,'S32_4485',25,'95.93',3), - -(10121,'S50_4713',44,'72.41',1), - -(10122,'S12_1099',42,'155.66',10), - -(10122,'S12_3380',37,'113.92',8), - -(10122,'S12_3990',32,'65.44',11), - -(10122,'S12_4675',20,'104.80',7), - -(10122,'S18_1129',34,'114.65',2), - -(10122,'S18_1889',43,'62.37',6), - -(10122,'S18_1984',31,'113.80',1), - -(10122,'S18_3232',25,'137.17',3), - -(10122,'S18_3278',21,'69.15',13), - -(10122,'S18_3482',21,'133.76',12), - -(10122,'S18_3782',35,'59.06',16), - -(10122,'S18_4721',28,'145.82',15), - -(10122,'S24_2972',39,'34.74',4), - -(10122,'S24_3371',34,'50.82',9), - -(10122,'S24_3856',43,'136.22',5), - -(10122,'S24_4620',29,'67.10',14), - -(10122,'S32_2206',31,'33.79',17), - -(10123,'S18_1589',26,'120.71',2), - -(10123,'S18_2870',46,'114.84',3), - -(10123,'S18_3685',34,'117.26',4), - -(10123,'S24_1628',50,'43.27',1), - -(10124,'S18_1749',21,'153.00',6), - -(10124,'S18_2248',42,'58.12',5), - -(10124,'S18_2325',42,'111.87',3), - -(10124,'S18_4409',36,'75.46',7), - -(10124,'S18_4933',23,'66.28',8), - -(10124,'S24_1046',22,'62.47',12), - -(10124,'S24_1937',45,'30.53',2), - -(10124,'S24_2022',22,'36.29',1), - -(10124,'S24_2766',32,'74.51',10), - -(10124,'S24_2887',25,'93.95',9), - -(10124,'S24_3191',49,'76.19',11), - -(10124,'S24_3432',43,'101.73',13), - -(10124,'S24_3969',46,'36.11',4), - -(10125,'S18_1342',32,'89.38',1), - -(10125,'S18_2795',34,'138.38',2), - -(10126,'S10_1949',38,'205.73',11), - -(10126,'S10_4962',22,'122.62',4), - -(10126,'S12_1666',21,'135.30',8), - -(10126,'S18_1097',38,'116.67',10), - -(10126,'S18_1367',42,'51.21',17), - -(10126,'S18_2432',43,'51.05',2), - -(10126,'S18_2949',31,'93.21',12), - -(10126,'S18_2957',46,'61.84',14), - -(10126,'S18_3136',30,'93.20',13), - -(10126,'S18_3320',38,'94.25',16), - -(10126,'S18_4600',50,'102.92',5), - -(10126,'S18_4668',43,'47.29',9), - -(10126,'S24_2300',27,'122.68',1), - -(10126,'S24_4258',34,'83.76',15), - -(10126,'S32_1268',43,'82.83',3), - -(10126,'S32_3522',26,'62.05',7), - -(10126,'S700_2824',45,'97.10',6), - -(10127,'S12_1108',46,'193.25',2), - -(10127,'S12_3148',46,'140.50',3), - -(10127,'S12_3891',42,'169.56',1), - -(10127,'S12_4473',24,'100.73',11), - -(10127,'S18_2238',45,'140.81',10), - -(10127,'S18_2319',45,'114.14',14), - -(10127,'S18_3232',22,'149.02',15), - -(10127,'S18_4027',25,'126.39',5), - -(10127,'S24_1444',20,'50.86',8), - -(10127,'S24_2840',39,'34.30',12), - -(10127,'S24_4048',20,'107.63',7), - -(10127,'S32_2509',45,'46.53',13), - -(10127,'S32_3207',29,'60.90',6), - -(10127,'S50_1392',46,'111.12',9), - -(10127,'S50_1514',46,'55.65',4), - -(10128,'S18_3140',41,'120.20',2), - -(10128,'S18_3259',41,'80.67',4), - -(10128,'S18_4522',43,'77.24',1), - -(10128,'S700_1938',32,'72.75',3), - -(10129,'S10_4757',33,'123.76',2), - -(10129,'S24_2011',45,'113.06',9), - -(10129,'S24_3151',41,'81.43',4), - -(10129,'S24_3816',50,'76.31',1), - -(10129,'S700_1138',31,'58.67',5), - -(10129,'S700_2610',45,'72.28',3), - -(10129,'S700_3505',42,'90.15',6), - -(10129,'S700_3962',30,'94.34',7), - -(10129,'S72_3212',32,'44.23',8), - -(10130,'S18_3029',40,'68.82',2), - -(10130,'S18_3856',33,'99.52',1), - -(10131,'S18_1662',21,'141.92',4), - -(10131,'S24_2841',35,'60.97',5), - -(10131,'S24_3420',29,'52.60',6), - -(10131,'S24_3949',50,'54.59',3), - -(10131,'S700_2047',22,'76.94',8), - -(10131,'S700_2466',40,'86.76',1), - -(10131,'S700_4002',26,'63.67',2), - -(10131,'S72_1253',21,'40.22',7), - -(10132,'S700_3167',36,'80.00',1), - -(10133,'S18_2581',49,'80.26',3), - -(10133,'S24_1785',41,'109.42',5), - -(10133,'S24_4278',46,'61.58',4), - -(10133,'S32_1374',23,'80.91',1), - -(10133,'S32_4289',49,'67.41',6), - -(10133,'S50_1341',27,'37.09',7), - -(10133,'S700_1691',24,'76.73',8), - -(10133,'S700_2834',27,'115.09',2), - -(10134,'S10_1678',41,'90.92',2), - -(10134,'S10_2016',27,'116.56',5), - -(10134,'S10_4698',31,'187.85',4), - -(10134,'S12_2823',20,'131.04',1), - -(10134,'S18_2625',30,'51.48',6), - -(10134,'S24_1578',35,'94.67',3), - -(10134,'S24_2000',43,'75.41',7), - -(10135,'S12_1099',42,'173.17',7), - -(10135,'S12_3380',48,'110.39',5), - -(10135,'S12_3990',24,'72.62',8), - -(10135,'S12_4675',29,'103.64',4), - -(10135,'S18_1889',48,'66.99',3), - -(10135,'S18_3278',45,'65.94',10), - -(10135,'S18_3482',42,'139.64',9), - -(10135,'S18_3782',45,'49.74',13), - -(10135,'S18_4721',31,'133.92',12), - -(10135,'S24_2360',29,'67.18',16), - -(10135,'S24_2972',20,'34.36',1), - -(10135,'S24_3371',27,'52.05',6), - -(10135,'S24_3856',47,'139.03',2), - -(10135,'S24_4620',23,'76.80',11), - -(10135,'S32_2206',33,'38.62',14), - -(10135,'S32_4485',30,'91.85',17), - -(10135,'S50_4713',44,'78.92',15), - -(10136,'S18_1129',25,'117.48',2), - -(10136,'S18_1984',36,'120.91',1), - -(10136,'S18_3232',41,'169.34',3), - -(10137,'S18_1589',44,'115.73',2), - -(10137,'S18_2870',37,'110.88',3), - -(10137,'S18_3685',31,'118.68',4), - -(10137,'S24_1628',26,'40.25',1), - -(10138,'S18_1749',33,'149.60',6), - -(10138,'S18_2248',22,'51.46',5), - -(10138,'S18_2325',38,'114.42',3), - -(10138,'S18_4409',47,'79.15',7), - -(10138,'S18_4933',23,'64.86',8), - -(10138,'S24_1046',45,'59.53',12), - -(10138,'S24_1937',22,'33.19',2), - -(10138,'S24_2022',33,'38.53',1), - -(10138,'S24_2766',28,'73.60',10), - -(10138,'S24_2887',30,'96.30',9), - -(10138,'S24_3191',49,'77.05',11), - -(10138,'S24_3432',21,'99.58',13), - -(10138,'S24_3969',29,'32.82',4), - -(10139,'S18_1342',31,'89.38',7), - -(10139,'S18_1367',49,'52.83',6), - -(10139,'S18_2795',41,'151.88',8), - -(10139,'S18_2949',46,'91.18',1), - -(10139,'S18_2957',20,'52.47',3), - -(10139,'S18_3136',20,'101.58',2), - -(10139,'S18_3320',30,'81.35',5), - -(10139,'S24_4258',29,'93.49',4), - -(10140,'S10_1949',37,'186.44',11), - -(10140,'S10_4962',26,'131.49',4), - -(10140,'S12_1666',38,'118.90',8), - -(10140,'S18_1097',32,'95.67',10), - -(10140,'S18_2432',46,'51.05',2), - -(10140,'S18_4600',40,'100.50',5), - -(10140,'S18_4668',29,'40.25',9), - -(10140,'S24_2300',47,'118.84',1), - -(10140,'S32_1268',26,'87.64',3), - -(10140,'S32_3522',28,'62.05',7), - -(10140,'S700_2824',36,'101.15',6), - -(10141,'S12_4473',21,'114.95',5), - -(10141,'S18_2238',39,'160.46',4), - -(10141,'S18_2319',47,'103.09',8), - -(10141,'S18_3232',34,'143.94',9), - -(10141,'S24_1444',20,'50.86',2), - -(10141,'S24_2840',21,'32.18',6), - -(10141,'S24_4048',40,'104.09',1), - -(10141,'S32_2509',24,'53.03',7), - -(10141,'S50_1392',44,'94.92',3), - -(10142,'S12_1108',33,'166.24',12), - -(10142,'S12_3148',33,'140.50',13), - -(10142,'S12_3891',46,'167.83',11), - -(10142,'S18_3140',47,'129.76',8), - -(10142,'S18_3259',22,'95.80',10), - -(10142,'S18_4027',24,'122.08',15), - -(10142,'S18_4522',24,'79.87',7), - -(10142,'S24_2011',33,'114.29',6), - -(10142,'S24_3151',49,'74.35',1), - -(10142,'S32_3207',42,'60.90',16), - -(10142,'S50_1514',42,'56.24',14), - -(10142,'S700_1138',41,'55.34',2), - -(10142,'S700_1938',43,'77.08',9), - -(10142,'S700_3505',21,'92.16',3), - -(10142,'S700_3962',38,'91.37',4), - -(10142,'S72_3212',39,'46.96',5), - -(10143,'S10_4757',49,'133.28',15), - -(10143,'S18_1662',32,'126.15',7), - -(10143,'S18_3029',46,'70.54',13), - -(10143,'S18_3856',34,'99.52',12), - -(10143,'S24_2841',27,'63.71',8), - -(10143,'S24_3420',33,'59.83',9), - -(10143,'S24_3816',23,'74.64',14), - -(10143,'S24_3949',28,'55.96',6), - -(10143,'S50_1341',34,'34.91',1), - -(10143,'S700_1691',36,'86.77',2), - -(10143,'S700_2047',26,'87.80',11), - -(10143,'S700_2466',26,'79.78',4), - -(10143,'S700_2610',31,'69.39',16), - -(10143,'S700_3167',28,'70.40',3), - -(10143,'S700_4002',34,'65.15',5), - -(10143,'S72_1253',37,'49.66',10), - -(10144,'S32_4289',20,'56.41',1), - -(10145,'S10_1678',45,'76.56',6), - -(10145,'S10_2016',37,'104.67',9), - -(10145,'S10_4698',33,'154.93',8), - -(10145,'S12_2823',49,'146.10',5), - -(10145,'S18_2581',30,'71.81',14), - -(10145,'S18_2625',30,'52.70',10), - -(10145,'S24_1578',43,'103.68',7), - -(10145,'S24_1785',40,'87.54',16), - -(10145,'S24_2000',47,'63.98',11), - -(10145,'S24_2360',27,'56.10',3), - -(10145,'S24_4278',33,'71.73',15), - -(10145,'S32_1374',33,'99.89',12), - -(10145,'S32_2206',31,'39.43',1), - -(10145,'S32_4485',27,'95.93',4), - -(10145,'S50_4713',38,'73.22',2), - -(10145,'S700_2834',20,'113.90',13), - -(10146,'S18_3782',47,'60.30',2), - -(10146,'S18_4721',29,'130.94',1), - -(10147,'S12_1099',48,'161.49',7), - -(10147,'S12_3380',31,'110.39',5), - -(10147,'S12_3990',21,'74.21',8), - -(10147,'S12_4675',33,'97.89',4), - -(10147,'S18_1889',26,'70.84',3), - -(10147,'S18_3278',36,'74.78',10), - -(10147,'S18_3482',37,'129.35',9), - -(10147,'S24_2972',25,'33.23',1), - -(10147,'S24_3371',30,'48.98',6), - -(10147,'S24_3856',23,'123.58',2), - -(10147,'S24_4620',31,'72.76',11), - -(10148,'S18_1129',23,'114.65',13), - -(10148,'S18_1589',47,'108.26',9), - -(10148,'S18_1984',25,'136.56',12), - -(10148,'S18_2870',27,'113.52',10), - -(10148,'S18_3232',32,'143.94',14), - -(10148,'S18_3685',28,'135.63',11), - -(10148,'S18_4409',34,'83.75',1), - -(10148,'S18_4933',29,'66.28',2), - -(10148,'S24_1046',25,'65.41',6), - -(10148,'S24_1628',47,'46.29',8), - -(10148,'S24_2766',21,'77.24',4), - -(10148,'S24_2887',34,'115.09',3), - -(10148,'S24_3191',31,'71.91',5), - -(10148,'S24_3432',27,'96.37',7), - -(10149,'S18_1342',50,'87.33',4), - -(10149,'S18_1367',30,'48.52',3), - -(10149,'S18_1749',34,'156.40',11), - -(10149,'S18_2248',24,'50.85',10), - -(10149,'S18_2325',33,'125.86',8), - -(10149,'S18_2795',23,'167.06',5), - -(10149,'S18_3320',42,'89.29',2), - -(10149,'S24_1937',36,'31.20',7), - -(10149,'S24_2022',49,'39.87',6), - -(10149,'S24_3969',26,'38.57',9), - -(10149,'S24_4258',20,'90.57',1), - -(10150,'S10_1949',45,'182.16',8), - -(10150,'S10_4962',20,'121.15',1), - -(10150,'S12_1666',30,'135.30',5), - -(10150,'S18_1097',34,'95.67',7), - -(10150,'S18_2949',47,'93.21',9), - -(10150,'S18_2957',30,'56.21',11), - -(10150,'S18_3136',26,'97.39',10), - -(10150,'S18_4600',49,'111.39',2), - -(10150,'S18_4668',30,'47.29',6), - -(10150,'S32_3522',49,'62.05',4), - -(10150,'S700_2824',20,'95.08',3), - -(10151,'S12_4473',24,'114.95',3), - -(10151,'S18_2238',43,'152.27',2), - -(10151,'S18_2319',49,'106.78',6), - -(10151,'S18_2432',39,'58.34',9), - -(10151,'S18_3232',21,'167.65',7), - -(10151,'S24_2300',42,'109.90',8), - -(10151,'S24_2840',30,'29.35',4), - -(10151,'S32_1268',27,'84.75',10), - -(10151,'S32_2509',41,'43.29',5), - -(10151,'S50_1392',26,'108.81',1), - -(10152,'S18_4027',35,'117.77',1), - -(10152,'S24_1444',25,'49.13',4), - -(10152,'S24_4048',23,'112.37',3), - -(10152,'S32_3207',33,'57.17',2), - -(10153,'S12_1108',20,'201.57',11), - -(10153,'S12_3148',42,'128.42',12), - -(10153,'S12_3891',49,'155.72',10), - -(10153,'S18_3140',31,'125.66',7), - -(10153,'S18_3259',29,'82.69',9), - -(10153,'S18_4522',22,'82.50',6), - -(10153,'S24_2011',40,'111.83',5), - -(10153,'S50_1514',31,'53.31',13), - -(10153,'S700_1138',43,'58.00',1), - -(10153,'S700_1938',31,'80.55',8), - -(10153,'S700_3505',50,'87.15',2), - -(10153,'S700_3962',20,'85.41',3), - -(10153,'S72_3212',50,'51.87',4), - -(10154,'S24_3151',31,'75.23',2), - -(10154,'S700_2610',36,'59.27',1), - -(10155,'S10_4757',32,'129.20',13), - -(10155,'S18_1662',38,'138.77',5), - -(10155,'S18_3029',44,'83.44',11), - -(10155,'S18_3856',29,'105.87',10), - -(10155,'S24_2841',23,'62.34',6), - -(10155,'S24_3420',34,'56.55',7), - -(10155,'S24_3816',37,'76.31',12), - -(10155,'S24_3949',44,'58.69',4), - -(10155,'S700_2047',32,'89.61',9), - -(10155,'S700_2466',20,'87.75',2), - -(10155,'S700_3167',43,'76.80',1), - -(10155,'S700_4002',44,'70.33',3), - -(10155,'S72_1253',34,'49.16',8), - -(10156,'S50_1341',20,'43.64',1), - -(10156,'S700_1691',48,'77.64',2), - -(10157,'S18_2581',33,'69.27',3), - -(10157,'S24_1785',40,'89.72',5), - -(10157,'S24_4278',33,'66.65',4), - -(10157,'S32_1374',34,'83.91',1), - -(10157,'S32_4289',28,'56.41',6), - -(10157,'S700_2834',48,'109.16',2), - -(10158,'S24_2000',22,'67.79',1), - -(10159,'S10_1678',49,'81.35',14), - -(10159,'S10_2016',37,'101.10',17), - -(10159,'S10_4698',22,'170.42',16), - -(10159,'S12_1099',41,'188.73',2), - -(10159,'S12_2823',38,'131.04',13), - -(10159,'S12_3990',24,'67.03',3), - -(10159,'S18_2625',42,'51.48',18), - -(10159,'S18_3278',21,'66.74',5), - -(10159,'S18_3482',25,'129.35',4), - -(10159,'S18_3782',21,'54.71',8), - -(10159,'S18_4721',32,'142.85',7), - -(10159,'S24_1578',44,'100.30',15), - -(10159,'S24_2360',27,'67.18',11), - -(10159,'S24_3371',50,'49.60',1), - -(10159,'S24_4620',23,'80.84',6), - -(10159,'S32_2206',35,'39.43',9), - -(10159,'S32_4485',23,'86.74',12), - -(10159,'S50_4713',31,'78.11',10), - -(10160,'S12_3380',46,'96.30',6), - -(10160,'S12_4675',50,'93.28',5), - -(10160,'S18_1889',38,'70.84',4), - -(10160,'S18_3232',20,'140.55',1), - -(10160,'S24_2972',42,'30.59',2), - -(10160,'S24_3856',35,'130.60',3), - -(10161,'S18_1129',28,'121.72',12), - -(10161,'S18_1589',43,'102.04',8), - -(10161,'S18_1984',48,'139.41',11), - -(10161,'S18_2870',23,'125.40',9), - -(10161,'S18_3685',36,'132.80',10), - -(10161,'S18_4933',25,'62.72',1), - -(10161,'S24_1046',37,'73.49',5), - -(10161,'S24_1628',23,'47.29',7), - -(10161,'S24_2766',20,'82.69',3), - -(10161,'S24_2887',25,'108.04',2), - -(10161,'S24_3191',20,'72.77',4), - -(10161,'S24_3432',30,'94.23',6), - -(10162,'S18_1342',48,'87.33',2), - -(10162,'S18_1367',45,'45.28',1), - -(10162,'S18_1749',29,'141.10',9), - -(10162,'S18_2248',27,'53.28',8), - -(10162,'S18_2325',38,'113.15',6), - -(10162,'S18_2795',48,'156.94',3), - -(10162,'S18_4409',39,'86.51',10), - -(10162,'S24_1937',37,'27.55',5), - -(10162,'S24_2022',43,'38.98',4), - -(10162,'S24_3969',37,'32.82',7), - -(10163,'S10_1949',21,'212.16',1), - -(10163,'S18_2949',31,'101.31',2), - -(10163,'S18_2957',48,'59.96',4), - -(10163,'S18_3136',40,'101.58',3), - -(10163,'S18_3320',43,'80.36',6), - -(10163,'S24_4258',42,'96.42',5), - -(10164,'S10_4962',21,'143.31',2), - -(10164,'S12_1666',49,'121.64',6), - -(10164,'S18_1097',36,'103.84',8), - -(10164,'S18_4600',45,'107.76',3), - -(10164,'S18_4668',25,'46.29',7), - -(10164,'S32_1268',24,'91.49',1), - -(10164,'S32_3522',49,'57.53',5), - -(10164,'S700_2824',39,'86.99',4), - -(10165,'S12_1108',44,'168.32',3), - -(10165,'S12_3148',34,'123.89',4), - -(10165,'S12_3891',27,'152.26',2), - -(10165,'S12_4473',48,'109.02',12), - -(10165,'S18_2238',29,'134.26',11), - -(10165,'S18_2319',46,'120.28',15), - -(10165,'S18_2432',31,'60.77',18), - -(10165,'S18_3232',47,'154.10',16), - -(10165,'S18_3259',50,'84.71',1), - -(10165,'S18_4027',28,'123.51',6), - -(10165,'S24_1444',25,'46.82',9), - -(10165,'S24_2300',32,'117.57',17), - -(10165,'S24_2840',27,'31.12',13), - -(10165,'S24_4048',24,'106.45',8), - -(10165,'S32_2509',48,'50.86',14), - -(10165,'S32_3207',44,'55.30',7), - -(10165,'S50_1392',48,'106.49',10), - -(10165,'S50_1514',38,'49.21',5), - -(10166,'S18_3140',43,'136.59',2), - -(10166,'S18_4522',26,'72.85',1), - -(10166,'S700_1938',29,'76.22',3), - -(10167,'S10_4757',44,'123.76',9), - -(10167,'S18_1662',43,'141.92',1), - -(10167,'S18_3029',46,'69.68',7), - -(10167,'S18_3856',34,'84.70',6), - -(10167,'S24_2011',33,'110.60',16), - -(10167,'S24_2841',21,'54.81',2), - -(10167,'S24_3151',20,'77.00',11), - -(10167,'S24_3420',32,'64.44',3), - -(10167,'S24_3816',29,'73.80',8), - -(10167,'S700_1138',43,'66.00',12), - -(10167,'S700_2047',29,'87.80',5), - -(10167,'S700_2610',46,'62.16',10), - -(10167,'S700_3505',24,'85.14',13), - -(10167,'S700_3962',28,'83.42',14), - -(10167,'S72_1253',40,'42.71',4), - -(10167,'S72_3212',38,'43.68',15), - -(10168,'S10_1678',36,'94.74',1), - -(10168,'S10_2016',27,'97.53',4), - -(10168,'S10_4698',20,'160.74',3), - -(10168,'S18_2581',21,'75.19',9), - -(10168,'S18_2625',46,'49.06',5), - -(10168,'S24_1578',50,'103.68',2), - -(10168,'S24_1785',49,'93.01',11), - -(10168,'S24_2000',29,'72.36',6), - -(10168,'S24_3949',27,'57.32',18), - -(10168,'S24_4278',48,'68.10',10), - -(10168,'S32_1374',28,'89.90',7), - -(10168,'S32_4289',31,'57.78',12), - -(10168,'S50_1341',48,'39.71',13), - -(10168,'S700_1691',28,'91.34',14), - -(10168,'S700_2466',31,'87.75',16), - -(10168,'S700_2834',36,'94.92',8), - -(10168,'S700_3167',48,'72.00',15), - -(10168,'S700_4002',39,'67.37',17), - -(10169,'S12_1099',30,'163.44',2), - -(10169,'S12_2823',35,'126.52',13), - -(10169,'S12_3990',36,'71.82',3), - -(10169,'S18_3278',32,'65.13',5), - -(10169,'S18_3482',36,'136.70',4), - -(10169,'S18_3782',38,'52.84',8), - -(10169,'S18_4721',33,'120.53',7), - -(10169,'S24_2360',38,'66.49',11), - -(10169,'S24_3371',34,'53.27',1), - -(10169,'S24_4620',24,'77.61',6), - -(10169,'S32_2206',26,'37.01',9), - -(10169,'S32_4485',34,'83.68',12), - -(10169,'S50_4713',48,'75.66',10), - -(10170,'S12_3380',47,'116.27',4), - -(10170,'S12_4675',41,'93.28',3), - -(10170,'S18_1889',20,'70.07',2), - -(10170,'S24_3856',34,'130.60',1), - -(10171,'S18_1129',35,'134.46',2), - -(10171,'S18_1984',35,'128.03',1), - -(10171,'S18_3232',39,'165.95',3), - -(10171,'S24_2972',36,'34.74',4), - -(10172,'S18_1589',42,'109.51',6), - -(10172,'S18_2870',39,'117.48',7), - -(10172,'S18_3685',48,'139.87',8), - -(10172,'S24_1046',32,'61.00',3), - -(10172,'S24_1628',34,'43.27',5), - -(10172,'S24_2766',22,'79.97',1), - -(10172,'S24_3191',24,'77.91',2), - -(10172,'S24_3432',22,'87.81',4), - -(10173,'S18_1342',43,'101.71',6), - -(10173,'S18_1367',48,'51.75',5), - -(10173,'S18_1749',24,'168.30',13), - -(10173,'S18_2248',26,'55.09',12), - -(10173,'S18_2325',31,'127.13',10), - -(10173,'S18_2795',22,'140.06',7), - -(10173,'S18_2957',28,'56.84',2), - -(10173,'S18_3136',31,'86.92',1), - -(10173,'S18_3320',29,'90.28',4), - -(10173,'S18_4409',21,'77.31',14), - -(10173,'S18_4933',39,'58.44',15), - -(10173,'S24_1937',31,'29.87',9), - -(10173,'S24_2022',27,'39.42',8), - -(10173,'S24_2887',23,'98.65',16), - -(10173,'S24_3969',35,'35.70',11), - -(10173,'S24_4258',22,'93.49',3), - -(10174,'S10_1949',34,'207.87',4), - -(10174,'S12_1666',43,'113.44',1), - -(10174,'S18_1097',48,'108.50',3), - -(10174,'S18_2949',46,'100.30',5), - -(10174,'S18_4668',49,'44.27',2), - -(10175,'S10_4962',33,'119.67',9), - -(10175,'S12_4473',26,'109.02',1), - -(10175,'S18_2319',48,'101.87',4), - -(10175,'S18_2432',41,'59.55',7), - -(10175,'S18_3232',29,'150.71',5), - -(10175,'S18_4600',47,'102.92',10), - -(10175,'S24_2300',28,'121.40',6), - -(10175,'S24_2840',37,'32.18',2), - -(10175,'S32_1268',22,'89.57',8), - -(10175,'S32_2509',50,'50.86',3), - -(10175,'S32_3522',29,'56.24',12), - -(10175,'S700_2824',42,'80.92',11), - -(10176,'S12_1108',33,'166.24',2), - -(10176,'S12_3148',47,'145.04',3), - -(10176,'S12_3891',50,'160.91',1), - -(10176,'S18_2238',20,'139.17',10), - -(10176,'S18_4027',36,'140.75',5), - -(10176,'S24_1444',27,'55.49',8), - -(10176,'S24_4048',29,'101.72',7), - -(10176,'S32_3207',22,'62.14',6), - -(10176,'S50_1392',23,'109.96',9), - -(10176,'S50_1514',38,'52.14',4), - -(10177,'S18_3140',23,'113.37',9), - -(10177,'S18_3259',29,'92.77',11), - -(10177,'S18_4522',35,'82.50',8), - -(10177,'S24_2011',50,'115.52',7), - -(10177,'S24_3151',45,'79.66',2), - -(10177,'S700_1138',24,'58.67',3), - -(10177,'S700_1938',31,'77.95',10), - -(10177,'S700_2610',32,'64.33',1), - -(10177,'S700_3505',44,'88.15',4), - -(10177,'S700_3962',24,'83.42',5), - -(10177,'S72_3212',40,'52.96',6), - -(10178,'S10_4757',24,'131.92',12), - -(10178,'S18_1662',42,'127.73',4), - -(10178,'S18_3029',41,'70.54',10), - -(10178,'S18_3856',48,'104.81',9), - -(10178,'S24_2841',34,'67.82',5), - -(10178,'S24_3420',27,'65.75',6), - -(10178,'S24_3816',21,'68.77',11), - -(10178,'S24_3949',30,'64.15',3), - -(10178,'S700_2047',34,'86.90',8), - -(10178,'S700_2466',22,'91.74',1), - -(10178,'S700_4002',45,'68.11',2), - -(10178,'S72_1253',45,'41.71',7), - -(10179,'S18_2581',24,'82.79',3), - -(10179,'S24_1785',47,'105.04',5), - -(10179,'S24_4278',27,'66.65',4), - -(10179,'S32_1374',45,'86.90',1), - -(10179,'S32_4289',24,'63.97',6), - -(10179,'S50_1341',34,'43.20',7), - -(10179,'S700_1691',23,'75.81',8), - -(10179,'S700_2834',25,'98.48',2), - -(10179,'S700_3167',39,'80.00',9), - -(10180,'S10_1678',29,'76.56',9), - -(10180,'S10_2016',42,'99.91',12), - -(10180,'S10_4698',41,'164.61',11), - -(10180,'S12_2823',40,'131.04',8), - -(10180,'S18_2625',25,'48.46',13), - -(10180,'S18_3782',21,'59.06',3), - -(10180,'S18_4721',44,'147.31',2), - -(10180,'S24_1578',48,'98.05',10), - -(10180,'S24_2000',28,'61.70',14), - -(10180,'S24_2360',35,'60.95',6), - -(10180,'S24_4620',28,'68.71',1), - -(10180,'S32_2206',34,'33.39',4), - -(10180,'S32_4485',22,'102.05',7), - -(10180,'S50_4713',21,'74.85',5), - -(10181,'S12_1099',27,'155.66',14), - -(10181,'S12_3380',28,'113.92',12), - -(10181,'S12_3990',20,'67.03',15), - -(10181,'S12_4675',36,'107.10',11), - -(10181,'S18_1129',44,'124.56',6), - -(10181,'S18_1589',42,'124.44',2), - -(10181,'S18_1889',22,'74.69',10), - -(10181,'S18_1984',21,'129.45',5), - -(10181,'S18_2870',27,'130.68',3), - -(10181,'S18_3232',45,'147.33',7), - -(10181,'S18_3278',30,'73.17',17), - -(10181,'S18_3482',22,'120.53',16), - -(10181,'S18_3685',39,'137.04',4), - -(10181,'S24_1628',34,'45.28',1), - -(10181,'S24_2972',37,'32.85',8), - -(10181,'S24_3371',23,'54.49',13), - -(10181,'S24_3856',25,'122.17',9), - -(10182,'S18_1342',25,'83.22',3), - -(10182,'S18_1367',32,'44.21',2), - -(10182,'S18_1749',44,'159.80',10), - -(10182,'S18_2248',38,'54.49',9), - -(10182,'S18_2325',20,'105.52',7), - -(10182,'S18_2795',21,'135.00',4), - -(10182,'S18_3320',33,'86.31',1), - -(10182,'S18_4409',36,'88.35',11), - -(10182,'S18_4933',44,'61.29',12), - -(10182,'S24_1046',47,'63.20',16), - -(10182,'S24_1937',39,'31.86',6), - -(10182,'S24_2022',31,'39.87',5), - -(10182,'S24_2766',36,'87.24',14), - -(10182,'S24_2887',20,'116.27',13), - -(10182,'S24_3191',33,'73.62',15), - -(10182,'S24_3432',49,'95.30',17), - -(10182,'S24_3969',23,'34.88',8), - -(10183,'S10_1949',23,'180.01',8), - -(10183,'S10_4962',28,'127.06',1), - -(10183,'S12_1666',41,'114.80',5), - -(10183,'S18_1097',21,'108.50',7), - -(10183,'S18_2949',37,'91.18',9), - -(10183,'S18_2957',39,'51.22',11), - -(10183,'S18_3136',22,'90.06',10), - -(10183,'S18_4600',21,'118.66',2), - -(10183,'S18_4668',40,'42.26',6), - -(10183,'S24_4258',47,'81.81',12), - -(10183,'S32_3522',49,'52.36',4), - -(10183,'S700_2824',23,'85.98',3), - -(10184,'S12_4473',37,'105.47',6), - -(10184,'S18_2238',46,'145.72',5), - -(10184,'S18_2319',46,'119.05',9), - -(10184,'S18_2432',44,'60.77',12), - -(10184,'S18_3232',28,'165.95',10), - -(10184,'S24_1444',31,'57.22',3), - -(10184,'S24_2300',24,'117.57',11), - -(10184,'S24_2840',42,'30.06',7), - -(10184,'S24_4048',49,'114.73',2), - -(10184,'S32_1268',46,'84.75',13), - -(10184,'S32_2509',33,'52.49',8), - -(10184,'S32_3207',48,'59.03',1), - -(10184,'S50_1392',45,'92.60',4), - -(10185,'S12_1108',21,'195.33',13), - -(10185,'S12_3148',33,'146.55',14), - -(10185,'S12_3891',43,'147.07',12), - -(10185,'S18_3140',28,'124.30',9), - -(10185,'S18_3259',49,'94.79',11), - -(10185,'S18_4027',39,'127.82',16), - -(10185,'S18_4522',47,'87.77',8), - -(10185,'S24_2011',30,'105.69',7), - -(10185,'S24_3151',33,'83.20',2), - -(10185,'S50_1514',20,'46.86',15), - -(10185,'S700_1138',21,'64.67',3), - -(10185,'S700_1938',30,'79.68',10), - -(10185,'S700_2610',39,'61.44',1), - -(10185,'S700_3505',37,'99.17',4), - -(10185,'S700_3962',22,'93.35',5), - -(10185,'S72_3212',28,'47.50',6), - -(10186,'S10_4757',26,'108.80',9), - -(10186,'S18_1662',32,'137.19',1), - -(10186,'S18_3029',32,'73.12',7), - -(10186,'S18_3856',46,'98.46',6), - -(10186,'S24_2841',22,'60.29',2), - -(10186,'S24_3420',21,'59.83',3), - -(10186,'S24_3816',36,'68.77',8), - -(10186,'S700_2047',24,'80.56',5), - -(10186,'S72_1253',28,'42.71',4), - -(10187,'S18_2581',45,'70.12',1), - -(10187,'S24_1785',46,'96.29',3), - -(10187,'S24_3949',43,'55.96',10), - -(10187,'S24_4278',33,'64.48',2), - -(10187,'S32_4289',31,'61.22',4), - -(10187,'S50_1341',41,'39.71',5), - -(10187,'S700_1691',34,'84.95',6), - -(10187,'S700_2466',44,'95.73',8), - -(10187,'S700_3167',34,'72.00',7), - -(10187,'S700_4002',44,'70.33',9), - -(10188,'S10_1678',48,'95.70',1), - -(10188,'S10_2016',38,'111.80',4), - -(10188,'S10_4698',45,'182.04',3), - -(10188,'S18_2625',32,'52.09',5), - -(10188,'S24_1578',25,'95.80',2), - -(10188,'S24_2000',40,'61.70',6), - -(10188,'S32_1374',44,'81.91',7), - -(10188,'S700_2834',29,'96.11',8), - -(10189,'S12_2823',28,'138.57',1), - -(10190,'S24_2360',42,'58.87',3), - -(10190,'S32_2206',46,'38.62',1), - -(10190,'S32_4485',42,'89.80',4), - -(10190,'S50_4713',40,'67.53',2), - -(10191,'S12_1099',21,'155.66',3), - -(10191,'S12_3380',40,'104.52',1), - -(10191,'S12_3990',30,'70.22',4), - -(10191,'S18_3278',36,'75.59',6), - -(10191,'S18_3482',23,'119.06',5), - -(10191,'S18_3782',43,'60.93',9), - -(10191,'S18_4721',32,'136.90',8), - -(10191,'S24_3371',48,'53.27',2), - -(10191,'S24_4620',44,'77.61',7), - -(10192,'S12_4675',27,'99.04',16), - -(10192,'S18_1129',22,'140.12',11), - -(10192,'S18_1589',29,'100.80',7), - -(10192,'S18_1889',45,'70.84',15), - -(10192,'S18_1984',47,'128.03',10), - -(10192,'S18_2870',38,'110.88',8), - -(10192,'S18_3232',26,'137.17',12), - -(10192,'S18_3685',45,'125.74',9), - -(10192,'S24_1046',37,'72.02',4), - -(10192,'S24_1628',47,'49.30',6), - -(10192,'S24_2766',46,'86.33',2), - -(10192,'S24_2887',23,'112.74',1), - -(10192,'S24_2972',30,'33.23',13), - -(10192,'S24_3191',32,'69.34',3), - -(10192,'S24_3432',46,'93.16',5), - -(10192,'S24_3856',45,'112.34',14), - -(10193,'S18_1342',28,'92.47',7), - -(10193,'S18_1367',46,'46.36',6), - -(10193,'S18_1749',21,'153.00',14), - -(10193,'S18_2248',42,'60.54',13), - -(10193,'S18_2325',44,'115.69',11), - -(10193,'S18_2795',22,'143.44',8), - -(10193,'S18_2949',28,'87.13',1), - -(10193,'S18_2957',24,'53.09',3), - -(10193,'S18_3136',23,'97.39',2), - -(10193,'S18_3320',32,'79.37',5), - -(10193,'S18_4409',24,'92.03',15), - -(10193,'S18_4933',25,'66.28',16), - -(10193,'S24_1937',26,'32.19',10), - -(10193,'S24_2022',20,'44.80',9), - -(10193,'S24_3969',22,'38.16',12), - -(10193,'S24_4258',20,'92.52',4), - -(10194,'S10_1949',42,'203.59',11), - -(10194,'S10_4962',26,'134.44',4), - -(10194,'S12_1666',38,'124.37',8), - -(10194,'S18_1097',21,'103.84',10), - -(10194,'S18_2432',45,'51.05',2), - -(10194,'S18_4600',32,'113.82',5), - -(10194,'S18_4668',41,'47.79',9), - -(10194,'S24_2300',49,'112.46',1), - -(10194,'S32_1268',37,'77.05',3), - -(10194,'S32_3522',39,'61.41',7), - -(10194,'S700_2824',26,'80.92',6), - -(10195,'S12_4473',49,'118.50',6), - -(10195,'S18_2238',27,'139.17',5), - -(10195,'S18_2319',35,'112.91',9), - -(10195,'S18_3232',50,'150.71',10), - -(10195,'S24_1444',44,'54.33',3), - -(10195,'S24_2840',32,'31.82',7), - -(10195,'S24_4048',34,'95.81',2), - -(10195,'S32_2509',32,'51.95',8), - -(10195,'S32_3207',33,'59.03',1), - -(10195,'S50_1392',49,'97.23',4), - -(10196,'S12_1108',47,'203.64',5), - -(10196,'S12_3148',24,'151.08',6), - -(10196,'S12_3891',38,'147.07',4), - -(10196,'S18_3140',49,'127.03',1), - -(10196,'S18_3259',35,'81.68',3), - -(10196,'S18_4027',27,'126.39',8), - -(10196,'S50_1514',46,'56.82',7), - -(10196,'S700_1938',50,'84.88',2), - -(10197,'S10_4757',45,'118.32',6), - -(10197,'S18_3029',46,'83.44',4), - -(10197,'S18_3856',22,'85.75',3), - -(10197,'S18_4522',50,'78.99',14), - -(10197,'S24_2011',41,'109.37',13), - -(10197,'S24_3151',47,'83.20',8), - -(10197,'S24_3816',22,'67.93',5), - -(10197,'S700_1138',23,'60.00',9), - -(10197,'S700_2047',24,'78.75',2), - -(10197,'S700_2610',50,'66.50',7), - -(10197,'S700_3505',27,'100.17',10), - -(10197,'S700_3962',35,'88.39',11), - -(10197,'S72_1253',29,'39.73',1), - -(10197,'S72_3212',42,'48.59',12), - -(10198,'S18_1662',42,'149.81',4), - -(10198,'S24_2841',48,'60.97',5), - -(10198,'S24_3420',27,'61.81',6), - -(10198,'S24_3949',43,'65.51',3), - -(10198,'S700_2466',42,'94.73',1), - -(10198,'S700_4002',40,'74.03',2), - -(10199,'S50_1341',29,'37.97',1), - -(10199,'S700_1691',48,'81.29',2), - -(10199,'S700_3167',38,'70.40',3), - -(10200,'S18_2581',28,'74.34',3), - -(10200,'S24_1785',33,'99.57',5), - -(10200,'S24_4278',39,'70.28',4), - -(10200,'S32_1374',35,'80.91',1), - -(10200,'S32_4289',27,'65.35',6), - -(10200,'S700_2834',39,'115.09',2), - -(10201,'S10_1678',22,'82.30',2), - -(10201,'S10_2016',24,'116.56',5), - -(10201,'S10_4698',49,'191.72',4), - -(10201,'S12_2823',25,'126.52',1), - -(10201,'S18_2625',30,'48.46',6), - -(10201,'S24_1578',39,'93.54',3), - -(10201,'S24_2000',25,'66.27',7), - -(10202,'S18_3782',30,'55.33',3), - -(10202,'S18_4721',43,'124.99',2), - -(10202,'S24_2360',50,'56.10',6), - -(10202,'S24_4620',50,'75.18',1), - -(10202,'S32_2206',27,'33.39',4), - -(10202,'S32_4485',31,'81.64',7), - -(10202,'S50_4713',40,'79.73',5), - -(10203,'S12_1099',20,'161.49',8), - -(10203,'S12_3380',20,'111.57',6), - -(10203,'S12_3990',44,'63.84',9), - -(10203,'S12_4675',47,'115.16',5), - -(10203,'S18_1889',45,'73.15',4), - -(10203,'S18_3232',48,'157.49',1), - -(10203,'S18_3278',33,'66.74',11), - -(10203,'S18_3482',32,'127.88',10), - -(10203,'S24_2972',21,'33.23',2), - -(10203,'S24_3371',34,'56.94',7), - -(10203,'S24_3856',47,'140.43',3), - -(10204,'S18_1129',42,'114.65',17), - -(10204,'S18_1589',40,'113.24',13), - -(10204,'S18_1749',33,'153.00',4), - -(10204,'S18_1984',38,'133.72',16), - -(10204,'S18_2248',23,'59.33',3), - -(10204,'S18_2325',26,'119.50',1), - -(10204,'S18_2870',27,'106.92',14), - -(10204,'S18_3685',35,'132.80',15), - -(10204,'S18_4409',29,'83.75',5), - -(10204,'S18_4933',45,'69.84',6), - -(10204,'S24_1046',20,'69.82',10), - -(10204,'S24_1628',45,'46.79',12), - -(10204,'S24_2766',47,'79.06',8), - -(10204,'S24_2887',42,'112.74',7), - -(10204,'S24_3191',40,'84.75',9), - -(10204,'S24_3432',48,'104.94',11), - -(10204,'S24_3969',39,'34.88',2), - -(10205,'S18_1342',36,'98.63',2), - -(10205,'S18_1367',48,'45.82',1), - -(10205,'S18_2795',40,'138.38',3), - -(10205,'S24_1937',32,'27.88',5), - -(10205,'S24_2022',24,'36.74',4), - -(10206,'S10_1949',47,'203.59',6), - -(10206,'S12_1666',28,'109.34',3), - -(10206,'S18_1097',34,'115.50',5), - -(10206,'S18_2949',37,'98.27',7), - -(10206,'S18_2957',28,'51.84',9), - -(10206,'S18_3136',30,'102.63',8), - -(10206,'S18_3320',28,'99.21',11), - -(10206,'S18_4668',21,'45.78',4), - -(10206,'S24_4258',33,'95.44',10), - -(10206,'S32_3522',36,'54.94',2), - -(10206,'S700_2824',33,'89.01',1), - -(10207,'S10_4962',31,'125.58',15), - -(10207,'S12_4473',34,'95.99',7), - -(10207,'S18_2238',44,'140.81',6), - -(10207,'S18_2319',43,'109.23',10), - -(10207,'S18_2432',37,'60.77',13), - -(10207,'S18_3232',25,'140.55',11), - -(10207,'S18_4027',40,'143.62',1), - -(10207,'S18_4600',47,'119.87',16), - -(10207,'S24_1444',49,'57.80',4), - -(10207,'S24_2300',46,'127.79',12), - -(10207,'S24_2840',42,'30.76',8), - -(10207,'S24_4048',28,'108.82',3), - -(10207,'S32_1268',49,'84.75',14), - -(10207,'S32_2509',27,'51.95',9), - -(10207,'S32_3207',45,'55.30',2), - -(10207,'S50_1392',28,'106.49',5), - -(10208,'S12_1108',46,'176.63',13), - -(10208,'S12_3148',26,'128.42',14), - -(10208,'S12_3891',20,'152.26',12), - -(10208,'S18_3140',24,'117.47',9), - -(10208,'S18_3259',48,'96.81',11), - -(10208,'S18_4522',45,'72.85',8), - -(10208,'S24_2011',35,'122.89',7), - -(10208,'S24_3151',20,'80.54',2), - -(10208,'S50_1514',30,'57.99',15), - -(10208,'S700_1138',38,'56.67',3), - -(10208,'S700_1938',40,'73.62',10), - -(10208,'S700_2610',46,'63.61',1), - -(10208,'S700_3505',37,'95.16',4), - -(10208,'S700_3962',33,'95.34',5), - -(10208,'S72_3212',42,'48.05',6), - -(10209,'S10_4757',39,'129.20',8), - -(10209,'S18_3029',28,'82.58',6), - -(10209,'S18_3856',20,'97.40',5), - -(10209,'S24_2841',43,'66.45',1), - -(10209,'S24_3420',36,'56.55',2), - -(10209,'S24_3816',22,'79.67',7), - -(10209,'S700_2047',33,'90.52',4), - -(10209,'S72_1253',48,'44.20',3), - -(10210,'S10_2016',23,'112.99',2), - -(10210,'S10_4698',34,'189.79',1), - -(10210,'S18_1662',31,'141.92',17), - -(10210,'S18_2581',50,'68.43',7), - -(10210,'S18_2625',40,'51.48',3), - -(10210,'S24_1785',27,'100.67',9), - -(10210,'S24_2000',30,'63.22',4), - -(10210,'S24_3949',29,'56.64',16), - -(10210,'S24_4278',40,'68.10',8), - -(10210,'S32_1374',46,'84.91',5), - -(10210,'S32_4289',39,'57.10',10), - -(10210,'S50_1341',43,'43.20',11), - -(10210,'S700_1691',21,'87.69',12), - -(10210,'S700_2466',26,'93.74',14), - -(10210,'S700_2834',25,'98.48',6), - -(10210,'S700_3167',31,'64.00',13), - -(10210,'S700_4002',42,'60.70',15), - -(10211,'S10_1678',41,'90.92',14), - -(10211,'S12_1099',41,'171.22',2), - -(10211,'S12_2823',36,'126.52',13), - -(10211,'S12_3990',28,'79.80',3), - -(10211,'S18_3278',35,'73.17',5), - -(10211,'S18_3482',28,'138.17',4), - -(10211,'S18_3782',46,'60.30',8), - -(10211,'S18_4721',41,'148.80',7), - -(10211,'S24_1578',25,'109.32',15), - -(10211,'S24_2360',21,'62.33',11), - -(10211,'S24_3371',48,'52.66',1), - -(10211,'S24_4620',22,'80.84',6), - -(10211,'S32_2206',41,'39.83',9), - -(10211,'S32_4485',37,'94.91',12), - -(10211,'S50_4713',40,'70.78',10), - -(10212,'S12_3380',39,'99.82',16), - -(10212,'S12_4675',33,'110.55',15), - -(10212,'S18_1129',29,'117.48',10), - -(10212,'S18_1589',38,'105.77',6), - -(10212,'S18_1889',20,'64.68',14), - -(10212,'S18_1984',41,'133.72',9), - -(10212,'S18_2870',40,'117.48',7), - -(10212,'S18_3232',40,'155.79',11), - -(10212,'S18_3685',45,'115.85',8), - -(10212,'S24_1046',41,'61.73',3), - -(10212,'S24_1628',45,'43.27',5), - -(10212,'S24_2766',45,'81.78',1), - -(10212,'S24_2972',34,'37.38',12), - -(10212,'S24_3191',27,'77.91',2), - -(10212,'S24_3432',46,'100.66',4), - -(10212,'S24_3856',49,'117.96',13), - -(10213,'S18_4409',38,'84.67',1), - -(10213,'S18_4933',25,'58.44',2), - -(10213,'S24_2887',27,'97.48',3), - -(10214,'S18_1749',30,'166.60',7), - -(10214,'S18_2248',21,'53.28',6), - -(10214,'S18_2325',27,'125.86',4), - -(10214,'S18_2795',50,'167.06',1), - -(10214,'S24_1937',20,'32.19',3), - -(10214,'S24_2022',49,'39.87',2), - -(10214,'S24_3969',44,'38.57',5), - -(10215,'S10_1949',35,'205.73',3), - -(10215,'S18_1097',46,'100.34',2), - -(10215,'S18_1342',27,'92.47',10), - -(10215,'S18_1367',33,'53.91',9), - -(10215,'S18_2949',49,'97.26',4), - -(10215,'S18_2957',31,'56.21',6), - -(10215,'S18_3136',49,'89.01',5), - -(10215,'S18_3320',41,'84.33',8), - -(10215,'S18_4668',46,'42.76',1), - -(10215,'S24_4258',39,'94.47',7), - -(10216,'S12_1666',43,'133.94',1), - -(10217,'S10_4962',48,'132.97',4), - -(10217,'S18_2432',35,'58.34',2), - -(10217,'S18_4600',38,'118.66',5), - -(10217,'S24_2300',28,'103.51',1), - -(10217,'S32_1268',21,'78.97',3), - -(10217,'S32_3522',39,'56.24',7), - -(10217,'S700_2824',31,'90.02',6), - -(10218,'S18_2319',22,'110.46',1), - -(10218,'S18_3232',34,'152.41',2), - -(10219,'S12_4473',48,'94.80',2), - -(10219,'S18_2238',43,'132.62',1), - -(10219,'S24_2840',21,'31.12',3), - -(10219,'S32_2509',35,'47.62',4), - -(10220,'S12_1108',32,'189.10',2), - -(10220,'S12_3148',30,'151.08',3), - -(10220,'S12_3891',27,'166.10',1), - -(10220,'S18_4027',50,'126.39',5), - -(10220,'S24_1444',26,'48.55',8), - -(10220,'S24_4048',37,'101.72',7), - -(10220,'S32_3207',20,'49.71',6), - -(10220,'S50_1392',37,'92.60',9), - -(10220,'S50_1514',30,'56.82',4), - -(10221,'S18_3140',33,'133.86',3), - -(10221,'S18_3259',23,'89.75',5), - -(10221,'S18_4522',39,'84.26',2), - -(10221,'S24_2011',49,'113.06',1), - -(10221,'S700_1938',23,'69.29',4), - -(10222,'S10_4757',49,'133.28',12), - -(10222,'S18_1662',49,'137.19',4), - -(10222,'S18_3029',49,'79.14',10), - -(10222,'S18_3856',45,'88.93',9), - -(10222,'S24_2841',32,'56.86',5), - -(10222,'S24_3151',47,'74.35',14), - -(10222,'S24_3420',43,'61.15',6), - -(10222,'S24_3816',46,'77.99',11), - -(10222,'S24_3949',48,'55.27',3), - -(10222,'S700_1138',31,'58.67',15), - -(10222,'S700_2047',26,'80.56',8), - -(10222,'S700_2466',37,'90.75',1), - -(10222,'S700_2610',36,'69.39',13), - -(10222,'S700_3505',38,'84.14',16), - -(10222,'S700_3962',31,'81.43',17), - -(10222,'S700_4002',43,'66.63',2), - -(10222,'S72_1253',31,'45.19',7), - -(10222,'S72_3212',36,'48.59',18), - -(10223,'S10_1678',37,'80.39',1), - -(10223,'S10_2016',47,'110.61',4), - -(10223,'S10_4698',49,'189.79',3), - -(10223,'S18_2581',47,'67.58',9), - -(10223,'S18_2625',28,'58.75',5), - -(10223,'S24_1578',32,'104.81',2), - -(10223,'S24_1785',34,'87.54',11), - -(10223,'S24_2000',38,'60.94',6), - -(10223,'S24_4278',23,'68.10',10), - -(10223,'S32_1374',21,'90.90',7), - -(10223,'S32_4289',20,'66.73',12), - -(10223,'S50_1341',41,'41.02',13), - -(10223,'S700_1691',25,'84.03',14), - -(10223,'S700_2834',29,'113.90',8), - -(10223,'S700_3167',26,'79.20',15), - -(10224,'S12_2823',43,'141.58',6), - -(10224,'S18_3782',38,'57.20',1), - -(10224,'S24_2360',37,'60.26',4), - -(10224,'S32_2206',43,'37.01',2), - -(10224,'S32_4485',30,'94.91',5), - -(10224,'S50_4713',50,'81.36',3), - -(10225,'S12_1099',27,'157.60',9), - -(10225,'S12_3380',25,'101.00',7), - -(10225,'S12_3990',37,'64.64',10), - -(10225,'S12_4675',21,'100.19',6), - -(10225,'S18_1129',32,'116.06',1), - -(10225,'S18_1889',47,'71.61',5), - -(10225,'S18_3232',43,'162.57',2), - -(10225,'S18_3278',37,'69.96',12), - -(10225,'S18_3482',27,'119.06',11), - -(10225,'S18_4721',35,'135.41',14), - -(10225,'S24_2972',42,'34.74',3), - -(10225,'S24_3371',24,'51.43',8), - -(10225,'S24_3856',40,'130.60',4), - -(10225,'S24_4620',46,'77.61',13), - -(10226,'S18_1589',38,'108.26',4), - -(10226,'S18_1984',24,'129.45',7), - -(10226,'S18_2870',24,'125.40',5), - -(10226,'S18_3685',46,'122.91',6), - -(10226,'S24_1046',21,'65.41',1), - -(10226,'S24_1628',36,'47.79',3), - -(10226,'S24_3432',48,'95.30',2), - -(10227,'S18_1342',25,'85.27',3), - -(10227,'S18_1367',31,'50.14',2), - -(10227,'S18_1749',26,'136.00',10), - -(10227,'S18_2248',28,'59.93',9), - -(10227,'S18_2325',46,'118.23',7), - -(10227,'S18_2795',29,'146.81',4), - -(10227,'S18_3320',33,'99.21',1), - -(10227,'S18_4409',34,'87.43',11), - -(10227,'S18_4933',37,'70.56',12), - -(10227,'S24_1937',42,'27.22',6), - -(10227,'S24_2022',24,'39.42',5), - -(10227,'S24_2766',47,'84.51',14), - -(10227,'S24_2887',33,'102.17',13), - -(10227,'S24_3191',40,'78.76',15), - -(10227,'S24_3969',27,'34.88',8), - -(10228,'S10_1949',29,'214.30',2), - -(10228,'S18_1097',32,'100.34',1), - -(10228,'S18_2949',24,'101.31',3), - -(10228,'S18_2957',45,'57.46',5), - -(10228,'S18_3136',31,'100.53',4), - -(10228,'S24_4258',33,'84.73',6), - -(10229,'S10_4962',50,'138.88',9), - -(10229,'S12_1666',25,'110.70',13), - -(10229,'S12_4473',36,'95.99',1), - -(10229,'S18_2319',26,'104.32',4), - -(10229,'S18_2432',28,'53.48',7), - -(10229,'S18_3232',22,'157.49',5), - -(10229,'S18_4600',41,'119.87',10), - -(10229,'S18_4668',39,'43.77',14), - -(10229,'S24_2300',48,'115.01',6), - -(10229,'S24_2840',33,'34.65',2), - -(10229,'S32_1268',25,'78.97',8), - -(10229,'S32_2509',23,'49.78',3), - -(10229,'S32_3522',30,'52.36',12), - -(10229,'S700_2824',50,'91.04',11), - -(10230,'S12_3148',43,'128.42',1), - -(10230,'S18_2238',49,'153.91',8), - -(10230,'S18_4027',42,'142.18',3), - -(10230,'S24_1444',36,'47.40',6), - -(10230,'S24_4048',45,'99.36',5), - -(10230,'S32_3207',46,'59.03',4), - -(10230,'S50_1392',34,'100.70',7), - -(10230,'S50_1514',43,'57.41',2), - -(10231,'S12_1108',42,'193.25',2), - -(10231,'S12_3891',49,'147.07',1), - -(10232,'S18_3140',22,'133.86',6), - -(10232,'S18_3259',48,'97.81',8), - -(10232,'S18_4522',23,'78.12',5), - -(10232,'S24_2011',46,'113.06',4), - -(10232,'S700_1938',26,'84.88',7), - -(10232,'S700_3505',48,'86.15',1), - -(10232,'S700_3962',35,'81.43',2), - -(10232,'S72_3212',24,'48.59',3), - -(10233,'S24_3151',40,'70.81',2), - -(10233,'S700_1138',36,'66.00',3), - -(10233,'S700_2610',29,'67.94',1), - -(10234,'S10_4757',48,'118.32',9), - -(10234,'S18_1662',50,'146.65',1), - -(10234,'S18_3029',48,'84.30',7), - -(10234,'S18_3856',39,'85.75',6), - -(10234,'S24_2841',44,'67.14',2), - -(10234,'S24_3420',25,'65.09',3), - -(10234,'S24_3816',31,'78.83',8), - -(10234,'S700_2047',29,'83.28',5), - -(10234,'S72_1253',40,'45.69',4), - -(10235,'S18_2581',24,'81.95',3), - -(10235,'S24_1785',23,'89.72',5), - -(10235,'S24_3949',33,'55.27',12), - -(10235,'S24_4278',40,'63.03',4), - -(10235,'S32_1374',41,'90.90',1), - -(10235,'S32_4289',34,'66.73',6), - -(10235,'S50_1341',41,'37.09',7), - -(10235,'S700_1691',25,'88.60',8), - -(10235,'S700_2466',38,'92.74',10), - -(10235,'S700_2834',25,'116.28',2), - -(10235,'S700_3167',32,'73.60',9), - -(10235,'S700_4002',34,'70.33',11), - -(10236,'S10_2016',22,'105.86',1), - -(10236,'S18_2625',23,'52.70',2), - -(10236,'S24_2000',36,'65.51',3), - -(10237,'S10_1678',23,'91.87',7), - -(10237,'S10_4698',39,'158.80',9), - -(10237,'S12_2823',32,'129.53',6), - -(10237,'S18_3782',26,'49.74',1), - -(10237,'S24_1578',20,'109.32',8), - -(10237,'S24_2360',26,'62.33',4), - -(10237,'S32_2206',26,'35.00',2), - -(10237,'S32_4485',27,'94.91',5), - -(10237,'S50_4713',20,'78.92',3), - -(10238,'S12_1099',28,'161.49',3), - -(10238,'S12_3380',29,'104.52',1), - -(10238,'S12_3990',20,'73.42',4), - -(10238,'S18_3278',41,'68.35',6), - -(10238,'S18_3482',49,'144.05',5), - -(10238,'S18_4721',44,'120.53',8), - -(10238,'S24_3371',47,'53.88',2), - -(10238,'S24_4620',22,'67.91',7), - -(10239,'S12_4675',21,'100.19',5), - -(10239,'S18_1889',46,'70.07',4), - -(10239,'S18_3232',47,'135.47',1), - -(10239,'S24_2972',20,'32.47',2), - -(10239,'S24_3856',29,'133.41',3), - -(10240,'S18_1129',41,'125.97',3), - -(10240,'S18_1984',37,'136.56',2), - -(10240,'S18_3685',37,'134.22',1), - -(10241,'S18_1589',21,'119.46',11), - -(10241,'S18_1749',41,'153.00',2), - -(10241,'S18_2248',33,'55.70',1), - -(10241,'S18_2870',44,'126.72',12), - -(10241,'S18_4409',42,'77.31',3), - -(10241,'S18_4933',30,'62.72',4), - -(10241,'S24_1046',22,'72.02',8), - -(10241,'S24_1628',21,'47.29',10), - -(10241,'S24_2766',47,'89.05',6), - -(10241,'S24_2887',28,'117.44',5), - -(10241,'S24_3191',26,'69.34',7), - -(10241,'S24_3432',27,'107.08',9), - -(10242,'S24_3969',46,'36.52',1), - -(10243,'S18_2325',47,'111.87',2), - -(10243,'S24_1937',33,'30.87',1), - -(10244,'S18_1342',40,'99.66',7), - -(10244,'S18_1367',20,'48.52',6), - -(10244,'S18_2795',43,'141.75',8), - -(10244,'S18_2949',30,'87.13',1), - -(10244,'S18_2957',24,'54.96',3), - -(10244,'S18_3136',29,'85.87',2), - -(10244,'S18_3320',36,'87.30',5), - -(10244,'S24_2022',39,'42.11',9), - -(10244,'S24_4258',40,'97.39',4), - -(10245,'S10_1949',34,'195.01',9), - -(10245,'S10_4962',28,'147.74',2), - -(10245,'S12_1666',38,'120.27',6), - -(10245,'S18_1097',29,'114.34',8), - -(10245,'S18_4600',21,'111.39',3), - -(10245,'S18_4668',45,'48.80',7), - -(10245,'S32_1268',37,'81.86',1), - -(10245,'S32_3522',44,'54.94',5), - -(10245,'S700_2824',44,'81.93',4), - -(10246,'S12_4473',46,'99.54',5), - -(10246,'S18_2238',40,'144.08',4), - -(10246,'S18_2319',22,'100.64',8), - -(10246,'S18_2432',30,'57.73',11), - -(10246,'S18_3232',36,'145.63',9), - -(10246,'S24_1444',44,'46.24',2), - -(10246,'S24_2300',29,'118.84',10), - -(10246,'S24_2840',49,'34.65',6), - -(10246,'S24_4048',46,'100.54',1), - -(10246,'S32_2509',35,'45.45',7), - -(10246,'S50_1392',22,'113.44',3), - -(10247,'S12_1108',44,'195.33',2), - -(10247,'S12_3148',25,'140.50',3), - -(10247,'S12_3891',27,'167.83',1), - -(10247,'S18_4027',48,'143.62',5), - -(10247,'S32_3207',40,'58.41',6), - -(10247,'S50_1514',49,'51.55',4), - -(10248,'S10_4757',20,'126.48',3), - -(10248,'S18_3029',21,'80.86',1), - -(10248,'S18_3140',32,'133.86',12), - -(10248,'S18_3259',42,'95.80',14), - -(10248,'S18_4522',42,'87.77',11), - -(10248,'S24_2011',48,'122.89',10), - -(10248,'S24_3151',30,'85.85',5), - -(10248,'S24_3816',23,'83.02',2), - -(10248,'S700_1138',36,'66.00',6), - -(10248,'S700_1938',40,'81.41',13), - -(10248,'S700_2610',32,'69.39',4), - -(10248,'S700_3505',30,'84.14',7), - -(10248,'S700_3962',35,'92.36',8), - -(10248,'S72_3212',23,'53.51',9), - -(10249,'S18_3856',46,'88.93',5), - -(10249,'S24_2841',20,'54.81',1), - -(10249,'S24_3420',25,'65.75',2), - -(10249,'S700_2047',40,'85.99',4), - -(10249,'S72_1253',32,'49.16',3), - -(10250,'S18_1662',45,'148.23',14), - -(10250,'S18_2581',27,'84.48',4), - -(10250,'S24_1785',31,'95.20',6), - -(10250,'S24_2000',32,'63.22',1), - -(10250,'S24_3949',40,'61.42',13), - -(10250,'S24_4278',37,'72.45',5), - -(10250,'S32_1374',31,'99.89',2), - -(10250,'S32_4289',50,'62.60',7), - -(10250,'S50_1341',36,'36.66',8), - -(10250,'S700_1691',31,'91.34',9), - -(10250,'S700_2466',35,'90.75',11), - -(10250,'S700_2834',44,'98.48',3), - -(10250,'S700_3167',44,'76.00',10), - -(10250,'S700_4002',38,'65.89',12), - -(10251,'S10_1678',59,'93.79',2), - -(10251,'S10_2016',44,'115.37',5), - -(10251,'S10_4698',43,'172.36',4), - -(10251,'S12_2823',46,'129.53',1), - -(10251,'S18_2625',44,'58.15',6), - -(10251,'S24_1578',50,'91.29',3), - -(10252,'S18_3278',20,'74.78',2), - -(10252,'S18_3482',41,'145.52',1), - -(10252,'S18_3782',31,'50.36',5), - -(10252,'S18_4721',26,'127.97',4), - -(10252,'S24_2360',47,'63.03',8), - -(10252,'S24_4620',38,'69.52',3), - -(10252,'S32_2206',36,'36.21',6), - -(10252,'S32_4485',25,'93.89',9), - -(10252,'S50_4713',48,'72.41',7), - -(10253,'S12_1099',24,'157.60',13), - -(10253,'S12_3380',22,'102.17',11), - -(10253,'S12_3990',25,'67.03',14), - -(10253,'S12_4675',41,'109.40',10), - -(10253,'S18_1129',26,'130.22',5), - -(10253,'S18_1589',24,'103.29',1), - -(10253,'S18_1889',23,'67.76',9), - -(10253,'S18_1984',33,'130.87',4), - -(10253,'S18_2870',37,'114.84',2), - -(10253,'S18_3232',40,'145.63',6), - -(10253,'S18_3685',31,'139.87',3), - -(10253,'S24_2972',40,'34.74',7), - -(10253,'S24_3371',24,'50.82',12), - -(10253,'S24_3856',39,'115.15',8), - -(10254,'S18_1749',49,'137.70',5), - -(10254,'S18_2248',36,'55.09',4), - -(10254,'S18_2325',41,'102.98',2), - -(10254,'S18_4409',34,'80.99',6), - -(10254,'S18_4933',30,'59.87',7), - -(10254,'S24_1046',34,'66.88',11), - -(10254,'S24_1628',32,'43.27',13), - -(10254,'S24_1937',38,'28.88',1), - -(10254,'S24_2766',31,'85.42',9), - -(10254,'S24_2887',33,'111.57',8), - -(10254,'S24_3191',42,'69.34',10), - -(10254,'S24_3432',49,'101.73',12), - -(10254,'S24_3969',20,'39.80',3), - -(10255,'S18_2795',24,'135.00',1), - -(10255,'S24_2022',37,'37.63',2), - -(10256,'S18_1342',34,'93.49',2), - -(10256,'S18_1367',29,'52.83',1), - -(10257,'S18_2949',50,'92.19',1), - -(10257,'S18_2957',49,'59.34',3), - -(10257,'S18_3136',37,'83.78',2), - -(10257,'S18_3320',26,'91.27',5), - -(10257,'S24_4258',46,'81.81',4), - -(10258,'S10_1949',32,'177.87',6), - -(10258,'S12_1666',41,'133.94',3), - -(10258,'S18_1097',41,'113.17',5), - -(10258,'S18_4668',21,'49.81',4), - -(10258,'S32_3522',20,'62.70',2), - -(10258,'S700_2824',45,'86.99',1), - -(10259,'S10_4962',26,'121.15',12), - -(10259,'S12_4473',46,'117.32',4), - -(10259,'S18_2238',30,'134.26',3), - -(10259,'S18_2319',34,'120.28',7), - -(10259,'S18_2432',30,'59.55',10), - -(10259,'S18_3232',27,'152.41',8), - -(10259,'S18_4600',41,'107.76',13), - -(10259,'S24_1444',28,'46.82',1), - -(10259,'S24_2300',47,'121.40',9), - -(10259,'S24_2840',31,'31.47',5), - -(10259,'S32_1268',45,'95.35',11), - -(10259,'S32_2509',40,'45.99',6), - -(10259,'S50_1392',29,'105.33',2), - -(10260,'S12_1108',46,'180.79',5), - -(10260,'S12_3148',30,'140.50',6), - -(10260,'S12_3891',44,'169.56',4), - -(10260,'S18_3140',32,'121.57',1), - -(10260,'S18_3259',29,'92.77',3), - -(10260,'S18_4027',23,'137.88',8), - -(10260,'S24_4048',23,'117.10',10), - -(10260,'S32_3207',27,'55.30',9), - -(10260,'S50_1514',21,'56.24',7), - -(10260,'S700_1938',33,'80.55',2), - -(10261,'S10_4757',27,'116.96',1), - -(10261,'S18_4522',20,'80.75',9), - -(10261,'S24_2011',36,'105.69',8), - -(10261,'S24_3151',22,'79.66',3), - -(10261,'S700_1138',34,'64.00',4), - -(10261,'S700_2610',44,'58.55',2), - -(10261,'S700_3505',25,'89.15',5), - -(10261,'S700_3962',50,'88.39',6), - -(10261,'S72_3212',29,'43.68',7), - -(10262,'S18_1662',49,'157.69',9), - -(10262,'S18_3029',32,'81.72',15), - -(10262,'S18_3856',34,'85.75',14), - -(10262,'S24_1785',34,'98.48',1), - -(10262,'S24_2841',24,'63.71',10), - -(10262,'S24_3420',46,'65.75',11), - -(10262,'S24_3816',49,'82.18',16), - -(10262,'S24_3949',48,'58.69',8), - -(10262,'S32_4289',40,'63.97',2), - -(10262,'S50_1341',49,'35.78',3), - -(10262,'S700_1691',40,'87.69',4), - -(10262,'S700_2047',44,'83.28',13), - -(10262,'S700_2466',33,'81.77',6), - -(10262,'S700_3167',27,'64.80',5), - -(10262,'S700_4002',35,'64.41',7), - -(10262,'S72_1253',21,'41.71',12), - -(10263,'S10_1678',34,'89.00',2), - -(10263,'S10_2016',40,'107.05',5), - -(10263,'S10_4698',41,'193.66',4), - -(10263,'S12_2823',48,'123.51',1), - -(10263,'S18_2581',33,'67.58',10), - -(10263,'S18_2625',34,'50.27',6), - -(10263,'S24_1578',42,'109.32',3), - -(10263,'S24_2000',37,'67.03',7), - -(10263,'S24_4278',24,'59.41',11), - -(10263,'S32_1374',31,'93.90',8), - -(10263,'S700_2834',47,'117.46',9), - -(10264,'S18_3782',48,'58.44',3), - -(10264,'S18_4721',20,'124.99',2), - -(10264,'S24_2360',37,'61.64',6), - -(10264,'S24_4620',47,'75.18',1), - -(10264,'S32_2206',20,'39.02',4), - -(10264,'S32_4485',34,'100.01',7), - -(10264,'S50_4713',47,'67.53',5), - -(10265,'S18_3278',45,'74.78',2), - -(10265,'S18_3482',49,'123.47',1), - -(10266,'S12_1099',44,'188.73',14), - -(10266,'S12_3380',22,'110.39',12), - -(10266,'S12_3990',35,'67.83',15), - -(10266,'S12_4675',40,'112.86',11), - -(10266,'S18_1129',21,'131.63',6), - -(10266,'S18_1589',36,'99.55',2), - -(10266,'S18_1889',33,'77.00',10), - -(10266,'S18_1984',49,'139.41',5), - -(10266,'S18_2870',20,'113.52',3), - -(10266,'S18_3232',29,'137.17',7), - -(10266,'S18_3685',33,'127.15',4), - -(10266,'S24_1628',28,'40.25',1), - -(10266,'S24_2972',34,'35.12',8), - -(10266,'S24_3371',47,'56.33',13), - -(10266,'S24_3856',24,'119.37',9), - -(10267,'S18_4933',36,'71.27',1), - -(10267,'S24_1046',40,'72.02',5), - -(10267,'S24_2766',38,'76.33',3), - -(10267,'S24_2887',43,'93.95',2), - -(10267,'S24_3191',44,'83.90',4), - -(10267,'S24_3432',43,'98.51',6), - -(10268,'S18_1342',49,'93.49',3), - -(10268,'S18_1367',26,'45.82',2), - -(10268,'S18_1749',34,'164.90',10), - -(10268,'S18_2248',31,'60.54',9), - -(10268,'S18_2325',50,'124.59',7), - -(10268,'S18_2795',35,'148.50',4), - -(10268,'S18_3320',39,'96.23',1), - -(10268,'S18_4409',35,'84.67',11), - -(10268,'S24_1937',33,'31.86',6), - -(10268,'S24_2022',40,'36.29',5), - -(10268,'S24_3969',30,'37.75',8), - -(10269,'S18_2957',32,'57.46',1), - -(10269,'S24_4258',48,'95.44',2), - -(10270,'S10_1949',21,'171.44',9), - -(10270,'S10_4962',32,'124.10',2), - -(10270,'S12_1666',28,'135.30',6), - -(10270,'S18_1097',43,'94.50',8), - -(10270,'S18_2949',31,'81.05',10), - -(10270,'S18_3136',38,'85.87',11), - -(10270,'S18_4600',38,'107.76',3), - -(10270,'S18_4668',44,'40.25',7), - -(10270,'S32_1268',32,'93.42',1), - -(10270,'S32_3522',21,'52.36',5), - -(10270,'S700_2824',46,'101.15',4), - -(10271,'S12_4473',31,'99.54',5), - -(10271,'S18_2238',50,'147.36',4), - -(10271,'S18_2319',50,'121.50',8), - -(10271,'S18_2432',25,'59.55',11), - -(10271,'S18_3232',20,'169.34',9), - -(10271,'S24_1444',45,'49.71',2), - -(10271,'S24_2300',43,'122.68',10), - -(10271,'S24_2840',38,'28.64',6), - -(10271,'S24_4048',22,'110.00',1), - -(10271,'S32_2509',35,'51.95',7), - -(10271,'S50_1392',34,'93.76',3), - -(10272,'S12_1108',35,'187.02',2), - -(10272,'S12_3148',27,'123.89',3), - -(10272,'S12_3891',39,'148.80',1), - -(10272,'S18_4027',25,'126.39',5), - -(10272,'S32_3207',45,'56.55',6), - -(10272,'S50_1514',43,'53.89',4), - -(10273,'S10_4757',30,'136.00',4), - -(10273,'S18_3029',34,'84.30',2), - -(10273,'S18_3140',40,'117.47',13), - -(10273,'S18_3259',47,'87.73',15), - -(10273,'S18_3856',50,'105.87',1), - -(10273,'S18_4522',33,'72.85',12), - -(10273,'S24_2011',22,'103.23',11), - -(10273,'S24_3151',27,'84.08',6), - -(10273,'S24_3816',48,'83.86',3), - -(10273,'S700_1138',21,'66.00',7), - -(10273,'S700_1938',21,'77.95',14), - -(10273,'S700_2610',42,'57.82',5), - -(10273,'S700_3505',40,'91.15',8), - -(10273,'S700_3962',26,'89.38',9), - -(10273,'S72_3212',37,'51.32',10), - -(10274,'S18_1662',41,'129.31',1), - -(10274,'S24_2841',40,'56.86',2), - -(10274,'S24_3420',24,'65.09',3), - -(10274,'S700_2047',24,'75.13',5), - -(10274,'S72_1253',32,'49.66',4), - -(10275,'S10_1678',45,'81.35',1), - -(10275,'S10_2016',22,'115.37',4), - -(10275,'S10_4698',36,'154.93',3), - -(10275,'S18_2581',35,'70.12',9), - -(10275,'S18_2625',37,'52.09',5), - -(10275,'S24_1578',21,'105.94',2), - -(10275,'S24_1785',25,'97.38',11), - -(10275,'S24_2000',30,'61.70',6), - -(10275,'S24_3949',41,'58.00',18), - -(10275,'S24_4278',27,'67.38',10), - -(10275,'S32_1374',23,'89.90',7), - -(10275,'S32_4289',28,'58.47',12), - -(10275,'S50_1341',38,'40.15',13), - -(10275,'S700_1691',32,'85.86',14), - -(10275,'S700_2466',39,'82.77',16), - -(10275,'S700_2834',48,'102.04',8), - -(10275,'S700_3167',43,'72.00',15), - -(10275,'S700_4002',31,'59.96',17), - -(10276,'S12_1099',50,'184.84',3), - -(10276,'S12_2823',43,'150.62',14), - -(10276,'S12_3380',47,'104.52',1), - -(10276,'S12_3990',38,'67.83',4), - -(10276,'S18_3278',38,'78.00',6), - -(10276,'S18_3482',30,'139.64',5), - -(10276,'S18_3782',33,'54.71',9), - -(10276,'S18_4721',48,'120.53',8), - -(10276,'S24_2360',46,'61.64',12), - -(10276,'S24_3371',20,'58.17',2), - -(10276,'S24_4620',48,'67.10',7), - -(10276,'S32_2206',27,'35.40',10), - -(10276,'S32_4485',38,'94.91',13), - -(10276,'S50_4713',21,'67.53',11), - -(10277,'S12_4675',28,'93.28',1), - -(10278,'S18_1129',34,'114.65',6), - -(10278,'S18_1589',23,'107.02',2), - -(10278,'S18_1889',29,'73.15',10), - -(10278,'S18_1984',29,'118.07',5), - -(10278,'S18_2870',39,'117.48',3), - -(10278,'S18_3232',42,'167.65',7), - -(10278,'S18_3685',31,'114.44',4), - -(10278,'S24_1628',35,'48.80',1), - -(10278,'S24_2972',31,'37.38',8), - -(10278,'S24_3856',25,'136.22',9), - -(10279,'S18_4933',26,'68.42',1), - -(10279,'S24_1046',32,'68.35',5), - -(10279,'S24_2766',49,'76.33',3), - -(10279,'S24_2887',48,'106.87',2), - -(10279,'S24_3191',33,'78.76',4), - -(10279,'S24_3432',48,'95.30',6), - -(10280,'S10_1949',34,'205.73',2), - -(10280,'S18_1097',24,'98.00',1), - -(10280,'S18_1342',50,'87.33',9), - -(10280,'S18_1367',27,'47.44',8), - -(10280,'S18_1749',26,'161.50',16), - -(10280,'S18_2248',25,'53.28',15), - -(10280,'S18_2325',37,'109.33',13), - -(10280,'S18_2795',22,'158.63',10), - -(10280,'S18_2949',46,'82.06',3), - -(10280,'S18_2957',43,'54.34',5), - -(10280,'S18_3136',29,'102.63',4), - -(10280,'S18_3320',34,'99.21',7), - -(10280,'S18_4409',35,'77.31',17), - -(10280,'S24_1937',20,'29.87',12), - -(10280,'S24_2022',45,'36.29',11), - -(10280,'S24_3969',33,'35.29',14), - -(10280,'S24_4258',21,'79.86',6), - -(10281,'S10_4962',44,'132.97',9), - -(10281,'S12_1666',25,'127.10',13), - -(10281,'S12_4473',41,'98.36',1), - -(10281,'S18_2319',48,'114.14',4), - -(10281,'S18_2432',29,'56.52',7), - -(10281,'S18_3232',25,'135.47',5), - -(10281,'S18_4600',25,'96.86',10), - -(10281,'S18_4668',44,'42.76',14), - -(10281,'S24_2300',25,'112.46',6), - -(10281,'S24_2840',20,'33.95',2), - -(10281,'S32_1268',29,'80.90',8), - -(10281,'S32_2509',31,'44.91',3), - -(10281,'S32_3522',36,'59.47',12), - -(10281,'S700_2824',27,'89.01',11), - -(10282,'S12_1108',41,'176.63',5), - -(10282,'S12_3148',27,'142.02',6), - -(10282,'S12_3891',24,'169.56',4), - -(10282,'S18_2238',23,'147.36',13), - -(10282,'S18_3140',43,'122.93',1), - -(10282,'S18_3259',36,'88.74',3), - -(10282,'S18_4027',31,'132.13',8), - -(10282,'S24_1444',29,'49.71',11), - -(10282,'S24_4048',39,'96.99',10), - -(10282,'S32_3207',36,'51.58',9), - -(10282,'S50_1392',38,'114.59',12), - -(10282,'S50_1514',37,'56.24',7), - -(10282,'S700_1938',43,'77.95',2), - -(10283,'S10_4757',25,'130.56',6), - -(10283,'S18_3029',21,'78.28',4), - -(10283,'S18_3856',46,'100.58',3), - -(10283,'S18_4522',34,'71.97',14), - -(10283,'S24_2011',42,'99.54',13), - -(10283,'S24_3151',34,'80.54',8), - -(10283,'S24_3816',33,'77.15',5), - -(10283,'S700_1138',45,'62.00',9), - -(10283,'S700_2047',20,'74.23',2), - -(10283,'S700_2610',47,'68.67',7), - -(10283,'S700_3505',22,'88.15',10), - -(10283,'S700_3962',38,'85.41',11), - -(10283,'S72_1253',43,'41.22',1), - -(10283,'S72_3212',33,'49.14',12), - -(10284,'S18_1662',45,'137.19',11), - -(10284,'S18_2581',31,'68.43',1), - -(10284,'S24_1785',22,'101.76',3), - -(10284,'S24_2841',30,'65.08',12), - -(10284,'S24_3420',39,'59.83',13), - -(10284,'S24_3949',21,'65.51',10), - -(10284,'S24_4278',21,'66.65',2), - -(10284,'S32_4289',50,'60.54',4), - -(10284,'S50_1341',33,'35.78',5), - -(10284,'S700_1691',24,'87.69',6), - -(10284,'S700_2466',45,'95.73',8), - -(10284,'S700_3167',25,'68.00',7), - -(10284,'S700_4002',32,'73.29',9), - -(10285,'S10_1678',36,'95.70',6), - -(10285,'S10_2016',47,'110.61',9), - -(10285,'S10_4698',27,'166.55',8), - -(10285,'S12_2823',49,'131.04',5), - -(10285,'S18_2625',20,'50.88',10), - -(10285,'S24_1578',34,'91.29',7), - -(10285,'S24_2000',39,'61.70',11), - -(10285,'S24_2360',38,'64.41',3), - -(10285,'S32_1374',37,'82.91',12), - -(10285,'S32_2206',37,'36.61',1), - -(10285,'S32_4485',26,'100.01',4), - -(10285,'S50_4713',39,'76.48',2), - -(10285,'S700_2834',45,'102.04',13), - -(10286,'S18_3782',38,'51.60',1), - -(10287,'S12_1099',21,'190.68',12), - -(10287,'S12_3380',45,'117.44',10), - -(10287,'S12_3990',41,'74.21',13), - -(10287,'S12_4675',23,'107.10',9), - -(10287,'S18_1129',41,'113.23',4), - -(10287,'S18_1889',44,'61.60',8), - -(10287,'S18_1984',24,'123.76',3), - -(10287,'S18_2870',44,'114.84',1), - -(10287,'S18_3232',36,'137.17',5), - -(10287,'S18_3278',43,'68.35',15), - -(10287,'S18_3482',40,'127.88',14), - -(10287,'S18_3685',27,'139.87',2), - -(10287,'S18_4721',34,'119.04',17), - -(10287,'S24_2972',36,'31.34',6), - -(10287,'S24_3371',20,'58.17',11), - -(10287,'S24_3856',36,'137.62',7), - -(10287,'S24_4620',40,'79.22',16), - -(10288,'S18_1589',20,'120.71',14), - -(10288,'S18_1749',32,'168.30',5), - -(10288,'S18_2248',28,'50.25',4), - -(10288,'S18_2325',31,'102.98',2), - -(10288,'S18_4409',35,'90.19',6), - -(10288,'S18_4933',23,'57.02',7), - -(10288,'S24_1046',36,'66.88',11), - -(10288,'S24_1628',50,'49.30',13), - -(10288,'S24_1937',29,'32.19',1), - -(10288,'S24_2766',35,'81.78',9), - -(10288,'S24_2887',48,'109.22',8), - -(10288,'S24_3191',34,'76.19',10), - -(10288,'S24_3432',41,'101.73',12), - -(10288,'S24_3969',33,'37.75',3), - -(10289,'S18_1342',38,'92.47',2), - -(10289,'S18_1367',24,'44.75',1), - -(10289,'S18_2795',43,'141.75',3), - -(10289,'S24_2022',45,'41.22',4), - -(10290,'S18_3320',26,'80.36',2), - -(10290,'S24_4258',45,'83.76',1), - -(10291,'S10_1949',37,'210.01',11), - -(10291,'S10_4962',30,'141.83',4), - -(10291,'S12_1666',41,'123.00',8), - -(10291,'S18_1097',41,'96.84',10), - -(10291,'S18_2432',26,'52.26',2), - -(10291,'S18_2949',47,'99.28',12), - -(10291,'S18_2957',37,'56.21',14), - -(10291,'S18_3136',23,'93.20',13), - -(10291,'S18_4600',48,'96.86',5), - -(10291,'S18_4668',29,'45.28',9), - -(10291,'S24_2300',48,'109.90',1), - -(10291,'S32_1268',26,'82.83',3), - -(10291,'S32_3522',32,'53.00',7), - -(10291,'S700_2824',28,'86.99',6), - -(10292,'S12_4473',21,'94.80',8), - -(10292,'S18_2238',26,'140.81',7), - -(10292,'S18_2319',41,'103.09',11), - -(10292,'S18_3232',21,'147.33',12), - -(10292,'S18_4027',44,'114.90',2), - -(10292,'S24_1444',40,'48.55',5), - -(10292,'S24_2840',39,'34.30',9), - -(10292,'S24_4048',27,'113.55',4), - -(10292,'S32_2509',50,'54.11',10), - -(10292,'S32_3207',31,'59.65',3), - -(10292,'S50_1392',41,'113.44',6), - -(10292,'S50_1514',35,'49.79',1), - -(10293,'S12_1108',46,'187.02',8), - -(10293,'S12_3148',24,'129.93',9), - -(10293,'S12_3891',45,'171.29',7), - -(10293,'S18_3140',24,'110.64',4), - -(10293,'S18_3259',22,'91.76',6), - -(10293,'S18_4522',49,'72.85',3), - -(10293,'S24_2011',21,'111.83',2), - -(10293,'S700_1938',29,'77.95',5), - -(10293,'S72_3212',32,'51.32',1), - -(10294,'S700_3962',45,'98.32',1), - -(10295,'S10_4757',24,'136.00',1), - -(10295,'S24_3151',46,'84.08',3), - -(10295,'S700_1138',26,'62.00',4), - -(10295,'S700_2610',44,'71.56',2), - -(10295,'S700_3505',34,'93.16',5), - -(10296,'S18_1662',36,'146.65',7), - -(10296,'S18_3029',21,'69.68',13), - -(10296,'S18_3856',22,'105.87',12), - -(10296,'S24_2841',21,'60.97',8), - -(10296,'S24_3420',31,'63.78',9), - -(10296,'S24_3816',22,'83.02',14), - -(10296,'S24_3949',32,'63.46',6), - -(10296,'S50_1341',26,'41.02',1), - -(10296,'S700_1691',42,'75.81',2), - -(10296,'S700_2047',34,'89.61',11), - -(10296,'S700_2466',24,'96.73',4), - -(10296,'S700_3167',22,'74.40',3), - -(10296,'S700_4002',47,'61.44',5), - -(10296,'S72_1253',21,'46.68',10), - -(10297,'S18_2581',25,'81.95',4), - -(10297,'S24_1785',32,'107.23',6), - -(10297,'S24_2000',32,'70.08',1), - -(10297,'S24_4278',23,'71.73',5), - -(10297,'S32_1374',26,'88.90',2), - -(10297,'S32_4289',28,'63.29',7), - -(10297,'S700_2834',35,'111.53',3), - -(10298,'S10_2016',39,'105.86',1), - -(10298,'S18_2625',32,'60.57',2), - -(10299,'S10_1678',23,'76.56',9), - -(10299,'S10_4698',29,'164.61',11), - -(10299,'S12_2823',24,'123.51',8), - -(10299,'S18_3782',39,'62.17',3), - -(10299,'S18_4721',49,'119.04',2), - -(10299,'S24_1578',47,'107.07',10), - -(10299,'S24_2360',33,'58.87',6), - -(10299,'S24_4620',32,'66.29',1), - -(10299,'S32_2206',24,'36.21',4), - -(10299,'S32_4485',38,'84.70',7), - -(10299,'S50_4713',44,'77.29',5), - -(10300,'S12_1099',33,'184.84',5), - -(10300,'S12_3380',29,'116.27',3), - -(10300,'S12_3990',22,'76.61',6), - -(10300,'S12_4675',23,'95.58',2), - -(10300,'S18_1889',41,'63.14',1), - -(10300,'S18_3278',49,'65.94',8), - -(10300,'S18_3482',23,'144.05',7), - -(10300,'S24_3371',31,'52.05',4), - -(10301,'S18_1129',37,'114.65',8), - -(10301,'S18_1589',32,'118.22',4), - -(10301,'S18_1984',47,'119.49',7), - -(10301,'S18_2870',22,'113.52',5), - -(10301,'S18_3232',23,'135.47',9), - -(10301,'S18_3685',39,'137.04',6), - -(10301,'S24_1046',27,'64.67',1), - -(10301,'S24_1628',22,'40.75',3), - -(10301,'S24_2972',48,'32.10',10), - -(10301,'S24_3432',22,'86.73',2), - -(10301,'S24_3856',50,'122.17',11), - -(10302,'S18_1749',43,'166.60',1), - -(10302,'S18_4409',38,'82.83',2), - -(10302,'S18_4933',23,'70.56',3), - -(10302,'S24_2766',49,'75.42',5), - -(10302,'S24_2887',45,'104.52',4), - -(10302,'S24_3191',48,'74.48',6), - -(10303,'S18_2248',46,'56.91',2), - -(10303,'S24_3969',24,'35.70',1), - -(10304,'S10_1949',47,'201.44',6), - -(10304,'S12_1666',39,'117.54',3), - -(10304,'S18_1097',46,'106.17',5), - -(10304,'S18_1342',37,'95.55',13), - -(10304,'S18_1367',37,'46.90',12), - -(10304,'S18_2325',24,'102.98',17), - -(10304,'S18_2795',20,'141.75',14), - -(10304,'S18_2949',46,'98.27',7), - -(10304,'S18_2957',24,'54.34',9), - -(10304,'S18_3136',26,'90.06',8), - -(10304,'S18_3320',38,'95.24',11), - -(10304,'S18_4668',34,'44.27',4), - -(10304,'S24_1937',23,'29.21',16), - -(10304,'S24_2022',44,'42.11',15), - -(10304,'S24_4258',33,'80.83',10), - -(10304,'S32_3522',36,'52.36',2), - -(10304,'S700_2824',40,'80.92',1), - -(10305,'S10_4962',38,'130.01',13), - -(10305,'S12_4473',38,'107.84',5), - -(10305,'S18_2238',27,'132.62',4), - -(10305,'S18_2319',36,'117.82',8), - -(10305,'S18_2432',41,'58.95',11), - -(10305,'S18_3232',37,'160.87',9), - -(10305,'S18_4600',22,'112.60',14), - -(10305,'S24_1444',45,'48.55',2), - -(10305,'S24_2300',24,'107.34',10), - -(10305,'S24_2840',48,'30.76',6), - -(10305,'S24_4048',36,'118.28',1), - -(10305,'S32_1268',28,'94.38',12), - -(10305,'S32_2509',40,'48.70',7), - -(10305,'S50_1392',42,'109.96',3), - -(10306,'S12_1108',31,'182.86',13), - -(10306,'S12_3148',34,'145.04',14), - -(10306,'S12_3891',20,'145.34',12), - -(10306,'S18_3140',32,'114.74',9), - -(10306,'S18_3259',40,'83.70',11), - -(10306,'S18_4027',23,'126.39',16), - -(10306,'S18_4522',39,'85.14',8), - -(10306,'S24_2011',29,'109.37',7), - -(10306,'S24_3151',31,'76.12',2), - -(10306,'S32_3207',46,'60.28',17), - -(10306,'S50_1514',34,'51.55',15), - -(10306,'S700_1138',50,'61.34',3), - -(10306,'S700_1938',38,'73.62',10), - -(10306,'S700_2610',43,'62.16',1), - -(10306,'S700_3505',32,'99.17',4), - -(10306,'S700_3962',30,'87.39',5), - -(10306,'S72_3212',35,'48.05',6), - -(10307,'S10_4757',22,'118.32',9), - -(10307,'S18_1662',39,'135.61',1), - -(10307,'S18_3029',31,'71.40',7), - -(10307,'S18_3856',48,'92.11',6), - -(10307,'S24_2841',25,'58.23',2), - -(10307,'S24_3420',22,'64.44',3), - -(10307,'S24_3816',22,'75.47',8), - -(10307,'S700_2047',34,'81.47',5), - -(10307,'S72_1253',34,'44.20',4), - -(10308,'S10_2016',34,'115.37',2), - -(10308,'S10_4698',20,'187.85',1), - -(10308,'S18_2581',27,'81.95',7), - -(10308,'S18_2625',34,'48.46',3), - -(10308,'S24_1785',31,'99.57',9), - -(10308,'S24_2000',47,'68.55',4), - -(10308,'S24_3949',43,'58.00',16), - -(10308,'S24_4278',44,'71.73',8), - -(10308,'S32_1374',24,'99.89',5), - -(10308,'S32_4289',46,'61.22',10), - -(10308,'S50_1341',47,'37.09',11), - -(10308,'S700_1691',21,'73.07',12), - -(10308,'S700_2466',35,'88.75',14), - -(10308,'S700_2834',31,'100.85',6), - -(10308,'S700_3167',21,'79.20',13), - -(10308,'S700_4002',39,'62.93',15), - -(10309,'S10_1678',41,'94.74',5), - -(10309,'S12_2823',26,'144.60',4), - -(10309,'S24_1578',21,'96.92',6), - -(10309,'S24_2360',24,'59.56',2), - -(10309,'S32_4485',50,'93.89',3), - -(10309,'S50_4713',28,'74.04',1), - -(10310,'S12_1099',33,'165.38',10), - -(10310,'S12_3380',24,'105.70',8), - -(10310,'S12_3990',49,'77.41',11), - -(10310,'S12_4675',25,'101.34',7), - -(10310,'S18_1129',37,'128.80',2), - -(10310,'S18_1889',20,'66.99',6), - -(10310,'S18_1984',24,'129.45',1), - -(10310,'S18_3232',48,'159.18',3), - -(10310,'S18_3278',27,'70.76',13), - -(10310,'S18_3482',49,'122.00',12), - -(10310,'S18_3782',42,'59.06',16), - -(10310,'S18_4721',40,'133.92',15), - -(10310,'S24_2972',33,'33.23',4), - -(10310,'S24_3371',38,'50.21',9), - -(10310,'S24_3856',45,'139.03',5), - -(10310,'S24_4620',49,'75.18',14), - -(10310,'S32_2206',36,'38.62',17), - -(10311,'S18_1589',29,'124.44',9), - -(10311,'S18_2870',43,'114.84',10), - -(10311,'S18_3685',32,'134.22',11), - -(10311,'S18_4409',41,'92.03',1), - -(10311,'S18_4933',25,'66.99',2), - -(10311,'S24_1046',26,'70.55',6), - -(10311,'S24_1628',45,'48.80',8), - -(10311,'S24_2766',28,'89.05',4), - -(10311,'S24_2887',43,'116.27',3), - -(10311,'S24_3191',25,'85.61',5), - -(10311,'S24_3432',46,'91.02',7), - -(10312,'S10_1949',48,'214.30',3), - -(10312,'S18_1097',32,'101.50',2), - -(10312,'S18_1342',43,'102.74',10), - -(10312,'S18_1367',25,'43.67',9), - -(10312,'S18_1749',48,'146.20',17), - -(10312,'S18_2248',30,'48.43',16), - -(10312,'S18_2325',31,'111.87',14), - -(10312,'S18_2795',25,'150.19',11), - -(10312,'S18_2949',37,'91.18',4), - -(10312,'S18_2957',35,'54.34',6), - -(10312,'S18_3136',38,'93.20',5), - -(10312,'S18_3320',33,'84.33',8), - -(10312,'S18_4668',39,'44.27',1), - -(10312,'S24_1937',39,'27.88',13), - -(10312,'S24_2022',23,'43.46',12), - -(10312,'S24_3969',31,'40.21',15), - -(10312,'S24_4258',44,'96.42',7), - -(10313,'S10_4962',40,'141.83',7), - -(10313,'S12_1666',21,'131.20',11), - -(10313,'S18_2319',29,'109.23',2), - -(10313,'S18_2432',34,'52.87',5), - -(10313,'S18_3232',25,'143.94',3), - -(10313,'S18_4600',28,'110.18',8), - -(10313,'S24_2300',42,'102.23',4), - -(10313,'S32_1268',27,'96.31',6), - -(10313,'S32_2509',38,'48.70',1), - -(10313,'S32_3522',34,'55.59',10), - -(10313,'S700_2824',30,'96.09',9), - -(10314,'S12_1108',38,'176.63',5), - -(10314,'S12_3148',46,'125.40',6), - -(10314,'S12_3891',36,'169.56',4), - -(10314,'S12_4473',45,'95.99',14), - -(10314,'S18_2238',42,'135.90',13), - -(10314,'S18_3140',20,'129.76',1), - -(10314,'S18_3259',23,'84.71',3), - -(10314,'S18_4027',29,'129.26',8), - -(10314,'S24_1444',44,'51.44',11), - -(10314,'S24_2840',39,'31.82',15), - -(10314,'S24_4048',38,'111.18',10), - -(10314,'S32_3207',35,'58.41',9), - -(10314,'S50_1392',28,'115.75',12), - -(10314,'S50_1514',38,'50.38',7), - -(10314,'S700_1938',23,'83.15',2), - -(10315,'S18_4522',36,'78.12',7), - -(10315,'S24_2011',35,'111.83',6), - -(10315,'S24_3151',24,'78.77',1), - -(10315,'S700_1138',41,'60.67',2), - -(10315,'S700_3505',31,'99.17',3), - -(10315,'S700_3962',37,'88.39',4), - -(10315,'S72_3212',40,'51.32',5), - -(10316,'S10_4757',33,'126.48',17), - -(10316,'S18_1662',27,'140.34',9), - -(10316,'S18_3029',21,'72.26',15), - -(10316,'S18_3856',47,'89.99',14), - -(10316,'S24_1785',25,'93.01',1), - -(10316,'S24_2841',34,'67.14',10), - -(10316,'S24_3420',47,'55.23',11), - -(10316,'S24_3816',25,'77.15',16), - -(10316,'S24_3949',30,'67.56',8), - -(10316,'S32_4289',24,'59.16',2), - -(10316,'S50_1341',34,'36.66',3), - -(10316,'S700_1691',34,'74.90',4), - -(10316,'S700_2047',45,'73.32',13), - -(10316,'S700_2466',23,'85.76',6), - -(10316,'S700_2610',48,'67.22',18), - -(10316,'S700_3167',48,'77.60',5), - -(10316,'S700_4002',44,'68.11',7), - -(10316,'S72_1253',34,'43.70',12), - -(10317,'S24_4278',35,'69.55',1), - -(10318,'S10_1678',46,'84.22',1), - -(10318,'S10_2016',45,'102.29',4), - -(10318,'S10_4698',37,'189.79',3), - -(10318,'S18_2581',31,'81.95',9), - -(10318,'S18_2625',42,'49.67',5), - -(10318,'S24_1578',48,'93.54',2), - -(10318,'S24_2000',26,'60.94',6), - -(10318,'S32_1374',47,'81.91',7), - -(10318,'S700_2834',50,'102.04',8), - -(10319,'S12_2823',30,'134.05',9), - -(10319,'S18_3278',46,'77.19',1), - -(10319,'S18_3782',44,'54.71',4), - -(10319,'S18_4721',45,'120.53',3), - -(10319,'S24_2360',31,'65.80',7), - -(10319,'S24_4620',43,'78.41',2), - -(10319,'S32_2206',29,'35.00',5), - -(10319,'S32_4485',22,'96.95',8), - -(10319,'S50_4713',45,'79.73',6), - -(10320,'S12_1099',31,'184.84',3), - -(10320,'S12_3380',35,'102.17',1), - -(10320,'S12_3990',38,'63.84',4), - -(10320,'S18_3482',25,'139.64',5), - -(10320,'S24_3371',26,'60.62',2), - -(10321,'S12_4675',24,'105.95',15), - -(10321,'S18_1129',41,'123.14',10), - -(10321,'S18_1589',44,'120.71',6), - -(10321,'S18_1889',37,'73.92',14), - -(10321,'S18_1984',25,'142.25',9), - -(10321,'S18_2870',27,'126.72',7), - -(10321,'S18_3232',33,'164.26',11), - -(10321,'S18_3685',28,'138.45',8), - -(10321,'S24_1046',30,'68.35',3), - -(10321,'S24_1628',48,'42.76',5), - -(10321,'S24_2766',30,'74.51',1), - -(10321,'S24_2972',37,'31.72',12), - -(10321,'S24_3191',39,'81.33',2), - -(10321,'S24_3432',21,'103.87',4), - -(10321,'S24_3856',26,'137.62',13), - -(10322,'S10_1949',40,'180.01',1), - -(10322,'S10_4962',46,'141.83',8), - -(10322,'S12_1666',27,'136.67',9), - -(10322,'S18_1097',22,'101.50',10), - -(10322,'S18_1342',43,'92.47',14), - -(10322,'S18_1367',41,'44.21',5), - -(10322,'S18_2325',50,'120.77',6), - -(10322,'S18_2432',35,'57.12',11), - -(10322,'S18_2795',36,'158.63',2), - -(10322,'S18_2949',33,'100.30',12), - -(10322,'S18_2957',41,'54.34',13), - -(10322,'S18_3136',48,'90.06',7), - -(10322,'S24_1937',20,'26.55',3), - -(10322,'S24_2022',30,'40.77',4), - -(10323,'S18_3320',33,'88.30',2), - -(10323,'S18_4600',47,'96.86',1), - -(10324,'S12_3148',27,'148.06',1), - -(10324,'S12_4473',26,'100.73',7), - -(10324,'S18_2238',47,'142.45',8), - -(10324,'S18_2319',33,'105.55',10), - -(10324,'S18_3232',27,'137.17',12), - -(10324,'S18_4027',49,'120.64',13), - -(10324,'S18_4668',38,'49.81',6), - -(10324,'S24_1444',25,'49.71',14), - -(10324,'S24_2300',31,'107.34',2), - -(10324,'S24_2840',30,'29.35',9), - -(10324,'S24_4258',33,'95.44',3), - -(10324,'S32_1268',20,'91.49',11), - -(10324,'S32_3522',48,'60.76',4), - -(10324,'S700_2824',34,'80.92',5), - -(10325,'S10_4757',47,'111.52',6), - -(10325,'S12_1108',42,'193.25',8), - -(10325,'S12_3891',24,'166.10',1), - -(10325,'S18_3140',24,'114.74',9), - -(10325,'S24_4048',44,'114.73',5), - -(10325,'S32_2509',38,'44.37',3), - -(10325,'S32_3207',28,'55.30',2), - -(10325,'S50_1392',38,'99.55',4), - -(10325,'S50_1514',44,'56.24',7), - -(10326,'S18_3259',32,'94.79',6), - -(10326,'S18_4522',50,'73.73',5), - -(10326,'S24_2011',41,'120.43',4), - -(10326,'S24_3151',41,'86.74',3), - -(10326,'S24_3816',20,'81.34',2), - -(10326,'S700_1138',39,'60.67',1), - -(10327,'S18_1662',25,'154.54',6), - -(10327,'S18_2581',45,'74.34',8), - -(10327,'S18_3029',25,'74.84',5), - -(10327,'S700_1938',20,'79.68',7), - -(10327,'S700_2610',21,'65.05',1), - -(10327,'S700_3505',43,'85.14',2), - -(10327,'S700_3962',37,'83.42',3), - -(10327,'S72_3212',37,'48.05',4), - -(10328,'S18_3856',34,'104.81',6), - -(10328,'S24_1785',47,'87.54',14), - -(10328,'S24_2841',48,'67.82',1), - -(10328,'S24_3420',20,'56.55',2), - -(10328,'S24_3949',35,'55.96',3), - -(10328,'S24_4278',43,'69.55',4), - -(10328,'S32_4289',24,'57.10',5), - -(10328,'S50_1341',34,'42.33',7), - -(10328,'S700_1691',27,'84.03',8), - -(10328,'S700_2047',41,'75.13',9), - -(10328,'S700_2466',37,'95.73',10), - -(10328,'S700_2834',33,'117.46',11), - -(10328,'S700_3167',33,'71.20',13), - -(10328,'S700_4002',39,'69.59',12), - -(10329,'S10_1678',42,'80.39',1), - -(10329,'S10_2016',20,'109.42',2), - -(10329,'S10_4698',26,'164.61',3), - -(10329,'S12_1099',41,'182.90',5), - -(10329,'S12_2823',24,'128.03',6), - -(10329,'S12_3380',46,'117.44',13), - -(10329,'S12_3990',33,'74.21',14), - -(10329,'S12_4675',39,'102.49',15), - -(10329,'S18_1889',29,'66.22',9), - -(10329,'S18_2625',38,'55.72',12), - -(10329,'S18_3278',38,'65.13',10), - -(10329,'S24_1578',30,'104.81',7), - -(10329,'S24_2000',37,'71.60',4), - -(10329,'S32_1374',45,'80.91',11), - -(10329,'S72_1253',44,'41.22',8), - -(10330,'S18_3482',37,'136.70',3), - -(10330,'S18_3782',29,'59.06',2), - -(10330,'S18_4721',50,'133.92',4), - -(10330,'S24_2360',42,'56.10',1), - -(10331,'S18_1129',46,'120.31',6), - -(10331,'S18_1589',44,'99.55',14), - -(10331,'S18_1749',44,'154.70',7), - -(10331,'S18_1984',30,'135.14',8), - -(10331,'S18_2870',26,'130.68',10), - -(10331,'S18_3232',27,'169.34',11), - -(10331,'S18_3685',26,'132.80',12), - -(10331,'S24_2972',27,'37.00',13), - -(10331,'S24_3371',25,'55.11',9), - -(10331,'S24_3856',21,'139.03',1), - -(10331,'S24_4620',41,'70.33',2), - -(10331,'S32_2206',28,'33.39',3), - -(10331,'S32_4485',32,'100.01',4), - -(10331,'S50_4713',20,'74.04',5), - -(10332,'S18_1342',46,'89.38',15), - -(10332,'S18_1367',27,'51.21',16), - -(10332,'S18_2248',38,'53.88',9), - -(10332,'S18_2325',35,'116.96',8), - -(10332,'S18_2795',24,'138.38',1), - -(10332,'S18_2957',26,'53.09',17), - -(10332,'S18_3136',40,'100.53',18), - -(10332,'S18_4409',50,'92.03',2), - -(10332,'S18_4933',21,'70.56',3), - -(10332,'S24_1046',23,'61.73',4), - -(10332,'S24_1628',20,'47.29',5), - -(10332,'S24_1937',45,'29.87',6), - -(10332,'S24_2022',26,'43.01',10), - -(10332,'S24_2766',39,'84.51',7), - -(10332,'S24_2887',44,'108.04',11), - -(10332,'S24_3191',45,'77.91',12), - -(10332,'S24_3432',31,'94.23',13), - -(10332,'S24_3969',41,'34.47',14), - -(10333,'S10_1949',26,'188.58',3), - -(10333,'S12_1666',33,'121.64',6), - -(10333,'S18_1097',29,'110.84',7), - -(10333,'S18_2949',31,'95.23',5), - -(10333,'S18_3320',46,'95.24',2), - -(10333,'S18_4668',24,'42.26',8), - -(10333,'S24_4258',39,'95.44',1), - -(10333,'S32_3522',33,'62.05',4), - -(10334,'S10_4962',26,'130.01',2), - -(10334,'S18_2319',46,'108.00',6), - -(10334,'S18_2432',34,'52.87',1), - -(10334,'S18_3232',20,'147.33',3), - -(10334,'S18_4600',49,'101.71',4), - -(10334,'S24_2300',42,'117.57',5), - -(10335,'S24_2840',33,'32.88',2), - -(10335,'S32_1268',44,'77.05',1), - -(10335,'S32_2509',40,'49.78',3), - -(10336,'S12_1108',33,'176.63',10), - -(10336,'S12_3148',33,'126.91',11), - -(10336,'S12_3891',49,'141.88',1), - -(10336,'S12_4473',38,'95.99',3), - -(10336,'S18_2238',49,'153.91',6), - -(10336,'S18_3140',48,'135.22',12), - -(10336,'S18_3259',21,'100.84',7), - -(10336,'S24_1444',45,'49.71',4), - -(10336,'S24_4048',31,'113.55',5), - -(10336,'S32_3207',31,'59.03',9), - -(10336,'S50_1392',23,'109.96',8), - -(10336,'S700_2824',46,'94.07',2), - -(10337,'S10_4757',25,'131.92',8), - -(10337,'S18_4027',36,'140.75',3), - -(10337,'S18_4522',29,'76.36',2), - -(10337,'S24_2011',29,'119.20',4), - -(10337,'S50_1514',21,'54.48',6), - -(10337,'S700_1938',36,'73.62',9), - -(10337,'S700_3505',31,'84.14',1), - -(10337,'S700_3962',36,'83.42',7), - -(10337,'S72_3212',42,'49.14',5), - -(10338,'S18_1662',41,'137.19',1), - -(10338,'S18_3029',28,'80.86',3), - -(10338,'S18_3856',45,'93.17',2), - -(10339,'S10_2016',40,'117.75',4), - -(10339,'S10_4698',39,'178.17',3), - -(10339,'S18_2581',27,'79.41',2), - -(10339,'S18_2625',30,'48.46',1), - -(10339,'S24_1578',27,'96.92',10), - -(10339,'S24_1785',21,'106.14',7), - -(10339,'S24_2841',55,'67.82',12), - -(10339,'S24_3151',55,'73.46',13), - -(10339,'S24_3420',29,'57.86',14), - -(10339,'S24_3816',42,'72.96',16), - -(10339,'S24_3949',45,'57.32',11), - -(10339,'S700_1138',22,'53.34',5), - -(10339,'S700_2047',55,'86.90',15), - -(10339,'S700_2610',50,'62.16',9), - -(10339,'S700_4002',50,'66.63',8), - -(10339,'S72_1253',27,'49.66',6), - -(10340,'S24_2000',55,'62.46',8), - -(10340,'S24_4278',40,'63.76',1), - -(10340,'S32_1374',55,'95.89',2), - -(10340,'S32_4289',39,'67.41',3), - -(10340,'S50_1341',40,'37.09',4), - -(10340,'S700_1691',30,'73.99',5), - -(10340,'S700_2466',55,'81.77',7), - -(10340,'S700_2834',29,'98.48',6), - -(10341,'S10_1678',41,'84.22',9), - -(10341,'S12_1099',45,'192.62',2), - -(10341,'S12_2823',55,'120.50',8), - -(10341,'S12_3380',44,'111.57',1), - -(10341,'S12_3990',36,'77.41',10), - -(10341,'S12_4675',55,'109.40',7), - -(10341,'S24_2360',32,'63.03',6), - -(10341,'S32_4485',31,'95.93',4), - -(10341,'S50_4713',38,'78.11',3), - -(10341,'S700_3167',34,'70.40',5), - -(10342,'S18_1129',40,'118.89',2), - -(10342,'S18_1889',55,'63.14',1), - -(10342,'S18_1984',22,'115.22',3), - -(10342,'S18_3232',30,'167.65',4), - -(10342,'S18_3278',25,'76.39',5), - -(10342,'S18_3482',55,'136.70',7), - -(10342,'S18_3782',26,'57.82',8), - -(10342,'S18_4721',38,'124.99',11), - -(10342,'S24_2972',39,'30.59',9), - -(10342,'S24_3371',48,'60.01',10), - -(10342,'S24_3856',42,'112.34',6), - -(10343,'S18_1589',36,'109.51',4), - -(10343,'S18_2870',25,'118.80',3), - -(10343,'S18_3685',44,'127.15',2), - -(10343,'S24_1628',27,'44.78',6), - -(10343,'S24_4620',30,'76.80',1), - -(10343,'S32_2206',29,'37.41',5), - -(10344,'S18_1749',45,'168.30',1), - -(10344,'S18_2248',40,'49.04',2), - -(10344,'S18_2325',30,'118.23',3), - -(10344,'S18_4409',21,'80.99',4), - -(10344,'S18_4933',26,'68.42',5), - -(10344,'S24_1046',29,'61.00',7), - -(10344,'S24_1937',20,'27.88',6), - -(10345,'S24_2022',43,'38.98',1), - -(10346,'S18_1342',42,'88.36',3), - -(10346,'S24_2766',25,'87.24',1), - -(10346,'S24_2887',24,'117.44',5), - -(10346,'S24_3191',24,'80.47',2), - -(10346,'S24_3432',26,'103.87',6), - -(10346,'S24_3969',22,'38.57',4), - -(10347,'S10_1949',30,'188.58',1), - -(10347,'S10_4962',27,'132.97',2), - -(10347,'S12_1666',29,'132.57',3), - -(10347,'S18_1097',42,'113.17',5), - -(10347,'S18_1367',21,'46.36',7), - -(10347,'S18_2432',50,'51.05',8), - -(10347,'S18_2795',21,'136.69',6), - -(10347,'S18_2949',48,'84.09',9), - -(10347,'S18_2957',34,'60.59',10), - -(10347,'S18_3136',45,'95.30',11), - -(10347,'S18_3320',26,'84.33',12), - -(10347,'S18_4600',45,'115.03',4), - -(10348,'S12_1108',48,'207.80',8), - -(10348,'S12_3148',47,'122.37',4), - -(10348,'S18_4668',29,'43.77',6), - -(10348,'S24_2300',37,'107.34',1), - -(10348,'S24_4258',39,'82.78',2), - -(10348,'S32_1268',42,'90.53',3), - -(10348,'S32_3522',31,'62.70',5), - -(10348,'S700_2824',32,'100.14',7), - -(10349,'S12_3891',26,'166.10',10), - -(10349,'S12_4473',48,'114.95',9), - -(10349,'S18_2238',38,'142.45',8), - -(10349,'S18_2319',38,'117.82',7), - -(10349,'S18_3232',48,'164.26',6), - -(10349,'S18_4027',34,'140.75',5), - -(10349,'S24_1444',48,'50.29',4), - -(10349,'S24_2840',36,'31.47',3), - -(10349,'S24_4048',23,'111.18',2), - -(10349,'S32_2509',33,'44.37',1), - -(10350,'S10_4757',26,'110.16',5), - -(10350,'S18_3029',43,'84.30',6), - -(10350,'S18_3140',44,'135.22',1), - -(10350,'S18_3259',41,'94.79',2), - -(10350,'S18_4522',30,'70.22',3), - -(10350,'S24_2011',34,'98.31',7), - -(10350,'S24_3151',30,'86.74',9), - -(10350,'S24_3816',25,'77.15',10), - -(10350,'S32_3207',27,'61.52',14), - -(10350,'S50_1392',31,'104.18',8), - -(10350,'S50_1514',44,'56.82',17), - -(10350,'S700_1138',46,'56.00',11), - -(10350,'S700_1938',28,'76.22',4), - -(10350,'S700_2610',29,'68.67',12), - -(10350,'S700_3505',31,'87.15',13), - -(10350,'S700_3962',25,'97.32',16), - -(10350,'S72_3212',20,'48.05',15), - -(10351,'S18_1662',39,'143.50',1), - -(10351,'S18_3856',20,'104.81',2), - -(10351,'S24_2841',25,'64.40',5), - -(10351,'S24_3420',38,'53.92',4), - -(10351,'S24_3949',34,'68.24',3), - -(10352,'S700_2047',23,'75.13',3), - -(10352,'S700_2466',49,'87.75',2), - -(10352,'S700_4002',22,'62.19',1), - -(10352,'S72_1253',49,'46.18',4), - -(10353,'S18_2581',27,'71.81',1), - -(10353,'S24_1785',28,'107.23',2), - -(10353,'S24_4278',35,'69.55',3), - -(10353,'S32_1374',46,'86.90',5), - -(10353,'S32_4289',40,'68.10',7), - -(10353,'S50_1341',40,'35.78',8), - -(10353,'S700_1691',39,'73.07',9), - -(10353,'S700_2834',48,'98.48',4), - -(10353,'S700_3167',43,'74.40',6), - -(10354,'S10_1678',42,'84.22',6), - -(10354,'S10_2016',20,'95.15',2), - -(10354,'S10_4698',42,'178.17',3), - -(10354,'S12_1099',31,'157.60',9), - -(10354,'S12_2823',35,'141.58',4), - -(10354,'S12_3380',29,'98.65',11), - -(10354,'S12_3990',23,'76.61',12), - -(10354,'S12_4675',28,'100.19',13), - -(10354,'S18_1889',21,'76.23',8), - -(10354,'S18_2625',28,'49.06',10), - -(10354,'S18_3278',36,'69.15',7), - -(10354,'S24_1578',21,'96.92',5), - -(10354,'S24_2000',28,'62.46',1), - -(10355,'S18_3482',23,'117.59',7), - -(10355,'S18_3782',31,'60.30',1), - -(10355,'S18_4721',25,'124.99',2), - -(10355,'S24_2360',41,'56.10',3), - -(10355,'S24_2972',36,'37.38',4), - -(10355,'S24_3371',44,'60.62',6), - -(10355,'S24_3856',32,'137.62',8), - -(10355,'S24_4620',28,'75.18',9), - -(10355,'S32_2206',38,'32.99',10), - -(10355,'S32_4485',40,'93.89',5), - -(10356,'S18_1129',43,'120.31',8), - -(10356,'S18_1342',50,'82.19',9), - -(10356,'S18_1367',22,'44.75',6), - -(10356,'S18_1984',27,'130.87',2), - -(10356,'S18_2325',29,'106.79',3), - -(10356,'S18_2795',30,'158.63',1), - -(10356,'S24_1937',48,'31.86',5), - -(10356,'S24_2022',26,'42.11',7), - -(10356,'S50_4713',26,'78.11',4), - -(10357,'S10_1949',32,'199.30',10), - -(10357,'S10_4962',43,'135.92',9), - -(10357,'S12_1666',49,'109.34',8), - -(10357,'S18_1097',39,'112.00',1), - -(10357,'S18_2432',41,'58.95',7), - -(10357,'S18_2949',41,'91.18',6), - -(10357,'S18_2957',49,'59.34',5), - -(10357,'S18_3136',44,'104.72',4), - -(10357,'S18_3320',25,'84.33',3), - -(10357,'S18_4600',28,'105.34',2), - -(10358,'S12_3148',49,'129.93',5), - -(10358,'S12_4473',42,'98.36',9), - -(10358,'S18_2238',20,'142.45',10), - -(10358,'S18_2319',20,'99.41',11), - -(10358,'S18_3232',32,'137.17',12), - -(10358,'S18_4027',25,'117.77',13), - -(10358,'S18_4668',30,'46.29',8), - -(10358,'S24_1444',44,'56.07',14), - -(10358,'S24_2300',41,'127.79',7), - -(10358,'S24_2840',36,'33.59',4), - -(10358,'S24_4258',41,'88.62',6), - -(10358,'S32_1268',41,'82.83',1), - -(10358,'S32_3522',36,'51.71',2), - -(10358,'S700_2824',27,'85.98',3), - -(10359,'S10_4757',48,'122.40',6), - -(10359,'S12_1108',42,'180.79',8), - -(10359,'S12_3891',49,'162.64',5), - -(10359,'S24_4048',22,'108.82',7), - -(10359,'S32_2509',36,'45.45',3), - -(10359,'S32_3207',22,'62.14',1), - -(10359,'S50_1392',46,'99.55',2), - -(10359,'S50_1514',25,'47.45',4), - -(10360,'S18_1662',50,'126.15',12), - -(10360,'S18_2581',41,'68.43',13), - -(10360,'S18_3029',46,'71.40',14), - -(10360,'S18_3140',29,'122.93',8), - -(10360,'S18_3259',29,'94.79',18), - -(10360,'S18_3856',40,'101.64',15), - -(10360,'S18_4522',40,'76.36',1), - -(10360,'S24_1785',22,'106.14',17), - -(10360,'S24_2011',31,'100.77',2), - -(10360,'S24_2841',49,'55.49',16), - -(10360,'S24_3151',36,'70.81',3), - -(10360,'S24_3816',22,'78.83',4), - -(10360,'S700_1138',32,'64.67',5), - -(10360,'S700_1938',26,'86.61',6), - -(10360,'S700_2610',30,'70.11',7), - -(10360,'S700_3505',35,'83.14',9), - -(10360,'S700_3962',31,'92.36',10), - -(10360,'S72_3212',31,'54.05',11), - -(10361,'S10_1678',20,'92.83',13), - -(10361,'S10_2016',26,'114.18',8), - -(10361,'S24_3420',34,'62.46',6), - -(10361,'S24_3949',26,'61.42',7), - -(10361,'S24_4278',25,'68.83',1), - -(10361,'S32_4289',49,'56.41',2), - -(10361,'S50_1341',33,'35.78',3), - -(10361,'S700_1691',20,'88.60',4), - -(10361,'S700_2047',24,'85.99',14), - -(10361,'S700_2466',26,'91.74',9), - -(10361,'S700_2834',44,'107.97',5), - -(10361,'S700_3167',44,'76.80',10), - -(10361,'S700_4002',35,'62.19',11), - -(10361,'S72_1253',23,'47.67',12), - -(10362,'S10_4698',22,'182.04',4), - -(10362,'S12_2823',22,'131.04',1), - -(10362,'S18_2625',23,'53.91',3), - -(10362,'S24_1578',50,'91.29',2), - -(10363,'S12_1099',33,'180.95',3), - -(10363,'S12_3380',34,'106.87',4), - -(10363,'S12_3990',34,'68.63',5), - -(10363,'S12_4675',46,'103.64',6), - -(10363,'S18_1889',22,'61.60',7), - -(10363,'S18_3278',46,'69.15',10), - -(10363,'S18_3482',24,'124.94',11), - -(10363,'S18_3782',32,'52.22',12), - -(10363,'S18_4721',28,'123.50',13), - -(10363,'S24_2000',21,'70.08',8), - -(10363,'S24_2360',43,'56.10',14), - -(10363,'S24_3371',21,'52.05',15), - -(10363,'S24_3856',31,'113.75',1), - -(10363,'S24_4620',43,'75.99',9), - -(10363,'S32_1374',50,'92.90',2), - -(10364,'S32_2206',48,'38.22',1), - -(10365,'S18_1129',30,'116.06',1), - -(10365,'S32_4485',22,'82.66',3), - -(10365,'S50_4713',44,'68.34',2), - -(10366,'S18_1984',34,'116.65',3), - -(10366,'S18_2870',49,'105.60',2), - -(10366,'S18_3232',34,'154.10',1), - -(10367,'S18_1589',49,'105.77',1), - -(10367,'S18_1749',37,'144.50',3), - -(10367,'S18_2248',45,'50.25',4), - -(10367,'S18_2325',27,'124.59',5), - -(10367,'S18_2795',32,'140.06',7), - -(10367,'S18_3685',46,'131.39',6), - -(10367,'S18_4409',43,'77.31',8), - -(10367,'S18_4933',44,'66.99',9), - -(10367,'S24_1046',21,'72.76',10), - -(10367,'S24_1628',38,'50.31',11), - -(10367,'S24_1937',23,'29.54',13), - -(10367,'S24_2022',28,'43.01',12), - -(10367,'S24_2972',36,'36.25',2), - -(10368,'S24_2766',40,'73.60',2), - -(10368,'S24_2887',31,'115.09',5), - -(10368,'S24_3191',46,'83.04',1), - -(10368,'S24_3432',20,'93.16',4), - -(10368,'S24_3969',46,'36.52',3), - -(10369,'S10_1949',41,'195.01',2), - -(10369,'S18_1342',44,'89.38',8), - -(10369,'S18_1367',32,'46.36',7), - -(10369,'S18_2949',42,'100.30',1), - -(10369,'S18_2957',28,'51.84',6), - -(10369,'S18_3136',21,'90.06',5), - -(10369,'S18_3320',45,'80.36',4), - -(10369,'S24_4258',40,'93.49',3), - -(10370,'S10_4962',35,'128.53',4), - -(10370,'S12_1666',49,'128.47',8), - -(10370,'S18_1097',27,'100.34',1), - -(10370,'S18_2319',22,'101.87',5), - -(10370,'S18_2432',22,'60.16',7), - -(10370,'S18_3232',27,'167.65',9), - -(10370,'S18_4600',29,'105.34',6), - -(10370,'S18_4668',20,'41.76',2), - -(10370,'S32_3522',25,'63.99',3), - -(10371,'S12_1108',32,'178.71',6), - -(10371,'S12_4473',49,'104.28',4), - -(10371,'S18_2238',25,'160.46',7), - -(10371,'S24_1444',25,'53.75',12), - -(10371,'S24_2300',20,'126.51',5), - -(10371,'S24_2840',45,'35.01',8), - -(10371,'S24_4048',28,'95.81',9), - -(10371,'S32_1268',26,'82.83',1), - -(10371,'S32_2509',20,'44.37',2), - -(10371,'S32_3207',30,'53.44',11), - -(10371,'S50_1392',48,'97.23',10), - -(10371,'S700_2824',34,'83.95',3), - -(10372,'S12_3148',40,'146.55',4), - -(10372,'S12_3891',34,'140.15',1), - -(10372,'S18_3140',28,'131.13',3), - -(10372,'S18_3259',25,'91.76',5), - -(10372,'S18_4027',48,'119.20',6), - -(10372,'S18_4522',41,'78.99',7), - -(10372,'S24_2011',37,'102.00',8), - -(10372,'S50_1514',24,'56.82',9), - -(10372,'S700_1938',44,'74.48',2), - -(10373,'S10_4757',39,'118.32',3), - -(10373,'S18_1662',28,'143.50',4), - -(10373,'S18_3029',22,'75.70',5), - -(10373,'S18_3856',50,'99.52',6), - -(10373,'S24_2841',38,'58.92',7), - -(10373,'S24_3151',33,'82.31',12), - -(10373,'S24_3420',46,'53.92',11), - -(10373,'S24_3816',23,'83.86',10), - -(10373,'S24_3949',39,'62.10',13), - -(10373,'S700_1138',44,'58.00',14), - -(10373,'S700_2047',32,'76.94',15), - -(10373,'S700_2610',41,'69.39',16), - -(10373,'S700_3505',34,'94.16',2), - -(10373,'S700_3962',37,'83.42',8), - -(10373,'S700_4002',45,'68.11',17), - -(10373,'S72_1253',25,'44.20',9), - -(10373,'S72_3212',29,'48.05',1), - -(10374,'S10_2016',39,'115.37',5), - -(10374,'S10_4698',22,'158.80',1), - -(10374,'S18_2581',42,'75.19',2), - -(10374,'S18_2625',22,'48.46',4), - -(10374,'S24_1578',38,'112.70',6), - -(10374,'S24_1785',46,'107.23',3), - -(10375,'S10_1678',21,'76.56',12), - -(10375,'S12_1099',45,'184.84',7), - -(10375,'S12_2823',49,'150.62',13), - -(10375,'S24_2000',23,'67.03',9), - -(10375,'S24_2360',20,'60.26',14), - -(10375,'S24_4278',43,'60.13',2), - -(10375,'S32_1374',37,'87.90',3), - -(10375,'S32_4289',44,'59.85',4), - -(10375,'S32_4485',41,'96.95',15), - -(10375,'S50_1341',49,'36.22',5), - -(10375,'S50_4713',49,'69.16',8), - -(10375,'S700_1691',37,'86.77',6), - -(10375,'S700_2466',33,'94.73',1), - -(10375,'S700_2834',25,'98.48',10), - -(10375,'S700_3167',44,'69.60',11), - -(10376,'S12_3380',35,'98.65',1), - -(10377,'S12_3990',24,'65.44',5), - -(10377,'S12_4675',50,'112.86',1), - -(10377,'S18_1129',35,'124.56',2), - -(10377,'S18_1889',31,'61.60',4), - -(10377,'S18_1984',36,'125.18',6), - -(10377,'S18_3232',39,'143.94',3), - -(10378,'S18_1589',34,'121.95',5), - -(10378,'S18_3278',22,'66.74',4), - -(10378,'S18_3482',43,'146.99',10), - -(10378,'S18_3782',28,'60.30',9), - -(10378,'S18_4721',49,'122.02',8), - -(10378,'S24_2972',41,'30.59',7), - -(10378,'S24_3371',46,'52.66',6), - -(10378,'S24_3856',33,'129.20',3), - -(10378,'S24_4620',41,'80.84',2), - -(10378,'S32_2206',40,'35.80',1), - -(10379,'S18_1749',39,'156.40',2), - -(10379,'S18_2248',27,'50.85',1), - -(10379,'S18_2870',29,'113.52',5), - -(10379,'S18_3685',32,'134.22',4), - -(10379,'S24_1628',32,'48.80',3), - -(10380,'S18_1342',27,'88.36',13), - -(10380,'S18_2325',40,'119.50',10), - -(10380,'S18_2795',21,'156.94',8), - -(10380,'S18_4409',32,'78.23',1), - -(10380,'S18_4933',24,'66.99',2), - -(10380,'S24_1046',34,'66.88',3), - -(10380,'S24_1937',32,'29.87',4), - -(10380,'S24_2022',27,'37.63',5), - -(10380,'S24_2766',36,'77.24',6), - -(10380,'S24_2887',44,'111.57',7), - -(10380,'S24_3191',44,'77.05',9), - -(10380,'S24_3432',34,'91.02',11), - -(10380,'S24_3969',43,'32.82',12), - -(10381,'S10_1949',36,'182.16',3), - -(10381,'S10_4962',37,'138.88',6), - -(10381,'S12_1666',20,'132.57',1), - -(10381,'S18_1097',48,'114.34',2), - -(10381,'S18_1367',25,'49.60',9), - -(10381,'S18_2432',35,'60.77',7), - -(10381,'S18_2949',41,'100.30',8), - -(10381,'S18_2957',40,'51.22',4), - -(10381,'S18_3136',35,'93.20',5), - -(10382,'S12_1108',34,'166.24',10), - -(10382,'S12_3148',37,'145.04',11), - -(10382,'S12_3891',34,'143.61',12), - -(10382,'S12_4473',32,'103.10',13), - -(10382,'S18_2238',25,'160.46',5), - -(10382,'S18_3320',50,'84.33',7), - -(10382,'S18_4600',39,'115.03',1), - -(10382,'S18_4668',39,'46.29',2), - -(10382,'S24_2300',20,'120.12',3), - -(10382,'S24_4258',33,'97.39',4), - -(10382,'S32_1268',26,'85.72',6), - -(10382,'S32_3522',48,'57.53',8), - -(10382,'S700_2824',34,'101.15',9), - -(10383,'S18_2319',27,'119.05',11), - -(10383,'S18_3140',24,'125.66',9), - -(10383,'S18_3232',47,'155.79',6), - -(10383,'S18_3259',26,'83.70',12), - -(10383,'S18_4027',38,'137.88',1), - -(10383,'S18_4522',28,'77.24',7), - -(10383,'S24_1444',22,'52.60',2), - -(10383,'S24_2840',40,'33.24',3), - -(10383,'S24_4048',21,'117.10',4), - -(10383,'S32_2509',32,'53.57',5), - -(10383,'S32_3207',44,'55.93',8), - -(10383,'S50_1392',29,'94.92',13), - -(10383,'S50_1514',38,'48.62',10), - -(10384,'S10_4757',34,'129.20',4), - -(10384,'S24_2011',28,'114.29',3), - -(10384,'S24_3151',43,'71.69',2), - -(10384,'S700_1938',49,'71.02',1), - -(10385,'S24_3816',37,'78.83',2), - -(10385,'S700_1138',25,'62.00',1), - -(10386,'S18_1662',25,'130.88',7), - -(10386,'S18_2581',21,'72.65',18), - -(10386,'S18_3029',37,'73.12',5), - -(10386,'S18_3856',22,'100.58',6), - -(10386,'S24_1785',33,'101.76',11), - -(10386,'S24_2841',39,'56.86',1), - -(10386,'S24_3420',35,'54.57',9), - -(10386,'S24_3949',41,'55.96',12), - -(10386,'S24_4278',50,'71.73',8), - -(10386,'S700_2047',29,'85.09',13), - -(10386,'S700_2466',37,'90.75',14), - -(10386,'S700_2610',37,'67.22',10), - -(10386,'S700_3167',32,'68.00',17), - -(10386,'S700_3505',45,'83.14',2), - -(10386,'S700_3962',30,'80.44',3), - -(10386,'S700_4002',44,'59.22',15), - -(10386,'S72_1253',50,'47.67',16), - -(10386,'S72_3212',43,'52.42',4), - -(10387,'S32_1374',44,'79.91',1), - -(10388,'S10_1678',42,'80.39',4), - -(10388,'S10_2016',50,'118.94',5), - -(10388,'S10_4698',21,'156.86',7), - -(10388,'S12_2823',44,'125.01',6), - -(10388,'S32_4289',35,'58.47',8), - -(10388,'S50_1341',27,'41.02',1), - -(10388,'S700_1691',46,'74.90',2), - -(10388,'S700_2834',50,'111.53',3), - -(10389,'S12_1099',26,'182.90',4), - -(10389,'S12_3380',25,'95.13',6), - -(10389,'S12_3990',36,'76.61',7), - -(10389,'S12_4675',47,'102.49',8), - -(10389,'S18_1889',49,'63.91',3), - -(10389,'S18_2625',39,'52.09',5), - -(10389,'S24_1578',45,'112.70',1), - -(10389,'S24_2000',49,'61.70',2), - -(10390,'S18_1129',36,'117.48',14), - -(10390,'S18_1984',34,'132.29',15), - -(10390,'S18_2325',31,'102.98',16), - -(10390,'S18_2795',26,'162.00',7), - -(10390,'S18_3278',40,'75.59',9), - -(10390,'S18_3482',50,'135.23',1), - -(10390,'S18_3782',36,'54.09',2), - -(10390,'S18_4721',49,'122.02',3), - -(10390,'S24_2360',35,'67.87',4), - -(10390,'S24_2972',37,'35.87',5), - -(10390,'S24_3371',46,'51.43',6), - -(10390,'S24_3856',45,'134.81',8), - -(10390,'S24_4620',30,'66.29',10), - -(10390,'S32_2206',41,'39.02',11), - -(10390,'S32_4485',45,'101.03',12), - -(10390,'S50_4713',22,'81.36',13), - -(10391,'S10_1949',24,'195.01',4), - -(10391,'S10_4962',37,'121.15',7), - -(10391,'S12_1666',39,'110.70',9), - -(10391,'S18_1097',29,'114.34',10), - -(10391,'S18_1342',35,'102.74',2), - -(10391,'S18_1367',42,'47.44',3), - -(10391,'S18_2432',44,'57.73',5), - -(10391,'S18_2949',32,'99.28',6), - -(10391,'S24_1937',33,'26.55',8), - -(10391,'S24_2022',24,'36.29',1), - -(10392,'S18_2957',37,'61.21',3), - -(10392,'S18_3136',29,'103.67',2), - -(10392,'S18_3320',36,'98.22',1), - -(10393,'S12_3148',35,'145.04',8), - -(10393,'S12_4473',32,'99.54',10), - -(10393,'S18_2238',20,'137.53',11), - -(10393,'S18_2319',38,'104.32',7), - -(10393,'S18_4600',30,'106.55',9), - -(10393,'S18_4668',44,'41.76',1), - -(10393,'S24_2300',33,'112.46',2), - -(10393,'S24_4258',33,'88.62',3), - -(10393,'S32_1268',38,'84.75',4), - -(10393,'S32_3522',31,'63.35',5), - -(10393,'S700_2824',21,'83.95',6), - -(10394,'S18_3232',22,'135.47',5), - -(10394,'S18_4027',37,'124.95',1), - -(10394,'S24_1444',31,'53.18',2), - -(10394,'S24_2840',46,'35.36',6), - -(10394,'S24_4048',37,'104.09',7), - -(10394,'S32_2509',36,'47.08',3), - -(10394,'S32_3207',30,'55.93',4), - -(10395,'S10_4757',32,'125.12',2), - -(10395,'S12_1108',33,'205.72',1), - -(10395,'S50_1392',46,'98.39',4), - -(10395,'S50_1514',45,'57.99',3), - -(10396,'S12_3891',33,'155.72',3), - -(10396,'S18_3140',33,'129.76',2), - -(10396,'S18_3259',24,'91.76',4), - -(10396,'S18_4522',45,'83.38',5), - -(10396,'S24_2011',49,'100.77',6), - -(10396,'S24_3151',27,'77.00',7), - -(10396,'S24_3816',37,'77.99',8), - -(10396,'S700_1138',39,'62.00',1), - -(10397,'S700_1938',32,'69.29',5), - -(10397,'S700_2610',22,'62.88',4), - -(10397,'S700_3505',48,'86.15',3), - -(10397,'S700_3962',36,'80.44',2), - -(10397,'S72_3212',34,'52.96',1), - -(10398,'S18_1662',33,'130.88',11), - -(10398,'S18_2581',34,'82.79',15), - -(10398,'S18_3029',28,'70.54',18), - -(10398,'S18_3856',45,'92.11',17), - -(10398,'S24_1785',43,'100.67',16), - -(10398,'S24_2841',28,'60.29',3), - -(10398,'S24_3420',34,'61.15',13), - -(10398,'S24_3949',41,'56.64',2), - -(10398,'S24_4278',45,'65.93',14), - -(10398,'S32_4289',22,'60.54',4), - -(10398,'S50_1341',49,'38.84',5), - -(10398,'S700_1691',47,'78.55',6), - -(10398,'S700_2047',36,'75.13',7), - -(10398,'S700_2466',22,'98.72',8), - -(10398,'S700_2834',23,'102.04',9), - -(10398,'S700_3167',29,'76.80',10), - -(10398,'S700_4002',36,'62.19',12), - -(10398,'S72_1253',34,'41.22',1), - -(10399,'S10_1678',40,'77.52',8), - -(10399,'S10_2016',51,'99.91',7), - -(10399,'S10_4698',22,'156.86',6), - -(10399,'S12_2823',29,'123.51',5), - -(10399,'S18_2625',30,'51.48',4), - -(10399,'S24_1578',57,'104.81',3), - -(10399,'S24_2000',58,'75.41',2), - -(10399,'S32_1374',32,'97.89',1), - -(10400,'S10_4757',64,'134.64',9), - -(10400,'S18_1662',34,'129.31',1), - -(10400,'S18_3029',30,'74.84',7), - -(10400,'S18_3856',58,'88.93',6), - -(10400,'S24_2841',24,'55.49',2), - -(10400,'S24_3420',38,'59.18',3), - -(10400,'S24_3816',42,'74.64',8), - -(10400,'S700_2047',46,'82.37',5), - -(10400,'S72_1253',20,'41.71',4), - -(10401,'S18_2581',42,'75.19',3), - -(10401,'S24_1785',38,'87.54',5), - -(10401,'S24_3949',64,'59.37',12), - -(10401,'S24_4278',52,'65.93',4), - -(10401,'S32_1374',49,'81.91',1), - -(10401,'S32_4289',62,'62.60',6), - -(10401,'S50_1341',56,'41.46',7), - -(10401,'S700_1691',11,'77.64',8), - -(10401,'S700_2466',85,'98.72',10), - -(10401,'S700_2834',21,'96.11',2), - -(10401,'S700_3167',77,'73.60',9), - -(10401,'S700_4002',40,'66.63',11), - -(10402,'S10_2016',45,'118.94',1), - -(10402,'S18_2625',55,'58.15',2), - -(10402,'S24_2000',59,'61.70',3), - -(10403,'S10_1678',24,'85.17',7), - -(10403,'S10_4698',66,'174.29',9), - -(10403,'S12_2823',66,'122.00',6), - -(10403,'S18_3782',36,'55.33',1), - -(10403,'S24_1578',46,'109.32',8), - -(10403,'S24_2360',27,'57.49',4), - -(10403,'S32_2206',30,'35.80',2), - -(10403,'S32_4485',45,'88.78',5), - -(10403,'S50_4713',31,'65.09',3), - -(10404,'S12_1099',64,'163.44',3), - -(10404,'S12_3380',43,'102.17',1), - -(10404,'S12_3990',77,'67.03',4), - -(10404,'S18_3278',90,'67.54',6), - -(10404,'S18_3482',28,'127.88',5), - -(10404,'S18_4721',48,'124.99',8), - -(10404,'S24_3371',49,'53.27',2), - -(10404,'S24_4620',48,'65.48',7), - -(10405,'S12_4675',97,'115.16',5), - -(10405,'S18_1889',61,'72.38',4), - -(10405,'S18_3232',55,'147.33',1), - -(10405,'S24_2972',47,'37.38',2), - -(10405,'S24_3856',76,'127.79',3), - -(10406,'S18_1129',61,'124.56',3), - -(10406,'S18_1984',48,'133.72',2), - -(10406,'S18_3685',65,'117.26',1), - -(10407,'S18_1589',59,'114.48',11), - -(10407,'S18_1749',76,'141.10',2), - -(10407,'S18_2248',42,'58.12',1), - -(10407,'S18_2870',41,'132.00',12), - -(10407,'S18_4409',6,'91.11',3), - -(10407,'S18_4933',66,'64.14',4), - -(10407,'S24_1046',26,'68.35',8), - -(10407,'S24_1628',64,'45.78',10), - -(10407,'S24_2766',76,'81.78',6), - -(10407,'S24_2887',59,'98.65',5), - -(10407,'S24_3191',13,'77.05',7), - -(10407,'S24_3432',43,'101.73',9), - -(10408,'S24_3969',15,'41.03',1), - -(10409,'S18_2325',6,'104.25',2), - -(10409,'S24_1937',61,'27.88',1), - -(10410,'S18_1342',65,'99.66',7), - -(10410,'S18_1367',44,'51.21',6), - -(10410,'S18_2795',56,'145.13',8), - -(10410,'S18_2949',47,'93.21',1), - -(10410,'S18_2957',53,'49.97',3), - -(10410,'S18_3136',34,'84.82',2), - -(10410,'S18_3320',44,'81.35',5), - -(10410,'S24_2022',31,'42.56',9), - -(10410,'S24_4258',50,'95.44',4), - -(10411,'S10_1949',23,'205.73',9), - -(10411,'S10_4962',27,'144.79',2), - -(10411,'S12_1666',40,'110.70',6), - -(10411,'S18_1097',27,'109.67',8), - -(10411,'S18_4600',46,'106.55',3), - -(10411,'S18_4668',35,'41.25',7), - -(10411,'S32_1268',26,'78.01',1), - -(10411,'S32_3522',27,'60.76',5), - -(10411,'S700_2824',34,'89.01',4), - -(10412,'S12_4473',54,'100.73',5), - -(10412,'S18_2238',41,'150.63',4), - -(10412,'S18_2319',56,'120.28',8), - -(10412,'S18_2432',47,'49.83',11), - -(10412,'S18_3232',60,'157.49',9), - -(10412,'S24_1444',21,'47.40',2), - -(10412,'S24_2300',70,'109.90',10), - -(10412,'S24_2840',30,'32.88',6), - -(10412,'S24_4048',31,'108.82',1), - -(10412,'S32_2509',19,'50.86',7), - -(10412,'S50_1392',26,'105.33',3), - -(10413,'S12_1108',36,'201.57',2), - -(10413,'S12_3148',47,'145.04',3), - -(10413,'S12_3891',22,'173.02',1), - -(10413,'S18_4027',49,'133.57',5), - -(10413,'S32_3207',24,'56.55',6), - -(10413,'S50_1514',51,'53.31',4), - -(10414,'S10_4757',49,'114.24',3), - -(10414,'S18_3029',44,'77.42',1), - -(10414,'S18_3140',41,'128.39',12), - -(10414,'S18_3259',48,'85.71',14), - -(10414,'S18_4522',56,'83.38',11), - -(10414,'S24_2011',43,'108.14',10), - -(10414,'S24_3151',60,'72.58',5), - -(10414,'S24_3816',51,'72.96',2), - -(10414,'S700_1138',37,'62.00',6), - -(10414,'S700_1938',34,'74.48',13), - -(10414,'S700_2610',31,'61.44',4), - -(10414,'S700_3505',28,'84.14',7), - -(10414,'S700_3962',40,'84.41',8), - -(10414,'S72_3212',47,'54.60',9), - -(10415,'S18_3856',51,'86.81',5), - -(10415,'S24_2841',21,'60.97',1), - -(10415,'S24_3420',18,'59.83',2), - -(10415,'S700_2047',32,'73.32',4), - -(10415,'S72_1253',42,'43.20',3), - -(10416,'S18_1662',24,'129.31',14), - -(10416,'S18_2581',15,'70.96',4), - -(10416,'S24_1785',47,'90.82',6), - -(10416,'S24_2000',32,'62.46',1), - -(10416,'S24_3949',18,'64.83',13), - -(10416,'S24_4278',48,'70.28',5), - -(10416,'S32_1374',45,'86.90',2), - -(10416,'S32_4289',26,'68.10',7), - -(10416,'S50_1341',37,'39.71',8), - -(10416,'S700_1691',23,'88.60',9), - -(10416,'S700_2466',22,'84.76',11), - -(10416,'S700_2834',41,'98.48',3), - -(10416,'S700_3167',39,'65.60',10), - -(10416,'S700_4002',43,'63.67',12), - -(10417,'S10_1678',66,'79.43',2), - -(10417,'S10_2016',45,'116.56',5), - -(10417,'S10_4698',56,'162.67',4), - -(10417,'S12_2823',21,'144.60',1), - -(10417,'S18_2625',36,'58.75',6), - -(10417,'S24_1578',35,'109.32',3), - -(10418,'S18_3278',16,'70.76',2), - -(10418,'S18_3482',27,'139.64',1), - -(10418,'S18_3782',33,'56.57',5), - -(10418,'S18_4721',28,'120.53',4), - -(10418,'S24_2360',52,'64.41',8), - -(10418,'S24_4620',10,'66.29',3), - -(10418,'S32_2206',43,'36.61',6), - -(10418,'S32_4485',50,'100.01',9), - -(10418,'S50_4713',40,'72.41',7), - -(10419,'S12_1099',12,'182.90',13), - -(10419,'S12_3380',10,'111.57',11), - -(10419,'S12_3990',34,'64.64',14), - -(10419,'S12_4675',32,'99.04',10), - -(10419,'S18_1129',38,'117.48',5), - -(10419,'S18_1589',37,'100.80',1), - -(10419,'S18_1889',39,'67.76',9), - -(10419,'S18_1984',34,'133.72',4), - -(10419,'S18_2870',55,'116.16',2), - -(10419,'S18_3232',35,'165.95',6), - -(10419,'S18_3685',43,'114.44',3), - -(10419,'S24_2972',15,'32.10',7), - -(10419,'S24_3371',55,'52.66',12), - -(10419,'S24_3856',70,'112.34',8), - -(10420,'S18_1749',37,'153.00',5), - -(10420,'S18_2248',36,'52.06',4), - -(10420,'S18_2325',45,'116.96',2), - -(10420,'S18_4409',66,'73.62',6), - -(10420,'S18_4933',36,'68.42',7), - -(10420,'S24_1046',60,'60.26',11), - -(10420,'S24_1628',37,'48.80',13), - -(10420,'S24_1937',45,'32.19',1), - -(10420,'S24_2766',39,'76.33',9), - -(10420,'S24_2887',55,'115.09',8), - -(10420,'S24_3191',35,'77.05',10), - -(10420,'S24_3432',26,'104.94',12), - -(10420,'S24_3969',15,'35.29',3), - -(10421,'S18_2795',35,'167.06',1), - -(10421,'S24_2022',40,'44.80',2), - -(10422,'S18_1342',51,'91.44',2), - -(10422,'S18_1367',25,'47.44',1), - -(10423,'S18_2949',10,'89.15',1), - -(10423,'S18_2957',31,'56.21',3), - -(10423,'S18_3136',21,'98.44',2), - -(10423,'S18_3320',21,'80.36',5), - -(10423,'S24_4258',28,'78.89',4), - -(10424,'S10_1949',50,'201.44',6), - -(10424,'S12_1666',49,'121.64',3), - -(10424,'S18_1097',54,'108.50',5), - -(10424,'S18_4668',26,'40.25',4), - -(10424,'S32_3522',44,'54.94',2), - -(10424,'S700_2824',46,'85.98',1), - -(10425,'S10_4962',38,'131.49',12), - -(10425,'S12_4473',33,'95.99',4), - -(10425,'S18_2238',28,'147.36',3), - -(10425,'S18_2319',38,'117.82',7), - -(10425,'S18_2432',19,'48.62',10), - -(10425,'S18_3232',28,'140.55',8), - -(10425,'S18_4600',38,'107.76',13), - -(10425,'S24_1444',55,'53.75',1), - -(10425,'S24_2300',49,'127.79',9), - -(10425,'S24_2840',31,'31.82',5), - -(10425,'S32_1268',41,'83.79',11), - -(10425,'S32_2509',11,'50.32',6), - -(10425,'S50_1392',18,'94.92',2); - -/*Table structure for table `orders` */ - -DROP TABLE IF EXISTS `orders`; - -CREATE TABLE `orders` ( - `orderNumber` int(11) NOT NULL, - `orderDate` date NOT NULL, - `requiredDate` date NOT NULL, - `shippedDate` date DEFAULT NULL, - `status` varchar(15) NOT NULL, - `comments` text, - `customerNumber` int(11) NOT NULL, - PRIMARY KEY (`orderNumber`), - KEY `customerNumber` (`customerNumber`), - CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`customerNumber`) REFERENCES `customers` (`customerNumber`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `orders` */ - -insert into `orders`(`orderNumber`,`orderDate`,`requiredDate`,`shippedDate`,`status`,`comments`,`customerNumber`) values - -(10100,'2003-01-06','2003-01-13','2003-01-10','Shipped',NULL,363), - -(10101,'2003-01-09','2003-01-18','2003-01-11','Shipped','Check on availability.',128), - -(10102,'2003-01-10','2003-01-18','2003-01-14','Shipped',NULL,181), - -(10103,'2003-01-29','2003-02-07','2003-02-02','Shipped',NULL,121), - -(10104,'2003-01-31','2003-02-09','2003-02-01','Shipped',NULL,141), - -(10105,'2003-02-11','2003-02-21','2003-02-12','Shipped',NULL,145), - -(10106,'2003-02-17','2003-02-24','2003-02-21','Shipped',NULL,278), - -(10107,'2003-02-24','2003-03-03','2003-02-26','Shipped','Difficult to negotiate with customer. We need more marketing materials',131), - -(10108,'2003-03-03','2003-03-12','2003-03-08','Shipped',NULL,385), - -(10109,'2003-03-10','2003-03-19','2003-03-11','Shipped','Customer requested that FedEx Ground is used for this shipping',486), - -(10110,'2003-03-18','2003-03-24','2003-03-20','Shipped',NULL,187), - -(10111,'2003-03-25','2003-03-31','2003-03-30','Shipped',NULL,129), - -(10112,'2003-03-24','2003-04-03','2003-03-29','Shipped','Customer requested that ad materials (such as posters, pamphlets) be included in the shippment',144), - -(10113,'2003-03-26','2003-04-02','2003-03-27','Shipped',NULL,124), - -(10114,'2003-04-01','2003-04-07','2003-04-02','Shipped',NULL,172), - -(10115,'2003-04-04','2003-04-12','2003-04-07','Shipped',NULL,424), - -(10116,'2003-04-11','2003-04-19','2003-04-13','Shipped',NULL,381), - -(10117,'2003-04-16','2003-04-24','2003-04-17','Shipped',NULL,148), - -(10118,'2003-04-21','2003-04-29','2003-04-26','Shipped','Customer has worked with some of our vendors in the past and is aware of their MSRP',216), - -(10119,'2003-04-28','2003-05-05','2003-05-02','Shipped',NULL,382), - -(10120,'2003-04-29','2003-05-08','2003-05-01','Shipped',NULL,114), - -(10121,'2003-05-07','2003-05-13','2003-05-13','Shipped',NULL,353), - -(10122,'2003-05-08','2003-05-16','2003-05-13','Shipped',NULL,350), - -(10123,'2003-05-20','2003-05-29','2003-05-22','Shipped',NULL,103), - -(10124,'2003-05-21','2003-05-29','2003-05-25','Shipped','Customer very concerned about the exact color of the models. There is high risk that he may dispute the order because there is a slight color mismatch',112), - -(10125,'2003-05-21','2003-05-27','2003-05-24','Shipped',NULL,114), - -(10126,'2003-05-28','2003-06-07','2003-06-02','Shipped',NULL,458), - -(10127,'2003-06-03','2003-06-09','2003-06-06','Shipped','Customer requested special shippment. The instructions were passed along to the warehouse',151), - -(10128,'2003-06-06','2003-06-12','2003-06-11','Shipped',NULL,141), - -(10129,'2003-06-12','2003-06-18','2003-06-14','Shipped',NULL,324), - -(10130,'2003-06-16','2003-06-24','2003-06-21','Shipped',NULL,198), - -(10131,'2003-06-16','2003-06-25','2003-06-21','Shipped',NULL,447), - -(10132,'2003-06-25','2003-07-01','2003-06-28','Shipped',NULL,323), - -(10133,'2003-06-27','2003-07-04','2003-07-03','Shipped',NULL,141), - -(10134,'2003-07-01','2003-07-10','2003-07-05','Shipped',NULL,250), - -(10135,'2003-07-02','2003-07-12','2003-07-03','Shipped',NULL,124), - -(10136,'2003-07-04','2003-07-14','2003-07-06','Shipped','Customer is interested in buying more Ferrari models',242), - -(10137,'2003-07-10','2003-07-20','2003-07-14','Shipped',NULL,353), - -(10138,'2003-07-07','2003-07-16','2003-07-13','Shipped',NULL,496), - -(10139,'2003-07-16','2003-07-23','2003-07-21','Shipped',NULL,282), - -(10140,'2003-07-24','2003-08-02','2003-07-30','Shipped',NULL,161), - -(10141,'2003-08-01','2003-08-09','2003-08-04','Shipped',NULL,334), - -(10142,'2003-08-08','2003-08-16','2003-08-13','Shipped',NULL,124), - -(10143,'2003-08-10','2003-08-18','2003-08-12','Shipped','Can we deliver the new Ford Mustang models by end-of-quarter?',320), - -(10144,'2003-08-13','2003-08-21','2003-08-14','Shipped',NULL,381), - -(10145,'2003-08-25','2003-09-02','2003-08-31','Shipped',NULL,205), - -(10146,'2003-09-03','2003-09-13','2003-09-06','Shipped',NULL,447), - -(10147,'2003-09-05','2003-09-12','2003-09-09','Shipped',NULL,379), - -(10148,'2003-09-11','2003-09-21','2003-09-15','Shipped','They want to reevaluate their terms agreement with Finance.',276), - -(10149,'2003-09-12','2003-09-18','2003-09-17','Shipped',NULL,487), - -(10150,'2003-09-19','2003-09-27','2003-09-21','Shipped','They want to reevaluate their terms agreement with Finance.',148), - -(10151,'2003-09-21','2003-09-30','2003-09-24','Shipped',NULL,311), - -(10152,'2003-09-25','2003-10-03','2003-10-01','Shipped',NULL,333), - -(10153,'2003-09-28','2003-10-05','2003-10-03','Shipped',NULL,141), - -(10154,'2003-10-02','2003-10-12','2003-10-08','Shipped',NULL,219), - -(10155,'2003-10-06','2003-10-13','2003-10-07','Shipped',NULL,186), - -(10156,'2003-10-08','2003-10-17','2003-10-11','Shipped',NULL,141), - -(10157,'2003-10-09','2003-10-15','2003-10-14','Shipped',NULL,473), - -(10158,'2003-10-10','2003-10-18','2003-10-15','Shipped',NULL,121), - -(10159,'2003-10-10','2003-10-19','2003-10-16','Shipped',NULL,321), - -(10160,'2003-10-11','2003-10-17','2003-10-17','Shipped',NULL,347), - -(10161,'2003-10-17','2003-10-25','2003-10-20','Shipped',NULL,227), - -(10162,'2003-10-18','2003-10-26','2003-10-19','Shipped',NULL,321), - -(10163,'2003-10-20','2003-10-27','2003-10-24','Shipped',NULL,424), - -(10164,'2003-10-21','2003-10-30','2003-10-23','Resolved','This order was disputed, but resolved on 11/1/2003; Customer doesn\'t like the colors and precision of the models.',452), - -(10165,'2003-10-22','2003-10-31','2003-12-26','Shipped','This order was on hold because customers\'s credit limit had been exceeded. Order will ship when payment is received',148), - -(10166,'2003-10-21','2003-10-30','2003-10-27','Shipped',NULL,462), - -(10167,'2003-10-23','2003-10-30',NULL,'Cancelled','Customer called to cancel. The warehouse was notified in time and the order didn\'t ship. They have a new VP of Sales and are shifting their sales model. Our VP of Sales should contact them.',448), - -(10168,'2003-10-28','2003-11-03','2003-11-01','Shipped',NULL,161), - -(10169,'2003-11-04','2003-11-14','2003-11-09','Shipped',NULL,276), - -(10170,'2003-11-04','2003-11-12','2003-11-07','Shipped',NULL,452), - -(10171,'2003-11-05','2003-11-13','2003-11-07','Shipped',NULL,233), - -(10172,'2003-11-05','2003-11-14','2003-11-11','Shipped',NULL,175), - -(10173,'2003-11-05','2003-11-15','2003-11-09','Shipped','Cautious optimism. We have happy customers here, if we can keep them well stocked. I need all the information I can get on the planned shippments of Porches',278), - -(10174,'2003-11-06','2003-11-15','2003-11-10','Shipped',NULL,333), - -(10175,'2003-11-06','2003-11-14','2003-11-09','Shipped',NULL,324), - -(10176,'2003-11-06','2003-11-15','2003-11-12','Shipped',NULL,386), - -(10177,'2003-11-07','2003-11-17','2003-11-12','Shipped',NULL,344), - -(10178,'2003-11-08','2003-11-16','2003-11-10','Shipped','Custom shipping instructions sent to warehouse',242), - -(10179,'2003-11-11','2003-11-17','2003-11-13','Cancelled','Customer cancelled due to urgent budgeting issues. Must be cautious when dealing with them in the future. Since order shipped already we must discuss who would cover the shipping charges.',496), - -(10180,'2003-11-11','2003-11-19','2003-11-14','Shipped',NULL,171), - -(10181,'2003-11-12','2003-11-19','2003-11-15','Shipped',NULL,167), - -(10182,'2003-11-12','2003-11-21','2003-11-18','Shipped',NULL,124), - -(10183,'2003-11-13','2003-11-22','2003-11-15','Shipped','We need to keep in close contact with their Marketing VP. He is the decision maker for all their purchases.',339), - -(10184,'2003-11-14','2003-11-22','2003-11-20','Shipped',NULL,484), - -(10185,'2003-11-14','2003-11-21','2003-11-20','Shipped',NULL,320), - -(10186,'2003-11-14','2003-11-20','2003-11-18','Shipped','They want to reevaluate their terms agreement with the VP of Sales',489), - -(10187,'2003-11-15','2003-11-24','2003-11-16','Shipped',NULL,211), - -(10188,'2003-11-18','2003-11-26','2003-11-24','Shipped',NULL,167), - -(10189,'2003-11-18','2003-11-25','2003-11-24','Shipped','They want to reevaluate their terms agreement with Finance.',205), - -(10190,'2003-11-19','2003-11-29','2003-11-20','Shipped',NULL,141), - -(10191,'2003-11-20','2003-11-30','2003-11-24','Shipped','We must be cautions with this customer. Their VP of Sales resigned. Company may be heading down.',259), - -(10192,'2003-11-20','2003-11-29','2003-11-25','Shipped',NULL,363), - -(10193,'2003-11-21','2003-11-28','2003-11-27','Shipped',NULL,471), - -(10194,'2003-11-25','2003-12-02','2003-11-26','Shipped',NULL,146), - -(10195,'2003-11-25','2003-12-01','2003-11-28','Shipped',NULL,319), - -(10196,'2003-11-26','2003-12-03','2003-12-01','Shipped',NULL,455), - -(10197,'2003-11-26','2003-12-02','2003-12-01','Shipped','Customer inquired about remote controlled models and gold models.',216), - -(10198,'2003-11-27','2003-12-06','2003-12-03','Shipped',NULL,385), - -(10199,'2003-12-01','2003-12-10','2003-12-06','Shipped',NULL,475), - -(10200,'2003-12-01','2003-12-09','2003-12-06','Shipped',NULL,211), - -(10201,'2003-12-01','2003-12-11','2003-12-02','Shipped',NULL,129), - -(10202,'2003-12-02','2003-12-09','2003-12-06','Shipped',NULL,357), - -(10203,'2003-12-02','2003-12-11','2003-12-07','Shipped',NULL,141), - -(10204,'2003-12-02','2003-12-10','2003-12-04','Shipped',NULL,151), - -(10205,'2003-12-03','2003-12-09','2003-12-07','Shipped',' I need all the information I can get on our competitors.',141), - -(10206,'2003-12-05','2003-12-13','2003-12-08','Shipped','Can we renegotiate this one?',202), - -(10207,'2003-12-09','2003-12-17','2003-12-11','Shipped','Check on availability.',495), - -(10208,'2004-01-02','2004-01-11','2004-01-04','Shipped',NULL,146), - -(10209,'2004-01-09','2004-01-15','2004-01-12','Shipped',NULL,347), - -(10210,'2004-01-12','2004-01-22','2004-01-20','Shipped',NULL,177), - -(10211,'2004-01-15','2004-01-25','2004-01-18','Shipped',NULL,406), - -(10212,'2004-01-16','2004-01-24','2004-01-18','Shipped',NULL,141), - -(10213,'2004-01-22','2004-01-28','2004-01-27','Shipped','Difficult to negotiate with customer. We need more marketing materials',489), - -(10214,'2004-01-26','2004-02-04','2004-01-29','Shipped',NULL,458), - -(10215,'2004-01-29','2004-02-08','2004-02-01','Shipped','Customer requested that FedEx Ground is used for this shipping',475), - -(10216,'2004-02-02','2004-02-10','2004-02-04','Shipped',NULL,256), - -(10217,'2004-02-04','2004-02-14','2004-02-06','Shipped',NULL,166), - -(10218,'2004-02-09','2004-02-16','2004-02-11','Shipped','Customer requested that ad materials (such as posters, pamphlets) be included in the shippment',473), - -(10219,'2004-02-10','2004-02-17','2004-02-12','Shipped',NULL,487), - -(10220,'2004-02-12','2004-02-19','2004-02-16','Shipped',NULL,189), - -(10221,'2004-02-18','2004-02-26','2004-02-19','Shipped',NULL,314), - -(10222,'2004-02-19','2004-02-27','2004-02-20','Shipped',NULL,239), - -(10223,'2004-02-20','2004-02-29','2004-02-24','Shipped',NULL,114), - -(10224,'2004-02-21','2004-03-02','2004-02-26','Shipped','Customer has worked with some of our vendors in the past and is aware of their MSRP',171), - -(10225,'2004-02-22','2004-03-01','2004-02-24','Shipped',NULL,298), - -(10226,'2004-02-26','2004-03-06','2004-03-02','Shipped',NULL,239), - -(10227,'2004-03-02','2004-03-12','2004-03-08','Shipped',NULL,146), - -(10228,'2004-03-10','2004-03-18','2004-03-13','Shipped',NULL,173), - -(10229,'2004-03-11','2004-03-20','2004-03-12','Shipped',NULL,124), - -(10230,'2004-03-15','2004-03-24','2004-03-20','Shipped','Customer very concerned about the exact color of the models. There is high risk that he may dispute the order because there is a slight color mismatch',128), - -(10231,'2004-03-19','2004-03-26','2004-03-25','Shipped',NULL,344), - -(10232,'2004-03-20','2004-03-30','2004-03-25','Shipped',NULL,240), - -(10233,'2004-03-29','2004-04-04','2004-04-02','Shipped','Customer requested special shippment. The instructions were passed along to the warehouse',328), - -(10234,'2004-03-30','2004-04-05','2004-04-02','Shipped',NULL,412), - -(10235,'2004-04-02','2004-04-12','2004-04-06','Shipped',NULL,260), - -(10236,'2004-04-03','2004-04-11','2004-04-08','Shipped',NULL,486), - -(10237,'2004-04-05','2004-04-12','2004-04-10','Shipped',NULL,181), - -(10238,'2004-04-09','2004-04-16','2004-04-10','Shipped',NULL,145), - -(10239,'2004-04-12','2004-04-21','2004-04-17','Shipped',NULL,311), - -(10240,'2004-04-13','2004-04-20','2004-04-20','Shipped',NULL,177), - -(10241,'2004-04-13','2004-04-20','2004-04-19','Shipped',NULL,209), - -(10242,'2004-04-20','2004-04-28','2004-04-25','Shipped','Customer is interested in buying more Ferrari models',456), - -(10243,'2004-04-26','2004-05-03','2004-04-28','Shipped',NULL,495), - -(10244,'2004-04-29','2004-05-09','2004-05-04','Shipped',NULL,141), - -(10245,'2004-05-04','2004-05-12','2004-05-09','Shipped',NULL,455), - -(10246,'2004-05-05','2004-05-13','2004-05-06','Shipped',NULL,141), - -(10247,'2004-05-05','2004-05-11','2004-05-08','Shipped',NULL,334), - -(10248,'2004-05-07','2004-05-14',NULL,'Cancelled','Order was mistakenly placed. The warehouse noticed the lack of documentation.',131), - -(10249,'2004-05-08','2004-05-17','2004-05-11','Shipped','Can we deliver the new Ford Mustang models by end-of-quarter?',173), - -(10250,'2004-05-11','2004-05-19','2004-05-15','Shipped',NULL,450), - -(10251,'2004-05-18','2004-05-24','2004-05-24','Shipped',NULL,328), - -(10252,'2004-05-26','2004-06-04','2004-05-29','Shipped',NULL,406), - -(10253,'2004-06-01','2004-06-09','2004-06-02','Cancelled','Customer disputed the order and we agreed to cancel it. We must be more cautions with this customer going forward, since they are very hard to please. We must cover the shipping fees.',201), - -(10254,'2004-06-03','2004-06-13','2004-06-04','Shipped','Customer requested that DHL is used for this shipping',323), - -(10255,'2004-06-04','2004-06-12','2004-06-09','Shipped',NULL,209), - -(10256,'2004-06-08','2004-06-16','2004-06-10','Shipped',NULL,145), - -(10257,'2004-06-14','2004-06-24','2004-06-15','Shipped',NULL,450), - -(10258,'2004-06-15','2004-06-25','2004-06-23','Shipped',NULL,398), - -(10259,'2004-06-15','2004-06-22','2004-06-17','Shipped',NULL,166), - -(10260,'2004-06-16','2004-06-22',NULL,'Cancelled','Customer heard complaints from their customers and called to cancel this order. Will notify the Sales Manager.',357), - -(10261,'2004-06-17','2004-06-25','2004-06-22','Shipped',NULL,233), - -(10262,'2004-06-24','2004-07-01',NULL,'Cancelled','This customer found a better offer from one of our competitors. Will call back to renegotiate.',141), - -(10263,'2004-06-28','2004-07-04','2004-07-02','Shipped',NULL,175), - -(10264,'2004-06-30','2004-07-06','2004-07-01','Shipped','Customer will send a truck to our local warehouse on 7/1/2004',362), - -(10265,'2004-07-02','2004-07-09','2004-07-07','Shipped',NULL,471), - -(10266,'2004-07-06','2004-07-14','2004-07-10','Shipped',NULL,386), - -(10267,'2004-07-07','2004-07-17','2004-07-09','Shipped',NULL,151), - -(10268,'2004-07-12','2004-07-18','2004-07-14','Shipped',NULL,412), - -(10269,'2004-07-16','2004-07-22','2004-07-18','Shipped',NULL,382), - -(10270,'2004-07-19','2004-07-27','2004-07-24','Shipped','Can we renegotiate this one?',282), - -(10271,'2004-07-20','2004-07-29','2004-07-23','Shipped',NULL,124), - -(10272,'2004-07-20','2004-07-26','2004-07-22','Shipped',NULL,157), - -(10273,'2004-07-21','2004-07-28','2004-07-22','Shipped',NULL,314), - -(10274,'2004-07-21','2004-07-29','2004-07-22','Shipped',NULL,379), - -(10275,'2004-07-23','2004-08-02','2004-07-29','Shipped',NULL,119), - -(10276,'2004-08-02','2004-08-11','2004-08-08','Shipped',NULL,204), - -(10277,'2004-08-04','2004-08-12','2004-08-05','Shipped',NULL,148), - -(10278,'2004-08-06','2004-08-16','2004-08-09','Shipped',NULL,112), - -(10279,'2004-08-09','2004-08-19','2004-08-15','Shipped','Cautious optimism. We have happy customers here, if we can keep them well stocked. I need all the information I can get on the planned shippments of Porches',141), - -(10280,'2004-08-17','2004-08-27','2004-08-19','Shipped',NULL,249), - -(10281,'2004-08-19','2004-08-28','2004-08-23','Shipped',NULL,157), - -(10282,'2004-08-20','2004-08-26','2004-08-22','Shipped',NULL,124), - -(10283,'2004-08-20','2004-08-30','2004-08-23','Shipped',NULL,260), - -(10284,'2004-08-21','2004-08-29','2004-08-26','Shipped','Custom shipping instructions sent to warehouse',299), - -(10285,'2004-08-27','2004-09-04','2004-08-31','Shipped',NULL,286), - -(10286,'2004-08-28','2004-09-06','2004-09-01','Shipped',NULL,172), - -(10287,'2004-08-30','2004-09-06','2004-09-01','Shipped',NULL,298), - -(10288,'2004-09-01','2004-09-11','2004-09-05','Shipped',NULL,166), - -(10289,'2004-09-03','2004-09-13','2004-09-04','Shipped','We need to keep in close contact with their Marketing VP. He is the decision maker for all their purchases.',167), - -(10290,'2004-09-07','2004-09-15','2004-09-13','Shipped',NULL,198), - -(10291,'2004-09-08','2004-09-17','2004-09-14','Shipped',NULL,448), - -(10292,'2004-09-08','2004-09-18','2004-09-11','Shipped','They want to reevaluate their terms agreement with Finance.',131), - -(10293,'2004-09-09','2004-09-18','2004-09-14','Shipped',NULL,249), - -(10294,'2004-09-10','2004-09-17','2004-09-14','Shipped',NULL,204), - -(10295,'2004-09-10','2004-09-17','2004-09-14','Shipped','They want to reevaluate their terms agreement with Finance.',362), - -(10296,'2004-09-15','2004-09-22','2004-09-16','Shipped',NULL,415), - -(10297,'2004-09-16','2004-09-22','2004-09-21','Shipped','We must be cautions with this customer. Their VP of Sales resigned. Company may be heading down.',189), - -(10298,'2004-09-27','2004-10-05','2004-10-01','Shipped',NULL,103), - -(10299,'2004-09-30','2004-10-10','2004-10-01','Shipped',NULL,186), - -(10300,'2003-10-04','2003-10-13','2003-10-09','Shipped',NULL,128), - -(10301,'2003-10-05','2003-10-15','2003-10-08','Shipped',NULL,299), - -(10302,'2003-10-06','2003-10-16','2003-10-07','Shipped',NULL,201), - -(10303,'2004-10-06','2004-10-14','2004-10-09','Shipped','Customer inquired about remote controlled models and gold models.',484), - -(10304,'2004-10-11','2004-10-20','2004-10-17','Shipped',NULL,256), - -(10305,'2004-10-13','2004-10-22','2004-10-15','Shipped','Check on availability.',286), - -(10306,'2004-10-14','2004-10-21','2004-10-17','Shipped',NULL,187), - -(10307,'2004-10-14','2004-10-23','2004-10-20','Shipped',NULL,339), - -(10308,'2004-10-15','2004-10-24','2004-10-20','Shipped','Customer requested that FedEx Ground is used for this shipping',319), - -(10309,'2004-10-15','2004-10-24','2004-10-18','Shipped',NULL,121), - -(10310,'2004-10-16','2004-10-24','2004-10-18','Shipped',NULL,259), - -(10311,'2004-10-16','2004-10-23','2004-10-20','Shipped','Difficult to negotiate with customer. We need more marketing materials',141), - -(10312,'2004-10-21','2004-10-27','2004-10-23','Shipped',NULL,124), - -(10313,'2004-10-22','2004-10-28','2004-10-25','Shipped','Customer requested that FedEx Ground is used for this shipping',202), - -(10314,'2004-10-22','2004-11-01','2004-10-23','Shipped',NULL,227), - -(10315,'2004-10-29','2004-11-08','2004-10-30','Shipped',NULL,119), - -(10316,'2004-11-01','2004-11-09','2004-11-07','Shipped','Customer requested that ad materials (such as posters, pamphlets) be included in the shippment',240), - -(10317,'2004-11-02','2004-11-12','2004-11-08','Shipped',NULL,161), - -(10318,'2004-11-02','2004-11-09','2004-11-07','Shipped',NULL,157), - -(10319,'2004-11-03','2004-11-11','2004-11-06','Shipped','Customer requested that DHL is used for this shipping',456), - -(10320,'2004-11-03','2004-11-13','2004-11-07','Shipped',NULL,144), - -(10321,'2004-11-04','2004-11-12','2004-11-07','Shipped',NULL,462), - -(10322,'2004-11-04','2004-11-12','2004-11-10','Shipped','Customer has worked with some of our vendors in the past and is aware of their MSRP',363), - -(10323,'2004-11-05','2004-11-12','2004-11-09','Shipped',NULL,128), - -(10324,'2004-11-05','2004-11-11','2004-11-08','Shipped',NULL,181), - -(10325,'2004-11-05','2004-11-13','2004-11-08','Shipped',NULL,121), - -(10326,'2004-11-09','2004-11-16','2004-11-10','Shipped',NULL,144), - -(10327,'2004-11-10','2004-11-19','2004-11-13','Resolved','Order was disputed and resolved on 12/1/04. The Sales Manager was involved. Customer claims the scales of the models don\'t match what was discussed.',145), - -(10328,'2004-11-12','2004-11-21','2004-11-18','Shipped','Customer very concerned about the exact color of the models. There is high risk that he may dispute the order because there is a slight color mismatch',278), - -(10329,'2004-11-15','2004-11-24','2004-11-16','Shipped',NULL,131), - -(10330,'2004-11-16','2004-11-25','2004-11-21','Shipped',NULL,385), - -(10331,'2004-11-17','2004-11-23','2004-11-23','Shipped','Customer requested special shippment. The instructions were passed along to the warehouse',486), - -(10332,'2004-11-17','2004-11-25','2004-11-18','Shipped',NULL,187), - -(10333,'2004-11-18','2004-11-27','2004-11-20','Shipped',NULL,129), - -(10334,'2004-11-19','2004-11-28',NULL,'On Hold','The outstaniding balance for this customer exceeds their credit limit. Order will be shipped when a payment is received.',144), - -(10335,'2004-11-19','2004-11-29','2004-11-23','Shipped',NULL,124), - -(10336,'2004-11-20','2004-11-26','2004-11-24','Shipped','Customer requested that DHL is used for this shipping',172), - -(10337,'2004-11-21','2004-11-30','2004-11-26','Shipped',NULL,424), - -(10338,'2004-11-22','2004-12-02','2004-11-27','Shipped',NULL,381), - -(10339,'2004-11-23','2004-11-30','2004-11-30','Shipped',NULL,398), - -(10340,'2004-11-24','2004-12-01','2004-11-25','Shipped','Customer is interested in buying more Ferrari models',216), - -(10341,'2004-11-24','2004-12-01','2004-11-29','Shipped',NULL,382), - -(10342,'2004-11-24','2004-12-01','2004-11-29','Shipped',NULL,114), - -(10343,'2004-11-24','2004-12-01','2004-11-26','Shipped',NULL,353), - -(10344,'2004-11-25','2004-12-02','2004-11-29','Shipped',NULL,350), - -(10345,'2004-11-25','2004-12-01','2004-11-26','Shipped',NULL,103), - -(10346,'2004-11-29','2004-12-05','2004-11-30','Shipped',NULL,112), - -(10347,'2004-11-29','2004-12-07','2004-11-30','Shipped','Can we deliver the new Ford Mustang models by end-of-quarter?',114), - -(10348,'2004-11-01','2004-11-08','2004-11-05','Shipped',NULL,458), - -(10349,'2004-12-01','2004-12-07','2004-12-03','Shipped',NULL,151), - -(10350,'2004-12-02','2004-12-08','2004-12-05','Shipped',NULL,141), - -(10351,'2004-12-03','2004-12-11','2004-12-07','Shipped',NULL,324), - -(10352,'2004-12-03','2004-12-12','2004-12-09','Shipped',NULL,198), - -(10353,'2004-12-04','2004-12-11','2004-12-05','Shipped',NULL,447), - -(10354,'2004-12-04','2004-12-10','2004-12-05','Shipped',NULL,323), - -(10355,'2004-12-07','2004-12-14','2004-12-13','Shipped',NULL,141), - -(10356,'2004-12-09','2004-12-15','2004-12-12','Shipped',NULL,250), - -(10357,'2004-12-10','2004-12-16','2004-12-14','Shipped',NULL,124), - -(10358,'2004-12-10','2004-12-16','2004-12-16','Shipped','Customer requested that DHL is used for this shipping',141), - -(10359,'2004-12-15','2004-12-23','2004-12-18','Shipped',NULL,353), - -(10360,'2004-12-16','2004-12-22','2004-12-18','Shipped',NULL,496), - -(10361,'2004-12-17','2004-12-24','2004-12-20','Shipped',NULL,282), - -(10362,'2005-01-05','2005-01-16','2005-01-10','Shipped',NULL,161), - -(10363,'2005-01-06','2005-01-12','2005-01-10','Shipped',NULL,334), - -(10364,'2005-01-06','2005-01-17','2005-01-09','Shipped',NULL,350), - -(10365,'2005-01-07','2005-01-18','2005-01-11','Shipped',NULL,320), - -(10366,'2005-01-10','2005-01-19','2005-01-12','Shipped',NULL,381), - -(10367,'2005-01-12','2005-01-21','2005-01-16','Resolved','This order was disputed and resolved on 2/1/2005. Customer claimed that container with shipment was damaged. FedEx\'s investigation proved this wrong.',205), - -(10368,'2005-01-19','2005-01-27','2005-01-24','Shipped','Can we renegotiate this one?',124), - -(10369,'2005-01-20','2005-01-28','2005-01-24','Shipped',NULL,379), - -(10370,'2005-01-20','2005-02-01','2005-01-25','Shipped',NULL,276), - -(10371,'2005-01-23','2005-02-03','2005-01-25','Shipped',NULL,124), - -(10372,'2005-01-26','2005-02-05','2005-01-28','Shipped',NULL,398), - -(10373,'2005-01-31','2005-02-08','2005-02-06','Shipped',NULL,311), - -(10374,'2005-02-02','2005-02-09','2005-02-03','Shipped',NULL,333), - -(10375,'2005-02-03','2005-02-10','2005-02-06','Shipped',NULL,119), - -(10376,'2005-02-08','2005-02-18','2005-02-13','Shipped',NULL,219), - -(10377,'2005-02-09','2005-02-21','2005-02-12','Shipped','Cautious optimism. We have happy customers here, if we can keep them well stocked. I need all the information I can get on the planned shippments of Porches',186), - -(10378,'2005-02-10','2005-02-18','2005-02-11','Shipped',NULL,141), - -(10379,'2005-02-10','2005-02-18','2005-02-11','Shipped',NULL,141), - -(10380,'2005-02-16','2005-02-24','2005-02-18','Shipped',NULL,141), - -(10381,'2005-02-17','2005-02-25','2005-02-18','Shipped',NULL,321), - -(10382,'2005-02-17','2005-02-23','2005-02-18','Shipped','Custom shipping instructions sent to warehouse',124), - -(10383,'2005-02-22','2005-03-02','2005-02-25','Shipped',NULL,141), - -(10384,'2005-02-23','2005-03-06','2005-02-27','Shipped',NULL,321), - -(10385,'2005-02-28','2005-03-09','2005-03-01','Shipped',NULL,124), - -(10386,'2005-03-01','2005-03-09','2005-03-06','Resolved','Disputed then Resolved on 3/15/2005. Customer doesn\'t like the craftsmaship of the models.',141), - -(10387,'2005-03-02','2005-03-09','2005-03-06','Shipped','We need to keep in close contact with their Marketing VP. He is the decision maker for all their purchases.',148), - -(10388,'2005-03-03','2005-03-11','2005-03-09','Shipped',NULL,462), - -(10389,'2005-03-03','2005-03-09','2005-03-08','Shipped',NULL,448), - -(10390,'2005-03-04','2005-03-11','2005-03-07','Shipped','They want to reevaluate their terms agreement with Finance.',124), - -(10391,'2005-03-09','2005-03-20','2005-03-15','Shipped',NULL,276), - -(10392,'2005-03-10','2005-03-18','2005-03-12','Shipped',NULL,452), - -(10393,'2005-03-11','2005-03-22','2005-03-14','Shipped','They want to reevaluate their terms agreement with Finance.',323), - -(10394,'2005-03-15','2005-03-25','2005-03-19','Shipped',NULL,141), - -(10395,'2005-03-17','2005-03-24','2005-03-23','Shipped','We must be cautions with this customer. Their VP of Sales resigned. Company may be heading down.',250), - -(10396,'2005-03-23','2005-04-02','2005-03-28','Shipped',NULL,124), - -(10397,'2005-03-28','2005-04-09','2005-04-01','Shipped',NULL,242), - -(10398,'2005-03-30','2005-04-09','2005-03-31','Shipped',NULL,353), - -(10399,'2005-04-01','2005-04-12','2005-04-03','Shipped',NULL,496), - -(10400,'2005-04-01','2005-04-11','2005-04-04','Shipped','Customer requested that DHL is used for this shipping',450), - -(10401,'2005-04-03','2005-04-14',NULL,'On Hold','Customer credit limit exceeded. Will ship when a payment is received.',328), - -(10402,'2005-04-07','2005-04-14','2005-04-12','Shipped',NULL,406), - -(10403,'2005-04-08','2005-04-18','2005-04-11','Shipped',NULL,201), - -(10404,'2005-04-08','2005-04-14','2005-04-11','Shipped',NULL,323), - -(10405,'2005-04-14','2005-04-24','2005-04-20','Shipped',NULL,209), - -(10406,'2005-04-15','2005-04-25','2005-04-21','Disputed','Customer claims container with shipment was damaged during shipping and some items were missing. I am talking to FedEx about this.',145), - -(10407,'2005-04-22','2005-05-04',NULL,'On Hold','Customer credit limit exceeded. Will ship when a payment is received.',450), - -(10408,'2005-04-22','2005-04-29','2005-04-27','Shipped',NULL,398), - -(10409,'2005-04-23','2005-05-05','2005-04-24','Shipped',NULL,166), - -(10410,'2005-04-29','2005-05-10','2005-04-30','Shipped',NULL,357), - -(10411,'2005-05-01','2005-05-08','2005-05-06','Shipped',NULL,233), - -(10412,'2005-05-03','2005-05-13','2005-05-05','Shipped',NULL,141), - -(10413,'2005-05-05','2005-05-14','2005-05-09','Shipped','Customer requested that DHL is used for this shipping',175), - -(10414,'2005-05-06','2005-05-13',NULL,'On Hold','Customer credit limit exceeded. Will ship when a payment is received.',362), - -(10415,'2005-05-09','2005-05-20','2005-05-12','Disputed','Customer claims the scales of the models don\'t match what was discussed. I keep all the paperwork though to prove otherwise',471), - -(10416,'2005-05-10','2005-05-16','2005-05-14','Shipped',NULL,386), - -(10417,'2005-05-13','2005-05-19','2005-05-19','Disputed','Customer doesn\'t like the colors and precision of the models.',141), - -(10418,'2005-05-16','2005-05-24','2005-05-20','Shipped',NULL,412), - -(10419,'2005-05-17','2005-05-28','2005-05-19','Shipped',NULL,382), - -(10420,'2005-05-29','2005-06-07',NULL,'In Process',NULL,282), - -(10421,'2005-05-29','2005-06-06',NULL,'In Process','Custom shipping instructions were sent to warehouse',124), - -(10422,'2005-05-30','2005-06-11',NULL,'In Process',NULL,157), - -(10423,'2005-05-30','2005-06-05',NULL,'In Process',NULL,314), - -(10424,'2005-05-31','2005-06-08',NULL,'In Process',NULL,141), - -(10425,'2005-05-31','2005-06-07',NULL,'In Process',NULL,119); - -/*Table structure for table `payments` */ - -DROP TABLE IF EXISTS `payments`; - -CREATE TABLE `payments` ( - `customerNumber` int(11) NOT NULL, - `checkNumber` varchar(50) NOT NULL, - `paymentDate` date NOT NULL, - `amount` decimal(10,2) NOT NULL, - PRIMARY KEY (`customerNumber`,`checkNumber`), - CONSTRAINT `payments_ibfk_1` FOREIGN KEY (`customerNumber`) REFERENCES `customers` (`customerNumber`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `payments` */ - -insert into `payments`(`customerNumber`,`checkNumber`,`paymentDate`,`amount`) values - -(103,'HQ336336','2004-10-19','6066.78'), - -(103,'JM555205','2003-06-05','14571.44'), - -(103,'OM314933','2004-12-18','1676.14'), - -(112,'BO864823','2004-12-17','14191.12'), - -(112,'HQ55022','2003-06-06','32641.98'), - -(112,'ND748579','2004-08-20','33347.88'), - -(114,'GG31455','2003-05-20','45864.03'), - -(114,'MA765515','2004-12-15','82261.22'), - -(114,'NP603840','2003-05-31','7565.08'), - -(114,'NR27552','2004-03-10','44894.74'), - -(119,'DB933704','2004-11-14','19501.82'), - -(119,'LN373447','2004-08-08','47924.19'), - -(119,'NG94694','2005-02-22','49523.67'), - -(121,'DB889831','2003-02-16','50218.95'), - -(121,'FD317790','2003-10-28','1491.38'), - -(121,'KI831359','2004-11-04','17876.32'), - -(121,'MA302151','2004-11-28','34638.14'), - -(124,'AE215433','2005-03-05','101244.59'), - -(124,'BG255406','2004-08-28','85410.87'), - -(124,'CQ287967','2003-04-11','11044.30'), - -(124,'ET64396','2005-04-16','83598.04'), - -(124,'HI366474','2004-12-27','47142.70'), - -(124,'HR86578','2004-11-02','55639.66'), - -(124,'KI131716','2003-08-15','111654.40'), - -(124,'LF217299','2004-03-26','43369.30'), - -(124,'NT141748','2003-11-25','45084.38'), - -(128,'DI925118','2003-01-28','10549.01'), - -(128,'FA465482','2003-10-18','24101.81'), - -(128,'FH668230','2004-03-24','33820.62'), - -(128,'IP383901','2004-11-18','7466.32'), - -(129,'DM826140','2004-12-08','26248.78'), - -(129,'ID449593','2003-12-11','23923.93'), - -(129,'PI42991','2003-04-09','16537.85'), - -(131,'CL442705','2003-03-12','22292.62'), - -(131,'MA724562','2004-12-02','50025.35'), - -(131,'NB445135','2004-09-11','35321.97'), - -(141,'AU364101','2003-07-19','36251.03'), - -(141,'DB583216','2004-11-01','36140.38'), - -(141,'DL460618','2005-05-19','46895.48'), - -(141,'HJ32686','2004-01-30','59830.55'), - -(141,'ID10962','2004-12-31','116208.40'), - -(141,'IN446258','2005-03-25','65071.26'), - -(141,'JE105477','2005-03-18','120166.58'), - -(141,'JN355280','2003-10-26','49539.37'), - -(141,'JN722010','2003-02-25','40206.20'), - -(141,'KT52578','2003-12-09','63843.55'), - -(141,'MC46946','2004-07-09','35420.74'), - -(141,'MF629602','2004-08-16','20009.53'), - -(141,'NU627706','2004-05-17','26155.91'), - -(144,'IR846303','2004-12-12','36005.71'), - -(144,'LA685678','2003-04-09','7674.94'), - -(145,'CN328545','2004-07-03','4710.73'), - -(145,'ED39322','2004-04-26','28211.70'), - -(145,'HR182688','2004-12-01','20564.86'), - -(145,'JJ246391','2003-02-20','53959.21'), - -(146,'FP549817','2004-03-18','40978.53'), - -(146,'FU793410','2004-01-16','49614.72'), - -(146,'LJ160635','2003-12-10','39712.10'), - -(148,'BI507030','2003-04-22','44380.15'), - -(148,'DD635282','2004-08-11','2611.84'), - -(148,'KM172879','2003-12-26','105743.00'), - -(148,'ME497970','2005-03-27','3516.04'), - -(151,'BF686658','2003-12-22','58793.53'), - -(151,'GB852215','2004-07-26','20314.44'), - -(151,'IP568906','2003-06-18','58841.35'), - -(151,'KI884577','2004-12-14','39964.63'), - -(157,'HI618861','2004-11-19','35152.12'), - -(157,'NN711988','2004-09-07','63357.13'), - -(161,'BR352384','2004-11-14','2434.25'), - -(161,'BR478494','2003-11-18','50743.65'), - -(161,'KG644125','2005-02-02','12692.19'), - -(161,'NI908214','2003-08-05','38675.13'), - -(166,'BQ327613','2004-09-16','38785.48'), - -(166,'DC979307','2004-07-07','44160.92'), - -(166,'LA318629','2004-02-28','22474.17'), - -(167,'ED743615','2004-09-19','12538.01'), - -(167,'GN228846','2003-12-03','85024.46'), - -(171,'GB878038','2004-03-15','18997.89'), - -(171,'IL104425','2003-11-22','42783.81'), - -(172,'AD832091','2004-09-09','1960.80'), - -(172,'CE51751','2004-12-04','51209.58'), - -(172,'EH208589','2003-04-20','33383.14'), - -(173,'GP545698','2004-05-13','11843.45'), - -(173,'IG462397','2004-03-29','20355.24'), - -(175,'CITI3434344','2005-05-19','28500.78'), - -(175,'IO448913','2003-11-19','24879.08'), - -(175,'PI15215','2004-07-10','42044.77'), - -(177,'AU750837','2004-04-17','15183.63'), - -(177,'CI381435','2004-01-19','47177.59'), - -(181,'CM564612','2004-04-25','22602.36'), - -(181,'GQ132144','2003-01-30','5494.78'), - -(181,'OH367219','2004-11-16','44400.50'), - -(186,'AE192287','2005-03-10','23602.90'), - -(186,'AK412714','2003-10-27','37602.48'), - -(186,'KA602407','2004-10-21','34341.08'), - -(187,'AM968797','2004-11-03','52825.29'), - -(187,'BQ39062','2004-12-08','47159.11'), - -(187,'KL124726','2003-03-27','48425.69'), - -(189,'BO711618','2004-10-03','17359.53'), - -(189,'NM916675','2004-03-01','32538.74'), - -(198,'FI192930','2004-12-06','9658.74'), - -(198,'HQ920205','2003-07-06','6036.96'), - -(198,'IS946883','2004-09-21','5858.56'), - -(201,'DP677013','2003-10-20','23908.24'), - -(201,'OO846801','2004-06-15','37258.94'), - -(202,'HI358554','2003-12-18','36527.61'), - -(202,'IQ627690','2004-11-08','33594.58'), - -(204,'GC697638','2004-08-13','51152.86'), - -(204,'IS150005','2004-09-24','4424.40'), - -(205,'GL756480','2003-12-04','3879.96'), - -(205,'LL562733','2003-09-05','50342.74'), - -(205,'NM739638','2005-02-06','39580.60'), - -(209,'BOAF82044','2005-05-03','35157.75'), - -(209,'ED520529','2004-06-21','4632.31'), - -(209,'PH785937','2004-05-04','36069.26'), - -(211,'BJ535230','2003-12-09','45480.79'), - -(216,'BG407567','2003-05-09','3101.40'), - -(216,'ML780814','2004-12-06','24945.21'), - -(216,'MM342086','2003-12-14','40473.86'), - -(219,'BN17870','2005-03-02','3452.75'), - -(219,'BR941480','2003-10-18','4465.85'), - -(227,'MQ413968','2003-10-31','36164.46'), - -(227,'NU21326','2004-11-02','53745.34'), - -(233,'BOFA23232','2005-05-20','29070.38'), - -(233,'II180006','2004-07-01','22997.45'), - -(233,'JG981190','2003-11-18','16909.84'), - -(239,'NQ865547','2004-03-15','80375.24'), - -(240,'IF245157','2004-11-16','46788.14'), - -(240,'JO719695','2004-03-28','24995.61'), - -(242,'AF40894','2003-11-22','33818.34'), - -(242,'HR224331','2005-06-03','12432.32'), - -(242,'KI744716','2003-07-21','14232.70'), - -(249,'IJ399820','2004-09-19','33924.24'), - -(249,'NE404084','2004-09-04','48298.99'), - -(250,'EQ12267','2005-05-17','17928.09'), - -(250,'HD284647','2004-12-30','26311.63'), - -(250,'HN114306','2003-07-18','23419.47'), - -(256,'EP227123','2004-02-10','5759.42'), - -(256,'HE84936','2004-10-22','53116.99'), - -(259,'EU280955','2004-11-06','61234.67'), - -(259,'GB361972','2003-12-07','27988.47'), - -(260,'IO164641','2004-08-30','37527.58'), - -(260,'NH776924','2004-04-24','29284.42'), - -(276,'EM979878','2005-02-09','27083.78'), - -(276,'KM841847','2003-11-13','38547.19'), - -(276,'LE432182','2003-09-28','41554.73'), - -(276,'OJ819725','2005-04-30','29848.52'), - -(278,'BJ483870','2004-12-05','37654.09'), - -(278,'GP636783','2003-03-02','52151.81'), - -(278,'NI983021','2003-11-24','37723.79'), - -(282,'IA793562','2003-08-03','24013.52'), - -(282,'JT819493','2004-08-02','35806.73'), - -(282,'OD327378','2005-01-03','31835.36'), - -(286,'DR578578','2004-10-28','47411.33'), - -(286,'KH910279','2004-09-05','43134.04'), - -(298,'AJ574927','2004-03-13','47375.92'), - -(298,'LF501133','2004-09-18','61402.00'), - -(299,'AD304085','2003-10-24','36798.88'), - -(299,'NR157385','2004-09-05','32260.16'), - -(311,'DG336041','2005-02-15','46770.52'), - -(311,'FA728475','2003-10-06','32723.04'), - -(311,'NQ966143','2004-04-25','16212.59'), - -(314,'LQ244073','2004-08-09','45352.47'), - -(314,'MD809704','2004-03-03','16901.38'), - -(319,'HL685576','2004-11-06','42339.76'), - -(319,'OM548174','2003-12-07','36092.40'), - -(320,'GJ597719','2005-01-18','8307.28'), - -(320,'HO576374','2003-08-20','41016.75'), - -(320,'MU817160','2003-11-24','52548.49'), - -(321,'DJ15149','2003-11-03','85559.12'), - -(321,'LA556321','2005-03-15','46781.66'), - -(323,'AL493079','2005-05-23','75020.13'), - -(323,'ES347491','2004-06-24','37281.36'), - -(323,'HG738664','2003-07-05','2880.00'), - -(323,'PQ803830','2004-12-24','39440.59'), - -(324,'DQ409197','2004-12-13','13671.82'), - -(324,'FP443161','2003-07-07','29429.14'), - -(324,'HB150714','2003-11-23','37455.77'), - -(328,'EN930356','2004-04-16','7178.66'), - -(328,'NR631421','2004-05-30','31102.85'), - -(333,'HL209210','2003-11-15','23936.53'), - -(333,'JK479662','2003-10-17','9821.32'), - -(333,'NF959653','2005-03-01','21432.31'), - -(334,'CS435306','2005-01-27','45785.34'), - -(334,'HH517378','2003-08-16','29716.86'), - -(334,'LF737277','2004-05-22','28394.54'), - -(339,'AP286625','2004-10-24','23333.06'), - -(339,'DA98827','2003-11-28','34606.28'), - -(344,'AF246722','2003-11-24','31428.21'), - -(344,'NJ906924','2004-04-02','15322.93'), - -(347,'DG700707','2004-01-18','21053.69'), - -(347,'LG808674','2003-10-24','20452.50'), - -(350,'BQ602907','2004-12-11','18888.31'), - -(350,'CI471510','2003-05-25','50824.66'), - -(350,'OB648482','2005-01-29','1834.56'), - -(353,'CO351193','2005-01-10','49705.52'), - -(353,'ED878227','2003-07-21','13920.26'), - -(353,'GT878649','2003-05-21','16700.47'), - -(353,'HJ618252','2005-06-09','46656.94'), - -(357,'AG240323','2003-12-16','20220.04'), - -(357,'NB291497','2004-05-15','36442.34'), - -(362,'FP170292','2004-07-11','18473.71'), - -(362,'OG208861','2004-09-21','15059.76'), - -(363,'HL575273','2004-11-17','50799.69'), - -(363,'IS232033','2003-01-16','10223.83'), - -(363,'PN238558','2003-12-05','55425.77'), - -(379,'CA762595','2005-02-12','28322.83'), - -(379,'FR499138','2003-09-16','32680.31'), - -(379,'GB890854','2004-08-02','12530.51'), - -(381,'BC726082','2004-12-03','12081.52'), - -(381,'CC475233','2003-04-19','1627.56'), - -(381,'GB117430','2005-02-03','14379.90'), - -(381,'MS154481','2003-08-22','1128.20'), - -(382,'CC871084','2003-05-12','35826.33'), - -(382,'CT821147','2004-08-01','6419.84'), - -(382,'PH29054','2004-11-27','42813.83'), - -(385,'BN347084','2003-12-02','20644.24'), - -(385,'CP804873','2004-11-19','15822.84'), - -(385,'EK785462','2003-03-09','51001.22'), - -(386,'DO106109','2003-11-18','38524.29'), - -(386,'HG438769','2004-07-18','51619.02'), - -(398,'AJ478695','2005-02-14','33967.73'), - -(398,'DO787644','2004-06-21','22037.91'), - -(398,'JPMR4544','2005-05-18','615.45'), - -(398,'KB54275','2004-11-29','48927.64'), - -(406,'BJMPR4545','2005-04-23','12190.85'), - -(406,'HJ217687','2004-01-28','49165.16'), - -(406,'NA197101','2004-06-17','25080.96'), - -(412,'GH197075','2004-07-25','35034.57'), - -(412,'PJ434867','2004-04-14','31670.37'), - -(415,'ER54537','2004-09-28','31310.09'), - -(424,'KF480160','2004-12-07','25505.98'), - -(424,'LM271923','2003-04-16','21665.98'), - -(424,'OA595449','2003-10-31','22042.37'), - -(447,'AO757239','2003-09-15','6631.36'), - -(447,'ER615123','2003-06-25','17032.29'), - -(447,'OU516561','2004-12-17','26304.13'), - -(448,'FS299615','2005-04-18','27966.54'), - -(448,'KR822727','2004-09-30','48809.90'), - -(450,'EF485824','2004-06-21','59551.38'), - -(452,'ED473873','2003-11-15','27121.90'), - -(452,'FN640986','2003-11-20','15130.97'), - -(452,'HG635467','2005-05-03','8807.12'), - -(455,'HA777606','2003-12-05','38139.18'), - -(455,'IR662429','2004-05-12','32239.47'), - -(456,'GJ715659','2004-11-13','27550.51'), - -(456,'MO743231','2004-04-30','1679.92'), - -(458,'DD995006','2004-11-15','33145.56'), - -(458,'NA377824','2004-02-06','22162.61'), - -(458,'OO606861','2003-06-13','57131.92'), - -(462,'ED203908','2005-04-15','30293.77'), - -(462,'GC60330','2003-11-08','9977.85'), - -(462,'PE176846','2004-11-27','48355.87'), - -(471,'AB661578','2004-07-28','9415.13'), - -(471,'CO645196','2003-12-10','35505.63'), - -(473,'LL427009','2004-02-17','7612.06'), - -(473,'PC688499','2003-10-27','17746.26'), - -(475,'JP113227','2003-12-09','7678.25'), - -(475,'PB951268','2004-02-13','36070.47'), - -(484,'GK294076','2004-10-26','3474.66'), - -(484,'JH546765','2003-11-29','47513.19'), - -(486,'BL66528','2004-04-14','5899.38'), - -(486,'HS86661','2004-11-23','45994.07'), - -(486,'JB117768','2003-03-20','25833.14'), - -(487,'AH612904','2003-09-28','29997.09'), - -(487,'PT550181','2004-02-29','12573.28'), - -(489,'OC773849','2003-12-04','22275.73'), - -(489,'PO860906','2004-01-31','7310.42'), - -(495,'BH167026','2003-12-26','59265.14'), - -(495,'FN155234','2004-05-14','6276.60'), - -(496,'EU531600','2005-05-25','30253.75'), - -(496,'MB342426','2003-07-16','32077.44'), - -(496,'MN89921','2004-12-31','52166.00'); - -/*Table structure for table `productlines` */ - -DROP TABLE IF EXISTS `productlines`; - -CREATE TABLE `productlines` ( - `productLine` varchar(50) NOT NULL, - `textDescription` varchar(4000) DEFAULT NULL, - `htmlDescription` mediumtext, - `image` mediumblob, - PRIMARY KEY (`productLine`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `productlines` */ - -insert into `productlines`(`productLine`,`textDescription`,`htmlDescription`,`image`) values - -('Classic Cars','Attention car enthusiasts: Make your wildest car ownership dreams come true. Whether you are looking for classic muscle cars, dream sports cars or movie-inspired miniatures, you will find great choices in this category. These replicas feature superb attention to detail and craftsmanship and offer features such as working steering system, opening forward compartment, opening rear trunk with removable spare wheel, 4-wheel independent spring suspension, and so on. The models range in size from 1:10 to 1:24 scale and include numerous limited edition and several out-of-production vehicles. All models include a certificate of authenticity from their manufacturers and come fully assembled and ready for display in the home or office.',NULL,NULL), - -('Motorcycles','Our motorcycles are state of the art replicas of classic as well as contemporary motorcycle legends such as Harley Davidson, Ducati and Vespa. Models contain stunning details such as official logos, rotating wheels, working kickstand, front suspension, gear-shift lever, footbrake lever, and drive chain. Materials used include diecast and plastic. The models range in size from 1:10 to 1:50 scale and include numerous limited edition and several out-of-production vehicles. All models come fully assembled and ready for display in the home or office. Most include a certificate of authenticity.',NULL,NULL), - -('Planes','Unique, diecast airplane and helicopter replicas suitable for collections, as well as home, office or classroom decorations. Models contain stunning details such as official logos and insignias, rotating jet engines and propellers, retractable wheels, and so on. Most come fully assembled and with a certificate of authenticity from their manufacturers.',NULL,NULL), - -('Ships','The perfect holiday or anniversary gift for executives, clients, friends, and family. These handcrafted model ships are unique, stunning works of art that will be treasured for generations! They come fully assembled and ready for display in the home or office. We guarantee the highest quality, and best value.',NULL,NULL), - -('Trains','Model trains are a rewarding hobby for enthusiasts of all ages. Whether you\'re looking for collectible wooden trains, electric streetcars or locomotives, you\'ll find a number of great choices for any budget within this category. The interactive aspect of trains makes toy trains perfect for young children. The wooden train sets are ideal for children under the age of 5.',NULL,NULL), - -('Trucks and Buses','The Truck and Bus models are realistic replicas of buses and specialized trucks produced from the early 1920s to present. The models range in size from 1:12 to 1:50 scale and include numerous limited edition and several out-of-production vehicles. Materials used include tin, diecast and plastic. All models include a certificate of authenticity from their manufacturers and are a perfect ornament for the home and office.',NULL,NULL), - -('Vintage Cars','Our Vintage Car models realistically portray automobiles produced from the early 1900s through the 1940s. Materials used include Bakelite, diecast, plastic and wood. Most of the replicas are in the 1:18 and 1:24 scale sizes, which provide the optimum in detail and accuracy. Prices range from $30.00 up to $180.00 for some special limited edition replicas. All models include a certificate of authenticity from their manufacturers and come fully assembled and ready for display in the home or office.',NULL,NULL); - -/*Table structure for table `products` */ - -DROP TABLE IF EXISTS `products`; - -CREATE TABLE `products` ( - `productCode` varchar(15) NOT NULL, - `productName` varchar(70) NOT NULL, - `productLine` varchar(50) NOT NULL, - `productScale` varchar(10) NOT NULL, - `productVendor` varchar(50) NOT NULL, - `productDescription` text NOT NULL, - `quantityInStock` smallint(6) NOT NULL, - `buyPrice` decimal(10,2) NOT NULL, - `MSRP` decimal(10,2) NOT NULL, - PRIMARY KEY (`productCode`), - KEY `productLine` (`productLine`), - CONSTRAINT `products_ibfk_1` FOREIGN KEY (`productLine`) REFERENCES `productlines` (`productLine`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*Data for the table `products` */ - -insert into `products`(`productCode`,`productName`,`productLine`,`productScale`,`productVendor`,`productDescription`,`quantityInStock`,`buyPrice`,`MSRP`) values - -('S10_1678','1969 Harley Davidson Ultimate Chopper','Motorcycles','1:10','Min Lin Diecast','This replica features working kickstand, front suspension, gear-shift lever, footbrake lever, drive chain, wheels and steering. All parts are particularly delicate due to their precise scale and require special care and attention.',7933,'48.81','95.70'), - -('S10_1949','1952 Alpine Renault 1300','Classic Cars','1:10','Classic Metal Creations','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',7305,'98.58','214.30'), - -('S10_2016','1996 Moto Guzzi 1100i','Motorcycles','1:10','Highway 66 Mini Classics','Official Moto Guzzi logos and insignias, saddle bags located on side of motorcycle, detailed engine, working steering, working suspension, two leather seats, luggage rack, dual exhaust pipes, small saddle bag located on handle bars, two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand, diecast metal with plastic parts and baked enamel finish.',6625,'68.99','118.94'), - -('S10_4698','2003 Harley-Davidson Eagle Drag Bike','Motorcycles','1:10','Red Start Diecast','Model features, official Harley Davidson logos and insignias, detachable rear wheelie bar, heavy diecast metal with resin parts, authentic multi-color tampo-printed graphics, separate engine drive belts, free-turning front fork, rotating tires and rear racing slick, certificate of authenticity, detailed engine, display stand\r\n, precision diecast replica, baked enamel finish, 1:10 scale model, removable fender, seat and tank cover piece for displaying the superior detail of the v-twin engine',5582,'91.02','193.66'), - -('S10_4757','1972 Alfa Romeo GTA','Classic Cars','1:10','Motor City Art Classics','Features include: Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',3252,'85.68','136.00'), - -('S10_4962','1962 LanciaA Delta 16V','Classic Cars','1:10','Second Gear Diecast','Features include: Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',6791,'103.42','147.74'), - -('S12_1099','1968 Ford Mustang','Classic Cars','1:12','Autoart Studio Design','Hood, doors and trunk all open to reveal highly detailed interior features. Steering wheel actually turns the front wheels. Color dark green.',68,'95.34','194.57'), - -('S12_1108','2001 Ferrari Enzo','Classic Cars','1:12','Second Gear Diecast','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',3619,'95.59','207.80'), - -('S12_1666','1958 Setra Bus','Trucks and Buses','1:12','Welly Diecast Productions','Model features 30 windows, skylights & glare resistant glass, working steering system, original logos',1579,'77.90','136.67'), - -('S12_2823','2002 Suzuki XREO','Motorcycles','1:12','Unimax Art Galleries','Official logos and insignias, saddle bags located on side of motorcycle, detailed engine, working steering, working suspension, two leather seats, luggage rack, dual exhaust pipes, small saddle bag located on handle bars, two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand, diecast metal with plastic parts and baked enamel finish.',9997,'66.27','150.62'), - -('S12_3148','1969 Corvair Monza','Classic Cars','1:18','Welly Diecast Productions','1:18 scale die-cast about 10\" long doors open, hood opens, trunk opens and wheels roll',6906,'89.14','151.08'), - -('S12_3380','1968 Dodge Charger','Classic Cars','1:12','Welly Diecast Productions','1:12 scale model of a 1968 Dodge Charger. Hood, doors and trunk all open to reveal highly detailed interior features. Steering wheel actually turns the front wheels. Color black',9123,'75.16','117.44'), - -('S12_3891','1969 Ford Falcon','Classic Cars','1:12','Second Gear Diecast','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',1049,'83.05','173.02'), - -('S12_3990','1970 Plymouth Hemi Cuda','Classic Cars','1:12','Studio M Art Models','Very detailed 1970 Plymouth Cuda model in 1:12 scale. The Cuda is generally accepted as one of the fastest original muscle cars from the 1970s. This model is a reproduction of one of the orginal 652 cars built in 1970. Red color.',5663,'31.92','79.80'), - -('S12_4473','1957 Chevy Pickup','Trucks and Buses','1:12','Exoto Designs','1:12 scale die-cast about 20\" long Hood opens, Rubber wheels',6125,'55.70','118.50'), - -('S12_4675','1969 Dodge Charger','Classic Cars','1:12','Welly Diecast Productions','Detailed model of the 1969 Dodge Charger. This model includes finely detailed interior and exterior features. Painted in red and white.',7323,'58.73','115.16'), - -('S18_1097','1940 Ford Pickup Truck','Trucks and Buses','1:18','Studio M Art Models','This model features soft rubber tires, working steering, rubber mud guards, authentic Ford logos, detailed undercarriage, opening doors and hood, removable split rear gate, full size spare mounted in bed, detailed interior with opening glove box',2613,'58.33','116.67'), - -('S18_1129','1993 Mazda RX-7','Classic Cars','1:18','Highway 66 Mini Classics','This model features, opening hood, opening doors, detailed engine, rear spoiler, opening trunk, working steering, tinted windows, baked enamel finish. Color red.',3975,'83.51','141.54'), - -('S18_1342','1937 Lincoln Berline','Vintage Cars','1:18','Motor City Art Classics','Features opening engine cover, doors, trunk, and fuel filler cap. Color black',8693,'60.62','102.74'), - -('S18_1367','1936 Mercedes-Benz 500K Special Roadster','Vintage Cars','1:18','Studio M Art Models','This 1:18 scale replica is constructed of heavy die-cast metal and has all the features of the original: working doors and rumble seat, independent spring suspension, detailed interior, working steering system, and a bifold hood that reveals an engine so accurate that it even includes the wiring. All this is topped off with a baked enamel finish. Color white.',8635,'24.26','53.91'), - -('S18_1589','1965 Aston Martin DB5','Classic Cars','1:18','Classic Metal Creations','Die-cast model of the silver 1965 Aston Martin DB5 in silver. This model includes full wire wheels and doors that open with fully detailed passenger compartment. In 1:18 scale, this model measures approximately 10 inches/20 cm long.',9042,'65.96','124.44'), - -('S18_1662','1980s Black Hawk Helicopter','Planes','1:18','Red Start Diecast','1:18 scale replica of actual Army\'s UH-60L BLACK HAWK Helicopter. 100% hand-assembled. Features rotating rotor blades, propeller blades and rubber wheels.',5330,'77.27','157.69'), - -('S18_1749','1917 Grand Touring Sedan','Vintage Cars','1:18','Welly Diecast Productions','This 1:18 scale replica of the 1917 Grand Touring car has all the features you would expect from museum quality reproductions: all four doors and bi-fold hood opening, detailed engine and instrument panel, chrome-look trim, and tufted upholstery, all topped off with a factory baked-enamel finish.',2724,'86.70','170.00'), - -('S18_1889','1948 Porsche 356-A Roadster','Classic Cars','1:18','Gearbox Collectibles','This precision die-cast replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',8826,'53.90','77.00'), - -('S18_1984','1995 Honda Civic','Classic Cars','1:18','Min Lin Diecast','This model features, opening hood, opening doors, detailed engine, rear spoiler, opening trunk, working steering, tinted windows, baked enamel finish. Color yellow.',9772,'93.89','142.25'), - -('S18_2238','1998 Chrysler Plymouth Prowler','Classic Cars','1:18','Gearbox Collectibles','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',4724,'101.51','163.73'), - -('S18_2248','1911 Ford Town Car','Vintage Cars','1:18','Motor City Art Classics','Features opening hood, opening doors, opening trunk, wide white wall tires, front door arm rests, working steering system.',540,'33.30','60.54'), - -('S18_2319','1964 Mercedes Tour Bus','Trucks and Buses','1:18','Unimax Art Galleries','Exact replica. 100+ parts. working steering system, original logos',8258,'74.86','122.73'), - -('S18_2325','1932 Model A Ford J-Coupe','Vintage Cars','1:18','Autoart Studio Design','This model features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system, chrome-covered spare, opening doors, detailed and wired engine',9354,'58.48','127.13'), - -('S18_2432','1926 Ford Fire Engine','Trucks and Buses','1:18','Carousel DieCast Legends','Gleaming red handsome appearance. Everything is here the fire hoses, ladder, axes, bells, lanterns, ready to fight any inferno.',2018,'24.92','60.77'), - -('S18_2581','P-51-D Mustang','Planes','1:72','Gearbox Collectibles','Has retractable wheels and comes with a stand',992,'49.00','84.48'), - -('S18_2625','1936 Harley Davidson El Knucklehead','Motorcycles','1:18','Welly Diecast Productions','Intricately detailed with chrome accents and trim, official die-struck logos and baked enamel finish.',4357,'24.23','60.57'), - -('S18_2795','1928 Mercedes-Benz SSK','Vintage Cars','1:18','Gearbox Collectibles','This 1:18 replica features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system, chrome-covered spare, opening doors, detailed and wired engine. Color black.',548,'72.56','168.75'), - -('S18_2870','1999 Indy 500 Monte Carlo SS','Classic Cars','1:18','Red Start Diecast','Features include opening and closing doors. Color: Red',8164,'56.76','132.00'), - -('S18_2949','1913 Ford Model T Speedster','Vintage Cars','1:18','Carousel DieCast Legends','This 250 part reproduction includes moving handbrakes, clutch, throttle and foot pedals, squeezable horn, detailed wired engine, removable water, gas, and oil cans, pivoting monocle windshield, all topped with a baked enamel red finish. Each replica comes with an Owners Title and Certificate of Authenticity. Color red.',4189,'60.78','101.31'), - -('S18_2957','1934 Ford V8 Coupe','Vintage Cars','1:18','Min Lin Diecast','Chrome Trim, Chrome Grille, Opening Hood, Opening Doors, Opening Trunk, Detailed Engine, Working Steering System',5649,'34.35','62.46'), - -('S18_3029','1999 Yamaha Speed Boat','Ships','1:18','Min Lin Diecast','Exact replica. Wood and Metal. Many extras including rigging, long boats, pilot house, anchors, etc. Comes with three masts, all square-rigged.',4259,'51.61','86.02'), - -('S18_3136','18th Century Vintage Horse Carriage','Vintage Cars','1:18','Red Start Diecast','Hand crafted diecast-like metal horse carriage is re-created in about 1:18 scale of antique horse carriage. This antique style metal Stagecoach is all hand-assembled with many different parts.\r\n\r\nThis collectible metal horse carriage is painted in classic Red, and features turning steering wheel and is entirely hand-finished.',5992,'60.74','104.72'), - -('S18_3140','1903 Ford Model A','Vintage Cars','1:18','Unimax Art Galleries','Features opening trunk, working steering system',3913,'68.30','136.59'), - -('S18_3232','1992 Ferrari 360 Spider red','Classic Cars','1:18','Unimax Art Galleries','his replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',8347,'77.90','169.34'), - -('S18_3233','1985 Toyota Supra','Classic Cars','1:18','Highway 66 Mini Classics','This model features soft rubber tires, working steering, rubber mud guards, authentic Ford logos, detailed undercarriage, opening doors and hood, removable split rear gate, full size spare mounted in bed, detailed interior with opening glove box',7733,'57.01','107.57'), - -('S18_3259','Collectable Wooden Train','Trains','1:18','Carousel DieCast Legends','Hand crafted wooden toy train set is in about 1:18 scale, 25 inches in total length including 2 additional carts, of actual vintage train. This antique style wooden toy train model set is all hand-assembled with 100% wood.',6450,'67.56','100.84'), - -('S18_3278','1969 Dodge Super Bee','Classic Cars','1:18','Min Lin Diecast','This replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',1917,'49.05','80.41'), - -('S18_3320','1917 Maxwell Touring Car','Vintage Cars','1:18','Exoto Designs','Features Gold Trim, Full Size Spare Tire, Chrome Trim, Chrome Grille, Opening Hood, Opening Doors, Opening Trunk, Detailed Engine, Working Steering System',7913,'57.54','99.21'), - -('S18_3482','1976 Ford Gran Torino','Classic Cars','1:18','Gearbox Collectibles','Highly detailed 1976 Ford Gran Torino \"Starsky and Hutch\" diecast model. Very well constructed and painted in red and white patterns.',9127,'73.49','146.99'), - -('S18_3685','1948 Porsche Type 356 Roadster','Classic Cars','1:18','Gearbox Collectibles','This model features working front and rear suspension on accurately replicated and actuating shock absorbers as well as opening engine cover, rear stabilizer flap, and 4 opening doors.',8990,'62.16','141.28'), - -('S18_3782','1957 Vespa GS150','Motorcycles','1:18','Studio M Art Models','Features rotating wheels , working kick stand. Comes with stand.',7689,'32.95','62.17'), - -('S18_3856','1941 Chevrolet Special Deluxe Cabriolet','Vintage Cars','1:18','Exoto Designs','Features opening hood, opening doors, opening trunk, wide white wall tires, front door arm rests, working steering system, leather upholstery. Color black.',2378,'64.58','105.87'), - -('S18_4027','1970 Triumph Spitfire','Classic Cars','1:18','Min Lin Diecast','Features include opening and closing doors. Color: White.',5545,'91.92','143.62'), - -('S18_4409','1932 Alfa Romeo 8C2300 Spider Sport','Vintage Cars','1:18','Exoto Designs','This 1:18 scale precision die cast replica features the 6 front headlights of the original, plus a detailed version of the 142 horsepower straight 8 engine, dual spares and their famous comprehensive dashboard. Color black.',6553,'43.26','92.03'), - -('S18_4522','1904 Buick Runabout','Vintage Cars','1:18','Exoto Designs','Features opening trunk, working steering system',8290,'52.66','87.77'), - -('S18_4600','1940s Ford truck','Trucks and Buses','1:18','Motor City Art Classics','This 1940s Ford Pick-Up truck is re-created in 1:18 scale of original 1940s Ford truck. This antique style metal 1940s Ford Flatbed truck is all hand-assembled. This collectible 1940\'s Pick-Up truck is painted in classic dark green color, and features rotating wheels.',3128,'84.76','121.08'), - -('S18_4668','1939 Cadillac Limousine','Vintage Cars','1:18','Studio M Art Models','Features completely detailed interior including Velvet flocked drapes,deluxe wood grain floor, and a wood grain casket with seperate chrome handles',6645,'23.14','50.31'), - -('S18_4721','1957 Corvette Convertible','Classic Cars','1:18','Classic Metal Creations','1957 die cast Corvette Convertible in Roman Red with white sides and whitewall tires. 1:18 scale quality die-cast with detailed engine and underbvody. Now you can own The Classic Corvette.',1249,'69.93','148.80'), - -('S18_4933','1957 Ford Thunderbird','Classic Cars','1:18','Studio M Art Models','This 1:18 scale precision die-cast replica, with its optional porthole hardtop and factory baked-enamel Thunderbird Bronze finish, is a 100% accurate rendition of this American classic.',3209,'34.21','71.27'), - -('S24_1046','1970 Chevy Chevelle SS 454','Classic Cars','1:24','Unimax Art Galleries','This model features rotating wheels, working streering system and opening doors. All parts are particularly delicate due to their precise scale and require special care and attention. It should not be picked up by the doors, roof, hood or trunk.',1005,'49.24','73.49'), - -('S24_1444','1970 Dodge Coronet','Classic Cars','1:24','Highway 66 Mini Classics','1:24 scale die-cast about 18\" long doors open, hood opens and rubber wheels',4074,'32.37','57.80'), - -('S24_1578','1997 BMW R 1100 S','Motorcycles','1:24','Autoart Studio Design','Detailed scale replica with working suspension and constructed from over 70 parts',7003,'60.86','112.70'), - -('S24_1628','1966 Shelby Cobra 427 S/C','Classic Cars','1:24','Carousel DieCast Legends','This diecast model of the 1966 Shelby Cobra 427 S/C includes many authentic details and operating parts. The 1:24 scale model of this iconic lighweight sports car from the 1960s comes in silver and it\'s own display case.',8197,'29.18','50.31'), - -('S24_1785','1928 British Royal Navy Airplane','Planes','1:24','Classic Metal Creations','Official logos and insignias',3627,'66.74','109.42'), - -('S24_1937','1939 Chevrolet Deluxe Coupe','Vintage Cars','1:24','Motor City Art Classics','This 1:24 scale die-cast replica of the 1939 Chevrolet Deluxe Coupe has the same classy look as the original. Features opening trunk, hood and doors and a showroom quality baked enamel finish.',7332,'22.57','33.19'), - -('S24_2000','1960 BSA Gold Star DBD34','Motorcycles','1:24','Highway 66 Mini Classics','Detailed scale replica with working suspension and constructed from over 70 parts',15,'37.32','76.17'), - -('S24_2011','18th century schooner','Ships','1:24','Carousel DieCast Legends','All wood with canvas sails. Many extras including rigging, long boats, pilot house, anchors, etc. Comes with 4 masts, all square-rigged.',1898,'82.34','122.89'), - -('S24_2022','1938 Cadillac V-16 Presidential Limousine','Vintage Cars','1:24','Classic Metal Creations','This 1:24 scale precision die cast replica of the 1938 Cadillac V-16 Presidential Limousine has all the details of the original, from the flags on the front to an opening back seat compartment complete with telephone and rifle. Features factory baked-enamel black finish, hood goddess ornament, working jump seats.',2847,'20.61','44.80'), - -('S24_2300','1962 Volkswagen Microbus','Trucks and Buses','1:24','Autoart Studio Design','This 1:18 scale die cast replica of the 1962 Microbus is loaded with features: A working steering system, opening front doors and tailgate, and famous two-tone factory baked enamel finish, are all topped of by the sliding, real fabric, sunroof.',2327,'61.34','127.79'), - -('S24_2360','1982 Ducati 900 Monster','Motorcycles','1:24','Highway 66 Mini Classics','Features two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand',6840,'47.10','69.26'), - -('S24_2766','1949 Jaguar XK 120','Classic Cars','1:24','Classic Metal Creations','Precision-engineered from original Jaguar specification in perfect scale ratio. Features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',2350,'47.25','90.87'), - -('S24_2840','1958 Chevy Corvette Limited Edition','Classic Cars','1:24','Carousel DieCast Legends','The operating parts of this 1958 Chevy Corvette Limited Edition are particularly delicate due to their precise scale and require special care and attention. Features rotating wheels, working streering, opening doors and trunk. Color dark green.',2542,'15.91','35.36'), - -('S24_2841','1900s Vintage Bi-Plane','Planes','1:24','Autoart Studio Design','Hand crafted diecast-like metal bi-plane is re-created in about 1:24 scale of antique pioneer airplane. All hand-assembled with many different parts. Hand-painted in classic yellow and features correct markings of original airplane.',5942,'34.25','68.51'), - -('S24_2887','1952 Citroen-15CV','Classic Cars','1:24','Exoto Designs','Precision crafted hand-assembled 1:18 scale reproduction of the 1952 15CV, with its independent spring suspension, working steering system, opening doors and hood, detailed engine and instrument panel, all topped of with a factory fresh baked enamel finish.',1452,'72.82','117.44'), - -('S24_2972','1982 Lamborghini Diablo','Classic Cars','1:24','Second Gear Diecast','This replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',7723,'16.24','37.76'), - -('S24_3151','1912 Ford Model T Delivery Wagon','Vintage Cars','1:24','Min Lin Diecast','This model features chrome trim and grille, opening hood, opening doors, opening trunk, detailed engine, working steering system. Color white.',9173,'46.91','88.51'), - -('S24_3191','1969 Chevrolet Camaro Z28','Classic Cars','1:24','Exoto Designs','1969 Z/28 Chevy Camaro 1:24 scale replica. The operating parts of this limited edition 1:24 scale diecast model car 1969 Chevy Camaro Z28- hood, trunk, wheels, streering, suspension and doors- are particularly delicate due to their precise scale and require special care and attention.',4695,'50.51','85.61'), - -('S24_3371','1971 Alpine Renault 1600s','Classic Cars','1:24','Welly Diecast Productions','This 1971 Alpine Renault 1600s replica Features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',7995,'38.58','61.23'), - -('S24_3420','1937 Horch 930V Limousine','Vintage Cars','1:24','Autoart Studio Design','Features opening hood, opening doors, opening trunk, wide white wall tires, front door arm rests, working steering system',2902,'26.30','65.75'), - -('S24_3432','2002 Chevy Corvette','Classic Cars','1:24','Gearbox Collectibles','The operating parts of this limited edition Diecast 2002 Chevy Corvette 50th Anniversary Pace car Limited Edition are particularly delicate due to their precise scale and require special care and attention. Features rotating wheels, poseable streering, opening doors and trunk.',9446,'62.11','107.08'), - -('S24_3816','1940 Ford Delivery Sedan','Vintage Cars','1:24','Carousel DieCast Legends','Chrome Trim, Chrome Grille, Opening Hood, Opening Doors, Opening Trunk, Detailed Engine, Working Steering System. Color black.',6621,'48.64','83.86'), - -('S24_3856','1956 Porsche 356A Coupe','Classic Cars','1:18','Classic Metal Creations','Features include: Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',6600,'98.30','140.43'), - -('S24_3949','Corsair F4U ( Bird Cage)','Planes','1:24','Second Gear Diecast','Has retractable wheels and comes with a stand. Official logos and insignias.',6812,'29.34','68.24'), - -('S24_3969','1936 Mercedes Benz 500k Roadster','Vintage Cars','1:24','Red Start Diecast','This model features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system and rubber wheels. Color black.',2081,'21.75','41.03'), - -('S24_4048','1992 Porsche Cayenne Turbo Silver','Classic Cars','1:24','Exoto Designs','This replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',6582,'69.78','118.28'), - -('S24_4258','1936 Chrysler Airflow','Vintage Cars','1:24','Second Gear Diecast','Features opening trunk, working steering system. Color dark green.',4710,'57.46','97.39'), - -('S24_4278','1900s Vintage Tri-Plane','Planes','1:24','Unimax Art Galleries','Hand crafted diecast-like metal Triplane is Re-created in about 1:24 scale of antique pioneer airplane. This antique style metal triplane is all hand-assembled with many different parts.',2756,'36.23','72.45'), - -('S24_4620','1961 Chevrolet Impala','Classic Cars','1:18','Classic Metal Creations','This 1:18 scale precision die-cast reproduction of the 1961 Chevrolet Impala has all the features-doors, hood and trunk that open; detailed 409 cubic-inch engine; chrome dashboard and stick shift, two-tone interior; working steering system; all topped of with a factory baked-enamel finish.',7869,'32.33','80.84'), - -('S32_1268','1980’s GM Manhattan Express','Trucks and Buses','1:32','Motor City Art Classics','This 1980’s era new look Manhattan express is still active, running from the Bronx to mid-town Manhattan. Has 35 opeining windows and working lights. Needs a battery.',5099,'53.93','96.31'), - -('S32_1374','1997 BMW F650 ST','Motorcycles','1:32','Exoto Designs','Features official die-struck logos and baked enamel finish. Comes with stand.',178,'66.92','99.89'), - -('S32_2206','1982 Ducati 996 R','Motorcycles','1:32','Gearbox Collectibles','Features rotating wheels , working kick stand. Comes with stand.',9241,'24.14','40.23'), - -('S32_2509','1954 Greyhound Scenicruiser','Trucks and Buses','1:32','Classic Metal Creations','Model features bi-level seating, 50 windows, skylights & glare resistant glass, working steering system, original logos',2874,'25.98','54.11'), - -('S32_3207','1950\'s Chicago Surface Lines Streetcar','Trains','1:32','Gearbox Collectibles','This streetcar is a joy to see. It has 80 separate windows, electric wire guides, detailed interiors with seats, poles and drivers controls, rolling and turning wheel assemblies, plus authentic factory baked-enamel finishes (Green Hornet for Chicago and Cream and Crimson for Boston).',8601,'26.72','62.14'), - -('S32_3522','1996 Peterbilt 379 Stake Bed with Outrigger','Trucks and Buses','1:32','Red Start Diecast','This model features, opening doors, detailed engine, working steering, tinted windows, detailed interior, die-struck logos, removable stakes operating outriggers, detachable second trailer, functioning 360-degree self loader, precision molded resin trailer and trim, baked enamel finish on cab',814,'33.61','64.64'), - -('S32_4289','1928 Ford Phaeton Deluxe','Vintage Cars','1:32','Highway 66 Mini Classics','This model features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system',136,'33.02','68.79'), - -('S32_4485','1974 Ducati 350 Mk3 Desmo','Motorcycles','1:32','Second Gear Diecast','This model features two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand',3341,'56.13','102.05'), - -('S50_1341','1930 Buick Marquette Phaeton','Vintage Cars','1:50','Studio M Art Models','Features opening trunk, working steering system',7062,'27.06','43.64'), - -('S50_1392','Diamond T620 Semi-Skirted Tanker','Trucks and Buses','1:50','Highway 66 Mini Classics','This limited edition model is licensed and perfectly scaled for Lionel Trains. The Diamond T620 has been produced in solid precision diecast and painted with a fire baked enamel finish. It comes with a removable tanker and is a perfect model to add authenticity to your static train or car layout or to just have on display.',1016,'68.29','115.75'), - -('S50_1514','1962 City of Detroit Streetcar','Trains','1:50','Classic Metal Creations','This streetcar is a joy to see. It has 99 separate windows, electric wire guides, detailed interiors with seats, poles and drivers controls, rolling and turning wheel assemblies, plus authentic factory baked-enamel finishes (Green Hornet for Chicago and Cream and Crimson for Boston).',1645,'37.49','58.58'), - -('S50_4713','2002 Yamaha YZR M1','Motorcycles','1:50','Autoart Studio Design','Features rotating wheels , working kick stand. Comes with stand.',600,'34.17','81.36'), - -('S700_1138','The Schooner Bluenose','Ships','1:700','Autoart Studio Design','All wood with canvas sails. Measures 31 1/2 inches in Length, 22 inches High and 4 3/4 inches Wide. Many extras.\r\nThe schooner Bluenose was built in Nova Scotia in 1921 to fish the rough waters off the coast of Newfoundland. Because of the Bluenose racing prowess she became the pride of all Canadians. Still featured on stamps and the Canadian dime, the Bluenose was lost off Haiti in 1946.',1897,'34.00','66.67'), - -('S700_1691','American Airlines: B767-300','Planes','1:700','Min Lin Diecast','Exact replia with official logos and insignias and retractable wheels',5841,'51.15','91.34'), - -('S700_1938','The Mayflower','Ships','1:700','Studio M Art Models','Measures 31 1/2 inches Long x 25 1/2 inches High x 10 5/8 inches Wide\r\nAll wood with canvas sail. Extras include long boats, rigging, ladders, railing, anchors, side cannons, hand painted, etc.',737,'43.30','86.61'), - -('S700_2047','HMS Bounty','Ships','1:700','Unimax Art Galleries','Measures 30 inches Long x 27 1/2 inches High x 4 3/4 inches Wide. \r\nMany extras including rigging, long boats, pilot house, anchors, etc. Comes with three masts, all square-rigged.',3501,'39.83','90.52'), - -('S700_2466','America West Airlines B757-200','Planes','1:700','Motor City Art Classics','Official logos and insignias. Working steering system. Rotating jet engines',9653,'68.80','99.72'), - -('S700_2610','The USS Constitution Ship','Ships','1:700','Red Start Diecast','All wood with canvas sails. Measures 31 1/2\" Length x 22 3/8\" High x 8 1/4\" Width. Extras include 4 boats on deck, sea sprite on bow, anchors, copper railing, pilot houses, etc.',7083,'33.97','72.28'), - -('S700_2824','1982 Camaro Z28','Classic Cars','1:18','Carousel DieCast Legends','Features include opening and closing doors. Color: White. \r\nMeasures approximately 9 1/2\" Long.',6934,'46.53','101.15'), - -('S700_2834','ATA: B757-300','Planes','1:700','Highway 66 Mini Classics','Exact replia with official logos and insignias and retractable wheels',7106,'59.33','118.65'), - -('S700_3167','F/A 18 Hornet 1/72','Planes','1:72','Motor City Art Classics','10\" Wingspan with retractable landing gears.Comes with pilot',551,'54.40','80.00'), - -('S700_3505','The Titanic','Ships','1:700','Carousel DieCast Legends','Completed model measures 19 1/2 inches long, 9 inches high, 3inches wide and is in barn red/black. All wood and metal.',1956,'51.09','100.17'), - -('S700_3962','The Queen Mary','Ships','1:700','Welly Diecast Productions','Exact replica. Wood and Metal. Many extras including rigging, long boats, pilot house, anchors, etc. Comes with three masts, all square-rigged.',5088,'53.63','99.31'), - -('S700_4002','American Airlines: MD-11S','Planes','1:700','Second Gear Diecast','Polished finish. Exact replia with official logos and insignias and retractable wheels',8820,'36.27','74.03'), - -('S72_1253','Boeing X-32A JSF','Planes','1:72','Motor City Art Classics','10\" Wingspan with retractable landing gears.Comes with pilot',4857,'32.77','49.66'), - -('S72_3212','Pont Yacht','Ships','1:72','Unimax Art Galleries','Measures 38 inches Long x 33 3/4 inches High. Includes a stand.\r\nMany extras including rigging, long boats, pilot house, anchors, etc. Comes with 2 masts, all square-rigged',414,'33.30','54.60'); - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - diff --git a/database-files/ngo_db.sql b/database-files/ngo_db.sql deleted file mode 100644 index 526ba0070c..0000000000 --- a/database-files/ngo_db.sql +++ /dev/null @@ -1,63 +0,0 @@ -DROP DATABASE IF EXISTS ngo_database; -CREATE DATABASE IF NOT EXISTS ngo_database; - -USE ngo_database; - - -CREATE TABLE IF NOT EXISTS WorldNGOs ( - NGO_ID INT AUTO_INCREMENT PRIMARY KEY, - Name VARCHAR(255) NOT NULL, - Country VARCHAR(100) NOT NULL, - Founding_Year INTEGER, - Focus_Area VARCHAR(100), - Website VARCHAR(255) -); - -CREATE TABLE IF NOT EXISTS Projects ( - Project_ID INT AUTO_INCREMENT PRIMARY KEY, - Project_Name VARCHAR(255) NOT NULL, - Focus_Area VARCHAR(100), - Budget DECIMAL(15, 2), - NGO_ID INT, - Start_Date DATE, - End_Date DATE, - FOREIGN KEY (NGO_ID) REFERENCES WorldNGOs(NGO_ID) -); - -CREATE TABLE IF NOT EXISTS Donors ( - Donor_ID INT AUTO_INCREMENT PRIMARY KEY, - Donor_Name VARCHAR(255) NOT NULL, - Donor_Type ENUM('Individual', 'Organization') NOT NULL, - Donation_Amount DECIMAL(15, 2), - NGO_ID INT, - FOREIGN KEY (NGO_ID) REFERENCES WorldNGOs(NGO_ID) -); - -INSERT INTO WorldNGOs (Name, Country, Founding_Year, Focus_Area, Website) -VALUES -('World Wildlife Fund', 'United States', 1961, 'Environmental Conservation', 'https://www.worldwildlife.org'), -('Doctors Without Borders', 'France', 1971, 'Medical Relief', 'https://www.msf.org'), -('Oxfam International', 'United Kingdom', 1995, 'Poverty and Inequality', 'https://www.oxfam.org'), -('Amnesty International', 'United Kingdom', 1961, 'Human Rights', 'https://www.amnesty.org'), -('Save the Children', 'United States', 1919, 'Child Welfare', 'https://www.savethechildren.org'), -('Greenpeace', 'Netherlands', 1971, 'Environmental Protection', 'https://www.greenpeace.org'), -('International Red Cross', 'Switzerland', 1863, 'Humanitarian Aid', 'https://www.icrc.org'), -('CARE International', 'Switzerland', 1945, 'Global Poverty', 'https://www.care-international.org'), -('Habitat for Humanity', 'United States', 1976, 'Affordable Housing', 'https://www.habitat.org'), -('Plan International', 'United Kingdom', 1937, 'Child Rights', 'https://plan-international.org'); - -INSERT INTO Projects (Project_Name, Focus_Area, Budget, NGO_ID, Start_Date, End_Date) -VALUES -('Save the Amazon', 'Environmental Conservation', 5000000.00, 1, '2022-01-01', '2024-12-31'), -('Emergency Medical Aid in Syria', 'Medical Relief', 3000000.00, 2, '2023-03-01', '2023-12-31'), -('Education for All', 'Poverty and Inequality', 2000000.00, 3, '2021-06-01', '2025-05-31'), -('Human Rights Advocacy in Asia', 'Human Rights', 1500000.00, 4, '2022-09-01', '2023-08-31'), -('Child Nutrition Program', 'Child Welfare', 2500000.00, 5, '2022-01-01', '2024-01-01'); - -INSERT INTO Donors (Donor_Name, Donor_Type, Donation_Amount, NGO_ID) -VALUES -('Bill & Melinda Gates Foundation', 'Organization', 10000000.00, 1), -('Elon Musk', 'Individual', 5000000.00, 2), -('Google.org', 'Organization', 2000000.00, 3), -('Open Society Foundations', 'Organization', 3000000.00, 4), -('Anonymous Philanthropist', 'Individual', 1000000.00, 5); \ No newline at end of file From 019ce496a15a7b0b86304255b83e542cf020f4ed Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:00:47 -0500 Subject: [PATCH 268/305] Update 02_SyncSpace-data.sql --- database-files/02_SyncSpace-data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 9d6ddde12a..3db086a8e1 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -211,7 +211,7 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Egan Deedes', 'Marketing', 'Shell', 'San Francisco', 'Searching for Roommates', 'Searching for Carpool', 2300, '4 months', 1, 'Active', 35, 3, 'Is a talented artist and loves to create beautiful paintings', 3, 9, 1); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); -insert into Student(Name, Major, Location, CommunityID) values ('Kevin Chen', 'Data Science', 'San Jose', 2); +insert into Student(Name, Major, Location, HousingStatus, CarpoolStatus, LeaseDuration, CommunityID) values ('Kevin Chen', 'Data Science', 'San Jose', 'Searching for Housing', 'Searching for Carpool', '6 months', 2); -- 6. Events Data (depends on CityCommunity) From 8062d335b20b63aee76612f1f1464b8958f7753f Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:25:36 -0500 Subject: [PATCH 269/305] upa --- api/backend/student_kevin/kevin_routes.py | 16 ++++++++-------- app/src/pages/24_Edit_Profile.py | 12 ++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/api/backend/student_kevin/kevin_routes.py b/api/backend/student_kevin/kevin_routes.py index a60a8baa1c..796c3994fb 100644 --- a/api/backend/student_kevin/kevin_routes.py +++ b/api/backend/student_kevin/kevin_routes.py @@ -100,31 +100,31 @@ def update_profile(): the_data = request.json current_app.logger.info(the_data) - company = the_data.get('Company') - location = the_data.get('Location') + #company = the_data.get('Company') + #location = the_data.get('Location') housing_status = the_data.get('HousingStatus') carpool_status = the_data.get('CarpoolStatus') - lease_duration = the_data.get('LeaseDuration') + #lease_duration = the_data.get('LeaseDuration') budget = the_data.get('Budget') cleanliness = the_data.get('Cleanliness') lifestyle = the_data.get('Lifestyle') time = the_data.get('CommuteTime') days = the_data.get('CommuteDays') - bio = the_data.get('Bio') + #bio = the_data.get('Bio') name = the_data.get('Name') query = ''' UPDATE Student - SET Company = %s, Location = %s, HousingStatus = %s, - CarpoolStatus = %s, Budget = %s, LeaseDuration = %s, - Cleanliness = %s, Lifestyle=%s, CommuteTime=%s, CommuteDays=%s, Bio = %s + SET HousingStatus = %s, + CarpoolStatus = %s, Budget = %s, + Cleanliness = %s, Lifestyle=%s, CommuteTime=%s, CommuteDays=%s WHERE Name = %s ''' current_app.logger.info(query) cursor = db.get_db().cursor() - cursor.execute(query, (company, location, housing_status, carpool_status, budget, lease_duration, cleanliness, lifestyle, time, days, bio, name)) + cursor.execute(query, (housing_status, carpool_status, budget, cleanliness, lifestyle, time, days, name)) db.get_db().commit() response = make_response({"message": "Profile updated successfully"}) diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index bdb96c9956..136380ed6a 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -10,34 +10,30 @@ st.title('My Profile') -company=st.text_input('Company') -location=st.text_input('Location') +#company=st.text_input('Company') +#location=st.text_input('Location') housing_status=st.text_input('Housing Status', placeholder='e.g. Searching for Housing') carpool_status=st.text_input('Carpool Status', placeholder='e.g. Has Car') budget= st.number_input('Budget', min_value=1000, max_value=3000, step=50) -lease_duration=st.text_input('Lease Duration', placeholder='e.g. 1 year, 6 months') +#lease_duration=st.text_input('Lease Duration', placeholder='e.g. 1 year, 6 months') cleanliness = st.number_input('Cleanliness', min_value=1, max_value=5, step=1) lifestyle = st.text_input('Lifestyle', placeholder='e.g. Active, Quiet') commute_time = st.number_input('Commute Time (minutes)', min_value=10, max_value=70, step=5) commute_days = st.number_input('Number of Commute Days', min_value=1, max_value=5, step=1) -bio = st.text_input('Biography') +#bio = st.text_input('Biography') name = st.session_state['first_name'] url = 'http://api:4000/c/profile' if st.button('Create Profile'): data = { - "Company" : company, - "Location" : location, "HousingStatus" : housing_status, "CarpoolStatus" :carpool_status, "Budget" : budget, - "LeaseDuration" : lease_duration, "Cleanliness" : cleanliness, "Lifestyle" : lifestyle, "CommuteTime": commute_time, "CommuteDays" : commute_days, - "Bio" : bio, "Name": name } response = requests.put(url, json=data) From d946db30f5612bad051246508ae903be3dc9b5ef Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:26:04 -0500 Subject: [PATCH 270/305] updating --- .../04_Access_System_Health_Dashboard.py | 100 ++++++++++++++---- 1 file changed, 77 insertions(+), 23 deletions(-) diff --git a/app/src/pages/04_Access_System_Health_Dashboard.py b/app/src/pages/04_Access_System_Health_Dashboard.py index 35d5d24d0b..73ff7a8399 100644 --- a/app/src/pages/04_Access_System_Health_Dashboard.py +++ b/app/src/pages/04_Access_System_Health_Dashboard.py @@ -3,6 +3,7 @@ import streamlit as st from modules.nav import SideBarLinks import requests +import pandas as pd st.set_page_config(layout = 'wide') @@ -10,27 +11,80 @@ st.title('System Health Dasbhoard') -# create a 2 column layout -col1, col2 = st.columns(2) - -# add one number input for variable 1 into column 1 -with col1: - var_01 = st.number_input('Variable 01:', - step=1) - -# add another number input for variable 2 into column 2 -with col2: - var_02 = st.number_input('Variable 02:', - step=1) - -logger.info(f'var_01 = {var_01}') -logger.info(f'var_02 = {var_02}') - -# add a button to use the values entered into the number field to send to the -# prediction function via the REST API -if st.button('Calculate Prediction', - type='primary', - use_container_width=True): - results = requests.get(f'http://api:4000/c/prediction/{var_01}/{var_02}').json() - st.dataframe(results) +# API endpoint for System Health logs +url = "http://api:4000/t/SystemHealth" + +# Fetch system logs with caching to avoid redundant API calls +@st.cache_data(show_spinner=True) +def fetch_system_health_logs(): + """Fetch logs from the /SystemHealth endpoint.""" + try: + response = requests.get(url) + response.raise_for_status() # Raise exception for HTTP errors + data = response.json() # Assuming the API returns JSON + # Convert to DataFrame for better handling + logs_df = pd.DataFrame(data, columns=["LogID", "Timestamp", "Status", "MetricType"]) + return logs_df + except requests.exceptions.RequestException as e: + st.error(f"Error fetching system health logs: {e}") + return pd.DataFrame() + +# Fetch data +logs_df = fetch_system_health_logs() + +# Main layout +st.title("User Activity Logs for Troubleshooting") + +if not logs_df.empty: + st.write("### System Health Logs") + + # Convert Timestamp column to datetime + logs_df["Timestamp"] = pd.to_datetime(logs_df["Timestamp"]) + + # Interactive Filters + with st.sidebar: + st.header("Filters") + status_filter = st.multiselect("Filter by Status", logs_df["Status"].unique(), default=logs_df["Status"].unique()) + metric_filter = st.multiselect("Filter by Metric Type", logs_df["MetricType"].unique(), default=logs_df["MetricType"].unique()) + date_range = st.date_input("Filter by Date Range", + [logs_df["Timestamp"].min().date(), logs_df["Timestamp"].max().date()]) + + # Apply Filters + filtered_logs = logs_df[ + (logs_df["Status"].isin(status_filter)) & + (logs_df["MetricType"].isin(metric_filter)) & + (logs_df["Timestamp"].dt.date.between(date_range[0], date_range[1])) + ] + + # Display Filtered Logs + st.write("### Filtered Logs") + st.dataframe(filtered_logs, use_container_width=True) + + # Summary Metrics + st.write("### Summary Metrics") + col1, col2, col3 = st.columns(3) + with col1: + st.metric("Total Logs", len(filtered_logs)) + with col2: + st.metric("Unique Status Types", filtered_logs["Status"].nunique()) + with col3: + st.metric("Unique Metric Types", filtered_logs["MetricType"].nunique()) + + # Download Filtered Logs + st.write("### Export Data") + csv_data = filtered_logs.to_csv(index=False) + st.download_button( + label="Download Logs as CSV", + data=csv_data, + file_name="filtered_user_activity_logs.csv", + mime="text/csv", + ) +else: + st.warning("No logs available to display.") + +# Footer +st.write("---") +st.write("#### Notes") +st.text("Logs are fetched in real-time from the /SystemHealth API.") + \ No newline at end of file From a7da9f9f987b7499ae46edda3b39f1fdbd90149a Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:27:55 -0500 Subject: [PATCH 271/305] deleting --- app/src/pages/03_Simple_Chat_Bot.py | 66 ----------------------------- 1 file changed, 66 deletions(-) delete mode 100644 app/src/pages/03_Simple_Chat_Bot.py diff --git a/app/src/pages/03_Simple_Chat_Bot.py b/app/src/pages/03_Simple_Chat_Bot.py deleted file mode 100644 index fa8db58e84..0000000000 --- a/app/src/pages/03_Simple_Chat_Bot.py +++ /dev/null @@ -1,66 +0,0 @@ -import logging -logger = logging.getLogger(__name__) -import streamlit as st -from streamlit_extras.app_logo import add_logo -import numpy as np -import random -import time -from modules.nav import SideBarLinks - -SideBarLinks() - -def response_generator(): - response = random.choice ( - [ - "Hello there! How can I assist you today?", - "Hi, human! Is there anything I can help you with?", - "Do you need help?", - ] - ) - for word in response.split(): - yield word + " " - time.sleep(0.05) -#----------------------------------------------------------------------- - -st.set_page_config (page_title="Sample Chat Bot", page_icon="🤖") -add_logo("assets/logo.png", height=400) - -st.title("Echo Bot 🤖") - -st.markdown(""" - Currently, this chat bot only returns a random message from the following list: - - Hello there! How can I assist you today? - - Hi, human! Is there anything I can help you with? - - Do you need help? - """ - ) - - -# Initialize chat history -if "messages" not in st.session_state: - st.session_state.messages = [] - -# Display chat message from history on app rerun -for message in st.session_state.messages: - with st.chat_message(message["role"]): - st.markdown(message["content"]) - -# React to user input -if prompt := st.chat_input("What is up?"): - # Display user message in chat message container - with st.chat_message("user"): - st.markdown(prompt) - - # Add user message to chat history - st.session_state.messages.append({"role": "user", "content": prompt}) - - response = f"Echo: {prompt}" - - # Display assistant response in chat message container - with st.chat_message("assistant"): - # st.markdown(response) - response = st.write_stream(response_generator()) - - # Add assistant response to chat history - st.session_state.messages.append({"role": "assistant", "content": response}) - From 25422ba499a97716ffd3505199c210708916eb3e Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:28:25 -0500 Subject: [PATCH 272/305] updating name --- ...m_Health_Dashboard.py => 03_Access_System_Health_Dashboard.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/src/pages/{04_Access_System_Health_Dashboard.py => 03_Access_System_Health_Dashboard.py} (100%) diff --git a/app/src/pages/04_Access_System_Health_Dashboard.py b/app/src/pages/03_Access_System_Health_Dashboard.py similarity index 100% rename from app/src/pages/04_Access_System_Health_Dashboard.py rename to app/src/pages/03_Access_System_Health_Dashboard.py From f60e7be58cef7b8bdb1471552dca6656a7c9116a Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:33:07 -0500 Subject: [PATCH 273/305] update --- api/backend/tech_support_analyst/michael_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/backend/tech_support_analyst/michael_routes.py b/api/backend/tech_support_analyst/michael_routes.py index c653bf6781..092952eaee 100644 --- a/api/backend/tech_support_analyst/michael_routes.py +++ b/api/backend/tech_support_analyst/michael_routes.py @@ -38,7 +38,7 @@ def get_SystemHealth(): Timestamp, Status, MetricType - FROM SystemLog + FROM SystemHealth ''' cursor = db.get_db().cursor() From e98d1394fe3fa2f829a54b1b62786a40a43ed5ce Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:34:06 -0500 Subject: [PATCH 274/305] Update 24_Edit_Profile.py --- app/src/pages/24_Edit_Profile.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index 136380ed6a..ab02917caf 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -10,10 +10,8 @@ st.title('My Profile') -#company=st.text_input('Company') -#location=st.text_input('Location') -housing_status=st.text_input('Housing Status', placeholder='e.g. Searching for Housing') -carpool_status=st.text_input('Carpool Status', placeholder='e.g. Has Car') +housing_status = st.selectbox("Housing Status", ["Searching for Housing", "Searching for Roommates", "Complete"]) +carpool_status = st.selectbox("Carpool Status", ["Searching for Carpool", "Has Car", "Complete"]) budget= st.number_input('Budget', min_value=1000, max_value=3000, step=50) #lease_duration=st.text_input('Lease Duration', placeholder='e.g. 1 year, 6 months') cleanliness = st.number_input('Cleanliness', min_value=1, max_value=5, step=1) From 40952a4ba03581762d853abd287aea6c2f7186ab Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:35:27 -0500 Subject: [PATCH 275/305] update --- app/src/pages/00_Tech_Support_Analyst_Home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/00_Tech_Support_Analyst_Home.py b/app/src/pages/00_Tech_Support_Analyst_Home.py index 225d415fd1..9989f0266d 100644 --- a/app/src/pages/00_Tech_Support_Analyst_Home.py +++ b/app/src/pages/00_Tech_Support_Analyst_Home.py @@ -27,4 +27,4 @@ if st.button('Access System Health Dashboard', type='primary', use_container_width=True): - st.switch_page('pages/04_Access_System_Health_Dashboard.py') \ No newline at end of file + st.switch_page('pages/03_Access_System_Health_Dashboard.py') \ No newline at end of file From 7a75d6ca1f09f5f7a6ed256fdfb0bb856363d806 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:42:44 -0500 Subject: [PATCH 276/305] Update README.md --- README.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/README.md b/README.md index 77a03ecc24..53d604e3bd 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,6 @@ Currently, there are three major components which will each run in their own Doc - Flask REST api in the `./api` directory - SQL files for your data model and data base in the `./database-files` directory -## Suggestion for Learning the Project Code Base - -If you are not familiar with web app development, this code base might be confusing. You will probably want two versions though: -1. One version for you to explore, try things, break things, etc. We'll call this your **Personal Repo** -1. One version of the repo that your team will share. We'll call this the **Team Repo**. - ### Setting Up Your Personal Repo @@ -40,15 +34,6 @@ If you are not familiar with web app development, this code base might be confus 1. Set up the `.env` file in the `api` folder based on the `.env.template` file. 1. Start the docker containers. -### Setting Up Your Team Repo - -Before you start: As a team, one person needs to assume the role of *Team Project Repo Owner*. - -1. The Team Project Repo Owner needs to fork this template repo into their own GitHub account **and give the repo a name consistent with your project's name**. If you're worried that the repo is public, don't. Every team is doing a different project. -1. In the newly forked team repo, the Team Project Repo Owner should go to the **Settings** tab, choose **Collaborators and Teams** on the left-side panel. Add each of your team members to the repository with Write access. -1. Each of the other team members will receive an invitation to join. Obviously accept the invite. -1. Once that process is complete, each team member, including the repo owner, should clone the Team's Repo to their local machines (in a different location than your Personal Project Repo). - ## Controlling the Containers - `docker compose up -d` to start all the containers in the background @@ -57,30 +42,11 @@ Before you start: As a team, one person needs to assume the role of *Team Projec - `docker compose stop` to "turn off" the containers but not delete them. -## Handling User Role Access and Control - -In most applications, when a user logs in, they assume a particular role. For instance, when one logs in to a stock price prediction app, they may be a single investor, a portfolio manager, or a corporate executive (of a publicly traded company). Each of those *roles* will likely present some similar features as well as some different features when compared to the other roles. So, how do you accomplish this in Streamlit? This is sometimes called Role-based Access Control, or **RBAC** for short. - -The code in this project demonstrates how to implement a simple RBAC system in Streamlit but without actually using user authentication (usernames and passwords). The Streamlit pages from the original template repo are split up among 3 roles - Political Strategist, USAID Worker, and a System Administrator role (this is used for any sort of system tasks such as re-training ML model, etc.). It also demonstrates how to deploy an ML model. -Wrapping your head around this will take a little time and exploration of this code base. Some highlights are below. -### Getting Started with the RBAC -1. We need to turn off the standard panel of links on the left side of the Streamlit app. This is done through the `app/src/.streamlit/config.toml` file. So check that out. We are turning it off so we can control directly what links are shown. -1. Then I created a new python module in `app/src/modules/nav.py`. When you look at the file, you will se that there are functions for basically each page of the application. The `st.sidebar.page_link(...)` adds a single link to the sidebar. We have a separate function for each page so that we can organize the links/pages by role. -1. Next, check out the `app/src/Home.py` file. Notice that there are 3 buttons added to the page and when one is clicked, it redirects via `st.switch_page(...)` to that Roles Home page in `app/src/pages`. But before the redirect, I set a few different variables in the Streamlit `session_state` object to track role, first name of the user, and that the user is now authenticated. -1. Notice near the top of `app/src/Home.py` and all other pages, there is a call to `SideBarLinks(...)` from the `app/src/nav.py` module. This is the function that will use the role set in `session_state` to determine what links to show the user in the sidebar. -1. The pages are organized by Role. Pages that start with a `0` are related to the *Political Strategist* role. Pages that start with a `1` are related to the *USAID worker* role. And, pages that start with a `2` are related to The *System Administrator* role. -## Deploying An ML Model (Totally Optional for CS3200 Project) -*Note*: This project only contains the infrastructure for a hypothetical ML model. -1. Build, train, and test your ML model in a Jupyter Notebook. -1. Once you're happy with the model's performance, convert your Jupyter Notebook code for the ML model to a pure python script. You can include the `training` and `testing` functionality as well as the `prediction` functionality. You may or may not need to include data cleaning, though. -1. Check out the `api/backend/ml_models` module. In this folder, I've put a sample (read *fake*) ML model in `model01.py`. The `predict` function will be called by the Flask REST API to perform '*real-time*' prediction based on model parameter values that are stored in the database. **Important**: you would never want to hard code the model parameter weights directly in the prediction function. tl;dr - take some time to look over the code in `model01.py`. -1. The prediction route for the REST API is in `api/backend/customers/customer_routes.py`. Basically, it accepts two URL parameters and passes them to the `prediction` function in the `ml_models` module. The `prediction` route/function packages up the value(s) it receives from the model's `predict` function and send its back to Streamlit as JSON. -1. Back in streamlit, check out `app/src/pages/11_Prediction.py`. Here, I create two numeric input fields. When the button is pressed, it makes a request to the REST API URL `/c/prediction/.../...` function and passes the values from the two inputs as URL parameters. It gets back the results from the route and displays them. Nothing fancy here. From d1eb481870893a52ce98c836151af58a32f0cf4f Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:46:49 -0500 Subject: [PATCH 277/305] Update 24_Edit_Profile.py --- app/src/pages/24_Edit_Profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index ab02917caf..a5ce0c00e5 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -23,7 +23,7 @@ url = 'http://api:4000/c/profile' -if st.button('Create Profile'): +if st.button('Update Profile'): data = { "HousingStatus" : housing_status, "CarpoolStatus" :carpool_status, From 269c2fdefa9a24976096704cb9148f9311976345 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:50:27 -0500 Subject: [PATCH 278/305] Update nav.py --- app/src/modules/nav.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 6e1d94ce08..965b62d725 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -65,6 +65,7 @@ def SideBarLinks(show_home=False): # add a logo to the sidebar always st.sidebar.image("assets/image.png", width=150) + st.sidebar.title("SyncSpace") # If there is no logged in user, redirect to the Home (Landing) page if "authenticated" not in st.session_state: From 184af5ab9dc4ffc25f81dcb92a8b84f35ac1cdc4 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:50:29 -0500 Subject: [PATCH 279/305] update for consistency --- app/src/modules/nav.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 6e1d94ce08..d66114f62b 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -16,22 +16,9 @@ def AboutPageNav(): #### ------------------------ Role of Technical Support Analyst ------------------------ def TechSupportAnalystHomeNav(): - st.sidebar.page_link( - "pages/00_Tech_Support_Analyst_Home.py", label="Tech Support Analyst Home", icon="👤" - ) - - -def SystemLogsNav(): - st.sidebar.page_link( - "pages/01_Run_System_Logs.py", label="System Logs", icon="⚙️" - ) - - -def TicketOverviewNav(): + st.sidebar.page_link("pages/00_Tech_Support_Analyst_Home.py", label="Tech Support Analyst Home", icon="👤") + st.sidebar.page_link("pages/01_Run_System_Logs.py", label="System Logs", icon="⚙️") st.sidebar.page_link("pages/02_Ticket_Overview.py", label="Ticket Overview", icon="🎫") - - -def SysHealthDashNav(): st.sidebar.page_link("pages/04_Access_System_Health_Dashboard.py", label="System Health Dashboard", icon="📊") From f5f62baf8c310783ed476d9cf48122ae94c25f0e Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:51:51 -0500 Subject: [PATCH 280/305] delete empty space --- app/src/modules/nav.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 1dbda10751..1214dfb08c 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -23,9 +23,6 @@ def TechSupportAnalystHomeNav(): ## ------------------------ Role of Co-op Advisor ------------------------ - - - def JessicaPageNav(): st.sidebar.page_link("pages/11_Student_Tasks.py", label="Student Tasks", icon="📝") st.sidebar.page_link("pages/12_Feedback.py", label="Feedback", icon="🧐") From 5184f64a9765657e6c2f13d8c7430920d486329e Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:52:16 -0500 Subject: [PATCH 281/305] Update Home.py --- app/src/Home.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index 5cd52f4f9c..340cf6e582 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -34,9 +34,9 @@ # set the title of the page and provide a simple prompt. logger.info("Loading the Home page of the app") -st.title('SyncSpace') +st.title('Welcome to SyncSpace') st.write('\n\n') -st.write('### Hi there! As which user would you like to log in?') +st.write('### Which user would you like to log in as?') # For each of the user personas for which we are implementing # functionality, we put a button on the screen that the user From 44913304f12bb8994c8d76b697428a56a41f4f5f Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Wed, 4 Dec 2024 23:54:16 -0500 Subject: [PATCH 282/305] Update Home.py --- app/src/Home.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/Home.py b/app/src/Home.py index 340cf6e582..688102fa5b 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -34,9 +34,10 @@ # set the title of the page and provide a simple prompt. logger.info("Loading the Home page of the app") -st.title('Welcome to SyncSpace') +st.title('Welcome to SyncSpace!') st.write('\n\n') st.write('### Which user would you like to log in as?') +st.write('') # For each of the user personas for which we are implementing # functionality, we put a button on the screen that the user From 1cd736ba466f7fec66c0f79c672356a544f35115 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Wed, 4 Dec 2024 23:55:10 -0500 Subject: [PATCH 283/305] update --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 1214dfb08c..17029d687a 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -19,7 +19,7 @@ def TechSupportAnalystHomeNav(): st.sidebar.page_link("pages/00_Tech_Support_Analyst_Home.py", label="Tech Support Analyst Home", icon="👤") st.sidebar.page_link("pages/01_Run_System_Logs.py", label="System Logs", icon="⚙️") st.sidebar.page_link("pages/02_Ticket_Overview.py", label="Ticket Overview", icon="🎫") - st.sidebar.page_link("pages/04_Access_System_Health_Dashboard.py", label="System Health Dashboard", icon="📊") + st.sidebar.page_link("pages/03_Access_System_Health_Dashboard.py", label="System Health Dashboard", icon="📊") ## ------------------------ Role of Co-op Advisor ------------------------ From e0055688ca0c42ff125e72b57e30458ecb73a32a Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 00:01:19 -0500 Subject: [PATCH 284/305] page rerouting --- app/src/Home.py | 2 +- app/src/modules/nav.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/Home.py b/app/src/Home.py index 688102fa5b..fd766713e5 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -49,7 +49,7 @@ # when user clicks the button, they are now considered authenticated st.session_state['authenticated'] = True # we set the role of the current user - st.session_state['role'] = 'SysAdmin' + st.session_state['role'] = 'TechnicalSupportAnalyst' # we add the first name of the user (so it can be displayed on # subsequent pages). st.session_state['first_name'] = 'Michael' diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 17029d687a..9c1cce9999 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -66,8 +66,8 @@ def SideBarLinks(show_home=False): # Show System Logs, Ticket Overview, and System Health Dashboard if the user is in a technical support analyst role. if st.session_state["role"] == "TechnicalSupportAnalyst": TechSupportAnalystHomeNav() - SystemLogsNav() - TicketOverviewNav() + #SystemLogsNav() + #TicketOverviewNav() # If the user role is usaid worker, show the Api Testing page if st.session_state["role"] == "Advisor": From 23d8ba2642eda18b8d7c89aa53dc0dfba13d7e07 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 00:03:45 -0500 Subject: [PATCH 285/305] Update nav.py --- app/src/modules/nav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 9c1cce9999..26dc3aff64 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -32,7 +32,7 @@ def JessicaPageNav(): def KevinPageNav(): st.sidebar.page_link("pages/20_Student_Kevin_Home.py", label="Student Home", icon="📖") st.sidebar.page_link("pages/23_My_Profile.py", label="My Profile", icon="👤") - st.sidebar.page_link("pages/22_Housing_Carpool.py", label="Housing & Transit", icon="🏘️") + st.sidebar.page_link("pages/22_Housing_Carpool.py", label="Housing & Transit", icon="🔍") st.sidebar.page_link("pages/21_Advisor_Rec.py", label="Advisor Communications", icon="🏫") def SarahPageNav(): From cf7e126593ebab8cd20c6931b6223e8b700f0698 Mon Sep 17 00:00:00 2001 From: Pratyusha Chamarthi Date: Thu, 5 Dec 2024 00:02:23 -0500 Subject: [PATCH 286/305] changes --- api/backend/students/student2_routes.py | 74 ++++++++++++++++++- app/src/pages/30_1_Edit_Student_Profile.py | 72 +++++++++++++++++++ app/src/pages/30_1_Manage_Student_Profile.py | 76 -------------------- app/src/pages/30_2_View_Student_List.py | 4 +- app/src/pages/30_3_Connect_Community.py | 26 ------- app/src/pages/30_4_View_Events.py | 2 +- app/src/pages/31_Professional_Events.py | 16 ----- app/src/pages/32_Browse_Profiles.py | 16 ----- app/src/pages/33_Advisor_Feedback.py | 16 ----- database-files/01_SyncSpace.sql | 4 +- 10 files changed, 148 insertions(+), 158 deletions(-) create mode 100644 app/src/pages/30_1_Edit_Student_Profile.py delete mode 100644 app/src/pages/30_1_Manage_Student_Profile.py delete mode 100644 app/src/pages/30_3_Connect_Community.py delete mode 100644 app/src/pages/31_Professional_Events.py delete mode 100644 app/src/pages/32_Browse_Profiles.py delete mode 100644 app/src/pages/33_Advisor_Feedback.py diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index 8a6b21ccde..73bd785d39 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -22,11 +22,81 @@ def get_students(): cursor = db.get_db().cursor() cursor.execute('''SELECT StudentId, Name, Major, - Company, Lifestyle FROM students + Company, Lifestyle FROM Student ''') theData = cursor.fetchall() the_response = make_response(jsonify(theData)) the_response.status_code = 200 - return the_response \ No newline at end of file + return the_response + +# Route to retrieve student information +@student2.route('/retrieve_student_info', methods=['GET']) +def retrieve_student(): + cursor = db.get_db().cursor() + cursor.execute(''' + SELECT StudentID, Name, Major, Company, Lifestyle, Location, Bio + FROM Student + ''') + theData = cursor.fetchall() + + # Convert to a list of dictionaries for better response handling + result = [ + { + "StudentID": row[0], + "Name": row[1], + "Major": row[2], + "Company": row[3], + "Lifestyle": row[4], + "Location": row[5], + "Bio": row[6] + } + for row in theData + ] + + the_response = make_response(jsonify(result)) + the_response.status_code = 200 + return the_response + + +# Route to update student profile information +@student2.route('/update_student_profile', methods=['PUT']) +def update_student_profile(): + try: + # Parse JSON data from request + data = request.json + student_id = data.get('StudentID') + name = data.get('Name') + major = data.get('Major') + company = data.get('Company') + location = data.get('Location') + bio = data.get('Bio') + + # Validate that student_id is provided + if not student_id: + return make_response(jsonify({"error": "StudentID is required"}), 400) + + # Build the SQL query dynamically based on fields to be updated + query = ''' + UPDATE Student + SET + Name = %s, + Major = %s, + Company = %s, + Location = %s, + Bio = %s + WHERE StudentID = %s + ''' + values = (name, major, company, location, bio, student_id) + + # Execute the query + cursor = db.get_db().cursor() + cursor.execute(query, values) + db.get_db().commit() + + return make_response(jsonify({"message": "Student profile updated successfully"}), 200) + + except Exception as e: + # Handle exceptions and return an error response + return make_response(jsonify({"error": str(e)}), 500) \ No newline at end of file diff --git a/app/src/pages/30_1_Edit_Student_Profile.py b/app/src/pages/30_1_Edit_Student_Profile.py new file mode 100644 index 0000000000..bb59a0bc5f --- /dev/null +++ b/app/src/pages/30_1_Edit_Student_Profile.py @@ -0,0 +1,72 @@ +import logging +import streamlit as st +import requests +import pandas as pd # Ensure you have this library if you're using DataFrame + +# Configure logger +logger = logging.getLogger(__name__) + +# Set the layout +st.set_page_config(layout='wide') + +# Title of the page +st.title('Manage Student Profile') +st.subheader('Update Your Profile') + +# Form layout +name = st.text_input('Name', value='Sarah Lopez', placeholder='Enter your full name') + +# Submit button +if st.button('Search'): + # Mocked API request for demonstration + profile_data = { + "name": name + } + try: + response = requests.get( + 'http://api:4000/s/retrieve_student_info', + json=profile_data + ) + if response.status_code == 200: + student = response.json() + df = pd.DataFrame([student]) + name = student.get("Name", "") + major = student.get("Major", "") + location = student.get("Location", "") + company = student.get("Company", "") + housing = student.get("HousingStatus", "") + carpool = student.get("CarpoolStatus", "") + bio = student.get("Bio", "") + + # Add a container for displaying profile data + with st.container(): + st.header("Profile Information") + + # Add editable text boxes for some fields + updated_major = st.text_input("Major", value=major, placeholder="Enter your major") + updated_location = st.text_input("Location", value=location, placeholder="Enter your location") + updated_company = st.text_input("Company", value=company, placeholder="Enter your company") + updated_bio = st.text_area("Biography", value=bio, placeholder="Write a short biography") + + # Display static fields + st.write(f"Housing Status: {housing}") + st.write(f"Carpool Status: {carpool}") + + + # Add a Save button to save updates + if st.button("Save Changes"): + updated_profile_data = { + "name": name, + "major": updated_major, + "location": updated_location, + "company": updated_company, + "bio": updated_bio + } + # Mock save logic or send updated data to the backend + st.success("Profile updated successfully!") + logger.info(f"Updated profile data: {updated_profile_data}") + + else: + st.error(f'Failed to retrieve student info: {response.text}') + except Exception as e: + st.error(f'An error occurred: {str(e)}') diff --git a/app/src/pages/30_1_Manage_Student_Profile.py b/app/src/pages/30_1_Manage_Student_Profile.py deleted file mode 100644 index 6df6c7d1b0..0000000000 --- a/app/src/pages/30_1_Manage_Student_Profile.py +++ /dev/null @@ -1,76 +0,0 @@ -import logging -import streamlit as st -import requests - -# Configure logger -logger = logging.getLogger(__name__) - -# Set the layout -st.set_page_config(layout='wide') - -# Title of the page -st.title('Manage Student Profile') -st.subheader('Update Your Profile') - -# Form layout -name = st.text_input('Name', value='Sarah Lopez', placeholder='Enter your full name') -email = st.text_input('Email', value='sarah.lopez@example.com', placeholder='Enter your email') -professional_interests = st.text_area( - 'Professional Interests', - placeholder='E.g., Data Science, AI, etc.' -) -housing_preferences = st.text_area( - 'Housing Preferences', - placeholder='E.g., Close to campus, shared apartment, etc.' -) - -# Submit button -if st.button('Save Changes'): - # Mocked API request for demonstration - profile_data = { - "name": name, - "email": email, - "professional_interests": professional_interests, - "housing_preferences": housing_preferences, - } - try: - response = requests.put( - 'http://api.example.com/community/{community_id}', - json=profile_data - ) - if response.status_code == 200: - st.success('Profile updated successfully!') - else: - st.error(f'Failed to update profile. Server responded with: {response.text}') - except Exception as e: - st.error(f'An error occurred: {str(e)}') - - -''' -import logging -logger = logging.getLogger(__name__) -import streamlit as st -from modules.nav import SideBarLinks -import requests - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -st.title('Manage Student Profile') -st.write('\n\n') - -# Add a text input field -first_name = st.text_input("First Name:", value="") -last_name = st.text_input("Last Name:", value="") - -if user_input: - st.write(f"Hello, {user_input}!") - - -if st.button('Create Student', - type = 'primary', - use_container_width=True): - results = requests.get('http://api:4000/c/prediction/10/25').json() - st.dataframe(results) -''' \ No newline at end of file diff --git a/app/src/pages/30_2_View_Student_List.py b/app/src/pages/30_2_View_Student_List.py index daf1308580..a115f26ea3 100644 --- a/app/src/pages/30_2_View_Student_List.py +++ b/app/src/pages/30_2_View_Student_List.py @@ -20,13 +20,11 @@ # Fetch Data from API try: # Make the API request - results = requests.get('http://api:4000/student2').json() + results = requests.get('http://api:4000/s/student2').json() st.dataframe(results) except requests.exceptions.RequestException as e: # Handle any request exceptions (e.g., connection errors) st.error("An error occurred while fetching student profiles. Please try again later.") logger.error(f"RequestException: {e}") -# Debugging Information -st.write("If the above table is empty, please verify the API connection and response format.") diff --git a/app/src/pages/30_3_Connect_Community.py b/app/src/pages/30_3_Connect_Community.py deleted file mode 100644 index 0665367ab4..0000000000 --- a/app/src/pages/30_3_Connect_Community.py +++ /dev/null @@ -1,26 +0,0 @@ -import logging -logger = logging.getLogger(__name__) -import streamlit as st -from modules.nav import SideBarLinks -import requests - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -st.title('Manage Student Profile') -st.write('\n\n') - -# Add a text input field -first_name = st.text_input("First Name:", value="") -last_name = st.text_input("Last Name:", value="") - -if user_input: - st.write(f"Hello, {user_input}!") - - -if st.button('Create Student', - type = 'primary', - use_container_width=True): - results = requests.get('http://api:4000/c/prediction/10/25').json() - st.dataframe(results) diff --git a/app/src/pages/30_4_View_Events.py b/app/src/pages/30_4_View_Events.py index 03e56533c1..1b178d128f 100644 --- a/app/src/pages/30_4_View_Events.py +++ b/app/src/pages/30_4_View_Events.py @@ -4,7 +4,7 @@ logger = logging.getLogger(__name__) -st.title("Upcoming Events and Workshops") +st.title("Upcoming Professional Events") try: response = requests.get("http://your-api-url.com/community/{community_id}/events") diff --git a/app/src/pages/31_Professional_Events.py b/app/src/pages/31_Professional_Events.py deleted file mode 100644 index 521b07633f..0000000000 --- a/app/src/pages/31_Professional_Events.py +++ /dev/null @@ -1,16 +0,0 @@ -import logging -logger = logging.getLogger(__name__) -import streamlit as st -import requests -from streamlit_extras.app_logo import add_logo -from modules.nav import SideBarLinks - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -st.title('Professional Events Hub') - -st.write('\n\n') -st.write('## test') -st.write("Test") \ No newline at end of file diff --git a/app/src/pages/32_Browse_Profiles.py b/app/src/pages/32_Browse_Profiles.py deleted file mode 100644 index b394d831b0..0000000000 --- a/app/src/pages/32_Browse_Profiles.py +++ /dev/null @@ -1,16 +0,0 @@ -import logging -logger = logging.getLogger(__name__) -import streamlit as st -import requests -from streamlit_extras.app_logo import add_logo -from modules.nav import SideBarLinks - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -st.title('Browse Profiles') - -st.write('\n\n') -st.write('## test') -st.write("Test") \ No newline at end of file diff --git a/app/src/pages/33_Advisor_Feedback.py b/app/src/pages/33_Advisor_Feedback.py deleted file mode 100644 index 20304714b2..0000000000 --- a/app/src/pages/33_Advisor_Feedback.py +++ /dev/null @@ -1,16 +0,0 @@ -import logging -logger = logging.getLogger(__name__) -import streamlit as st -import requests -from streamlit_extras.app_logo import add_logo -from modules.nav import SideBarLinks - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -st.title('View Advisor Feedback') - -st.write('\n\n') -st.write('## test') -st.write("Test") \ No newline at end of file diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index 9879aee964..750da76443 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -67,7 +67,7 @@ CREATE TABLE IF NOT EXISTS Student ( FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); -/*-- Create table for Events +-- Create table for Events DROP TABLE IF EXISTS Events; CREATE TABLE IF NOT EXISTS Events ( EventID INT AUTO_INCREMENT PRIMARY KEY, @@ -77,7 +77,7 @@ CREATE TABLE IF NOT EXISTS Events ( Description TEXT, FOREIGN KEY (CommunityID) REFERENCES CityCommunity(CommunityID) ); -*/ + -- Create table for Advisor DROP TABLE IF EXISTS Advisor; From 7052cd57063286a67aea215f91f0c6f596d115b8 Mon Sep 17 00:00:00 2001 From: Pratyusha Chamarthi Date: Thu, 5 Dec 2024 00:36:17 -0500 Subject: [PATCH 287/305] change --- api/backend/students/student2_routes.py | 4 ++-- app/src/modules/nav.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index 73bd785d39..168deecf04 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -21,8 +21,8 @@ def get_students(): cursor = db.get_db().cursor() - cursor.execute('''SELECT StudentId, Name, Major, - Company, Lifestyle FROM Student + cursor.execute('''SELECT Name, Major, + Company, Location FROM Student ''') theData = cursor.fetchall() diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 26dc3aff64..83596587f9 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -37,9 +37,9 @@ def KevinPageNav(): def SarahPageNav(): st.sidebar.page_link("pages/30_Student_Sarah_Home.py", label="Student Home", icon="📖") - st.sidebar.page_link("pages/31_Professional_Events.py", label="Events", icon="👤") - st.sidebar.page_link("pages/32_Browse_Profiles.py", label="Browse Profiles", icon="🔍") - st.sidebar.page_link("pages/33_Advisor_Feedback.py", label="Advisor Feedback", icon="🏫") + st.sidebar.page_link("pages/30_4_View_Events.py", label="Events", icon="👤") + st.sidebar.page_link("pages/30_2_View_Student_List.py", label="Browse Profiles", icon="🔍") + st.sidebar.page_link("pages/30_5_Submit_Feedback.py", label="Advisor Feedback", icon="🏫") # --------------------------------Links Function ----------------------------------------------- def SideBarLinks(show_home=False): From 02175519457c42d07da4a85a84abeaf96eac8756 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 01:02:42 -0500 Subject: [PATCH 288/305] sarah updates --- api/backend/students/student2_routes.py | 47 ++++++++++++++++++++- app/src/Home.py | 2 +- app/src/pages/30_5_Submit_Feedback.py | 56 +++++++++++++++++++------ database-files/02_SyncSpace-data.sql | 1 + 4 files changed, 92 insertions(+), 14 deletions(-) diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index 168deecf04..1f4d4ee66c 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -99,4 +99,49 @@ def update_student_profile(): except Exception as e: # Handle exceptions and return an error response - return make_response(jsonify({"error": str(e)}), 500) \ No newline at end of file + return make_response(jsonify({"error": str(e)}), 500) + +# route to provide feedback to advisor +@student2.route('/feedback', methods=['POST']) +def give_feedback(): + data = request.json + current_app.logger.info(data) + + description = data['Description'] + date = data['Date'] + rating = data['ProgressRating'] + student_id = data['StudentID'] + advisor_id = data.get('AdvisorID', None) + + query = ''' + INSERT INTO Feedback (Description, Date, ProgressRating, StudentID, AdvisorID) + VALUES (%s, %s, %s, %s, %s) + ''' + + current_app.logger.info(query) + connection = db.get_db() + cursor = connection.cursor() + + cursor.execute(query, (description, date, rating, student_id, advisor_id)) + connection.commit() + + cursor.close() + + response = make_response("Successfully added feedback") + response.status_code = 200 + return response + +@student2.route('/student/', methods=['GET']) +def get_profile(name): + query = ''' + SELECT * + FROM Student s + WHERE Name = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, (name, )) + theData = cursor.fetchall() + + response = make_response(jsonify(theData)) + response.status_code = 200 + return response \ No newline at end of file diff --git a/app/src/Home.py b/app/src/Home.py index fd766713e5..344ceee154 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -79,6 +79,6 @@ use_container_width=True): st.session_state['authenticated'] = True st.session_state['role'] = 'Student2' - st.session_state['first_name'] = 'Sarah' + st.session_state['first_name'] = 'Sarah Lopez' st.switch_page('pages/30_Student_Sarah_Home.py') diff --git a/app/src/pages/30_5_Submit_Feedback.py b/app/src/pages/30_5_Submit_Feedback.py index 0665367ab4..4011489082 100644 --- a/app/src/pages/30_5_Submit_Feedback.py +++ b/app/src/pages/30_5_Submit_Feedback.py @@ -8,19 +8,51 @@ SideBarLinks() -st.title('Manage Student Profile') -st.write('\n\n') +st.title('Feedback Form') + +feedbackurl = 'http://api:4000/s/feedback' + +date = st.date_input("Date") +progress_rating = st.slider("Progress Rating", min_value=1, max_value=5, step=1) +description = st.text_area("Feedback Description", placeholder="Enter your feedback here") +name = st.session_state['first_name'] + +def get_profile(name): + url = f'http://api:4000/s/student/{name}' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +student = get_profile(name) +if student and isinstance(student, list): + record = student[0] + s_id = record.get("StudentID", "Not available") + a_id = record.get("AdvisorID", "Not available") + + if st.button("Submit"): + feedback_data = { + "Description": description, + "Date": date.isoformat(), + "ProgressRating": progress_rating, + "StudentID" : s_id, + "AdvisorID" : a_id, + } + + try: + response = requests.post(feedbackurl, json=feedback_data) + + if response.status_code == 200: + st.success("Feedback submitted successfully!") + st.switch_page('pages/30_Student_Sarah_Home.py') + else: + st.error(f"Failed to submit feedback: {response.text}") + + except Exception as e: + st.error(f"An error occurred: {str(e)}") -# Add a text input field -first_name = st.text_input("First Name:", value="") -last_name = st.text_input("Last Name:", value="") -if user_input: - st.write(f"Hello, {user_input}!") -if st.button('Create Student', - type = 'primary', - use_container_width=True): - results = requests.get('http://api:4000/c/prediction/10/25').json() - st.dataframe(results) diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 3db086a8e1..f11fcc40d3 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -212,6 +212,7 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); insert into Student(Name, Major, Location, HousingStatus, CarpoolStatus, LeaseDuration, CommunityID) values ('Kevin Chen', 'Data Science', 'San Jose', 'Searching for Housing', 'Searching for Carpool', '6 months', 2); +insert into Student(Name, Major, Location, Bio, CommunityID, Reminder) values ('Sarah Lopez', 'Business', 'New York City', 'Interested in the intersection between finance and data science!', 6, 2) -- 6. Events Data (depends on CityCommunity) From c903c3c29281d5aa67f3a427f18955619631e92b Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 01:27:19 -0500 Subject: [PATCH 289/305] updates --- api/backend/students/student2_routes.py | 29 +++++++++++- app/src/pages/30_5_Submit_Feedback.py | 2 +- app/src/pages/37_Delete_Feedack.py | 62 +++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 app/src/pages/37_Delete_Feedack.py diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index 1f4d4ee66c..c2177af59d 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -144,4 +144,31 @@ def get_profile(name): response = make_response(jsonify(theData)) response.status_code = 200 - return response \ No newline at end of file + return response + +@student2.route('/students//feedback/', methods=['DELETE']) +def del_feedback(student_id, feedback_id): + try: + query = ''' + DELETE FROM Feedback + WHERE StudentID = %s AND FeedbackID = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, (student_id, feedback_id)) + + db.get_db().commit() + + if cursor.rowcount == 0: + response = make_response(jsonify({ + "error": "No feedback entry found for the given student ID and feedback ID." + })) + response.status_code = 404 + return response + + response = make_response(jsonify({"message": "Feedback entry deleted successfully."})) + response.status_code = 200 + return response + except Exception as e: + response = make_response(jsonify({"error": str(e)})) + response.status_code = 500 + return response \ No newline at end of file diff --git a/app/src/pages/30_5_Submit_Feedback.py b/app/src/pages/30_5_Submit_Feedback.py index 4011489082..c00b74dcc7 100644 --- a/app/src/pages/30_5_Submit_Feedback.py +++ b/app/src/pages/30_5_Submit_Feedback.py @@ -46,7 +46,7 @@ def get_profile(name): if response.status_code == 200: st.success("Feedback submitted successfully!") - st.switch_page('pages/30_Student_Sarah_Home.py') + st.switch_page('pages/37_Delete_Feedack.py') else: st.error(f"Failed to submit feedback: {response.text}") diff --git a/app/src/pages/37_Delete_Feedack.py b/app/src/pages/37_Delete_Feedack.py new file mode 100644 index 0000000000..3c1fe7ea66 --- /dev/null +++ b/app/src/pages/37_Delete_Feedack.py @@ -0,0 +1,62 @@ +import logging +logger = logging.getLogger(__name__) +import streamlit as st +from modules.nav import SideBarLinks +import requests +import pandas as pd + +st.set_page_config(layout = 'wide') + +SideBarLinks() + +def get_profile(name): + url = f'http://api:4000/s/student/{name}' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +def get_feedback(student_id): + url = f'http://api:4000/api/students/{student_id}/feedback' + response = requests.get(url) + if response.status_code == 200: + return response.json() + else: + st.error(f"Error fetching data: {response.status_code}") + return [] + +def del_feedback(feedback_id, student_id): + url = f'http://api:4000/s/students/{student_id}/feedback/{feedback_id}' + try: + response = requests.delete(url) + + if response.status_code == 200: + st.success("Feedback deleted successfully!") + else: + st.error(f"Feedback entry does not exist: {response.json().get('message')}") + + except Exception as e: + st.error(f"An error occurred: {str(e)}") + +name = st.session_state['first_name'] +student = get_profile(name) + +if student and isinstance(student, list): + record = student[0] + reminders = record.get('Reminder') + s_id = record.get('StudentID') + + feedback = get_feedback(s_id) + df = pd.DataFrame(feedback) + + with st.expander('Past Reports'): + if df.empty: + st.write("No forms found.") + else: + st.write(df[['FeedbackID', 'Date', 'Description', 'ProgressRating']]) + + + + \ No newline at end of file From 6da74a027cd9d4ae936f59c40527d265614e7b9b Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 01:29:26 -0500 Subject: [PATCH 290/305] Update 30_Student_Sarah_Home.py --- app/src/pages/30_Student_Sarah_Home.py | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index a0aa4e7a6e..60fd306005 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -23,34 +23,12 @@ if st.button('Manage Student Profile', type='primary', use_container_width=True): st.switch_page('pages/30_1_Manage_Student_Profile.py') -# Additional Sections for Sarah's Use Case -if st.button('Connect with Community', type='primary', use_container_width=True): - st.switch_page('pages/30_3_Connect_Community.py') - -if st.button('View Events & Workshops', type='primary', use_container_width=True): +if st.button('View Professional Events', type='primary', use_container_width=True): st.switch_page('pages/30_4_View_Events.py') -if st.button('Submit Feedback', type='primary', use_container_width=True): +if st.button('Feedback', type='primary', use_container_width=True): st.switch_page('pages/30_5_Submit_Feedback.py') -if st.button('Advisor Recommendations', type='primary', use_container_width=True): - st.switch_page('pages/30_6_Advisor_Recommendations.py') - -# Example for loading data in a page if required -if 'data' not in st.session_state: - st.session_state['data'] = {} # Placeholder for any session-wide data -if st.button('View Events', - type='primary', - use_container_width=True): - st.switch_page('pages/31_Professional_Events.py') -if st.button('View Profiles', - type='primary', - use_container_width=True): - st.switch_page('pages/32_Browse_Profiles.py') -if st.button('View Advisor Feedback', - type='primary', - use_container_width=True): - st.switch_page('pages/33_Advisor_Feedback.py') From 5b2a8f9829cd76e568c5a2a8e3d259e62846fa50 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 01:36:38 -0500 Subject: [PATCH 291/305] sarah updates --- api/backend/students/student2_routes.py | 16 +++++++++- app/src/pages/30_4_View_Events.py | 31 +++++++++++++------ app/src/pages/30_6_Advisor_Recommendations.py | 26 ---------------- 3 files changed, 37 insertions(+), 36 deletions(-) delete mode 100644 app/src/pages/30_6_Advisor_Recommendations.py diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index c2177af59d..6d4afb970a 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -171,4 +171,18 @@ def del_feedback(student_id, feedback_id): except Exception as e: response = make_response(jsonify({"error": str(e)})) response.status_code = 500 - return response \ No newline at end of file + return response + +@student2.route('/events', methods=['GET']) +def get_events(): + + cursor = db.get_db().cursor() + cursor.execute('''SELECT EventID, CommunityID, Date, Name, Description + FROM Events + ''') + + theData = cursor.fetchall() + + the_response = make_response(jsonify(theData)) + the_response.status_code = 200 + return the_response diff --git a/app/src/pages/30_4_View_Events.py b/app/src/pages/30_4_View_Events.py index 1b178d128f..b5fa2b27f8 100644 --- a/app/src/pages/30_4_View_Events.py +++ b/app/src/pages/30_4_View_Events.py @@ -1,23 +1,36 @@ import logging +logger = logging.getLogger(__name__) + import streamlit as st +from modules.nav import SideBarLinks import requests + +st.set_page_config(layout = 'wide') +SideBarLinks() + +# Logger for debugging logger = logging.getLogger(__name__) +# Page title st.title("Upcoming Professional Events") +# Fetch events from the API try: - response = requests.get("http://your-api-url.com/community/{community_id}/events") + response = requests.get("http://api:4000/s/events") if response.status_code == 200: events = response.json() - for event in events: - st.subheader(event["title"]) - st.text(f"Date: {event['date']}") - st.text(f"Location: {event['location']}") - st.text(f"Description: {event['description']}") - st.write("---") + if events: + for event in events: + st.subheader(event["Name"]) + st.markdown(f"**Date:** {event['Date']}") + st.markdown(f"**Community ID:** {event['CommunityID']}") + st.markdown(f"**Description:** {event['Description']}") + st.write("---") + else: + st.info("No upcoming events at the moment.") else: - st.error(f"Failed to fetch events. Error: {response.status_code}") + st.error(f"Failed to fetch events. Error: {response.status_code} - {response.text}") except requests.exceptions.RequestException as e: logger.error(f"Error fetching events: {e}") - st.error("An error occurred while fetching events. Please try again later.") + st.error("An error occurred while fetching events. Please try again later.") \ No newline at end of file diff --git a/app/src/pages/30_6_Advisor_Recommendations.py b/app/src/pages/30_6_Advisor_Recommendations.py deleted file mode 100644 index 0665367ab4..0000000000 --- a/app/src/pages/30_6_Advisor_Recommendations.py +++ /dev/null @@ -1,26 +0,0 @@ -import logging -logger = logging.getLogger(__name__) -import streamlit as st -from modules.nav import SideBarLinks -import requests - -st.set_page_config(layout = 'wide') - -SideBarLinks() - -st.title('Manage Student Profile') -st.write('\n\n') - -# Add a text input field -first_name = st.text_input("First Name:", value="") -last_name = st.text_input("Last Name:", value="") - -if user_input: - st.write(f"Hello, {user_input}!") - - -if st.button('Create Student', - type = 'primary', - use_container_width=True): - results = requests.get('http://api:4000/c/prediction/10/25').json() - st.dataframe(results) From 0ff6f702a5751a0f4c8709132d6e2467e301f648 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 01:39:18 -0500 Subject: [PATCH 292/305] name changing --- .../{30_1_Edit_Student_Profile.py => 31_Edit_Student_Profile.py} | 0 .../pages/{30_2_View_Student_List.py => 32_View_Student_List.py} | 0 app/src/pages/{30_4_View_Events.py => 34_View_Events.py} | 0 app/src/pages/{30_5_Submit_Feedback.py => 35_Submit_Feedback.py} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename app/src/pages/{30_1_Edit_Student_Profile.py => 31_Edit_Student_Profile.py} (100%) rename app/src/pages/{30_2_View_Student_List.py => 32_View_Student_List.py} (100%) rename app/src/pages/{30_4_View_Events.py => 34_View_Events.py} (100%) rename app/src/pages/{30_5_Submit_Feedback.py => 35_Submit_Feedback.py} (100%) diff --git a/app/src/pages/30_1_Edit_Student_Profile.py b/app/src/pages/31_Edit_Student_Profile.py similarity index 100% rename from app/src/pages/30_1_Edit_Student_Profile.py rename to app/src/pages/31_Edit_Student_Profile.py diff --git a/app/src/pages/30_2_View_Student_List.py b/app/src/pages/32_View_Student_List.py similarity index 100% rename from app/src/pages/30_2_View_Student_List.py rename to app/src/pages/32_View_Student_List.py diff --git a/app/src/pages/30_4_View_Events.py b/app/src/pages/34_View_Events.py similarity index 100% rename from app/src/pages/30_4_View_Events.py rename to app/src/pages/34_View_Events.py diff --git a/app/src/pages/30_5_Submit_Feedback.py b/app/src/pages/35_Submit_Feedback.py similarity index 100% rename from app/src/pages/30_5_Submit_Feedback.py rename to app/src/pages/35_Submit_Feedback.py From 409cae580154362fa9172610a6c9c3e6d7627c41 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 02:05:37 -0500 Subject: [PATCH 293/305] more sarah code --- api/backend/students/student2_routes.py | 17 +++++++++++++++ app/src/modules/nav.py | 6 +++--- app/src/pages/30_Student_Sarah_Home.py | 8 +++---- app/src/pages/32_View_Student_List.py | 2 -- app/src/pages/34_View_Events.py | 21 +++++++++++++++++++ app/src/pages/35_Submit_Feedback.py | 2 +- ...elete_Feedack.py => 37_Delete_Feedback.py} | 19 ++++++++++++----- 7 files changed, 60 insertions(+), 15 deletions(-) rename app/src/pages/{37_Delete_Feedack.py => 37_Delete_Feedback.py} (77%) diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index 6d4afb970a..3bdae90e9e 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -186,3 +186,20 @@ def get_events(): the_response = make_response(jsonify(theData)) the_response.status_code = 200 return the_response + +@student2.route('/events/', methods=['DELETE']) +def delete_event(event_id): + + try: + cursor = db.get_db().cursor() + + query = "DELETE FROM Events WHERE EventID = %s" + cursor.execute(query, (event_id,)) + + db.get_db().commit() + + return jsonify({"message": f"Event with ID {event_id} deleted successfully."}), 200 + except Exception as e: + + logger.error(f"Error deleting event with ID {event_id}: {e}") + return jsonify({"error": "Failed to delete event."}), 500 diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 83596587f9..64d4a684b7 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -37,9 +37,9 @@ def KevinPageNav(): def SarahPageNav(): st.sidebar.page_link("pages/30_Student_Sarah_Home.py", label="Student Home", icon="📖") - st.sidebar.page_link("pages/30_4_View_Events.py", label="Events", icon="👤") - st.sidebar.page_link("pages/30_2_View_Student_List.py", label="Browse Profiles", icon="🔍") - st.sidebar.page_link("pages/30_5_Submit_Feedback.py", label="Advisor Feedback", icon="🏫") + st.sidebar.page_link("pages/34_View_Events.py", label="Events", icon="👤") + st.sidebar.page_link("pages/32_View_Student_List.py", label="Browse Profiles", icon="🔍") + st.sidebar.page_link("pages/37_Delete_Feedback.py", label="Advisor Feedback", icon="🏫") # --------------------------------Links Function ----------------------------------------------- def SideBarLinks(show_home=False): diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index 60fd306005..a5b32b75ed 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -17,17 +17,17 @@ # View Student List Button if st.button('View Student List', type='primary', use_container_width=True): - st.switch_page('pages/30_2_View_Student_List.py') + st.switch_page('pages/32_View_Student_List.py') # Manage Student Profile Button if st.button('Manage Student Profile', type='primary', use_container_width=True): - st.switch_page('pages/30_1_Manage_Student_Profile.py') + st.switch_page('pages/31_Manage_Student_Profile.py') if st.button('View Professional Events', type='primary', use_container_width=True): - st.switch_page('pages/30_4_View_Events.py') + st.switch_page('pages/34_View_Events.py') if st.button('Feedback', type='primary', use_container_width=True): - st.switch_page('pages/30_5_Submit_Feedback.py') + st.switch_page('pages/37_Delete_Feedback.py') diff --git a/app/src/pages/32_View_Student_List.py b/app/src/pages/32_View_Student_List.py index a115f26ea3..d71be6ae22 100644 --- a/app/src/pages/32_View_Student_List.py +++ b/app/src/pages/32_View_Student_List.py @@ -3,8 +3,6 @@ import requests from modules.nav import SideBarLinks -logger = logging.getLogger(__name__) - # Configure Streamlit page st.set_page_config(layout='wide') diff --git a/app/src/pages/34_View_Events.py b/app/src/pages/34_View_Events.py index b5fa2b27f8..969192ac40 100644 --- a/app/src/pages/34_View_Events.py +++ b/app/src/pages/34_View_Events.py @@ -12,6 +12,26 @@ # Logger for debugging logger = logging.getLogger(__name__) +st.title("Delete Past Events") + +event_id = st.text_input("Enter the Event ID of the event to delete:", placeholder="e.g., 101") + + +if st.button("Delete Event"): + if event_id.strip() == "": + st.error("Event ID cannot be empty. Please enter a valid Event ID.") + else: + try: + + response = requests.delete(f"http://api:4000/s/events/{event_id}") + if response.status_code == 200: + st.success(response.json().get("message", "Event deleted successfully.")) + else: + st.error(f"Failed to delete event. Error: {response.status_code} - {response.text}") + except requests.exceptions.RequestException as e: + logger.error(f"Error deleting event with ID {event_id}: {e}") + st.error("An error occurred while deleting the event. Please try again later.") + # Page title st.title("Upcoming Professional Events") @@ -25,6 +45,7 @@ st.subheader(event["Name"]) st.markdown(f"**Date:** {event['Date']}") st.markdown(f"**Community ID:** {event['CommunityID']}") + st.markdown(f"**Event ID:** {event['EventID']}") st.markdown(f"**Description:** {event['Description']}") st.write("---") else: diff --git a/app/src/pages/35_Submit_Feedback.py b/app/src/pages/35_Submit_Feedback.py index c00b74dcc7..3187a150d4 100644 --- a/app/src/pages/35_Submit_Feedback.py +++ b/app/src/pages/35_Submit_Feedback.py @@ -46,7 +46,7 @@ def get_profile(name): if response.status_code == 200: st.success("Feedback submitted successfully!") - st.switch_page('pages/37_Delete_Feedack.py') + st.switch_page('pages/37_Delete_Feedback.py') else: st.error(f"Failed to submit feedback: {response.text}") diff --git a/app/src/pages/37_Delete_Feedack.py b/app/src/pages/37_Delete_Feedback.py similarity index 77% rename from app/src/pages/37_Delete_Feedack.py rename to app/src/pages/37_Delete_Feedback.py index 3c1fe7ea66..868b61b228 100644 --- a/app/src/pages/37_Delete_Feedack.py +++ b/app/src/pages/37_Delete_Feedback.py @@ -43,6 +43,9 @@ def del_feedback(feedback_id, student_id): name = st.session_state['first_name'] student = get_profile(name) +st.title("Past Feedback Forms") +st.write('') + if student and isinstance(student, list): record = student[0] reminders = record.get('Reminder') @@ -51,11 +54,17 @@ def del_feedback(feedback_id, student_id): feedback = get_feedback(s_id) df = pd.DataFrame(feedback) - with st.expander('Past Reports'): - if df.empty: - st.write("No forms found.") - else: - st.write(df[['FeedbackID', 'Date', 'Description', 'ProgressRating']]) + feedback_id = st.number_input("Enter Feedback ID", min_value=1, step=1) + if st.button("Delete Feedback"): + del_feedback(feedback_id, s_id) + + if df.empty: + st.write("No forms found.") + else: + st.write(df[['FeedbackID', 'Date', 'Description', 'ProgressRating']]) + +if st.button('Submit Feedback Form'): + st.switch_page('pages/35_Submit_Feedback.py') From fc4244d7b10447188dbc20fee00b0eb4e79a8d99 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 04:06:21 -0500 Subject: [PATCH 294/305] sarah updates --- api/backend/students/student2_routes.py | 63 +++++++++---- app/src/Home.py | 2 +- app/src/pages/24_Edit_Profile.py | 2 +- app/src/pages/30_Student_Sarah_Home.py | 7 +- app/src/pages/31_Edit_Student_Profile.py | 109 ++++++++++------------- app/src/pages/32_View_Student_List.py | 5 ++ app/src/pages/34_View_Events.py | 9 +- 7 files changed, 107 insertions(+), 90 deletions(-) diff --git a/api/backend/students/student2_routes.py b/api/backend/students/student2_routes.py index 3bdae90e9e..c198711493 100644 --- a/api/backend/students/student2_routes.py +++ b/api/backend/students/student2_routes.py @@ -19,18 +19,18 @@ # Get all students from the system @student2.route('/student2', methods=['GET']) def get_students(): - cursor = db.get_db().cursor() - cursor.execute('''SELECT Name, Major, - Company, Location FROM Student - ''') - + cursor.execute('''SELECT Name, Major, Company, Location + FROM Student + ''') theData = cursor.fetchall() - + the_response = make_response(jsonify(theData)) the_response.status_code = 200 return the_response + + # Route to retrieve student information @student2.route('/retrieve_student_info', methods=['GET']) def retrieve_student(): @@ -60,45 +60,63 @@ def retrieve_student(): return the_response -# Route to update student profile information @student2.route('/update_student_profile', methods=['PUT']) def update_student_profile(): try: # Parse JSON data from request data = request.json + + # Extract fields from the JSON payload student_id = data.get('StudentID') name = data.get('Name') major = data.get('Major') - company = data.get('Company') location = data.get('Location') + company = data.get('Company') bio = data.get('Bio') - - # Validate that student_id is provided + budget = data.get('Budget') + lease_duration = data.get('LeaseDuration') + cleanliness = data.get('Cleanliness') + lifestyle = data.get('Lifestyle') + commute_time = data.get('CommuteTime') + commute_days = data.get('CommuteDays') + + # Validate that StudentID is provided if not student_id: return make_response(jsonify({"error": "StudentID is required"}), 400) - # Build the SQL query dynamically based on fields to be updated + # Build the SQL query dynamically to update the student record query = ''' UPDATE Student - SET + SET Name = %s, Major = %s, - Company = %s, Location = %s, - Bio = %s + Company = %s, + Bio = %s, + Budget = %s, + LeaseDuration = %s, + Cleanliness = %s, + Lifestyle = %s, + CommuteTime = %s, + CommuteDays = %s WHERE StudentID = %s ''' - values = (name, major, company, location, bio, student_id) + values = ( + name, major, location, company, bio, + budget, lease_duration, cleanliness, lifestyle, + commute_time, commute_days, student_id + ) # Execute the query cursor = db.get_db().cursor() cursor.execute(query, values) db.get_db().commit() + # Return success response return make_response(jsonify({"message": "Student profile updated successfully"}), 200) except Exception as e: - # Handle exceptions and return an error response + # Handle exceptions and return error response return make_response(jsonify({"error": str(e)}), 500) # route to provide feedback to advisor @@ -177,8 +195,16 @@ def del_feedback(student_id, feedback_id): def get_events(): cursor = db.get_db().cursor() - cursor.execute('''SELECT EventID, CommunityID, Date, Name, Description - FROM Events + cursor.execute('''SELECT + Events.EventID, + CityCommunity.Location, + Events.Date, + Events.Name, + Events.Description + FROM + Events + JOIN + CityCommunity ON Events.CommunityID = CityCommunity.CommunityID ''') theData = cursor.fetchall() @@ -203,3 +229,4 @@ def delete_event(event_id): logger.error(f"Error deleting event with ID {event_id}: {e}") return jsonify({"error": "Failed to delete event."}), 500 + diff --git a/app/src/Home.py b/app/src/Home.py index 344ceee154..8d0c936074 100644 --- a/app/src/Home.py +++ b/app/src/Home.py @@ -75,7 +75,7 @@ st.switch_page('pages/20_Student_Kevin_Home.py') if st.button('Act as Student - Sarah Lopez', - type = 'secondary', + type = 'primary', use_container_width=True): st.session_state['authenticated'] = True st.session_state['role'] = 'Student2' diff --git a/app/src/pages/24_Edit_Profile.py b/app/src/pages/24_Edit_Profile.py index a5ce0c00e5..e17faee345 100644 --- a/app/src/pages/24_Edit_Profile.py +++ b/app/src/pages/24_Edit_Profile.py @@ -8,7 +8,7 @@ SideBarLinks() -st.title('My Profile') +st.title('Edit My Profile') housing_status = st.selectbox("Housing Status", ["Searching for Housing", "Searching for Roommates", "Complete"]) carpool_status = st.selectbox("Carpool Status", ["Searching for Carpool", "Has Car", "Complete"]) diff --git a/app/src/pages/30_Student_Sarah_Home.py b/app/src/pages/30_Student_Sarah_Home.py index a5b32b75ed..11b56eabde 100644 --- a/app/src/pages/30_Student_Sarah_Home.py +++ b/app/src/pages/30_Student_Sarah_Home.py @@ -15,14 +15,13 @@ st.write('') st.write('### What would you like to do today?') +if st.button('Edit Profile', type='primary', use_container_width=True): + st.switch_page('pages/31_Edit_Student_Profile.py') + # View Student List Button if st.button('View Student List', type='primary', use_container_width=True): st.switch_page('pages/32_View_Student_List.py') -# Manage Student Profile Button -if st.button('Manage Student Profile', type='primary', use_container_width=True): - st.switch_page('pages/31_Manage_Student_Profile.py') - if st.button('View Professional Events', type='primary', use_container_width=True): st.switch_page('pages/34_View_Events.py') diff --git a/app/src/pages/31_Edit_Student_Profile.py b/app/src/pages/31_Edit_Student_Profile.py index bb59a0bc5f..808cd822d5 100644 --- a/app/src/pages/31_Edit_Student_Profile.py +++ b/app/src/pages/31_Edit_Student_Profile.py @@ -1,72 +1,59 @@ import logging import streamlit as st import requests -import pandas as pd # Ensure you have this library if you're using DataFrame # Configure logger logger = logging.getLogger(__name__) -# Set the layout +# Set the layout for the Streamlit app st.set_page_config(layout='wide') -# Title of the page -st.title('Manage Student Profile') +# Title and subtitle +st.title('Edit Profile') st.subheader('Update Your Profile') -# Form layout -name = st.text_input('Name', value='Sarah Lopez', placeholder='Enter your full name') - -# Submit button -if st.button('Search'): - # Mocked API request for demonstration - profile_data = { - "name": name - } - try: - response = requests.get( - 'http://api:4000/s/retrieve_student_info', - json=profile_data - ) - if response.status_code == 200: - student = response.json() - df = pd.DataFrame([student]) - name = student.get("Name", "") - major = student.get("Major", "") - location = student.get("Location", "") - company = student.get("Company", "") - housing = student.get("HousingStatus", "") - carpool = student.get("CarpoolStatus", "") - bio = student.get("Bio", "") - - # Add a container for displaying profile data - with st.container(): - st.header("Profile Information") - - # Add editable text boxes for some fields - updated_major = st.text_input("Major", value=major, placeholder="Enter your major") - updated_location = st.text_input("Location", value=location, placeholder="Enter your location") - updated_company = st.text_input("Company", value=company, placeholder="Enter your company") - updated_bio = st.text_area("Biography", value=bio, placeholder="Write a short biography") - - # Display static fields - st.write(f"Housing Status: {housing}") - st.write(f"Carpool Status: {carpool}") - - - # Add a Save button to save updates - if st.button("Save Changes"): - updated_profile_data = { - "name": name, - "major": updated_major, - "location": updated_location, - "company": updated_company, - "bio": updated_bio - } - # Mock save logic or send updated data to the backend - st.success("Profile updated successfully!") - logger.info(f"Updated profile data: {updated_profile_data}") - - else: - st.error(f'Failed to retrieve student info: {response.text}') - except Exception as e: - st.error(f'An error occurred: {str(e)}') +# Form layout for updating profile +student_id = st.text_input("Student ID", placeholder="Enter your Student ID") +name = st.text_input("Name", placeholder="Enter your full name") +major = st.text_input("Major", placeholder="Enter your major") +company = st.text_input("Company", placeholder="Enter your company") +location = st.text_input("Location", placeholder="Enter your location") +bio = st.text_area("Biography", placeholder="Write a short biography") +budget = st.number_input("Budget ($)", value=0.0, min_value=0.0, step=100.0, help="Monthly budget") +lease_duration = st.text_input("Lease Duration", placeholder="Enter lease duration") +cleanliness = st.slider("Cleanliness (1-10)", min_value=1, max_value=10, step=1, help="Rate cleanliness preference") +lifestyle = st.text_input("Lifestyle", placeholder="Describe your lifestyle") +commute_time = st.number_input("Commute Time (minutes)", value=0, min_value=0, step=5) +commute_days = st.number_input("Commute Days (per week)", value=0, min_value=0, step=1) + +# Submit button to update profile +if st.button("Update Profile"): + if student_id.strip() == "": + st.error("Student ID is required to update the profile.") + else: + # Construct JSON payload for the PUT request + profile_data = { + "StudentID": student_id, + "Name": name, + "Major": major, + "Company": company, + "Location": location, + "Bio": bio, + "Budget": budget, + "LeaseDuration": lease_duration, + "Cleanliness": cleanliness, + "Lifestyle": lifestyle, + "CommuteTime": commute_time, + "CommuteDays": commute_days + } + + try: + # Make a PUT request to the backend API + response = requests.put("http://api:4000/s/update_student_profile", json=profile_data) + if response.status_code == 200: + st.success("Profile updated successfully!") + else: + st.error(f"Failed to update profile: {response.status_code} - {response.text}") + except requests.exceptions.RequestException as e: + logger.error(f"Error updating profile: {e}") + st.error("An error occurred while updating the profile. Please try again later.") \ No newline at end of file diff --git a/app/src/pages/32_View_Student_List.py b/app/src/pages/32_View_Student_List.py index d71be6ae22..657fcb6213 100644 --- a/app/src/pages/32_View_Student_List.py +++ b/app/src/pages/32_View_Student_List.py @@ -3,6 +3,8 @@ import requests from modules.nav import SideBarLinks +logger = logging.getLogger(__name__) + # Configure Streamlit page st.set_page_config(layout='wide') @@ -25,4 +27,7 @@ st.error("An error occurred while fetching student profiles. Please try again later.") logger.error(f"RequestException: {e}") +# Debugging Information +st.write("If the above table is empty, please verify the API connection and response format.") + diff --git a/app/src/pages/34_View_Events.py b/app/src/pages/34_View_Events.py index 969192ac40..7938dfeefc 100644 --- a/app/src/pages/34_View_Events.py +++ b/app/src/pages/34_View_Events.py @@ -9,7 +9,7 @@ st.set_page_config(layout = 'wide') SideBarLinks() -# Logger for debugging + logger = logging.getLogger(__name__) st.title("Delete Past Events") @@ -32,10 +32,9 @@ logger.error(f"Error deleting event with ID {event_id}: {e}") st.error("An error occurred while deleting the event. Please try again later.") -# Page title + st.title("Upcoming Professional Events") -# Fetch events from the API try: response = requests.get("http://api:4000/s/events") if response.status_code == 200: @@ -43,9 +42,9 @@ if events: for event in events: st.subheader(event["Name"]) - st.markdown(f"**Date:** {event['Date']}") - st.markdown(f"**Community ID:** {event['CommunityID']}") st.markdown(f"**Event ID:** {event['EventID']}") + st.markdown(f"**Date:** {event['Date']}") + st.markdown(f"**Location:** {event['Location']}") st.markdown(f"**Description:** {event['Description']}") st.write("---") else: From 25997579e67ffa5215f79da00960deb71e04c63e Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Thu, 5 Dec 2024 10:39:04 -0500 Subject: [PATCH 295/305] final --- api/backend/advisor/co_op_advisor_routes.py | 42 ++++++- api/backend/co_op_advisor/__init__.py | 1 - .../co_op_advisor/co_op_advisor_routes.py | 112 ------------------ api/backend/rest_entry.py | 5 + api/backend/students/student_routes.py | 46 +++++-- api/backend_app.py | 3 + api/requirements.txt | 4 +- app/Dockerfile | 2 - app/src/pages/10_Co-op_Advisor_Home.py | 4 +- app/src/pages/10_Events.py | 1 + app/src/pages/14_Create_Event.py | 65 +++++++--- app/src/requirements.txt | 3 + database-files/01_SyncSpace.sql | 5 +- docker-compose.yaml | 24 ++-- src/requirements.txt | 1 + 15 files changed, 155 insertions(+), 163 deletions(-) delete mode 100644 api/backend/co_op_advisor/__init__.py delete mode 100644 api/backend/co_op_advisor/co_op_advisor_routes.py create mode 100644 app/src/pages/10_Events.py create mode 100644 src/requirements.txt diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index 7b688e86cb..5b1a91c9bf 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -142,15 +142,17 @@ def create_event(): query = ''' INSERT INTO Events ( + EventID, CommunityID, Date, Name, Description - ) VALUES (%s, %s, %s, %s) + ) VALUES (%s, %s, %s, %s, %s) ''' cursor = db.get_db().cursor() cursor.execute(query, ( + data.get('event_id'), data.get('community_id'), data.get('date'), data.get('name'), @@ -202,7 +204,7 @@ def update_event(event_id): def delete_event(event_id): try: query = ''' - DELETE FROM Event + DELETE FROM Events WHERE EventID = %s ''' @@ -218,3 +220,39 @@ def delete_event(event_id): db.get_db().rollback() return jsonify({'error': str(e)}), 500 +@advisor.route('/advisor/events/', methods=['GET']) +def get_event(event_id): + try: + query = ''' + SELECT + EventID, + CommunityID, + Date, + Name, + Description + FROM Events + WHERE EventID = %s + ''' + + cursor = db.get_db().cursor() + cursor.execute(query, (event_id,)) + event = cursor.fetchone() + + if event: + # Convert the result to a dictionary with proper keys + event_dict = { + 'EventID': event['EventID'], + 'CommunityID': event['CommunityID'], + 'Date': event['Date'].strftime('%Y-%m-%d') if event['Date'] else None, + 'Name': event['Name'], + 'Description': event['Description'] + } + return jsonify(event_dict), 200 + else: + return jsonify({'error': 'Event not found'}), 404 + + except Exception as e: + print(f"Error fetching event: {str(e)}") # Add debugging + return jsonify({'error': str(e)}), 500 + + diff --git a/api/backend/co_op_advisor/__init__.py b/api/backend/co_op_advisor/__init__.py deleted file mode 100644 index 7302df41f6..0000000000 --- a/api/backend/co_op_advisor/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# This can be empty, just needs to exist \ No newline at end of file diff --git a/api/backend/co_op_advisor/co_op_advisor_routes.py b/api/backend/co_op_advisor/co_op_advisor_routes.py deleted file mode 100644 index 6e3e98f0c9..0000000000 --- a/api/backend/co_op_advisor/co_op_advisor_routes.py +++ /dev/null @@ -1,112 +0,0 @@ -from backend.db_connection import db -from flask import Blueprint, jsonify, make_response - - -advisor = Blueprint('advisor', __name__) - - -@advisor.route('/students//reminders', methods=['GET']) -# route for retrieving recommendation for specific student -def get_student_reminders(student_id): - query = ''' - - ''' - cursor = db.get_db().cursor() - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - - - -@advisor.route('/advisor/notifications', methods=['GET']) -def get_notifications(): - try: - cursor = db.get_db().cursor() - query = ''' - SELECT - s.Name as student_name, - t.Status as notification_status, - t.Reminder as date_assigned, - t.Description as description - FROM Task t - JOIN Student s ON t.AssignedTo = s.StudentID - ORDER BY t.Reminder DESC - ''' - cursor.execute(query) - theData = cursor.fetchall() - - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - except Exception as e: - print(f"Database error: {str(e)}") - return jsonify({'error': 'Failed to fetch notifications'}), 500 - -@advisor.route('/', methods=['GET']) -def get_all_tasks(): - """ - Fetch all tasks with student details. - """ - try: - connection = db.get_db() - cursor = connection.cursor() - query = ''' - SELECT - t.TaskID, - t.Description, - t.Reminder, - t.DueDate, - t.Status, - t.AdvisorID, - s.StudentID, - s.Name AS student_name - FROM Task t - JOIN Student s ON t.AssignedTo = s.StudentID; - ''' - cursor.execute(query) - theData = cursor.fetchall() - - # Debug: Temporarily return raw data for troubleshooting - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - except Exception as e: - print(f"Database error: {str(e)}") - return jsonify({'error': 'Failed to fetch tasks'}), 500 - - - -@advisor.route('/advisor', methods=['GET']) -def get_all_tasks2(): - """ - Fetch all tasks with student details. - """ - try: - connection = db.get_db() - cursor = connection.cursor() - query = ''' - SELECT - t.TaskID, - t.Description, - t.Reminder, - t.DueDate, - t.Status, - t.AdvisorID, - s.StudentID, - s.Name AS student_name - FROM Task t - JOIN Student s ON t.AssignedTo = s.StudentID; - ''' - cursor.execute(query) - theData = cursor.fetchall() - - # Debug: Temporarily return raw data for troubleshooting - response = make_response(jsonify(theData)) - response.status_code = 200 - return response - except Exception as e: - print(f"Database error: {str(e)}") - return jsonify({'error': 'Failed to fetch tasks'}), 500 \ No newline at end of file diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index 62fb5cbb30..acdcd7d794 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -1,3 +1,8 @@ +import logging +logging.basicConfig(level=logging.DEBUG) + + + from flask import Flask from backend.db_connection import db diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 974e315336..461ebe9b5d 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -56,19 +56,45 @@ def get_student_feedback(student_id): response.status_code = 200 return response +@students.route('/students//feedback/', methods=['DELETE']) +def del_feedback(feedback_id, student_id): + try: + query = ''' + DELETE FROM Feedback + WHERE StudentID = %s AND FeedbackID = %s + ''' + cursor = db.get_db().cursor() + cursor.execute(query, (student_id, feedback_id)) + + db.get_db().commit() + + if cursor.rowcount == 0: + response = make_response(jsonify({ + "error": "No feedback entry found for the given student ID and feedback ID." + })) + response.status_code = 404 + return response + + response = make_response(jsonify({"message": "Feedback entry deleted successfully."})) + response.status_code = 200 + return response + except Exception as e: + response = make_response(jsonify({"error": str(e)})) + response.status_code = 500 + return response + + @students.route('/students/feedback', methods=['GET']) def get_all_feedback(): query = ''' -SELECT - s.StudentID, - s.Name AS student_name, - f.FeedbackID, - f.Description, - f.Date, - f.ProgressRating - f.ProgressRating - + SELECT + s.StudentID, + s.Name AS student_name, + f.FeedbackID, + f.Description, + f.Date, + f.ProgressRating FROM Feedback f JOIN Student s ON f.StudentID = s.StudentID ORDER BY f.Date DESC; @@ -134,7 +160,7 @@ def update_housing_match(): student_query = ''' UPDATE Student SET HousingStatus = 'Complete', - CommunityID = (SELECT CommunityID FROM Housing WHERE HousingID = %s) + CommunityID = (SELECT Commun¬ityID FROM Housing WHERE HousingID = %s) WHERE StudentID = %s ''' diff --git a/api/backend_app.py b/api/backend_app.py index b3acee0fb5..73b6a5f89b 100644 --- a/api/backend_app.py +++ b/api/backend_app.py @@ -4,3 +4,6 @@ if __name__ == '__main__': app.run(host='0.0.0.0', port=4000, debug=True) + + + diff --git a/api/requirements.txt b/api/requirements.txt index 22506ef6ca..dffbbf48f4 100644 --- a/api/requirements.txt +++ b/api/requirements.txt @@ -5,6 +5,4 @@ flask-login==0.6.2 flask-mysql==1.5.2 cryptography==38.0.1 python-dotenv==1.0.1 -numpy==1.26.4 -flask-cors -pymysql +numpy==1.26.4 \ No newline at end of file diff --git a/app/Dockerfile b/app/Dockerfile index 3e4b80714d..6eb11bff2e 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -16,8 +16,6 @@ COPY ./src/requirements.txt . RUN pip3 install -r requirements.txt -RUN pip install mysql-connector-python==8.0.33 - RUN ls EXPOSE 8501 diff --git a/app/src/pages/10_Co-op_Advisor_Home.py b/app/src/pages/10_Co-op_Advisor_Home.py index 8a6a8a26ab..91c26c3d02 100644 --- a/app/src/pages/10_Co-op_Advisor_Home.py +++ b/app/src/pages/10_Co-op_Advisor_Home.py @@ -23,11 +23,11 @@ col1, col2, col3, col4 = st.columns([1, 1, 1, 1]) with col1: - if st.button("📝 Student Tasks", key="notification_btn"): + if st.button("📝 Student Tasks\n Incomplete Tasks", key="notification_btn"): st.switch_page("pages/11_Student_Tasks.py") with col2: - if st.button("🧐 Student Feedback", key="forms_btn"): + if st.button("🧐 Student Feedback\n Unread Feedback", key="forms_btn"): st.switch_page("pages/12_Feedback.py") with col3: diff --git a/app/src/pages/10_Events.py b/app/src/pages/10_Events.py new file mode 100644 index 0000000000..0519ecba6e --- /dev/null +++ b/app/src/pages/10_Events.py @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/src/pages/14_Create_Event.py b/app/src/pages/14_Create_Event.py index 400f59b9c5..000168a9cf 100644 --- a/app/src/pages/14_Create_Event.py +++ b/app/src/pages/14_Create_Event.py @@ -1,10 +1,13 @@ import streamlit as st import requests from datetime import datetime +from modules.nav import SideBarLinks # Configure Streamlit page st.set_page_config(layout='wide') st.title("Event Management") +SideBarLinks() + # API endpoints create_url = 'http://api:4000/api/advisor/events' @@ -16,6 +19,7 @@ def create_new_event(): # Event form with st.form("event_form"): + event_id = st.number_input("Event ID", min_value=1, step=1) name = st.text_input("Event Name") description = st.text_area("Description") date = st.date_input("Date") @@ -29,6 +33,7 @@ def create_new_event(): response = requests.post( create_url, json={ + 'event_id': event_id, 'name': name, 'description': description, 'date': date.strftime('%Y-%m-%d'), @@ -37,12 +42,9 @@ def create_new_event(): ) if response.status_code == 201: - # Success message and toast notification st.success("Event created successfully!") st.toast("New event created: " + name, icon="✅") - # Wait a moment to show the notification st.balloons() - # Redirect after a brief pause st.query_params["page"] = "10_Events" st.rerun() else: @@ -53,6 +55,8 @@ def create_new_event(): st.error(f"Error: {str(e)}") st.toast("Error creating event", icon="⚠️") + + def update_event(event_id): st.subheader("Update Event") @@ -61,13 +65,28 @@ def update_event(event_id): if response.status_code == 200: event_data = response.json() + # Display current event details + st.write("Current Event Details:") + st.write(f"Name: {event_data.get('Name')}") + st.write(f"Description: {event_data.get('Description')}") + st.write(f"Date: {event_data.get('Date')}") + st.write(f"Community ID: {event_data.get('CommunityID')}") + + st.divider() + st.write("Update Event Details:") + + # Event update form with st.form("update_event_form"): - name = st.text_input("Event Name", value=event_data['Name']) - description = st.text_area("Description", value=event_data['Description']) - date = st.date_input("Date", value=datetime.strptime(event_data['Date'], '%Y-%m-%d')) + name = st.text_input("Event Name", value=event_data.get('Name', '')) + description = st.text_area("Description", value=event_data.get('Description', '')) + try: + current_date = datetime.strptime(event_data.get('Date'), '%Y-%m-%d') + except (ValueError, TypeError): + current_date = datetime.now() + date = st.date_input("Date", value=current_date) community_id = st.number_input("Community ID", - value=event_data['CommunityID'], + value=int(event_data.get('CommunityID', 1)), min_value=1, step=1) @@ -98,6 +117,8 @@ def update_event(event_id): except Exception as e: st.error(f"Error: {str(e)}") st.toast("Error updating event", icon="⚠️") + else: + st.error(f"Could not find event with ID: {event_id}") def delete_event(event_id): with st.form("delete_event_form"): @@ -122,15 +143,25 @@ def delete_event(event_id): st.toast("Error deleting event", icon="⚠️") # Main page logic -event_id = st.query_params.get("event_id") +st.title("Event Management") + +# Dropdown for operation selection +operation = st.selectbox( + "What would you like to do?", + ["Create New Event", "Edit Event", "Delete Event"] +) -if event_id: - # Show update/delete interface - col1, col2 = st.columns(2) - with col1: +# Display different interfaces based on selection +if operation == "Create New Event": + create_new_event() + + +elif operation == "Edit Event": + event_id = st.number_input("Enter Event ID to Edit", min_value=1, step=1) + if event_id: update_event(event_id) - with col2: - delete_event(event_id) -else: - # Show create interface - create_new_event() \ No newline at end of file + +else: # Delete Event + event_id = st.number_input("Enter Event ID to Delete", min_value=1, step=1) + if event_id: + delete_event(event_id) \ No newline at end of file diff --git a/app/src/requirements.txt b/app/src/requirements.txt index 7dcf713448..c13b1dd179 100644 --- a/app/src/requirements.txt +++ b/app/src/requirements.txt @@ -13,3 +13,6 @@ plotly seaborn scikit-learn shap +streamlit-aggrid +mysql-connector-python +pymysql diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index 376328030e..06802fea36 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -174,12 +174,11 @@ WHERE TaskID = 5; -- 3.2 --- 4.3 +-- 4.3 + INSERT INTO Housing (Style, Availability, Location) VALUES ('Apartment', 'Available', 'New York City'); INSERT INTO Housing (Style, Availability) VALUES ('Apartment', 'Available'); - ->>>>>>> 1eed14d6d3f5a36b845857ec00d885b4e4efb85a diff --git a/docker-compose.yaml b/docker-compose.yaml index 72fb6ccbb9..b922e7654f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,29 +1,31 @@ services: + app: build: ./app - container_name: web-app - hostname: web-app + container_name: front-end volumes: ['./app/src:/appcode'] ports: - - 8501:8501 + - "8501:8501" api: build: ./api container_name: web-api - hostname: web-api + depends_on: + - db volumes: ['./api:/apicode'] ports: - - 4000:4000 + - "4000:4000" + environment: + - DB_HOST=db + - DB_PORT=3306 db: + image: mysql:8.0 + container_name: mysql_db env_file: - ./api/.env - image: mysql:9 - container_name: mysql_db - hostname: db volumes: - ./database-files:/docker-entrypoint-initdb.d/:ro ports: - - 3200:3306 - - + - "3306:3306" + \ No newline at end of file diff --git a/src/requirements.txt b/src/requirements.txt new file mode 100644 index 0000000000..0519ecba6e --- /dev/null +++ b/src/requirements.txt @@ -0,0 +1 @@ + \ No newline at end of file From 2634fab2713e2ec47cfaca2ae24da2a5fd69780d Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Thu, 5 Dec 2024 11:42:31 -0500 Subject: [PATCH 296/305] Fixes --- api/.env.template | 2 ++ app/src/requirements.txt | 3 -- database-files/01_SyncSpace.sql | 3 ++ database-files/02_SyncSpace-data.sql | 43 ++++++++++++++-------------- docker-compose.yaml | 22 +++++++------- 5 files changed, 37 insertions(+), 36 deletions(-) diff --git a/api/.env.template b/api/.env.template index 8f86ce2cc0..5aa55380d0 100644 --- a/api/.env.template +++ b/api/.env.template @@ -4,3 +4,5 @@ DB_HOST=db DB_PORT=3306 DB_NAME=SyncSpace MYSQL_ROOT_PASSWORD= + + diff --git a/app/src/requirements.txt b/app/src/requirements.txt index c13b1dd179..7dcf713448 100644 --- a/app/src/requirements.txt +++ b/app/src/requirements.txt @@ -13,6 +13,3 @@ plotly seaborn scikit-learn shap -streamlit-aggrid -mysql-connector-python -pymysql diff --git a/database-files/01_SyncSpace.sql b/database-files/01_SyncSpace.sql index cc5e2b58f5..7e2ff980a4 100644 --- a/database-files/01_SyncSpace.sql +++ b/database-files/01_SyncSpace.sql @@ -176,9 +176,12 @@ WHERE TaskID = 5; -- 4.3 + +/* INSERT INTO Housing (Style, Availability, Location) VALUES ('Apartment', 'Available', 'New York City'); INSERT INTO Housing (Style, Availability) VALUES ('Apartment', 'Available'); +*/ diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index f11fcc40d3..840d2725e7 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -406,29 +406,28 @@ insert into Ticket (UserID, IssueType, Status, Priority, ReceivedDate, ResolvedD -- 10. SystemLog Data (depends on Ticket) -INSERT INTO SystemLog (LogID, TicketID, Timestamp, Activity, MetricType, Privacy, Security) +INSERT INTO SystemLog (TicketID, Timestamp, Activity, MetricType, Privacy, Security) VALUES -(1, 10, '2024-02-01 10:30:00', 'User logged in', 'High', 'Privacy Requests', 'Encryption'), -(2, 15, '2024-03-05 14:15:00', 'User updated profile', 'Medium', 'User Consent', 'Data Integrity'), -(3, 8, '2024-04-10 18:45:00', 'User logged out', 'Low', 'Anonymity', 'Authentication'), -(4, 20, '2024-05-01 09:00:00', 'User deleted profile', 'High', 'Privacy Requests', 'Access Control'), -(5, 12, '2024-06-20 12:00:00', 'User logged in', 'Medium', 'Data Sharing', 'Audit Logs'), -(6, 18, '2024-07-15 16:30:00', 'User updated profile', 'High', 'Security Events', 'Password Security'), -(7, 22, '2024-08-08 13:00:00', 'User logged out', 'Low', 'Privacy Requests', 'Encryption'), -(8, 25, '2024-09-12 17:45:00', 'User added event', 'High', 'Privacy Settings', 'User Reports'), -(9, 11, '2024-10-05 15:00:00', 'User logged in', 'Medium', 'Security Events', 'Intrusion Detection'), -(10, 6, '2024-11-15 11:30:00', 'User deleted profile', 'High', 'Anonymity', 'Access Control'), -(11, 19, '2024-12-02 08:45:00', 'User updated profile', 'Low', 'Data Access', 'Audit Logs'), -(12, 7, '2025-01-10 14:15:00', 'User logged in', 'Medium', 'User Consent', 'Authentication'), -(13, 14, '2025-02-05 16:00:00', 'User logged out', 'High', 'Privacy Requests', 'Encryption'), -(14, 23, '2025-03-12 10:30:00', 'User added event', 'Low', 'Anonymity', 'User Reports'), -(15, 5, '2025-04-15 12:45:00', 'User deleted profile', 'High', 'Data Sharing', 'Data Integrity'), -(16, 3, '2025-05-20 15:30:00', 'User logged out', 'Medium', 'Security Events', 'Password Security'), -(17, 16, '2025-06-25 09:15:00', 'User updated profile', 'High', 'Privacy Requests', 'Audit Logs'), -(18, 2, '2025-07-01 18:00:00', 'User added event', 'Medium', 'User Consent', 'Encryption'), -(19, 9, '2025-08-05 11:00:00', 'User logged in', 'Low', 'Privacy Requests', 'Intrusion Detection'), -(20, 4, '2025-09-15 14:00:00', 'User deleted profile', 'High', 'Security Events', 'Access Control'); - +(10, '2024-02-01 10:30:00', 'User logged in', 'High', 'Privacy Requests', 'Encryption'), +(15, '2024-03-05 14:15:00', 'User updated profile', 'Medium', 'User Consent', 'Data Integrity'), +( 8, '2024-04-10 18:45:00', 'User logged out', 'Low', 'Anonymity', 'Authentication'), +(20, '2024-05-01 09:00:00', 'User deleted profile', 'High', 'Privacy Requests', 'Access Control'), +(12, '2024-06-20 12:00:00', 'User logged in', 'Medium', 'Data Sharing', 'Audit Logs'), +(18, '2024-07-15 16:30:00', 'User updated profile', 'High', 'Security Events', 'Password Security'), +(22, '2024-08-08 13:00:00', 'User logged out', 'Low', 'Privacy Requests', 'Encryption'), +(25, '2024-09-12 17:45:00', 'User added event', 'High', 'Privacy Settings', 'User Reports'), +( 11, '2024-10-05 15:00:00', 'User logged in', 'Medium', 'Security Events', 'Intrusion Detection'), +( 6, '2024-11-15 11:30:00', 'User deleted profile', 'High', 'Anonymity', 'Access Control'), +( 19, '2024-12-02 08:45:00', 'User updated profile', 'Low', 'Data Access', 'Audit Logs'), +( 7, '2025-01-10 14:15:00', 'User logged in', 'Medium', 'User Consent', 'Authentication'), +( 14, '2025-02-05 16:00:00', 'User logged out', 'High', 'Privacy Requests', 'Encryption'), +(23, '2025-03-12 10:30:00', 'User added event', 'Low', 'Anonymity', 'User Reports'), +(5, '2025-04-15 12:45:00', 'User deleted profile', 'High', 'Data Sharing', 'Data Integrity'), +( 3, '2025-05-20 15:30:00', 'User logged out', 'Medium', 'Security Events', 'Password Security'), +( 16, '2025-06-25 09:15:00', 'User updated profile', 'High', 'Privacy Requests', 'Audit Logs'), +( 2, '2025-07-01 18:00:00', 'User added event', 'Medium', 'User Consent', 'Encryption'), +( 9, '2025-08-05 11:00:00', 'User logged in', 'Low', 'Privacy Requests', 'Intrusion Detection'), +( 4, '2025-09-15 14:00:00', 'User deleted profile', 'High', 'Security Events', 'Access Control'); diff --git a/docker-compose.yaml b/docker-compose.yaml index b922e7654f..6d13387abc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,28 +4,28 @@ services: build: ./app container_name: front-end volumes: ['./app/src:/appcode'] + # restart: unless-stopped ports: - - "8501:8501" + - 8501:8501 api: build: ./api container_name: web-api - depends_on: - - db + hostname: web-api volumes: ['./api:/apicode'] + ports: - - "4000:4000" - environment: - - DB_HOST=db - - DB_PORT=3306 + - 4000:4000 db: - image: mysql:8.0 - container_name: mysql_db env_file: - ./api/.env + image: mysql:8 + container_name: mysql_db volumes: - ./database-files:/docker-entrypoint-initdb.d/:ro + ports: - - "3306:3306" - \ No newline at end of file + - 3200:3306 + + restart: unless-stopped \ No newline at end of file From 38ec8364121343907b9f5da149fe7aa776d1ca67 Mon Sep 17 00:00:00 2001 From: christinejahn Date: Thu, 5 Dec 2024 12:02:09 -0500 Subject: [PATCH 297/305] update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 53d604e3bd..8bf84b72eb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This guidebook is inclusive of the details of our project and all the informatio By Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Park, Xavier Yu -## About SyncSpace (UPDATE TO FIT OUR MOST UDPATED MODEL) +## About SyncSpace Our app SyncSpace is a data-driven virtual community that aims to connect students going on co-ops and internships, helping them make the most of their experience. Students often feel isolated or overwhelmed when relocating for work, facing the challenges of finding housing, arranging transportation, and locating familiar faces nearby. SyncSpace solves this by using curated feedback, data, and shared interests/community forums to match students with ‘co-op buddies’ in their area, helping them form connections, navigate new cities, and share resources for housing and commuting. Designed for students and co-op advisors, SyncSpace offers real-time data insights that help students connect with each other and thrive professionally. With curated interest-based groups, housing and transportation forums, and a hub for professional events, students can access networking, guidance, and new friendships anytime they need it. Co-op advisors and system admin staff can effortlessly organize and track engagement, while gaining valuable data on student satisfaction, activity trends, and engagement levels. By building a vibrant, supportive community, we hope to empower students to make meaningful connections and maximize their co-op and internship experiences. From 5955600413f9ebdd9f91766ff0a42bcb93bf77c9 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Thu, 5 Dec 2024 12:06:14 -0500 Subject: [PATCH 298/305] Fixes --- api/backend/advisor/co_op_advisor_routes.py | 2 -- api/backend/db_connection/__init__.py | 2 ++ api/backend/rest_entry.py | 8 ++++---- database-files/02_SyncSpace-data.sql | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index 5b1a91c9bf..eb06a1e1a2 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -9,7 +9,6 @@ advisor = Blueprint('advisor', __name__) - @advisor.route('/advisor/tasks', methods=['GET']) def get_all_tasks(): query = ''' @@ -62,7 +61,6 @@ def get_notifications(): - @advisor.route('/advisor/tasks/', methods=['PUT']) def update_task_status(task_id): try: diff --git a/api/backend/db_connection/__init__.py b/api/backend/db_connection/__init__.py index 75332ea3d6..2af7d09493 100644 --- a/api/backend/db_connection/__init__.py +++ b/api/backend/db_connection/__init__.py @@ -32,3 +32,5 @@ def init_app(app): # Initialize the MySQL connection db.init_app(app) print("Database connection initialized") + + diff --git a/api/backend/rest_entry.py b/api/backend/rest_entry.py index acdcd7d794..e878be892c 100644 --- a/api/backend/rest_entry.py +++ b/api/backend/rest_entry.py @@ -2,15 +2,14 @@ logging.basicConfig(level=logging.DEBUG) - from flask import Flask from backend.db_connection import db +from backend.advisor.co_op_advisor_routes import advisor from backend.students.student2_routes import student2 from backend.tech_support_analyst.michael_routes import tech_support_analyst from backend.student_kevin.kevin_routes import kevin from backend.students.student_routes import students -from backend.advisor.co_op_advisor_routes import advisor import os from dotenv import load_dotenv @@ -45,12 +44,13 @@ def create_app(): # Register the routes from each Blueprint with the app object # and give a url prefix to each - app.logger.info('current_app(): registering blueprints with Flask app object.') + app.logger.info('current_app(): registering blueprints with Flask app object.') app.register_blueprint(student2, url_prefix='/s') app.register_blueprint(tech_support_analyst, url_prefix='/t') app.register_blueprint(kevin, url_prefix='/c') - app.register_blueprint(students, url_prefix='/api') app.register_blueprint(advisor, url_prefix='/api') + app.register_blueprint(students, url_prefix='/api') + # Don't forget to return the app object return app diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 840d2725e7..b00a269f64 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -212,7 +212,7 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); insert into Student(Name, Major, Location, HousingStatus, CarpoolStatus, LeaseDuration, CommunityID) values ('Kevin Chen', 'Data Science', 'San Jose', 'Searching for Housing', 'Searching for Carpool', '6 months', 2); -insert into Student(Name, Major, Location, Bio, CommunityID, Reminder) values ('Sarah Lopez', 'Business', 'New York City', 'Interested in the intersection between finance and data science!', 6, 2) +insert into Student(Name, Major, Location, Bio, CommunityID, Reminder) values ('Sarah Lopez', 'Business', 'New York City', 'Interested in the intersection between finance and data science!', 6, 2); -- 6. Events Data (depends on CityCommunity) From 7fbb0979bc1abc0c1094df8a101befcfa83ab604 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Thu, 5 Dec 2024 12:10:36 -0500 Subject: [PATCH 299/305] fixes --- api/backend/advisor/co_op_advisor_routes.py | 8 ++++---- app/src/pages/14_Create_Event.py | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index eb06a1e1a2..3ba9a3005d 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -140,17 +140,15 @@ def create_event(): query = ''' INSERT INTO Events ( - EventID, CommunityID, Date, Name, Description - ) VALUES (%s, %s, %s, %s, %s) + ) VALUES (%s, %s, %s, %s) ''' - cursor = db.get_db().cursor() + cursor = db.get_db().cursor(dictionary=True) cursor.execute(query, ( - data.get('event_id'), data.get('community_id'), data.get('date'), data.get('name'), @@ -158,11 +156,13 @@ def create_event(): )) db.get_db().commit() + return jsonify({ 'message': 'Event created successfully' }), 201 except Exception as e: + print(f"Error creating event: {str(e)}") db.get_db().rollback() return jsonify({'error': str(e)}), 500 diff --git a/app/src/pages/14_Create_Event.py b/app/src/pages/14_Create_Event.py index 000168a9cf..5f2209b865 100644 --- a/app/src/pages/14_Create_Event.py +++ b/app/src/pages/14_Create_Event.py @@ -19,7 +19,6 @@ def create_new_event(): # Event form with st.form("event_form"): - event_id = st.number_input("Event ID", min_value=1, step=1) name = st.text_input("Event Name") description = st.text_area("Description") date = st.date_input("Date") @@ -33,7 +32,6 @@ def create_new_event(): response = requests.post( create_url, json={ - 'event_id': event_id, 'name': name, 'description': description, 'date': date.strftime('%Y-%m-%d'), @@ -142,6 +140,7 @@ def delete_event(event_id): st.error(f"Error: {str(e)}") st.toast("Error deleting event", icon="⚠️") + # Main page logic st.title("Event Management") From 35ae1b25c0a1c50bcc3d92cd13cef03b2e74748c Mon Sep 17 00:00:00 2001 From: christinejahn Date: Thu, 5 Dec 2024 12:25:07 -0500 Subject: [PATCH 300/305] update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bf84b72eb..c71857ef7a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ By Team Fontenators: Christine Ahn, Praytusha Chamarthi, Mika Nguyen, Yugeun Par ## About SyncSpace Our app SyncSpace is a data-driven virtual community that aims to connect students going on co-ops and internships, helping them make the most of their experience. Students often feel isolated or overwhelmed when relocating for work, facing the challenges of finding housing, arranging transportation, and locating familiar faces nearby. SyncSpace solves this by using curated feedback, data, and shared interests/community forums to match students with ‘co-op buddies’ in their area, helping them form connections, navigate new cities, and share resources for housing and commuting. -Designed for students and co-op advisors, SyncSpace offers real-time data insights that help students connect with each other and thrive professionally. With curated interest-based groups, housing and transportation forums, and a hub for professional events, students can access networking, guidance, and new friendships anytime they need it. Co-op advisors and system admin staff can effortlessly organize and track engagement, while gaining valuable data on student satisfaction, activity trends, and engagement levels. By building a vibrant, supportive community, we hope to empower students to make meaningful connections and maximize their co-op and internship experiences. +Designed for students and co-op advisors, SyncSpace offers real-time data insights that help students connect with each other and thrive professionally. With personalized interest-based groups, housing and transportation forums, and a hub for professional events, students can access networking, guidance, and new friendships anytime they need it. Co-op advisors and system admin staff can effortlessly organize and track engagement, while gaining valuable data on student satisfaction, activity trends, and engagement levels. By building a vibrant, supportive community, we hope to empower students to make meaningful connections and maximize their co-op and internship experiences. ## Prerequisites From 1414fae0591277185a6044aee25f3c728f0426f7 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 12:32:05 -0500 Subject: [PATCH 301/305] sidebar --- app/src/pages/31_Edit_Student_Profile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/pages/31_Edit_Student_Profile.py b/app/src/pages/31_Edit_Student_Profile.py index 808cd822d5..7f47814ca7 100644 --- a/app/src/pages/31_Edit_Student_Profile.py +++ b/app/src/pages/31_Edit_Student_Profile.py @@ -1,12 +1,14 @@ import logging import streamlit as st import requests +from modules.nav import SideBarLinks # Configure logger logger = logging.getLogger(__name__) # Set the layout for the Streamlit app st.set_page_config(layout='wide') +SideBarLinks() # Title and subtitle st.title('Edit Profile') From 0f7d7f3a6f1e2b32f76d0b2a406a18ab7ca89187 Mon Sep 17 00:00:00 2001 From: xavieryu18 Date: Thu, 5 Dec 2024 12:47:14 -0500 Subject: [PATCH 302/305] event button --- api/backend/advisor/co_op_advisor_routes.py | 61 +++++++++++++-------- api/backend/students/student_routes.py | 23 +++++++- app/src/modules/nav.py | 1 + app/src/pages/14_Create_Event.py | 24 ++++---- 4 files changed, 75 insertions(+), 34 deletions(-) diff --git a/api/backend/advisor/co_op_advisor_routes.py b/api/backend/advisor/co_op_advisor_routes.py index 3ba9a3005d..a5753e2c23 100644 --- a/api/backend/advisor/co_op_advisor_routes.py +++ b/api/backend/advisor/co_op_advisor_routes.py @@ -64,36 +64,47 @@ def get_notifications(): @advisor.route('/advisor/tasks/', methods=['PUT']) def update_task_status(task_id): try: - # Get the new status from request body - data = request.get_json() + # Parse JSON data from request + data = request.json new_status = data.get('status') - - # Validate the status - valid_statuses = ['Pending', 'In Progress', 'Completed', 'Received'] - if new_status not in valid_statuses: - return jsonify({ - 'error': f'Invalid status. Must be one of: {", ".join(valid_statuses)}' - }), 400 - # Update using the correct column name (Status) + # Validate that status is provided + if not new_status: + return make_response(jsonify({"error": "Status is required"}), 400) + + # Build the SQL query to update the task status query = ''' - UPDATE Task - SET Status = %s - WHERE TaskID = %s + UPDATE Task + SET Status = %s + WHERE TaskID = %s ''' + values = (new_status, task_id) + + # Execute the query cursor = db.get_db().cursor() - cursor.execute(query, (new_status, task_id)) + cursor.execute(query, values) + + # Check if any rows were affected + if cursor.rowcount == 0: + db.get_db().rollback() + return make_response(jsonify({ + "error": f"No task found with ID {task_id}" + }), 404) + db.get_db().commit() + print(f"Successfully updated status for task {task_id} to {new_status}") # Debug log - return jsonify({ - 'message': 'Task status updated successfully', - 'task_id': task_id, - 'new_status': new_status - }), 200 + # Return success response + return make_response(jsonify({ + "message": "Task status updated successfully", + "task_id": task_id, + "new_status": new_status + }), 200) except Exception as e: + print(f"Error updating task status: {str(e)}") # Debug log db.get_db().rollback() - return jsonify({'error': str(e)}), 500 + return make_response(jsonify({"error": str(e)}), 500) @advisor.route('/advisor/tasks//reminder', methods=['PUT']) @@ -137,6 +148,7 @@ def update_task_reminder(task_id): def create_event(): try: data = request.get_json() + print("Received data:", data) # Log the received data query = ''' INSERT INTO Events ( @@ -147,7 +159,8 @@ def create_event(): ) VALUES (%s, %s, %s, %s) ''' - cursor = db.get_db().cursor(dictionary=True) + cursor = db.get_db().cursor() + print("Executing query:", query) # Log the query cursor.execute(query, ( data.get('community_id'), data.get('date'), @@ -155,14 +168,14 @@ def create_event(): data.get('description') )) db.get_db().commit() - + print("Event created successfully") # Log success return jsonify({ 'message': 'Event created successfully' }), 201 except Exception as e: - print(f"Error creating event: {str(e)}") + print(f"Error creating event: {str(e)}") # Log the error db.get_db().rollback() return jsonify({'error': str(e)}), 500 @@ -254,3 +267,5 @@ def get_event(event_id): return jsonify({'error': str(e)}), 500 + + diff --git a/api/backend/students/student_routes.py b/api/backend/students/student_routes.py index 461ebe9b5d..fffa36e3a2 100644 --- a/api/backend/students/student_routes.py +++ b/api/backend/students/student_routes.py @@ -156,11 +156,13 @@ def update_housing_match(): student_id = data.get('student_id') housing_id = data.get('housing_id') + print(f"Updating housing match - Student: {student_id}, Housing: {housing_id}") # Debug log + # Update student's housing status to Complete student_query = ''' UPDATE Student SET HousingStatus = 'Complete', - CommunityID = (SELECT Commun¬ityID FROM Housing WHERE HousingID = %s) + CommunityID = (SELECT CommunityID FROM Housing WHERE HousingID = %s) WHERE StudentID = %s ''' @@ -172,9 +174,25 @@ def update_housing_match(): ''' cursor = db.get_db().cursor() + + # Execute student update cursor.execute(student_query, (housing_id, student_id)) + if cursor.rowcount == 0: + db.get_db().rollback() + return jsonify({ + 'error': f'No student found with ID {student_id}' + }), 404 + + # Execute housing update cursor.execute(housing_query, (housing_id,)) + if cursor.rowcount == 0: + db.get_db().rollback() + return jsonify({ + 'error': f'No housing found with ID {housing_id}' + }), 404 + db.get_db().commit() + print(f"Successfully updated housing match") # Debug log return jsonify({ 'message': 'Housing match updated successfully', @@ -183,5 +201,8 @@ def update_housing_match(): }), 200 except Exception as e: + print(f"Error updating housing match: {str(e)}") # Debug log db.get_db().rollback() return jsonify({'error': str(e)}), 500 + + diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 79e4725807..4780fd41f7 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -25,6 +25,7 @@ def JessicaPageNav(): st.sidebar.page_link("pages/11_Student_Tasks.py", label="Student Tasks", icon="📝") st.sidebar.page_link("pages/12_Feedback.py", label="Feedback", icon="🧐") st.sidebar.page_link("pages/13_Housing.py", label="Housing", icon="🏘️") + st.sidebar.page_link("pages/14_Create_Event.py", label="Event", icon="➕") #### ------------------------ Student Housing/Carpool Role ------------------------ def KevinPageNav(): diff --git a/app/src/pages/14_Create_Event.py b/app/src/pages/14_Create_Event.py index 5f2209b865..9c187a3f92 100644 --- a/app/src/pages/14_Create_Event.py +++ b/app/src/pages/14_Create_Event.py @@ -29,15 +29,18 @@ def create_new_event(): if submitted: try: - response = requests.post( - create_url, - json={ - 'name': name, - 'description': description, - 'date': date.strftime('%Y-%m-%d'), - 'community_id': community_id - } - ) + payload = { + 'name': name, + 'description': description, + 'date': date.strftime('%Y-%m-%d'), + 'community_id': community_id + } + st.write("Sending payload:", payload) # Debug print + + response = requests.post(create_url, json=payload) + + st.write("Response status:", response.status_code) # Debug print + st.write("Response content:", response.text) # Debug print if response.status_code == 201: st.success("Event created successfully!") @@ -46,7 +49,7 @@ def create_new_event(): st.query_params["page"] = "10_Events" st.rerun() else: - st.error("Failed to create event") + st.error(f"Failed to create event: {response.text}") st.toast("Failed to create event", icon="❌") except Exception as e: @@ -150,6 +153,7 @@ def delete_event(event_id): ["Create New Event", "Edit Event", "Delete Event"] ) + # Display different interfaces based on selection if operation == "Create New Event": create_new_event() From ae20b110d26c0790711de77868b56da94cb90afd Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 12:51:53 -0500 Subject: [PATCH 303/305] updates --- app/src/modules/nav.py | 1 + database-files/02_SyncSpace-data.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/modules/nav.py b/app/src/modules/nav.py index 79e4725807..4780fd41f7 100644 --- a/app/src/modules/nav.py +++ b/app/src/modules/nav.py @@ -25,6 +25,7 @@ def JessicaPageNav(): st.sidebar.page_link("pages/11_Student_Tasks.py", label="Student Tasks", icon="📝") st.sidebar.page_link("pages/12_Feedback.py", label="Feedback", icon="🧐") st.sidebar.page_link("pages/13_Housing.py", label="Housing", icon="🏘️") + st.sidebar.page_link("pages/14_Create_Event.py", label="Event", icon="➕") #### ------------------------ Student Housing/Carpool Role ------------------------ def KevinPageNav(): diff --git a/database-files/02_SyncSpace-data.sql b/database-files/02_SyncSpace-data.sql index 840d2725e7..b00a269f64 100644 --- a/database-files/02_SyncSpace-data.sql +++ b/database-files/02_SyncSpace-data.sql @@ -212,7 +212,7 @@ insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatu insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Caddric Skin', 'Art', 'Shell', 'D.C.', 'Searching for Housing', 'Searching for Carpool', 2200, '6 months', 2, 'Cozy', 20, 1, 'Is passionate about environmental conservation and volunteers for clean-up projects', 7, 3, 4); insert into Student (Name, Major, Company, Location, HousingStatus, CarpoolStatus, Budget, LeaseDuration, Cleanliness, Lifestyle, CommuteTime, CommuteDays, Bio, CommunityID, AdvisorID, Reminder) values ('Kalina Whitham', 'Public Health', 'General Motors', 'Atlanta', 'Searching for Housing', 'Complete', 1700, '4 months', 4, 'Healthy', 20, 1, 'Loves to read mystery novels and solve puzzles', 1, 9, 3); insert into Student(Name, Major, Location, HousingStatus, CarpoolStatus, LeaseDuration, CommunityID) values ('Kevin Chen', 'Data Science', 'San Jose', 'Searching for Housing', 'Searching for Carpool', '6 months', 2); -insert into Student(Name, Major, Location, Bio, CommunityID, Reminder) values ('Sarah Lopez', 'Business', 'New York City', 'Interested in the intersection between finance and data science!', 6, 2) +insert into Student(Name, Major, Location, Bio, CommunityID, Reminder) values ('Sarah Lopez', 'Business', 'New York City', 'Interested in the intersection between finance and data science!', 6, 2); -- 6. Events Data (depends on CityCommunity) From ae5b4d9703ea8418148ab7bb26e66b1cf5f6d609 Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 13:42:39 -0500 Subject: [PATCH 304/305] Update 14_Create_Event.py --- app/src/pages/14_Create_Event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/pages/14_Create_Event.py b/app/src/pages/14_Create_Event.py index 9c187a3f92..60534d4082 100644 --- a/app/src/pages/14_Create_Event.py +++ b/app/src/pages/14_Create_Event.py @@ -145,7 +145,7 @@ def delete_event(event_id): # Main page logic -st.title("Event Management") +#st.title("Event Management") # Dropdown for operation selection operation = st.selectbox( From 1f63f69eaed25067f44d4b4d0b367c39f1ef38fd Mon Sep 17 00:00:00 2001 From: mmikanguyen Date: Thu, 5 Dec 2024 14:08:38 -0500 Subject: [PATCH 305/305] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c71857ef7a..d1bca9cbc0 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,9 @@ Our app SyncSpace is a data-driven virtual community that aims to connect studen Designed for students and co-op advisors, SyncSpace offers real-time data insights that help students connect with each other and thrive professionally. With personalized interest-based groups, housing and transportation forums, and a hub for professional events, students can access networking, guidance, and new friendships anytime they need it. Co-op advisors and system admin staff can effortlessly organize and track engagement, while gaining valuable data on student satisfaction, activity trends, and engagement levels. By building a vibrant, supportive community, we hope to empower students to make meaningful connections and maximize their co-op and internship experiences. +## Link to our demo +https://youtu.be/8xzt0m0avSg + ## Prerequisites - A GitHub Account