From b7d3a157a8737a8c7fe9b7e35849ccbe028d9e1f Mon Sep 17 00:00:00 2001 From: Melina <147770119+melinayg@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:10:51 -0400 Subject: [PATCH 01/33] updated db file --- db/phasetwo.sql | 395 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 395 insertions(+) create mode 100644 db/phasetwo.sql diff --git a/db/phasetwo.sql b/db/phasetwo.sql new file mode 100644 index 00000000..cb756ad3 --- /dev/null +++ b/db/phasetwo.sql @@ -0,0 +1,395 @@ +CREATE DATABASE GoMass; +USE GoMass; + +CREATE TABLE User ( + UserID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + Age INT, + Occupation VARCHAR(255), + Hometown VARCHAR(255), + Budget FLOAT, + Dislikes TEXT, + Likes TEXT, + Gender VARCHAR(10), + DietaryRestrictions TEXT, + SubscriptionPlan TEXT, + PaymentID INT, + Paid VARCHAR(255), + Free TEXT, + PaymentMethod TEXT +); + +CREATE TABLE User_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + UserID INT, + CONSTRAINT fk_0 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Activity ( + ActivityID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name VARCHAR(255) NOT NULL +); + +CREATE TABLE User_to_Activity( + UserID INT, + ActivityID INT, + CONSTRAINT fk_1 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_2 + FOREIGN KEY (ActivityID) REFERENCES Activity (ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Interests_Hobbies ( + InterestHobbiesID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Physical TEXT, + Art TEXT, + Music TEXT, + Cooking TEXT, + UserID INT, + CONSTRAINT fk_3 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE PaymentPlan( + PaymentID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Paid INT, + Free INT, + PaymentMethod TEXT, + UserID INT, + CONSTRAINT fk_4 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE GroupAct ( + Group_Type_ID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Number_of_Friends INT, + Group_Budget INT, + UserID INT, + ActivityID INT, + CONSTRAINT fk_5 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_6 + FOREIGN KEY (ActivityID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Group_Meeting ( + Meeting_Time VARCHAR(7) PRIMARY KEY UNIQUE, + Group_Type_ID INT, + CONSTRAINT fk_7 + FOREIGN KEY (Group_Type_ID) REFERENCES GroupAct (Group_Type_ID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Destination ( + Address VARCHAR(255) PRIMARY KEY UNIQUE, + Street VARCHAR(255), + Zipcode VARCHAR(10), + City VARCHAR(255), + State VARCHAR(255), + Distance VARCHAR(255), + Proximity ENUM('long', 'med', 'short'), + WeatherRecommendations TEXT +); + +CREATE TABLE Destination_location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + Address VARCHAR(255), + CONSTRAINT fk_8 + FOREIGN KEY (Address) REFERENCES Destination(Address) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Transportation ( + TransportationID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Budget Float, + CleanlinessSafety VARCHAR(255) +); + +CREATE TABLE User_to_Transpo ( + UserID INT, + TransportationID INT, + CONSTRAINT fk_9 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_10 + FOREIGN KEY (TransportationID) REFERENCES Transportation (TransportationID) + ON UPDATE CASCADE ON DELETE RESTRICT +); +CREATE TABLE User_Des ( + Address VARCHAR(255), + UserID INT, + CONSTRAINT fk_11 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_12 + FOREIGN KEY (Address) REFERENCES Destination (Address) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE TransportationType ( + Type_of_Transpo VARCHAR(255) PRIMARY KEY UNIQUE, + TransportationID INT, + CONSTRAINT fk_13 + FOREIGN KEY (TransportationID) REFERENCES Transportation(TransportationID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Destination_to_Transportation ( + TransportationID INT, + Address VARCHAR(255), + CONSTRAINT fk_14 + FOREIGN KEY (TransportationID) REFERENCES Transportation(TransportationID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_15 + FOREIGN KEY (Address) REFERENCES Destination(Address) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Restaurants( + RestaurantID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + Reservations INT, + CuisineType TEXT, + PriceTag VARCHAR(5), + Location TEXT, + ActivityType INT, + CONSTRAINT fk_16 + FOREIGN KEY (ActivityType) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Restaurant_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + RestaurantID INT, + CONSTRAINT fk_17 + FOREIGN KEY (RestaurantID) REFERENCES Restaurants (RestaurantID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Cafes ( + CafeID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Cuisine TEXT, + Name TEXT, + OverallRating INT, + ActivityTypeID INT, + PriceTag VARCHAR(5), + CONSTRAINT fk_18 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Cafe_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + CafeID INT, + CONSTRAINT fk_19 + FOREIGN KEY (CafeID) REFERENCES Cafes(CafeID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE MusicFestivals( + FestivalID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + MusicType TEXT, + CrowdSize INT, + Location TEXT, + OverallRating INT, + PriceTag VARCHAR(5), + ActivityTypeID INT, + CONSTRAINT fk_20 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Music_Festivals_Artists ( + Artists VARCHAR(255) PRIMARY KEY UNIQUE, + FestivalID INT, + CONSTRAINT fk_21 + FOREIGN KEY (FestivalID) REFERENCES MusicFestivals(FestivalID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Shopping ( + ShoppingID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name VARCHAR(255) NOT NULL, + PriceTag VARCHAR(5), + Shopping_Area_Size VARCHAR(255), + OverallRating INT, + ActivityTypeID INT, + CONSTRAINT fk_22 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Shopping_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + ShoppingID INT, + CONSTRAINT fk_23 + FOREIGN KEY (ShoppingID) REFERENCES Shopping(ShoppingID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Outdoor_Activity ( + OutdoorID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name VARCHAR(255), + Difficulty_level VARCHAR(255), + Danger_level VARCHAR(255), + Experience VARCHAR(255), + Location VARCHAR(255), + PriceTag VARCHAR(5), + ActivityTypeID INT, + CONSTRAINT fk_24 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); +CREATE TABLE Outdoor_Activity_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + OutdoorID INT, + CONSTRAINT fk_25 + FOREIGN KEY (OutdoorID) REFERENCES Outdoor_Activity(OutdoorID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE ArtsMuseums ( + ArtMuseumID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + ArtType TEXT, + CollegeStudents INT, + PriceTag VARCHAR(5), + OverallRating CHAR(5), + ActivityTypeID INT, + CONSTRAINT fk_26 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE ArtMuseumsLocation ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + ArtMuseumID INT, + CONSTRAINT fk_27 + FOREIGN KEY (ArtMuseumID) REFERENCES ArtsMuseums(ArtMuseumID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +INSERT INTO User (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, SubscriptionPlan, PaymentID, Paid, Free, PaymentMethod) +VALUES ('Michael Smith', 30, 'Software Developer', 'Boston', 1500.00, 'Crowds, Loud music', 'Hiking, Reading', 'Male', 'None', 'Monthly', 1, 'Yes', 'No', 'Credit Card'); + + +INSERT INTO User (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, SubscriptionPlan, PaymentID, Paid, Free, PaymentMethod) +VALUES ('Jane Smith', 28, 'Artist', 'Cambridge', 1200.00, 'Spicy food', 'Art, Music concerts', 'Female', 'Vegetarian', 'Annual', 2, 'Yes', 'No', 'PayPal'); + + +INSERT INTO User_Location (Location, UserID) VALUES ('Boston, MA', 1); +INSERT INTO User_Location (Location, UserID) VALUES ('Cambridge, MA', 2); + + +INSERT INTO Activity (Name) VALUES ('Hiking'); +INSERT INTO Activity (Name) VALUES ('Coding'); + + +INSERT INTO User_to_Activity (UserID, ActivityID) VALUES (1, 1); +INSERT INTO User_to_Activity (UserID, ActivityID) VALUES (2, 2); + + +INSERT INTO Interests_Hobbies (Physical, Art, Music, Cooking, UserID) VALUES ('Running', 'Painting', 'Classical', 'Italian', 1); +INSERT INTO Interests_Hobbies (Physical, Art, Music, Cooking, UserID) VALUES ('Yoga', 'Digital Art', 'Electronic', 'Japanese', 2); + + +INSERT INTO PaymentPlan (Paid, Free, PaymentMethod, UserID) VALUES (300, 0, 'Credit Card', 1); +INSERT INTO PaymentPlan (Paid, Free, PaymentMethod, UserID) VALUES (0, 0, 'PayPal', 2); + + +INSERT INTO GroupAct (Number_of_Friends, Group_Budget, UserID, ActivityID) VALUES (5, 500, 1, 1); +INSERT INTO GroupAct (Number_of_Friends, Group_Budget, UserID, ActivityID) VALUES (3, 300, 2, 2); + + +INSERT INTO Group_Meeting (Meeting_Time, Group_Type_ID) VALUES ('12:00', 1); +INSERT INTO Group_Meeting (Meeting_Time, Group_Type_ID) VALUES ('2:00', 2); + + +INSERT INTO Destination (Address, Street, Zipcode, City, State, Distance, Proximity, WeatherRecommendations) VALUES ('123 Main St', 'Main Street', '12345', 'Metropolis', 'MA', '10 miles', 'short', 'Sunny days recommended'); +INSERT INTO Destination (Address, Street, Zipcode, City, State, Distance, Proximity, WeatherRecommendations) VALUES ('456 Side St', 'Side Street', '67890', 'Gotham', 'MA', '20 miles', 'med', 'Rainy days possible'); + + +INSERT INTO Destination_location (Location, Address) VALUES ('Central Park', '123 Main St'); +INSERT INTO Destination_location (Location, Address) VALUES ('Gotham Marina', '456 Side St'); + + +INSERT INTO Transportation (Budget, CleanlinessSafety) VALUES (100.00, 'High'); +INSERT INTO Transportation (Budget, CleanlinessSafety) VALUES (150.00, 'Medium'); + + +INSERT INTO User_to_Transpo (UserID, TransportationID) VALUES (1, 1); +INSERT INTO User_to_Transpo (UserID, TransportationID) VALUES (2, 2); + + +INSERT INTO User_Des (Address, UserID) VALUES ('123 Main St', 1); +INSERT INTO User_Des (Address, UserID) VALUES ('456 Side St', 2); + + +INSERT INTO TransportationType (Type_of_Transpo, TransportationID) VALUES ('Bus', 1); +INSERT INTO TransportationType (Type_of_Transpo, TransportationID) VALUES ('Train', 2); + + +INSERT INTO Destination_to_Transportation (TransportationID, Address) VALUES (1, '123 Main St'); +INSERT INTO Destination_to_Transportation (TransportationID, Address) VALUES (2, '456 Side St'); + + +INSERT INTO Restaurants (Name, Reservations, CuisineType, PriceTag, Location, ActivityType) VALUES ('The Fancy Feast', 20, 'French', '$$$', '123 Gourmet Alley', 1); +INSERT INTO Restaurants (Name, Reservations, CuisineType, PriceTag, Location, ActivityType) VALUES ('Burger Barn', 50, 'American', '$', '456 Fast Food Way', 2); + + + +INSERT INTO Restaurant_Location (Location, RestaurantID) VALUES ('Gourmet Alley', 1); +INSERT INTO Restaurant_Location (Location, RestaurantID) VALUES ('Fast Food Way', 2); + + +INSERT INTO Cafes (Cuisine, Name, OverallRating, PriceTag, ActivityTypeID) VALUES ('Italian', 'Cafe Roma', 5,'$$', 1); +INSERT INTO Cafes (Cuisine, Name, OverallRating, PriceTag, ActivityTypeID) VALUES ('French', 'Le Petit Cafe', 4,'$',2); + + +INSERT INTO Cafe_Location (Location, CafeID) VALUES ('Downtown District', 1); +INSERT INTO Cafe_Location (Location, CafeID) VALUES ('Historic Center', 2); + + +INSERT INTO MusicFestivals (Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, ActivityTypeID) VALUES ('Summer Sounds', 'Pop', 10000, 'Beachside', 5, '$$',1); +INSERT INTO MusicFestivals (Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, ActivityTypeID) VALUES ('Rock Riot', 'Rock', 5000, 'Downtown', 4, '$$', 2); + + + + +INSERT INTO Music_Festivals_Artists (Artists, FestivalID) VALUES ('The Zephyrs', 1); +INSERT INTO Music_Festivals_Artists (Artists, FestivalID) VALUES ('Guitar Heroes', 2); + + + + +INSERT INTO Shopping (Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) VALUES ('Zara', '$$$', 'Large', 5, 1); +INSERT INTO Shopping (Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) VALUES ('Sephora', '$$$', 'Medium', 4, 2); + + +INSERT INTO Shopping_Location (Location, ShoppingID) VALUES ('City Center', 1); +INSERT INTO Shopping_Location (Location, ShoppingID) VALUES ('Riverside', 2); + + +INSERT INTO Outdoor_Activity (Name, Difficulty_level, Danger_level, Experience, Location, Cost, ActivityTypeID) VALUES ('Mountain Biking', 'High', 'Medium', 'Expert', 'Trail Park', '$$', 1); +INSERT INTO Outdoor_Activity (Name, Difficulty_level, Danger_level, Experience, Location, Cost, ActivityTypeID) VALUES ('Kayaking', 'Medium', 'Low', 'Beginner', 'River Run', '$', 2); + + +INSERT INTO Outdoor_Activity_Location (Location, OutdoorID) VALUES ('Trail Park', 1); +INSERT INTO Outdoor_Activity_Location (Location, OutdoorID) VALUES ('River Run', 2); + + +INSERT INTO ArtsMuseums (PriceTag, Name, ArtType, CollegeStudents, OverallRating, ActivityTypeID) VALUES ('$', 'Modern Art Museum', 'Modern', 500, 'A', 1); +INSERT INTO ArtsMuseums (PriceTag, Name, ArtType, CollegeStudents, OverallRating, ActivityTypeID) VALUES ('$', 'History Museum', 'Historical', 300, 'A-', 2); + + +INSERT INTO ArtMuseumsLocation (Location, ArtMuseumID) VALUES ('Cultural District', 1); +INSERT INTO ArtMuseumsLocation (Location, ArtMuseumID) VALUES ('Old Town', 2); From a348c52096c93775e8ffda79fce9fc682e46fa67 Mon Sep 17 00:00:00 2001 From: melinayg Date: Thu, 11 Apr 2024 17:39:16 -0400 Subject: [PATCH 02/33] routes folders --- db/phasetwo.sql | 395 ++++++++++++++++++ docker-compose.yml | 30 +- .../{customers => ArtsMuseums}/customers.py | 22 +- flask-app/src/Cafes/customers.py | 59 +++ flask-app/src/Destination/customers.py | 59 +++ flask-app/src/GroupActivity/customers.py | 59 +++ flask-app/src/InterestsHobbies/customers.py | 59 +++ flask-app/src/Movies/customers.py | 59 +++ flask-app/src/MusicFestivals/customers.py | 59 +++ flask-app/src/OutdoorActivity/customers.py | 59 +++ flask-app/src/PaymentPlan/customers.py | 59 +++ flask-app/src/Restaurants/customers.py | 59 +++ flask-app/src/Shopping/customers.py | 59 +++ flask-app/src/Transportation/customers.py | 59 +++ flask-app/src/User/customers.py | 59 +++ 15 files changed, 1138 insertions(+), 17 deletions(-) create mode 100644 db/phasetwo.sql rename flask-app/src/{customers => ArtsMuseums}/customers.py (70%) create mode 100644 flask-app/src/Cafes/customers.py create mode 100644 flask-app/src/Destination/customers.py create mode 100644 flask-app/src/GroupActivity/customers.py create mode 100644 flask-app/src/InterestsHobbies/customers.py create mode 100644 flask-app/src/Movies/customers.py create mode 100644 flask-app/src/MusicFestivals/customers.py create mode 100644 flask-app/src/OutdoorActivity/customers.py create mode 100644 flask-app/src/PaymentPlan/customers.py create mode 100644 flask-app/src/Restaurants/customers.py create mode 100644 flask-app/src/Shopping/customers.py create mode 100644 flask-app/src/Transportation/customers.py create mode 100644 flask-app/src/User/customers.py diff --git a/db/phasetwo.sql b/db/phasetwo.sql new file mode 100644 index 00000000..cb756ad3 --- /dev/null +++ b/db/phasetwo.sql @@ -0,0 +1,395 @@ +CREATE DATABASE GoMass; +USE GoMass; + +CREATE TABLE User ( + UserID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + Age INT, + Occupation VARCHAR(255), + Hometown VARCHAR(255), + Budget FLOAT, + Dislikes TEXT, + Likes TEXT, + Gender VARCHAR(10), + DietaryRestrictions TEXT, + SubscriptionPlan TEXT, + PaymentID INT, + Paid VARCHAR(255), + Free TEXT, + PaymentMethod TEXT +); + +CREATE TABLE User_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + UserID INT, + CONSTRAINT fk_0 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Activity ( + ActivityID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name VARCHAR(255) NOT NULL +); + +CREATE TABLE User_to_Activity( + UserID INT, + ActivityID INT, + CONSTRAINT fk_1 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_2 + FOREIGN KEY (ActivityID) REFERENCES Activity (ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Interests_Hobbies ( + InterestHobbiesID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Physical TEXT, + Art TEXT, + Music TEXT, + Cooking TEXT, + UserID INT, + CONSTRAINT fk_3 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE PaymentPlan( + PaymentID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Paid INT, + Free INT, + PaymentMethod TEXT, + UserID INT, + CONSTRAINT fk_4 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE GroupAct ( + Group_Type_ID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Number_of_Friends INT, + Group_Budget INT, + UserID INT, + ActivityID INT, + CONSTRAINT fk_5 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_6 + FOREIGN KEY (ActivityID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Group_Meeting ( + Meeting_Time VARCHAR(7) PRIMARY KEY UNIQUE, + Group_Type_ID INT, + CONSTRAINT fk_7 + FOREIGN KEY (Group_Type_ID) REFERENCES GroupAct (Group_Type_ID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Destination ( + Address VARCHAR(255) PRIMARY KEY UNIQUE, + Street VARCHAR(255), + Zipcode VARCHAR(10), + City VARCHAR(255), + State VARCHAR(255), + Distance VARCHAR(255), + Proximity ENUM('long', 'med', 'short'), + WeatherRecommendations TEXT +); + +CREATE TABLE Destination_location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + Address VARCHAR(255), + CONSTRAINT fk_8 + FOREIGN KEY (Address) REFERENCES Destination(Address) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Transportation ( + TransportationID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Budget Float, + CleanlinessSafety VARCHAR(255) +); + +CREATE TABLE User_to_Transpo ( + UserID INT, + TransportationID INT, + CONSTRAINT fk_9 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_10 + FOREIGN KEY (TransportationID) REFERENCES Transportation (TransportationID) + ON UPDATE CASCADE ON DELETE RESTRICT +); +CREATE TABLE User_Des ( + Address VARCHAR(255), + UserID INT, + CONSTRAINT fk_11 + FOREIGN KEY (UserID) REFERENCES User (UserID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_12 + FOREIGN KEY (Address) REFERENCES Destination (Address) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE TransportationType ( + Type_of_Transpo VARCHAR(255) PRIMARY KEY UNIQUE, + TransportationID INT, + CONSTRAINT fk_13 + FOREIGN KEY (TransportationID) REFERENCES Transportation(TransportationID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Destination_to_Transportation ( + TransportationID INT, + Address VARCHAR(255), + CONSTRAINT fk_14 + FOREIGN KEY (TransportationID) REFERENCES Transportation(TransportationID) + ON UPDATE CASCADE ON DELETE RESTRICT, + CONSTRAINT fk_15 + FOREIGN KEY (Address) REFERENCES Destination(Address) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Restaurants( + RestaurantID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + Reservations INT, + CuisineType TEXT, + PriceTag VARCHAR(5), + Location TEXT, + ActivityType INT, + CONSTRAINT fk_16 + FOREIGN KEY (ActivityType) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Restaurant_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + RestaurantID INT, + CONSTRAINT fk_17 + FOREIGN KEY (RestaurantID) REFERENCES Restaurants (RestaurantID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Cafes ( + CafeID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Cuisine TEXT, + Name TEXT, + OverallRating INT, + ActivityTypeID INT, + PriceTag VARCHAR(5), + CONSTRAINT fk_18 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Cafe_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + CafeID INT, + CONSTRAINT fk_19 + FOREIGN KEY (CafeID) REFERENCES Cafes(CafeID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE MusicFestivals( + FestivalID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + MusicType TEXT, + CrowdSize INT, + Location TEXT, + OverallRating INT, + PriceTag VARCHAR(5), + ActivityTypeID INT, + CONSTRAINT fk_20 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Music_Festivals_Artists ( + Artists VARCHAR(255) PRIMARY KEY UNIQUE, + FestivalID INT, + CONSTRAINT fk_21 + FOREIGN KEY (FestivalID) REFERENCES MusicFestivals(FestivalID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Shopping ( + ShoppingID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name VARCHAR(255) NOT NULL, + PriceTag VARCHAR(5), + Shopping_Area_Size VARCHAR(255), + OverallRating INT, + ActivityTypeID INT, + CONSTRAINT fk_22 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Shopping_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + ShoppingID INT, + CONSTRAINT fk_23 + FOREIGN KEY (ShoppingID) REFERENCES Shopping(ShoppingID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE Outdoor_Activity ( + OutdoorID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name VARCHAR(255), + Difficulty_level VARCHAR(255), + Danger_level VARCHAR(255), + Experience VARCHAR(255), + Location VARCHAR(255), + PriceTag VARCHAR(5), + ActivityTypeID INT, + CONSTRAINT fk_24 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); +CREATE TABLE Outdoor_Activity_Location ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + OutdoorID INT, + CONSTRAINT fk_25 + FOREIGN KEY (OutdoorID) REFERENCES Outdoor_Activity(OutdoorID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE ArtsMuseums ( + ArtMuseumID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, + Name TEXT, + ArtType TEXT, + CollegeStudents INT, + PriceTag VARCHAR(5), + OverallRating CHAR(5), + ActivityTypeID INT, + CONSTRAINT fk_26 + FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +CREATE TABLE ArtMuseumsLocation ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + ArtMuseumID INT, + CONSTRAINT fk_27 + FOREIGN KEY (ArtMuseumID) REFERENCES ArtsMuseums(ArtMuseumID) + ON UPDATE CASCADE ON DELETE RESTRICT +); + +INSERT INTO User (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, SubscriptionPlan, PaymentID, Paid, Free, PaymentMethod) +VALUES ('Michael Smith', 30, 'Software Developer', 'Boston', 1500.00, 'Crowds, Loud music', 'Hiking, Reading', 'Male', 'None', 'Monthly', 1, 'Yes', 'No', 'Credit Card'); + + +INSERT INTO User (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, SubscriptionPlan, PaymentID, Paid, Free, PaymentMethod) +VALUES ('Jane Smith', 28, 'Artist', 'Cambridge', 1200.00, 'Spicy food', 'Art, Music concerts', 'Female', 'Vegetarian', 'Annual', 2, 'Yes', 'No', 'PayPal'); + + +INSERT INTO User_Location (Location, UserID) VALUES ('Boston, MA', 1); +INSERT INTO User_Location (Location, UserID) VALUES ('Cambridge, MA', 2); + + +INSERT INTO Activity (Name) VALUES ('Hiking'); +INSERT INTO Activity (Name) VALUES ('Coding'); + + +INSERT INTO User_to_Activity (UserID, ActivityID) VALUES (1, 1); +INSERT INTO User_to_Activity (UserID, ActivityID) VALUES (2, 2); + + +INSERT INTO Interests_Hobbies (Physical, Art, Music, Cooking, UserID) VALUES ('Running', 'Painting', 'Classical', 'Italian', 1); +INSERT INTO Interests_Hobbies (Physical, Art, Music, Cooking, UserID) VALUES ('Yoga', 'Digital Art', 'Electronic', 'Japanese', 2); + + +INSERT INTO PaymentPlan (Paid, Free, PaymentMethod, UserID) VALUES (300, 0, 'Credit Card', 1); +INSERT INTO PaymentPlan (Paid, Free, PaymentMethod, UserID) VALUES (0, 0, 'PayPal', 2); + + +INSERT INTO GroupAct (Number_of_Friends, Group_Budget, UserID, ActivityID) VALUES (5, 500, 1, 1); +INSERT INTO GroupAct (Number_of_Friends, Group_Budget, UserID, ActivityID) VALUES (3, 300, 2, 2); + + +INSERT INTO Group_Meeting (Meeting_Time, Group_Type_ID) VALUES ('12:00', 1); +INSERT INTO Group_Meeting (Meeting_Time, Group_Type_ID) VALUES ('2:00', 2); + + +INSERT INTO Destination (Address, Street, Zipcode, City, State, Distance, Proximity, WeatherRecommendations) VALUES ('123 Main St', 'Main Street', '12345', 'Metropolis', 'MA', '10 miles', 'short', 'Sunny days recommended'); +INSERT INTO Destination (Address, Street, Zipcode, City, State, Distance, Proximity, WeatherRecommendations) VALUES ('456 Side St', 'Side Street', '67890', 'Gotham', 'MA', '20 miles', 'med', 'Rainy days possible'); + + +INSERT INTO Destination_location (Location, Address) VALUES ('Central Park', '123 Main St'); +INSERT INTO Destination_location (Location, Address) VALUES ('Gotham Marina', '456 Side St'); + + +INSERT INTO Transportation (Budget, CleanlinessSafety) VALUES (100.00, 'High'); +INSERT INTO Transportation (Budget, CleanlinessSafety) VALUES (150.00, 'Medium'); + + +INSERT INTO User_to_Transpo (UserID, TransportationID) VALUES (1, 1); +INSERT INTO User_to_Transpo (UserID, TransportationID) VALUES (2, 2); + + +INSERT INTO User_Des (Address, UserID) VALUES ('123 Main St', 1); +INSERT INTO User_Des (Address, UserID) VALUES ('456 Side St', 2); + + +INSERT INTO TransportationType (Type_of_Transpo, TransportationID) VALUES ('Bus', 1); +INSERT INTO TransportationType (Type_of_Transpo, TransportationID) VALUES ('Train', 2); + + +INSERT INTO Destination_to_Transportation (TransportationID, Address) VALUES (1, '123 Main St'); +INSERT INTO Destination_to_Transportation (TransportationID, Address) VALUES (2, '456 Side St'); + + +INSERT INTO Restaurants (Name, Reservations, CuisineType, PriceTag, Location, ActivityType) VALUES ('The Fancy Feast', 20, 'French', '$$$', '123 Gourmet Alley', 1); +INSERT INTO Restaurants (Name, Reservations, CuisineType, PriceTag, Location, ActivityType) VALUES ('Burger Barn', 50, 'American', '$', '456 Fast Food Way', 2); + + + +INSERT INTO Restaurant_Location (Location, RestaurantID) VALUES ('Gourmet Alley', 1); +INSERT INTO Restaurant_Location (Location, RestaurantID) VALUES ('Fast Food Way', 2); + + +INSERT INTO Cafes (Cuisine, Name, OverallRating, PriceTag, ActivityTypeID) VALUES ('Italian', 'Cafe Roma', 5,'$$', 1); +INSERT INTO Cafes (Cuisine, Name, OverallRating, PriceTag, ActivityTypeID) VALUES ('French', 'Le Petit Cafe', 4,'$',2); + + +INSERT INTO Cafe_Location (Location, CafeID) VALUES ('Downtown District', 1); +INSERT INTO Cafe_Location (Location, CafeID) VALUES ('Historic Center', 2); + + +INSERT INTO MusicFestivals (Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, ActivityTypeID) VALUES ('Summer Sounds', 'Pop', 10000, 'Beachside', 5, '$$',1); +INSERT INTO MusicFestivals (Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, ActivityTypeID) VALUES ('Rock Riot', 'Rock', 5000, 'Downtown', 4, '$$', 2); + + + + +INSERT INTO Music_Festivals_Artists (Artists, FestivalID) VALUES ('The Zephyrs', 1); +INSERT INTO Music_Festivals_Artists (Artists, FestivalID) VALUES ('Guitar Heroes', 2); + + + + +INSERT INTO Shopping (Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) VALUES ('Zara', '$$$', 'Large', 5, 1); +INSERT INTO Shopping (Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) VALUES ('Sephora', '$$$', 'Medium', 4, 2); + + +INSERT INTO Shopping_Location (Location, ShoppingID) VALUES ('City Center', 1); +INSERT INTO Shopping_Location (Location, ShoppingID) VALUES ('Riverside', 2); + + +INSERT INTO Outdoor_Activity (Name, Difficulty_level, Danger_level, Experience, Location, Cost, ActivityTypeID) VALUES ('Mountain Biking', 'High', 'Medium', 'Expert', 'Trail Park', '$$', 1); +INSERT INTO Outdoor_Activity (Name, Difficulty_level, Danger_level, Experience, Location, Cost, ActivityTypeID) VALUES ('Kayaking', 'Medium', 'Low', 'Beginner', 'River Run', '$', 2); + + +INSERT INTO Outdoor_Activity_Location (Location, OutdoorID) VALUES ('Trail Park', 1); +INSERT INTO Outdoor_Activity_Location (Location, OutdoorID) VALUES ('River Run', 2); + + +INSERT INTO ArtsMuseums (PriceTag, Name, ArtType, CollegeStudents, OverallRating, ActivityTypeID) VALUES ('$', 'Modern Art Museum', 'Modern', 500, 'A', 1); +INSERT INTO ArtsMuseums (PriceTag, Name, ArtType, CollegeStudents, OverallRating, ActivityTypeID) VALUES ('$', 'History Museum', 'Historical', 300, 'A-', 2); + + +INSERT INTO ArtMuseumsLocation (Location, ArtMuseumID) VALUES ('Cultural District', 1); +INSERT INTO ArtMuseumsLocation (Location, ArtMuseumID) VALUES ('Old Town', 2); diff --git a/docker-compose.yml b/docker-compose.yml index cc47a38e..6b82bbc1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,13 +9,14 @@ services: ################################################################## # configure the webserver container web: - # Set up the web server according to the Dockerfile inside the api/ folder build: flask-app/ container_name: web # connect the src folder in on the host machine to the code folder in the container. - # note that the code folder in contaier is the working directory (see DockerFile). - volumes: ['./flask-app:/code', './secrets:/secrets'] + # note that the code folder in container is the working directory (see Dockerfile). + volumes: + - './flask-app:/code' + - './secrets:/secrets' # have the container restart if it fails for some reason. restart: unless-stopped @@ -24,7 +25,6 @@ services: # EXPOSE command in api/Dockerfile) ports: - "8001:4000" - links: - db @@ -37,12 +37,12 @@ services: volumes: # anything in (or mounted in) /docker-entrypoint-initdb.d in the container # will automatically be executed when the container is created - - ./db:/docker-entrypoint-initdb.d/:ro + - './db:/docker-entrypoint-initdb.d/:ro' ports: # mapping host port 3200 to container port 3306, which is the # default port for mysql. - - 3200:3306 + - "3200:3306" restart: unless-stopped @@ -62,15 +62,15 @@ services: ################################################################## # configure the AppSmith container (borrowed directly from Appsmith) -# appsmith: -# image: index.docker.io/appsmith/appsmith-ce -# container_name: appsmith -# ports: -# - "8080:80" -# - "4443:443" -# volumes: -# - ./stacks:/appsmith-stacks -# restart: unless-stopped + appsmith: + image: index.docker.io/appsmith/appsmith-ce + container_name: appsmith + ports: + - "8080:80" + - "4443:443" + volumes: + - './stacks:/appsmith-stacks' + restart: unless-stopped secrets: secret_db_pw: diff --git a/flask-app/src/customers/customers.py b/flask-app/src/ArtsMuseums/customers.py similarity index 70% rename from flask-app/src/customers/customers.py rename to flask-app/src/ArtsMuseums/customers.py index 4b71d8c8..676ef0e4 100644 --- a/flask-app/src/customers/customers.py +++ b/flask-app/src/ArtsMuseums/customers.py @@ -9,11 +9,27 @@ customers = Blueprint('customers', __name__) +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + # Get all customers from the DB @customers.route('/customers', methods=['GET']) def get_customers(): cursor = db.get_db().cursor() - cursor.execute('select company, last_name,\ + cursor.execute('select id, company, last_name,\ first_name, job_title, business_phone from customers') row_headers = [x[0] for x in cursor.description] json_data = [] @@ -38,4 +54,6 @@ def get_customer(userID): the_response = make_response(jsonify(json_data)) the_response.status_code = 200 the_response.mimetype = 'application/json' - return the_response \ No newline at end of file + return the_response + + diff --git a/flask-app/src/Cafes/customers.py b/flask-app/src/Cafes/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/Cafes/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/Destination/customers.py b/flask-app/src/Destination/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/Destination/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/GroupActivity/customers.py b/flask-app/src/GroupActivity/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/GroupActivity/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/InterestsHobbies/customers.py b/flask-app/src/InterestsHobbies/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/InterestsHobbies/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/Movies/customers.py b/flask-app/src/Movies/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/Movies/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/MusicFestivals/customers.py b/flask-app/src/MusicFestivals/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/MusicFestivals/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/OutdoorActivity/customers.py b/flask-app/src/OutdoorActivity/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/OutdoorActivity/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/PaymentPlan/customers.py b/flask-app/src/PaymentPlan/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/PaymentPlan/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/Restaurants/customers.py b/flask-app/src/Restaurants/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/Restaurants/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/Shopping/customers.py b/flask-app/src/Shopping/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/Shopping/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/Transportation/customers.py b/flask-app/src/Transportation/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/Transportation/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + diff --git a/flask-app/src/User/customers.py b/flask-app/src/User/customers.py new file mode 100644 index 00000000..676ef0e4 --- /dev/null +++ b/flask-app/src/User/customers.py @@ -0,0 +1,59 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +customers = Blueprint('customers', __name__) + +# Update User information for user +@customers.route('/customers', methods=['PUT']) +def update_customer(): + cus_info = request.json + cus_id = cus_info['id'] + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' + data = (first, last, company, cus_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Customer info updated.' + +# Get all customers from the DB +@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') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get customer detail for customer with particular userID +@customers.route('/customers/', methods=['GET']) +def get_customer(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from customers where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + + From 0e5a0b81b6064460515a21cc30df8e0e1140fb4b Mon Sep 17 00:00:00 2001 From: melinayg Date: Thu, 11 Apr 2024 17:56:48 -0400 Subject: [PATCH 03/33] updated routes --- flask-app/src/User/customers.py | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/flask-app/src/User/customers.py b/flask-app/src/User/customers.py index 676ef0e4..c6450b49 100644 --- a/flask-app/src/User/customers.py +++ b/flask-app/src/User/customers.py @@ -56,4 +56,55 @@ def get_customer(userID): the_response.mimetype = 'application/json' return the_response +# Delete User from DB +@customers.route('/customers/', methods=['DELETE']) +def delete_user(userID): + cursor = db.get_db().cursor() + cursor.execute('DELETE FROM customers WHERE id = %s', (userID,)) + db.get_db().commit() + return 'Customer deleted.', 200 + +""" +@customers.route('/customers/', methods=['DELETE']) +def delete_customer(userID): + cursor = db.get_db().cursor() + + # Construct the SQL query for deleting the customer by ID + query = 'DELETE FROM customers WHERE id = %s' + data = (userID,) + + # Execute the SQL command and commit to the database + cursor.execute(query, data) + db.get_db().commit() + + # Check if the customer was deleted + if cursor.rowcount == 0: + # No customer was deleted, possibly because the customer did not exist + return jsonify(message="Customer not found"), 404 + else: + # Respond with success message and status code + return jsonify(message="Customer deleted successfully"), 200 +""" +# Add a new customer to the DB +@customers.route('/customers', methods=['POST']) +def add_customer(): + cus_info = request.json + first = cus_info['first_name'] + last = cus_info['last_name'] + company = cus_info['company'] + + query = 'INSERT INTO customers (first_name, last_name, company) VALUES (%s, %s, %s)' + data = (first, last, company) + cursor = db.get_db().cursor() + cursor.execute(query, data) + db.get_db().commit() + + new_customer_id = cursor.lastrowid + + response_data = { + 'message': 'Customer added successfully.', + 'customer_id': new_customer_id + } + + return jsonify(response_data), 201 From 5d682df71c4a3291d22b4af61b7f236ed0e46f9e Mon Sep 17 00:00:00 2001 From: melinayg Date: Thu, 11 Apr 2024 18:01:45 -0400 Subject: [PATCH 04/33] updated post route in user folder? check which post route to use --- flask-app/src/User/customers.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/flask-app/src/User/customers.py b/flask-app/src/User/customers.py index c6450b49..d4dfcf97 100644 --- a/flask-app/src/User/customers.py +++ b/flask-app/src/User/customers.py @@ -108,3 +108,31 @@ def add_customer(): } return jsonify(response_data), 201 + +@users.route('/product', methods=['POST']) +def add_new_product(): + + # 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'] + + # 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() + + return 'Success!' From cbd81e171aab6f266cc066338e1d821249a323b3 Mon Sep 17 00:00:00 2001 From: melinayg Date: Sat, 13 Apr 2024 00:41:53 -0400 Subject: [PATCH 05/33] Update phasetwo.sql --- db/phasetwo.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/db/phasetwo.sql b/db/phasetwo.sql index cb756ad3..dbf3912d 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -157,10 +157,10 @@ CREATE TABLE Restaurants( RestaurantID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name TEXT, Reservations INT, - CuisineType TEXT, + CuisineType TEXT,X PriceTag VARCHAR(5), Location TEXT, - ActivityType INT, + ActivityTypeID INT, CONSTRAINT fk_16 FOREIGN KEY (ActivityType) REFERENCES Activity(ActivityID) ON UPDATE CASCADE ON DELETE RESTRICT @@ -264,6 +264,7 @@ CREATE TABLE ArtsMuseums ( CollegeStudents INT, PriceTag VARCHAR(5), OverallRating CHAR(5), + Location VARCHAR(255), ActivityTypeID INT, CONSTRAINT fk_26 FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) From 0eab150e73b2bb841b2d7155e9c2249eb721eca6 Mon Sep 17 00:00:00 2001 From: atamam Date: Sat, 13 Apr 2024 11:44:16 -0400 Subject: [PATCH 06/33] Added all of my routes for my blueprints, also updates the sql file as it was missing Movies (added a few insert statements as well) UPDATED THE INIT.PY FILE! Everybody should as we continue -- Ala'a --- db/phasetwo.sql | 19 +++ flask-app/src/Movies/customers.py | 59 --------- flask-app/src/Movies/movies.py | 108 ++++++++++++++++ flask-app/src/PaymentPlan/customers.py | 59 --------- flask-app/src/PaymentPlan/payment_plan.py | 115 ++++++++++++++++ flask-app/src/Transportation/customers.py | 151 ++++++++++++++-------- flask-app/src/__init__.py | 25 ++-- 7 files changed, 350 insertions(+), 186 deletions(-) delete mode 100644 flask-app/src/Movies/customers.py create mode 100644 flask-app/src/Movies/movies.py delete mode 100644 flask-app/src/PaymentPlan/customers.py create mode 100644 flask-app/src/PaymentPlan/payment_plan.py diff --git a/db/phasetwo.sql b/db/phasetwo.sql index dbf3912d..4909f06d 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -257,6 +257,18 @@ CREATE TABLE Outdoor_Activity_Location ( ON UPDATE CASCADE ON DELETE RESTRICT ); +CREATE TABLE Movies ( + MovieID INT PRIMARY KEY AUTO_INCREMENT, + TheaterLocation VARCHAR(255), + Name VARCHAR(255) NOT NULL, + OverallRating DECIMAL(3, 1), + Genre VARCHAR(255), + Activity_Type_ID INT, + FOREIGN KEY (Activity_Type_ID) REFERENCES Activity(ActivityID) +); + + + CREATE TABLE ArtsMuseums ( ArtMuseumID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name TEXT, @@ -394,3 +406,10 @@ INSERT INTO ArtsMuseums (PriceTag, Name, ArtType, CollegeStudents, OverallRating INSERT INTO ArtMuseumsLocation (Location, ArtMuseumID) VALUES ('Cultural District', 1); INSERT INTO ArtMuseumsLocation (Location, ArtMuseumID) VALUES ('Old Town', 2); + + +INSERT INTO Movies (TheaterLocation, Name, OverallRating, Genre, Activity_Type_ID) +VALUES ('Downtown Cinema', 'Inception', 8.8, 'Science Fiction', 1); + +INSERT INTO Movies (TheaterLocation, Name, OverallRating, Genre, Activity_Type_ID) +VALUES ('Riverside Theater', 'The Dark Knight', 9.0, 'Action', 2); \ No newline at end of file diff --git a/flask-app/src/Movies/customers.py b/flask-app/src/Movies/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/Movies/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/Movies/movies.py b/flask-app/src/Movies/movies.py new file mode 100644 index 00000000..3dcdbbac --- /dev/null +++ b/flask-app/src/Movies/movies.py @@ -0,0 +1,108 @@ +from flask import Blueprint, request, jsonify +from src import db + +movies_blueprint = Blueprint('movies', __name__) + +# Create a new movie +@movies_blueprint.route('/movies', methods=['POST']) +def create_movie(): + data = request.get_json() + try: + theater_location = data['theater_location'] + name = data['name'] + overall_rating = data['overall_rating'] + genre = data['genre'] + activity_type_id = data['activity_type_id'] + + query = ''' + INSERT INTO Movies (TheaterLocation, Name, OverallRating, Genre, Activity_Type_ID) + VALUES (%s, %s, %s, %s, %s) + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (theater_location, name, overall_rating, genre, activity_type_id)) + conn.commit() + + return jsonify({"message": "Movie created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the movie."}), 500 + +# Retrieve all movies +@movies_blueprint.route('/movies', methods=['GET']) +def get_all_movies(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Movies') + movies = cur.fetchall() + + return jsonify(movies), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the movies."}), 500 + +# Retrieve a single movie by ID +@movies_blueprint.route('/movies/', methods=['GET']) +def get_movie(movie_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Movies WHERE MovieID = %s', (movie_id,)) + movie = cur.fetchone() + + if movie: + return jsonify(movie), 200 + else: + return jsonify({"error": "Movie not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching the movie."}), 500 + +# Update a movie +@movies_blueprint.route('/movies/', methods=['PUT']) +def update_movie(movie_id): + data = request.get_json() + try: + theater_location = data['theater_location'] + name = data['name'] + overall_rating = data['overall_rating'] + genre = data['genre'] + activity_type_id = data['activity_type_id'] + + query = ''' + UPDATE Movies + SET TheaterLocation = %s, Name = %s, OverallRating = %s, Genre = %s, Activity_Type_ID = %s + WHERE MovieID = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (theater_location, name, overall_rating, genre, activity_type_id, movie_id)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Movie not found."}), 404 + + return jsonify({"message": "Movie updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred updating the movie."}), 500 + +# Delete a movie +@movies_blueprint.route('/movies/', methods=['DELETE']) +def delete_movie(movie_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM Movies WHERE MovieID = %s', (movie_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Movie not found."}), 404 + + return jsonify({"message": "Movie deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the movie."}), 500 + +# Register the blueprint in your app configuration +# app.register_blueprint(movies_blueprint, url_prefix='/api') diff --git a/flask-app/src/PaymentPlan/customers.py b/flask-app/src/PaymentPlan/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/PaymentPlan/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/PaymentPlan/payment_plan.py b/flask-app/src/PaymentPlan/payment_plan.py new file mode 100644 index 00000000..ac6efe61 --- /dev/null +++ b/flask-app/src/PaymentPlan/payment_plan.py @@ -0,0 +1,115 @@ +from flask import Blueprint, request, jsonify +from src import db + +payment_plan_blueprint = Blueprint('payment_plan', __name__) + +# Create a new payment plan +@payment_plan_blueprint.route('/payment_plan', methods=['POST']) +def create_payment_plan(): + data = request.get_json() + try: + paid = data['paid'] + free = data['free'] + payment_method = data['payment_method'] + user_id = data['user_id'] + + conn = db.get_db() + cur = conn.cursor() + cur.execute( + 'INSERT INTO PaymentPlan (Paid, Free, PaymentMethod, UserID) VALUES (%s, %s, %s, %s)', + (paid, free, payment_method, user_id) + ) + conn.commit() + + return jsonify({"message": "Payment plan created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the payment plan."}), 500 + +# Retrieve all payment plans +@payment_plan_blueprint.route('/payment_plan', methods=['GET']) +def get_all_payment_plans(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM PaymentPlan') + payment_plans = cur.fetchall() + + return jsonify(payment_plans), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the payment plans."}), 500 + +# Retrieve a single payment plan +@payment_plan_blueprint.route('/payment_plan/', methods=['GET']) +def get_payment_plan(payment_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM PaymentPlan WHERE PaymentID = %s', (payment_id,)) + payment_plan = cur.fetchone() + + if payment_plan: + return jsonify(payment_plan), 200 + else: + return jsonify({"error": "Payment plan not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching the payment plan."}), 500 + +# Update a payment plan +@payment_plan_blueprint.route('/payment_plan/', methods=['PUT']) +def update_payment_plan(payment_id): + data = request.get_json() + try: + paid = data['paid'] + free = data['free'] + payment_method = data['payment_method'] + + conn = db.get_db() + cur = conn.cursor() + cur.execute( + 'UPDATE PaymentPlan SET Paid = %s, Free = %s, PaymentMethod = %s WHERE PaymentID = %s', + (paid, free, payment_method, payment_id) + ) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Payment plan not found."}), 404 + + return jsonify({"message": "Payment plan updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred updating the payment plan."}), 500 + +# Delete a payment plan +@payment_plan_blueprint.route('/payment_plan/', methods=['DELETE']) +def delete_payment_plan(payment_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM PaymentPlan WHERE PaymentID = %s', (payment_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Payment plan not found."}), 404 + + return jsonify({"message": "Payment plan deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the payment plan."}), 500 + +# A route to get payment plans by user ID (Additional functionality) +@payment_plan_blueprint.route('/user_payment_plan/', methods=['GET']) +def get_payment_plans_by_user(user_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM PaymentPlan WHERE UserID = %s', (user_id,)) + payment_plans = cur.fetchall() + + if payment_plans: + return jsonify(payment_plans), 200 + else: + return jsonify({"error": "No payment plans found for the user."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching payment plans for the user."}), 500 diff --git a/flask-app/src/Transportation/customers.py b/flask-app/src/Transportation/customers.py index 676ef0e4..2424c8bf 100644 --- a/flask-app/src/Transportation/customers.py +++ b/flask-app/src/Transportation/customers.py @@ -1,59 +1,102 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json +from flask import Blueprint, request, jsonify from src import db +transportation_blueprint = Blueprint('transportation', __name__) -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response +# Create a new transportation record +@transportation_blueprint.route('/transportation', methods=['POST']) +def create_transportation(): + data = request.get_json() + try: + budget = data['budget'] + cleanliness_safety = data['cleanliness_safety'] + query = ''' + INSERT INTO Transportation (Budget, CleanlinessSafety) + VALUES (%s, %s) + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (budget, cleanliness_safety)) + conn.commit() + return jsonify({"message": "Transportation record created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the transportation record."}), 500 + +# Retrieve all transportation records +@transportation_blueprint.route('/transportation', methods=['GET']) +def get_all_transportation(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Transportation') + transportation_records = cur.fetchall() + + return jsonify(transportation_records), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the transportation records."}), 500 + +# Retrieve a single transportation record by ID +@transportation_blueprint.route('/transportation/', methods=['GET']) +def get_transportation(transportation_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Transportation WHERE TransportationID = %s', (transportation_id,)) + transportation_record = cur.fetchone() + + if transportation_record: + return jsonify(transportation_record), 200 + else: + return jsonify({"error": "Transportation record not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching the transportation record."}), 500 + +# Update a transportation record +@transportation_blueprint.route('/transportation/', methods=['PUT']) +def update_transportation(transportation_id): + data = request.get_json() + try: + budget = data['budget'] + cleanliness_safety = data['cleanliness_safety'] + + query = ''' + UPDATE Transportation + SET Budget = %s, CleanlinessSafety = %s + WHERE TransportationID = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (budget, cleanliness_safety, transportation_id)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Transportation record not found."}), 404 + + return jsonify({"message": "Transportation record updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred updating the transportation record."}), 500 + +# Delete a transportation record +@transportation_blueprint.route('/transportation/', methods=['DELETE']) +def delete_transportation(transportation_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM Transportation WHERE TransportationID = %s', (transportation_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Transportation record not found."}), 404 + + return jsonify({"message": "Transportation record deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the transportation record."}), 500 + +# Don't forget to register this blueprint in the main application file +# app.register_blueprint(transportation_blueprint, url_prefix='/api') diff --git a/flask-app/src/__init__.py b/flask-app/src/__init__.py index c6e9d5c6..a0a7b4db 100644 --- a/flask-app/src/__init__.py +++ b/flask-app/src/__init__.py @@ -19,27 +19,24 @@ def create_app(): app.config['MYSQL_DATABASE_PASSWORD'] = open('/secrets/db_root_password.txt').readline().strip() app.config['MYSQL_DATABASE_HOST'] = 'db' app.config['MYSQL_DATABASE_PORT'] = 3306 - app.config['MYSQL_DATABASE_DB'] = 'northwind' # Change this to your DB name + app.config['MYSQL_DATABASE_DB'] = 'GoGoMass' # Change this to your DB name # Initialize the database object with the settings above. db.init_app(app) - # Add the default route - # Can be accessed from a web browser - # http://ip_address:port/ - # Example: localhost:8001 + # Default route @app.route("/") def welcome(): - return "

Welcome to the 3200 boilerplate app

" + return "

Welcome to the GoMass API service

" - # Import the various Beluprint Objects - from src.customers.customers import customers - from src.products.products import products + # Import the blueprint objects + from src.Movies.movies import movies_blueprint + from src.PaymentPlan.payment_plan import payment_plan_blueprint + from src.Transportation.customers import transportation_blueprint - # Register the routes from each Blueprint with the app object - # and give a url prefix to each - app.register_blueprint(customers, url_prefix='/c') - app.register_blueprint(products, url_prefix='/p') + # Register blueprints with the app object and give a url prefix to each + app.register_blueprint(movies_blueprint, url_prefix='/movies') + app.register_blueprint(payment_plan_blueprint, url_prefix='/payment_plan') + app.register_blueprint(transportation_blueprint, url_prefix='/transportation') - # Don't forget to return the app object return app \ No newline at end of file From 1aad36097c72bc3f3e1b50bffd0cd83f629eeed9 Mon Sep 17 00:00:00 2001 From: atamam Date: Sat, 13 Apr 2024 16:12:06 -0400 Subject: [PATCH 07/33] Fixed logical inconsistencies in phase2sql file, added all of my mock data and my routes are finished! - ala'a --- db/Destination_to_Transportation.csv | 201 ++++++++++++++++++ db/paymentplan.csv | 51 +++++ db/phasetwo.sql | 4 +- db/transportation.csv | 51 +++++ db/transportationtype.csv | 201 ++++++++++++++++++ db/user_to_transpo.csv | 201 ++++++++++++++++++ flask-app/src/Movies/movies.py | 89 +++++++- .../{customers.py => transportation.py} | 32 +++ 8 files changed, 821 insertions(+), 9 deletions(-) create mode 100644 db/Destination_to_Transportation.csv create mode 100644 db/paymentplan.csv create mode 100644 db/transportation.csv create mode 100644 db/transportationtype.csv create mode 100644 db/user_to_transpo.csv rename flask-app/src/Transportation/{customers.py => transportation.py} (75%) diff --git a/db/Destination_to_Transportation.csv b/db/Destination_to_Transportation.csv new file mode 100644 index 00000000..0fbea461 --- /dev/null +++ b/db/Destination_to_Transportation.csv @@ -0,0 +1,201 @@ +Address,TransportationId +8801 Rigney Lane,1 +626 Michigan Court,2 +2215 Acker Avenue,3 +018 Dexter Street,4 +666 Hooker Point,5 +52 Lighthouse Bay Pass,6 +73162 Goodland Crossing,7 +2 Homewood Crossing,8 +5727 Dawn Hill,9 +3925 Washington Point,10 +20559 Clemons Avenue,11 +9466 Hooker Terrace,12 +82 Declaration Junction,13 +851 Green Ridge Drive,14 +032 Rieder Parkway,15 +55 Loeprich Plaza,16 +6521 Fordem Center,17 +913 Mitchell Plaza,18 +72327 Rowland Drive,19 +1 Waubesa Place,20 +38 Jenna Terrace,21 +2 Larry Plaza,22 +57644 Gerald Pass,23 +53 Hagan Avenue,24 +782 Bultman Road,25 +0 Fordem Hill,26 +74 Parkside Drive,27 +8473 Lunder Hill,28 +4307 Helena Pass,29 +876 Fordem Street,30 +820 Cardinal Trail,31 +67 Schmedeman Street,32 +59516 Sundown Center,33 +99 Blue Bill Park Place,34 +58322 Melby Lane,35 +5594 Texas Lane,36 +48215 Annamark Drive,37 +8700 Dovetail Junction,38 +82156 Walton Street,39 +35707 Linden Parkway,40 +8915 Derek Junction,41 +7761 Mockingbird Terrace,42 +814 Mockingbird Court,43 +17143 Lawn Avenue,44 +63 Drewry Court,45 +0984 Eliot Alley,46 +280 Straubel Center,47 +153 Delladonna Parkway,48 +00 Upham Circle,49 +0703 Donald Center,50 +509 Butterfield Crossing,51 +50960 Sachs Court,52 +285 Autumn Leaf Junction,53 +22 Sloan Alley,54 +42863 Evergreen Point,55 +57276 Troy Road,56 +33 Evergreen Crossing,57 +6060 Drewry Alley,58 +35 Gale Crossing,59 +0 Lukken Terrace,60 +42 Pine View Terrace,61 +8 Fieldstone Lane,62 +231 Myrtle Circle,63 +872 Northridge Court,64 +15 Dexter Road,65 +6 Mandrake Way,66 +56285 Talisman Place,67 +7 Golf View Place,68 +0 Moose Point,69 +9114 Independence Court,70 +64 Sunnyside Crossing,71 +8 Crescent Oaks Center,72 +19 Bashford Pass,73 +003 Reinke Plaza,74 +60576 Annamark Circle,75 +0631 Marquette Hill,76 +754 Hansons Road,77 +61068 Warrior Point,78 +9129 Hoffman Point,79 +3316 Westridge Trail,80 +1346 Summerview Point,81 +27425 Prairieview Road,82 +0 Mallory Center,83 +336 Crescent Oaks Court,84 +2 Jenifer Hill,85 +1562 Springview Alley,86 +1 Susan Center,87 +9 Blaine Place,88 +42 Randy Terrace,89 +8 Goodland Avenue,90 +595 Little Fleur Way,91 +6 Packers Drive,92 +7288 Hintze Street,93 +43457 Lawn Court,94 +47 Norway Maple Plaza,95 +8694 Shelley Trail,96 +86357 Heath Park,97 +15040 Karstens Street,98 +31 Kipling Alley,99 +73 Colorado Road,100 +60866 Vidon Court,101 +9 Eagan Pass,102 +8068 Esch Place,103 +7 Westerfield Court,104 +5235 Valley Edge Drive,105 +1693 Petterle Drive,106 +00393 Superior Crossing,107 +961 Arrowood Place,108 +1 Steensland Hill,109 +96 Crownhardt Terrace,110 +1565 Ludington Circle,111 +5 Petterle Point,112 +573 Clarendon Trail,113 +854 Jackson Terrace,114 +57480 Dovetail Point,115 +3659 Bunting Park,116 +3 Fordem Plaza,117 +0 Oxford Drive,118 +09 Miller Court,119 +0 Sage Trail,120 +87219 Westport Pass,121 +19530 Bultman Drive,122 +37065 Coleman Avenue,123 +6 Sauthoff Center,124 +533 Village Parkway,125 +2 Mayer Trail,126 +4 Caliangt Place,127 +5445 Corscot Parkway,128 +75 Bartillon Pass,129 +3 Village Place,130 +77 Continental Hill,131 +6670 Rusk Circle,132 +8 Northridge Terrace,133 +04843 Bultman Park,134 +0543 Chinook Place,135 +36 Summit Circle,136 +86 Mosinee Center,137 +8490 Springs Point,138 +5 Coleman Parkway,139 +2 Memorial Road,140 +651 Marquette Lane,141 +11338 Carpenter Court,142 +6 Talisman Pass,143 +799 Butternut Drive,144 +3 Kedzie Parkway,145 +3805 Pawling Street,146 +17 Lyons Drive,147 +41452 Sundown Street,148 +4 Nancy Alley,149 +19 Susan Alley,150 +54522 Autumn Leaf Avenue,151 +1 Sunnyside Junction,152 +0 Reindahl Drive,153 +1872 Fair Oaks Drive,154 +55 Donald Avenue,155 +59 Cascade Plaza,156 +98 Parkside Trail,157 +340 Northridge Point,158 +3645 Scoville Court,159 +79 Kipling Lane,160 +121 Donald Junction,161 +73 Bluejay Way,162 +01 Oriole Way,163 +47 Toban Hill,164 +0 Killdeer Pass,165 +95 Debra Hill,166 +26 Dapin Hill,167 +66629 Sauthoff Lane,168 +4 Jenna Circle,169 +5 Muir Way,170 +33 Oak Drive,171 +410 Colorado Trail,172 +5 Nancy Point,173 +43592 Cherokee Crossing,174 +03 Namekagon Circle,175 +0 Golf Course Pass,176 +8 Division Circle,177 +56 Hoard Alley,178 +326 Meadow Vale Parkway,179 +17365 Fieldstone Parkway,180 +84866 Mcbride Trail,181 +227 Shopko Terrace,182 +46 5th Alley,183 +02 Pearson Junction,184 +1695 Bultman Parkway,185 +6827 Bowman Terrace,186 +362 Old Gate Park,187 +043 Jenifer Center,188 +26057 Grover Way,189 +10237 Pleasure Alley,190 +7 Swallow Court,191 +6 Main Park,192 +5493 Straubel Plaza,193 +7110 Mitchell Parkway,194 +6 Hanson Lane,195 +4 Bluejay Trail,196 +7 Kensington Plaza,197 +6611 Lawn Junction,198 +4630 Jana Center,199 +6402 Erie Trail,200 diff --git a/db/paymentplan.csv b/db/paymentplan.csv new file mode 100644 index 00000000..f6a9a051 --- /dev/null +++ b/db/paymentplan.csv @@ -0,0 +1,51 @@ +PaymentId,Paid,PaymentMethod,user_id +1,$6.06,credit card,1 +2,$2.21,apple pay,2 +3,$6.35,apple pay,3 +4,$6.74,debit card,4 +5,$1.39,paypal,5 +6,$2.89,paypal,6 +7,$6.08,debit card,7 +8,$0.58,debit card,8 +9,$4.19,credit card,9 +10,$6.21,paypal,10 +11,$5.16,paypal,11 +12,$9.90,debit card,12 +13,$3.80,credit card,13 +14,$0.73,debit card,14 +15,$7.83,apple pay,15 +16,$0.27,apple pay,16 +17,$0.05,credit card,17 +18,$1.26,credit card,18 +19,$9.56,debit card,19 +20,$2.83,credit card,20 +21,$8.91,paypal,21 +22,$2.45,apple pay,22 +23,$8.88,paypal,23 +24,$6.05,paypal,24 +25,$0.17,paypal,25 +26,$8.64,apple pay,26 +27,$6.37,paypal,27 +28,$0.71,paypal,28 +29,$3.66,debit card,29 +30,$6.33,apple pay,30 +31,$2.11,paypal,31 +32,$2.89,debit card,32 +33,$9.74,apple pay,33 +34,$8.77,credit card,34 +35,$1.22,apple pay,35 +36,$9.60,debit card,36 +37,$0.65,paypal,37 +38,$2.98,paypal,38 +39,$1.97,debit card,39 +40,$0.26,paypal,40 +41,$9.35,debit card,41 +42,$6.49,credit card,42 +43,$0.88,debit card,43 +44,$1.52,paypal,44 +45,$7.88,paypal,45 +46,$9.57,paypal,46 +47,$3.54,paypal,47 +48,$5.17,credit card,48 +49,$4.24,paypal,49 +50,$2.47,paypal,50 diff --git a/db/phasetwo.sql b/db/phasetwo.sql index 4909f06d..480e39e1 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -412,4 +412,6 @@ INSERT INTO Movies (TheaterLocation, Name, OverallRating, Genre, Activity_Type_I VALUES ('Downtown Cinema', 'Inception', 8.8, 'Science Fiction', 1); INSERT INTO Movies (TheaterLocation, Name, OverallRating, Genre, Activity_Type_ID) -VALUES ('Riverside Theater', 'The Dark Knight', 9.0, 'Action', 2); \ No newline at end of file +VALUES ('Riverside Theater', 'The Dark Knight', 9.0, 'Action', 2); + +select * from movies; diff --git a/db/transportation.csv b/db/transportation.csv new file mode 100644 index 00000000..579fc5d1 --- /dev/null +++ b/db/transportation.csv @@ -0,0 +1,51 @@ +TransportationID,Budget,CleanlinessSaftey +1,51.5,low +2,13.98,high +3,12.29,low +4,20.41,low +5,51.05,low +6,83.41,low +7,30.77,high +8,90.5,medium +9,66.84,low +10,56.43,low +11,67.79,medium +12,38.63,medium +13,54.91,low +14,44.34,high +15,17.26,low +16,33.41,medium +17,59.72,high +18,99.27,medium +19,52.07,high +20,96.19,low +21,66.26,medium +22,83.41,medium +23,28.29,low +24,40.85,low +25,72.25,low +26,63.17,medium +27,27.02,medium +28,90.91,high +29,67.41,medium +30,33.13,high +31,88.99,high +32,6.53,low +33,51.82,medium +34,90.23,medium +35,48.38,medium +36,84.49,high +37,54.2,low +38,86.79,low +39,70.09,medium +40,31.1,medium +41,0.7,medium +42,90.51,medium +43,15.37,low +44,5.37,medium +45,92.78,high +46,89.7,high +47,97.51,high +48,52.95,high +49,43.8,high +50,70.35,low diff --git a/db/transportationtype.csv b/db/transportationtype.csv new file mode 100644 index 00000000..51c791cb --- /dev/null +++ b/db/transportationtype.csv @@ -0,0 +1,201 @@ +TypeOfTranspo,TransportationId +public transportation,1 +ride-share app,2 +ride-share app,3 +plane,4 +walking,5 +ride-share app,6 +public transportation,7 +car,8 +plane,9 +walking,10 +plane,11 +ride-share app,12 +ride-share app,13 +plane,14 +ride-share app,15 +plane,16 +walking,17 +car,18 +ride-share app,19 +ride-share app,20 +car,21 +car,22 +walking,23 +walking,24 +car,25 +car,26 +public transportation,27 +plane,28 +public transportation,29 +ride-share app,30 +public transportation,31 +car,32 +ride-share app,33 +walking,34 +public transportation,35 +car,36 +car,37 +public transportation,38 +plane,39 +car,40 +walking,41 +ride-share app,42 +car,43 +ride-share app,44 +public transportation,45 +public transportation,46 +plane,47 +public transportation,48 +car,49 +ride-share app,50 +car,51 +plane,52 +ride-share app,53 +car,54 +plane,55 +ride-share app,56 +walking,57 +car,58 +ride-share app,59 +car,60 +walking,61 +walking,62 +car,63 +plane,64 +walking,65 +walking,66 +plane,67 +public transportation,68 +walking,69 +car,70 +public transportation,71 +ride-share app,72 +walking,73 +car,74 +car,75 +public transportation,76 +public transportation,77 +ride-share app,78 +public transportation,79 +public transportation,80 +walking,81 +car,82 +public transportation,83 +walking,84 +plane,85 +ride-share app,86 +public transportation,87 +walking,88 +car,89 +car,90 +car,91 +plane,92 +public transportation,93 +plane,94 +plane,95 +walking,96 +ride-share app,97 +car,98 +plane,99 +walking,100 +ride-share app,101 +car,102 +plane,103 +car,104 +car,105 +public transportation,106 +walking,107 +plane,108 +plane,109 +car,110 +walking,111 +public transportation,112 +public transportation,113 +plane,114 +walking,115 +car,116 +ride-share app,117 +car,118 +car,119 +walking,120 +public transportation,121 +walking,122 +plane,123 +ride-share app,124 +car,125 +car,126 +ride-share app,127 +walking,128 +plane,129 +ride-share app,130 +plane,131 +plane,132 +car,133 +plane,134 +plane,135 +walking,136 +car,137 +car,138 +car,139 +public transportation,140 +walking,141 +ride-share app,142 +plane,143 +public transportation,144 +public transportation,145 +walking,146 +public transportation,147 +ride-share app,148 +car,149 +walking,150 +plane,151 +public transportation,152 +car,153 +plane,154 +car,155 +ride-share app,156 +ride-share app,157 +public transportation,158 +public transportation,159 +public transportation,160 +plane,161 +car,162 +car,163 +public transportation,164 +plane,165 +car,166 +plane,167 +public transportation,168 +ride-share app,169 +car,170 +public transportation,171 +ride-share app,172 +plane,173 +plane,174 +public transportation,175 +walking,176 +public transportation,177 +ride-share app,178 +public transportation,179 +public transportation,180 +walking,181 +public transportation,182 +walking,183 +public transportation,184 +plane,185 +public transportation,186 +ride-share app,187 +car,188 +walking,189 +car,190 +plane,191 +walking,192 +walking,193 +public transportation,194 +ride-share app,195 +car,196 +car,197 +car,198 +car,199 +public transportation,200 diff --git a/db/user_to_transpo.csv b/db/user_to_transpo.csv new file mode 100644 index 00000000..b4fe53ac --- /dev/null +++ b/db/user_to_transpo.csv @@ -0,0 +1,201 @@ +UserId,TransportationId +1,1 +2,2 +3,3 +4,4 +5,5 +6,6 +7,7 +8,8 +9,9 +10,10 +11,11 +12,12 +13,13 +14,14 +15,15 +16,16 +17,17 +18,18 +19,19 +20,20 +21,21 +22,22 +23,23 +24,24 +25,25 +26,26 +27,27 +28,28 +29,29 +30,30 +31,31 +32,32 +33,33 +34,34 +35,35 +36,36 +37,37 +38,38 +39,39 +40,40 +41,41 +42,42 +43,43 +44,44 +45,45 +46,46 +47,47 +48,48 +49,49 +50,50 +51,51 +52,52 +53,53 +54,54 +55,55 +56,56 +57,57 +58,58 +59,59 +60,60 +61,61 +62,62 +63,63 +64,64 +65,65 +66,66 +67,67 +68,68 +69,69 +70,70 +71,71 +72,72 +73,73 +74,74 +75,75 +76,76 +77,77 +78,78 +79,79 +80,80 +81,81 +82,82 +83,83 +84,84 +85,85 +86,86 +87,87 +88,88 +89,89 +90,90 +91,91 +92,92 +93,93 +94,94 +95,95 +96,96 +97,97 +98,98 +99,99 +100,100 +101,101 +102,102 +103,103 +104,104 +105,105 +106,106 +107,107 +108,108 +109,109 +110,110 +111,111 +112,112 +113,113 +114,114 +115,115 +116,116 +117,117 +118,118 +119,119 +120,120 +121,121 +122,122 +123,123 +124,124 +125,125 +126,126 +127,127 +128,128 +129,129 +130,130 +131,131 +132,132 +133,133 +134,134 +135,135 +136,136 +137,137 +138,138 +139,139 +140,140 +141,141 +142,142 +143,143 +144,144 +145,145 +146,146 +147,147 +148,148 +149,149 +150,150 +151,151 +152,152 +153,153 +154,154 +155,155 +156,156 +157,157 +158,158 +159,159 +160,160 +161,161 +162,162 +163,163 +164,164 +165,165 +166,166 +167,167 +168,168 +169,169 +170,170 +171,171 +172,172 +173,173 +174,174 +175,175 +176,176 +177,177 +178,178 +179,179 +180,180 +181,181 +182,182 +183,183 +184,184 +185,185 +186,186 +187,187 +188,188 +189,189 +190,190 +191,191 +192,192 +193,193 +194,194 +195,195 +196,196 +197,197 +198,198 +199,199 +200,200 diff --git a/flask-app/src/Movies/movies.py b/flask-app/src/Movies/movies.py index 3dcdbbac..b84537f7 100644 --- a/flask-app/src/Movies/movies.py +++ b/flask-app/src/Movies/movies.py @@ -42,21 +42,61 @@ def get_all_movies(): except Exception as e: return jsonify({"error": "An error occurred fetching the movies."}), 500 -# Retrieve a single movie by ID -@movies_blueprint.route('/movies/', methods=['GET']) -def get_movie(movie_id): +@movies_blueprint.route('/movies/id/', methods=['GET']) +def get_movie_by_id(movie_id): try: conn = db.get_db() cur = conn.cursor() cur.execute('SELECT * FROM Movies WHERE MovieID = %s', (movie_id,)) movie = cur.fetchone() - if movie: - return jsonify(movie), 200 - else: - return jsonify({"error": "Movie not found."}), 404 + if not movie: + return jsonify({"message": "No movie found with this ID."}), 404 + + return jsonify(movie), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the movie: " + str(e)}), 500 + + +@movies_blueprint.route('/movies/genre/', methods=['GET']) +def get_genre_movies(genre): + try: + conn = db.get_db() + cur = conn.cursor() + # Use a parameterized query to prevent SQL injection + cur.execute('SELECT * FROM Movies WHERE Genre = %s', (genre,)) + movies = cur.fetchall() + + # If no movies found, return a suitable message + if not movies: + return jsonify({"message": "No movies found for this genre."}), 404 + + return jsonify(movies), 200 except Exception as e: - return jsonify({"error": "An error occurred fetching the movie."}), 500 + return jsonify({"error": "An error occurred fetching the movies: " + str(e)}), 500 + + +@movies_blueprint.route('/movies/ratings/', methods=['GET']) +def get_ratings_movies(rating): + try: + conn = db.get_db() + cur = conn.cursor() + # Use a parameterized query to prevent SQL injection + # Ensure the rating is a valid decimal within your specified range + if not (1 <= rating <= 3): + return jsonify({"message": "Rating must be between 1.0 and 3.0"}), 400 + + cur.execute('SELECT * FROM Movies WHERE OverallRating = %s', (rating,)) + movies = cur.fetchall() + + # If no movies found, return a suitable message + if not movies: + return jsonify({"message": "No movies found for this rating."}), 404 + + return jsonify(movies), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the movies: " + str(e)}), 500 + # Update a movie @movies_blueprint.route('/movies/', methods=['PUT']) @@ -103,6 +143,39 @@ def delete_movie(movie_id): return jsonify({"message": "Movie deleted successfully."}), 200 except Exception as e: return jsonify({"error": "An error occurred deleting the movie."}), 500 + + +@movies_blueprint.route('/movies/price/', methods=['GET']) +def get_movies_by_price(price_tag): + try: + conn = db.get_db() + cur = conn.cursor() + # Using LIKE to allow flexibility in searching by price tag patterns + cur.execute('SELECT * FROM Movies WHERE PriceTag LIKE %s', ('%' + price_tag + '%',)) + movies = cur.fetchall() + + if not movies: + return jsonify({"message": "No movies found for this price tag."}), 404 + + return jsonify(movies), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the movies: " + str(e)}), 500 + + +@movies_blueprint.route('/movies/theater/', methods=['GET']) +def get_movies_by_theater_location(location): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Movies WHERE TheaterLocation LIKE %s', ('%' + location + '%',)) + movies = cur.fetchall() + + if not movies: + return jsonify({"message": "No movies found at this theater location."}), 404 + + return jsonify(movies), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the movies: " + str(e)}), 500 # Register the blueprint in your app configuration # app.register_blueprint(movies_blueprint, url_prefix='/api') diff --git a/flask-app/src/Transportation/customers.py b/flask-app/src/Transportation/transportation.py similarity index 75% rename from flask-app/src/Transportation/customers.py rename to flask-app/src/Transportation/transportation.py index 2424c8bf..48ffb6a2 100644 --- a/flask-app/src/Transportation/customers.py +++ b/flask-app/src/Transportation/transportation.py @@ -98,5 +98,37 @@ def delete_transportation(transportation_id): except Exception as e: return jsonify({"error": "An error occurred deleting the transportation record."}), 500 +# Retrieve transportation records by type +@transportation_blueprint.route('/transportation/type/', methods=['GET']) +def get_transportation_by_type(type): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Transportation WHERE Type = %s', (type,)) + results = cur.fetchall() + + if not results: + return jsonify({"message": "No transportation records found for this type."}), 404 + + return jsonify(results), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the transportation records: " + str(e)}), 500 + +# Retrieve transportation records by location +@transportation_blueprint.route('/transportation/location/', methods=['GET']) +def get_transportation_by_location(location): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Transportation WHERE Location = %s', (location,)) + results = cur.fetchall() + + if not results: + return jsonify({"message": "No transportation records found for this location."}), 404 + + return jsonify(results), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the transportation records: " + str(e)}), 500 + # Don't forget to register this blueprint in the main application file # app.register_blueprint(transportation_blueprint, url_prefix='/api') From 997d8a4cb0ba6d845a5a39972c0157d6546dcf9a Mon Sep 17 00:00:00 2001 From: atamam Date: Sat, 13 Apr 2024 16:48:54 -0400 Subject: [PATCH 08/33] updates to shopping - Rhoda --- flask-app/src/Shopping/shopping.py | 124 +++++++++++++++++++++++++++++ flask-app/src/__init__.py | 5 +- 2 files changed, 127 insertions(+), 2 deletions(-) create mode 100644 flask-app/src/Shopping/shopping.py diff --git a/flask-app/src/Shopping/shopping.py b/flask-app/src/Shopping/shopping.py new file mode 100644 index 00000000..e51d6815 --- /dev/null +++ b/flask-app/src/Shopping/shopping.py @@ -0,0 +1,124 @@ +from flask import Blueprint, request, jsonify +from src import db + +shopping_blueprint = Blueprint('shopping', __name__) + +# Create a new shopping item +@shopping_blueprint.route('/shopping', methods=['POST']) +def create_shopping_item(): + data = request.get_json() + try: + name = data['name'] + price_tag = data['price_tag'] + shopping_area_size = data['shopping_area_size'] + overall_rating = data['overall_rating'] + activity_type_id = data['activity_type_id'] + + query = ''' + INSERT INTO Shopping (Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) + VALUES (%s, %s, %s, %s, %s) + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (name, price_tag, shopping_area_size, overall_rating, activity_type_id)) + conn.commit() + + return jsonify({"message": "Shopping item created successfully.", "id": cur.lastrowid}), 201 + + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the shopping item."}), 500 + +# Retrieve all shopping items +@shopping_blueprint.route('/shopping', methods=['GET']) +def get_all_shopping_items(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Shopping') + items = cur.fetchall() + + return jsonify(items), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the shopping items."}), 500 + +# Retrieve a single shopping item by ID +@shopping_blueprint.route('/shopping/', methods=['GET']) +def get_shopping_item(shopping_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Shopping WHERE ShoppingID = %s', (shopping_id,)) + item = cur.fetchone() + + if item: + return jsonify(item), 200 + else: + return jsonify({"error": "Shopping item not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching the shopping item."}), 500 + +# Retrieve shopping items by price tag +@shopping_blueprint.route('/shopping/price/', methods=['GET']) +def get_shopping_items_by_price(price_tag): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Shopping WHERE PriceTag = %s', (price_tag,)) + items = cur.fetchall() + + if items: + return jsonify(items), 200 + else: + return jsonify({"error": "No shopping items found with the specified price tag."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching the shopping items by price tag."}), 500 + + +# Update a shopping item +@shopping_blueprint.route('/shopping/', methods=['PUT']) +def update_shopping_item(shopping_id): + data = request.get_json() + try: + name = data['name'] + price_tag = data['price_tag'] + shopping_area_size = data['shopping_area_size'] + overall_rating = data['overall_rating'] + activity_type_id = data['activity_type_id'] + + query = ''' + UPDATE Shopping + SET Name = %s, PriceTag = %s, Shopping_Area_Size = %s, OverallRating = %s, ActivityTypeID = %s + WHERE ShoppingID = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (name, price_tag, shopping_area_size, overall_rating, activity_type_id, shopping_id)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Shopping item not found."}), 404 + + return jsonify({"message": "Shopping item updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred updating the shopping item."}), 500 + +# Delete a shopping item +@shopping_blueprint.route('/shopping/', methods=['DELETE']) +def delete_shopping_item(shopping_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM Shopping WHERE ShoppingID = %s', (shopping_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Shopping item not found."}), 404 + + return jsonify({"message": "Shopping item deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the shopping item."}), 500 + diff --git a/flask-app/src/__init__.py b/flask-app/src/__init__.py index a0a7b4db..05446355 100644 --- a/flask-app/src/__init__.py +++ b/flask-app/src/__init__.py @@ -32,11 +32,12 @@ def welcome(): # Import the blueprint objects from src.Movies.movies import movies_blueprint from src.PaymentPlan.payment_plan import payment_plan_blueprint - from src.Transportation.customers import transportation_blueprint + from src.Transportation.transportation import transportation_blueprint + from src.Shopping.shopping import shopping_blueprint # Register blueprints with the app object and give a url prefix to each app.register_blueprint(movies_blueprint, url_prefix='/movies') app.register_blueprint(payment_plan_blueprint, url_prefix='/payment_plan') app.register_blueprint(transportation_blueprint, url_prefix='/transportation') - + app.register_blueprint(shopping_blueprint, url_prefix='/shopping') return app \ No newline at end of file From 91386d8a04605252b3c1e05828157126917630e1 Mon Sep 17 00:00:00 2001 From: melinayg Date: Sat, 13 Apr 2024 23:01:36 -0400 Subject: [PATCH 09/33] melina routes --- flask-app/src/ArtsMuseums/ArtsMuseums.py | 113 ++++++++++++++++++ flask-app/src/ArtsMuseums/customers.py | 59 --------- .../src/OutdoorActivity/OutdoorActivity.py | 113 ++++++++++++++++++ flask-app/src/OutdoorActivity/customers.py | 59 --------- flask-app/src/Restaurants/customers.py | 59 --------- flask-app/src/Restaurants/restaurants.py | 112 +++++++++++++++++ 6 files changed, 338 insertions(+), 177 deletions(-) create mode 100644 flask-app/src/ArtsMuseums/ArtsMuseums.py delete mode 100644 flask-app/src/ArtsMuseums/customers.py create mode 100644 flask-app/src/OutdoorActivity/OutdoorActivity.py delete mode 100644 flask-app/src/OutdoorActivity/customers.py delete mode 100644 flask-app/src/Restaurants/customers.py create mode 100644 flask-app/src/Restaurants/restaurants.py diff --git a/flask-app/src/ArtsMuseums/ArtsMuseums.py b/flask-app/src/ArtsMuseums/ArtsMuseums.py new file mode 100644 index 00000000..b152064b --- /dev/null +++ b/flask-app/src/ArtsMuseums/ArtsMuseums.py @@ -0,0 +1,113 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response, current_app +import json +from src import db + + +art = Blueprint('art', __name__) + +# Update art activity information +@art.route('/art', methods=['PUT']) +def update_art(): + info = request.json + id = info['ArtMuseumID'] + name = info['Name'] + arttype = info['ArtType'] + college = info['CollegeStudents'] + rate = info ['OverallRating'] + price = info['PriceTag'] + location = info['Location'] + activity = info['ActivityTypeID'] + + query = 'UPDATE art SET Name = %s, ArtType = %s, CollegeStudents = %s, OverallRating = %s, PriceTag= %s, Location = %s, ActivityTypeID = %s where ArtMuseumID = %s' + data = (name, arttype, college, rate, price,location, activity, id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Art info updated.' + +# Get all art and museums from the DB +@art.route('/art', methods=['GET']) +def get_arts(): + cursor = db.get_db().cursor() + cursor.execute('select ArtMuseumID, Name, ArtType, CollegeStudents,\ + OverallRating, PriceTag, Location, ActivityTypeID from artmuseums') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get details for specific art/museum activity +@art.route('/art/', methods=['GET']) +def get_art(ArtMuseumID): + cursor = db.get_db().cursor() + cursor.execute('select * from art where id = {0}'.format(ArtMuseumID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Input new art/museum +@art.route('/art', methods=['POST']) +def add_new_art(): + + # collecting data from the request object + info = request.json + current_app.logger.info(info) + + # extracting the variables + name = info['Name'] + arttype = info['ArtType'] + college = info['CollegeStudents'] + rate = info ['OverallRating'] + price = info['PriceTag'] + location = info['Location'] + activity = info['ActivityTypeID'] + + # constructing the query + query = 'INSERT INTO art_activity (Name, ArtType, CollegeStudents, OverallRating, PriceTag, Location, ActivityTypeID) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)' + data = (name, arttype, college, rate, price,location, activity, id) + current_app.logger.info(query) + + # executing and committing the insert statement + cursor = db.get_db().cursor() + cursor.execute(query, data) + db.get_db().commit() + + return 'Art added successfully.' + +# Delete art/museum from DB +@art.route('/art/', methods=['DELETE']) +def delete_user(ArtMuseumID): + cursor = db.get_db().cursor() + cursor.execute('DELETE FROM artmuseums WHERE ArtMuseumID = %s', (ArtMuseumID,)) + db.get_db().commit() + return 'Art deleted.', 200 + +# Get arts museums by art type +@art.route('/art/', methods=['GET']) +def get_arts_museums_by_art_type(art_type): + cursor = db.get_db().cursor() + cursor.execute('SELECT * FROM ArtsMuseums WHERE ArtType = %s', (art_type,)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + if json_data: + return jsonify(json_data), 200 + else: + return 'No arts museums found for the specified art type.', 404 diff --git a/flask-app/src/ArtsMuseums/customers.py b/flask-app/src/ArtsMuseums/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/ArtsMuseums/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/OutdoorActivity/OutdoorActivity.py b/flask-app/src/OutdoorActivity/OutdoorActivity.py new file mode 100644 index 00000000..3d09106e --- /dev/null +++ b/flask-app/src/OutdoorActivity/OutdoorActivity.py @@ -0,0 +1,113 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response, current_app +import json +from src import db + + +outdoor = Blueprint('outdoor', __name__) + +# Update outdoor activity information +@outdoor.route('/outdoor', methods=['PUT']) +def update_outdoor(): + info = request.json + id = info['OutdoorID'] + name = info['Name'] + difficulty = info['Difficulty_level'] + danger = info['Danger_level'] + exp = info['Experience'] + price = info['PriceTag'] + location = info['Location'] + activity = info['ActivityTypeID'] + + query = 'UPDATE outdoor SET Name = %s, Difficulty_level = %s, Danger_level = %s, Experience = %s, PriceTag= %s, Location = %s, ActivityTypeID = %s where OutdoorID = %s' + data = (name, difficulty, danger, exp, price,location, activity, id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Outdoor info updated.' + +# Get all outdoors from the DB +@outdoor.route('/outdoor', methods=['GET']) +def get_outdoors(): + cursor = db.get_db().cursor() + cursor.execute('select OutdoorID, Name, Difficulty_level, Danger_level,\ + Experience, PriceTag, Location, ActivityTypeID from outdoor_activity') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get outdoor detail for specific activity +@outdoor.route('/outdoor/', methods=['GET']) +def get_outdoor(OutdoorID): + cursor = db.get_db().cursor() + cursor.execute('select * from outdoor where id = {0}'.format(OutdoorID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Input new outdoor +@outdoor.route('/outdoor', methods=['POST']) +def add_new_outdoor(): + + # collecting data from the request object + info = request.json + current_app.logger.info(info) + + # extracting the variables + name = info['Name'] + difficulty = info['Difficulty_level'] + danger = info['Danger_level'] + exp = info['Experience'] + price = info['PriceTag'] + location = info['Location'] + activity = info['ActivityTypeID'] + + # constructing the query + query = 'INSERT INTO outdoor_activity (Name, Difficulty_level, Danger_level, Experience, PriceTag, Location, ActivityTypeID) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)' + data = (name, difficulty, danger, exp, price, location, activity) + current_app.logger.info(query) + + # executing and committing the insert statement + cursor = db.get_db().cursor() + cursor.execute(query, data) + db.get_db().commit() + + return 'Outdoor added successfully.' + +# Delete outdoor from DB +@outdoor.route('/outdoor/', methods=['DELETE']) +def delete_user(OutdoorID): + cursor = db.get_db().cursor() + cursor.execute('DELETE FROM outdoor_activity WHERE OutdoorID = %s', (OutdoorID,)) + db.get_db().commit() + return 'Outdoor deleted.', 200 + +# Get outdoors by difficulty_level +@outdoor.route('/outdoor/', methods=['GET']) +def get_outdoors_by_cuisine(difficulty): + cursor = db.get_db().cursor() + cursor.execute('SELECT * FROM outdoor_activity WHERE Difficulty_level = %s', (difficulty,)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + if json_data: + return jsonify(json_data), 200 + else: + return 'No outdoor found for the specified difficulty.', 404 diff --git a/flask-app/src/OutdoorActivity/customers.py b/flask-app/src/OutdoorActivity/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/OutdoorActivity/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/Restaurants/customers.py b/flask-app/src/Restaurants/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/Restaurants/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/Restaurants/restaurants.py b/flask-app/src/Restaurants/restaurants.py new file mode 100644 index 00000000..6f581d49 --- /dev/null +++ b/flask-app/src/Restaurants/restaurants.py @@ -0,0 +1,112 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response, current_app +import json +from src import db + + +restaurants = Blueprint('restaurants', __name__) + +# Update User information for user +@restaurants.route('/restaurants', methods=['PUT']) +def update_restaurant(): + info = request.json + rest_id = info['RestaurantID'] + name = info['Name'] + reservations = info['Reservations'] + cuisine = info['CuisineType'] + price = info['PriceTag'] + location = info['Location'] + activity = info['ActivityType'] + + query = 'UPDATE restaurants SET Name = %s, Reservations = %s, CuisineType = %s, PriceTag= %s, Location = %s, ActivityType = %s where RestaurantID = %s' + data = (name, reservations, cuisine, price,location, activity, rest_id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Restaurant info updated.' + +# Get all restaurants from the DB +@restaurants.route('/restaurants', methods=['GET']) +def get_restaurants(): + cursor = db.get_db().cursor() + cursor.execute('select RestaurantID, Name, Reservations, CuisineType,\ + PriceTag, Location, ActivityType from restaurants') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get restaurant detail for customer with particular userID +@restaurants.route('/restaurants/', methods=['GET']) +def get_restaurant(userID): + cursor = db.get_db().cursor() + cursor.execute('select * from restaurants where id = {0}'.format(userID)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Input new restaurant +@restaurants.route('/restaurants', methods=['POST']) +def add_new_restaurant(): + + # collecting data from the request object + the_data = request.json + current_app.logger.info(the_data) + + # extracting the variables + name = the_data['Name'] + reservations = the_data['Reservations'] + cuisine = the_data['CuisineType'] + price = the_data['PriceTag'] + location = the_data['Location'] + activity = the_data['ActivityType'] + + # constructing the query + query = 'INSERT INTO restaurants (Name, Reservations, CuisineType, PriceTag, Location, ActivityType) VALUES (%s, %s, %s, %s, %s, %s)' + data = (name, reservations, cuisine, price, location, activity) + current_app.logger.info(query) + + # executing and committing the insert statement + cursor = db.get_db().cursor() + cursor.execute(query, data) + db.get_db().commit() + + return 'Restaurant added successfully.' + + +# Delete restaurant from DB +@restaurants.route('/restaurants/', methods=['DELETE']) +def delete_user(RestaurantID): + cursor = db.get_db().cursor() + cursor.execute('DELETE FROM restaurants WHERE RestaurantID = %s', (RestaurantID,)) + db.get_db().commit() + return 'Restaurant deleted.', 200 + +# Get restaurants by cuisine type +@restaurants.route('/restaurants/', methods=['GET']) +def get_restaurants_by_cuisine(cuisine_type): + cursor = db.get_db().cursor() + cursor.execute('SELECT * FROM restaurants WHERE CuisineType = %s', (cuisine_type,)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + if json_data: + return jsonify(json_data), 200 + else: + return 'No restaurants found for the specified cuisine type.', 404 \ No newline at end of file From b72e45c790ab47d51fecb2aeb478299885739c7e Mon Sep 17 00:00:00 2001 From: rhodazerit1 Date: Sat, 13 Apr 2024 23:17:00 -0400 Subject: [PATCH 10/33] adding music festivals .py --- flask-app/src/MusicFestivals/musicfestivals.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 flask-app/src/MusicFestivals/musicfestivals.py diff --git a/flask-app/src/MusicFestivals/musicfestivals.py b/flask-app/src/MusicFestivals/musicfestivals.py new file mode 100644 index 00000000..e69de29b From de3c24f0cf0c0dc4ec74e0ac5462dab137827fc6 Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:56:14 -0400 Subject: [PATCH 11/33] made changes to cafe and user --- flask-app/src/Cafes/cafe.py | 115 ++++++++++++++++++++++++++ flask-app/src/Cafes/customers.py | 59 ------------- flask-app/src/User/customers.py | 138 ------------------------------- flask-app/src/User/user.py | 83 +++++++++++++++++++ 4 files changed, 198 insertions(+), 197 deletions(-) create mode 100644 flask-app/src/Cafes/cafe.py delete mode 100644 flask-app/src/Cafes/customers.py delete mode 100644 flask-app/src/User/customers.py create mode 100644 flask-app/src/User/user.py diff --git a/flask-app/src/Cafes/cafe.py b/flask-app/src/Cafes/cafe.py new file mode 100644 index 00000000..24d8b07e --- /dev/null +++ b/flask-app/src/Cafes/cafe.py @@ -0,0 +1,115 @@ +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + +cafes = Blueprint('cafes', __name__) + +# Update cafe information +@cafes.route('/cafes', methods=['PUT']) +def update_cafes(): + info = request.json + id = info['CafeID'] + Cuisine = info['Cuisine'] + name = info["Name"] + OverallRating = info['OverallRating'] + ActivityTypeID = info['ActivityTypeID'] + Price_Tag = info["Price_Tag"] + + query = 'UPDATE cafes SET Name = %s, OverallRating = %s, ActivityTypeID = %s, Cuisine = %s, Price_Tag = %s WHERE CafeID = %s' + + data = (name, OverallRating, ActivityTypeID, Cuisine, Price_Tag, id) + cursor = db.get_db().cursor() + x = cursor.execute(query, data) + db.get_db().commit() + return 'Cafes info is now updated.' + +# Retrieve cafe pricing +@cafes.route('/cafes/price/', methods=['GET']) +def cafe_price(price_tag): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM cafes WHERE PriceTag = %s', (price_tag,)) + price = cur.fetchall() + + if price: + return jsonify(price), 200 + else: + return jsonify({"error": "No cafes can be found in this price range."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred."}), 500 + +# Delete a rating for a cafe +@cafes.route('/cafes//rating', methods=['DELETE']) +def delete_cafe_rating(cafe_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('UPDATE Cafes SET OverallRating = NULL WHERE CafeID = %s', (cafe_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Cafe rating not found."}), 404 + + return jsonify({"message": "Cafe rating deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the cafe rating."}), 500 + +# posts cafe +@cafes.route('/cafes', methods=['POST']) +def create_cafe(): + data = request.get_json() + try: + id = data['CafeID'] + Cuisine = data['Cuisine'] + name = data["Name"] + OverallRating = data['OverallRating'] + ActivityTypeID = data['ActivityTypeID'] + Price_Tag = data["Price_Tag"] + + query = ''' + INSERT INTO Cafes (CafeID, Name, PriceTag, Cuisine, ActivityTypeID, OverallRating) + VALUES (%s, %s, %s, %s, %s, %s) + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (id, name, Price_Tag, Cuisine, ActivityTypeID, OverallRating)) + conn.commit() + + return jsonify({"message": "Cafe created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing required field: {str(e)}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred while creating the cafe."}), 500 + +# Retrieve by cuisine +@cafes.route('/cafes/cuisine/', methods=['GET']) +def get_cafes_by_cuisine(cuisine): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Cafes WHERE Cuisine = %s', (cuisine,)) + cafes = cur.fetchall() + + if cafes: + return jsonify(cafes), 200 + else: + return jsonify({"error": "Cafes with the specified cuisine not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching cafes by cuisine."}), 500 + +# delete cafe id +@cafes.route('/cafes/', methods=['DELETE']) +def delete_cafe(cafe_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM Cafes WHERE CafeID = %s', (cafe_id,)) + conn.commit() + + if cur.rowcount > 0: + return jsonify({"message": f"Cafe with ID {cafe_id} deleted successfully."}), 200 + else: + return jsonify({"error": f"Cafe with ID {cafe_id} not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred while deleting the cafe."}), 500 \ No newline at end of file diff --git a/flask-app/src/Cafes/customers.py b/flask-app/src/Cafes/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/Cafes/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/User/customers.py b/flask-app/src/User/customers.py deleted file mode 100644 index d4dfcf97..00000000 --- a/flask-app/src/User/customers.py +++ /dev/null @@ -1,138 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Delete User from DB -@customers.route('/customers/', methods=['DELETE']) -def delete_user(userID): - cursor = db.get_db().cursor() - cursor.execute('DELETE FROM customers WHERE id = %s', (userID,)) - db.get_db().commit() - return 'Customer deleted.', 200 - -""" -@customers.route('/customers/', methods=['DELETE']) -def delete_customer(userID): - cursor = db.get_db().cursor() - - # Construct the SQL query for deleting the customer by ID - query = 'DELETE FROM customers WHERE id = %s' - data = (userID,) - - # Execute the SQL command and commit to the database - cursor.execute(query, data) - db.get_db().commit() - - # Check if the customer was deleted - if cursor.rowcount == 0: - # No customer was deleted, possibly because the customer did not exist - return jsonify(message="Customer not found"), 404 - else: - # Respond with success message and status code - return jsonify(message="Customer deleted successfully"), 200 -""" - -# Add a new customer to the DB -@customers.route('/customers', methods=['POST']) -def add_customer(): - cus_info = request.json - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'INSERT INTO customers (first_name, last_name, company) VALUES (%s, %s, %s)' - data = (first, last, company) - cursor = db.get_db().cursor() - cursor.execute(query, data) - db.get_db().commit() - - new_customer_id = cursor.lastrowid - - response_data = { - 'message': 'Customer added successfully.', - 'customer_id': new_customer_id - } - - return jsonify(response_data), 201 - -@users.route('/product', methods=['POST']) -def add_new_product(): - - # 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'] - - # 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() - - return 'Success!' diff --git a/flask-app/src/User/user.py b/flask-app/src/User/user.py new file mode 100644 index 00000000..8181aa21 --- /dev/null +++ b/flask-app/src/User/user.py @@ -0,0 +1,83 @@ +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + +users = Blueprint('users', __name__) + +# Get name and budget from user +@users.route('/user', methods=['GET']) +def get_user_info(): + cursor = db.get_db().cursor() + cursor.execute('SELECT Name, Budget FROM User') + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Get details for specific user by UserID +@users.route('/user/', methods=['GET']) +def get_user_by_id(UserID): + cursor = db.get_db().cursor() + cursor.execute('SELECT * FROM User WHERE UserID = %s', (UserID,)) + row_headers = [x[0] for x in cursor.description] + json_data = [] + theData = cursor.fetchall() + for row in theData: + json_data.append(dict(zip(row_headers, row))) + the_response = make_response(jsonify(json_data)) + the_response.status_code = 200 + the_response.mimetype = 'application/json' + return the_response + +# Update user information +@users.route('/user', methods=['PUT']) +def update_user(): + info = request.json + UserID = info['UserID'] + Name = info['Name'] + Age = info['Age'] + Occupation = info['Occupation'] + Hometown = info['Hometown'] + Budget = info['Budget'] + Dislikes = info['Dislikes'] + Likes = info['Likes'] + Gender = info['Gender'] + DietaryRestrictions = info['DietaryRestrictions'] + SubscriptionPlan = info['SubscriptionPlan'] + PaymentID = info['PaymentID'] + Paid_Free = info['Paid/Free'] + PaymentMethod = info['PaymentMethod'] + + query = ''' + UPDATE User SET Name = %s, Age = %s, Occupation = %s, Hometown = %s, Budget = %s, Dislikes = %s, + Likes = %s, Gender = %s, DietaryRestrictions = %s, SubscriptionPlan = %s, PaymentID = %s, + Paid_Free = %s, PaymentMethod = %s WHERE UserID = %s + ''' + data = (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, + SubscriptionPlan, PaymentID, Paid_Free, PaymentMethod, UserID) + + cursor = db.get_db().cursor() + cursor.execute(query, data) + db.get_db().commit() + return 'User info is now updated.' + +# Delete user's budget from DB by UserID +@users.route('/user//Budget', methods=['DELETE']) +def delete_user_budget(UserID): + cursor = db.get_db().cursor() + cursor.execute('UPDATE User SET Budget = NULL WHERE UserID = %s', (UserID,)) + db.get_db().commit() + return 'User budget deleted.', 200 + +# Delete user's likes from DB by UserID +@users.route('/user//likes', methods=['DELETE']) +def delete_user_likes(UserID): + cursor = db.get_db().cursor() + cursor.execute('UPDATE User SET Likes = NULL WHERE UserID = %s', (UserID,)) + db.get_db().commit() + return 'User likes deleted.', 200 \ No newline at end of file From 822c1f07b49805afc7f33116857a08ee9a22bc2c Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:20:26 -0400 Subject: [PATCH 12/33] added new csvs --- db/User_to_Activity.csv | 201 ++++++++++++++++++++++++++++++++++++++++ db/user_des.csv | 201 ++++++++++++++++++++++++++++++++++++++++ db/user_locations.csv | 201 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 603 insertions(+) create mode 100644 db/User_to_Activity.csv create mode 100644 db/user_des.csv create mode 100644 db/user_locations.csv diff --git a/db/User_to_Activity.csv b/db/User_to_Activity.csv new file mode 100644 index 00000000..44c338bd --- /dev/null +++ b/db/User_to_Activity.csv @@ -0,0 +1,201 @@ +UserID,ActivityID +1,1 +2,2 +3,3 +4,4 +5,5 +6,6 +7,7 +8,8 +9,9 +10,10 +11,11 +12,12 +13,13 +14,14 +15,15 +16,16 +17,17 +18,18 +19,19 +20,20 +21,21 +22,22 +23,23 +24,24 +25,25 +26,26 +27,27 +28,28 +29,29 +30,30 +31,31 +32,32 +33,33 +34,34 +35,35 +36,36 +37,37 +38,38 +39,39 +40,40 +41,41 +42,42 +43,43 +44,44 +45,45 +46,46 +47,47 +48,48 +49,49 +50,50 +51,51 +52,52 +53,53 +54,54 +55,55 +56,56 +57,57 +58,58 +59,59 +60,60 +61,61 +62,62 +63,63 +64,64 +65,65 +66,66 +67,67 +68,68 +69,69 +70,70 +71,71 +72,72 +73,73 +74,74 +75,75 +76,76 +77,77 +78,78 +79,79 +80,80 +81,81 +82,82 +83,83 +84,84 +85,85 +86,86 +87,87 +88,88 +89,89 +90,90 +91,91 +92,92 +93,93 +94,94 +95,95 +96,96 +97,97 +98,98 +99,99 +100,100 +101,101 +102,102 +103,103 +104,104 +105,105 +106,106 +107,107 +108,108 +109,109 +110,110 +111,111 +112,112 +113,113 +114,114 +115,115 +116,116 +117,117 +118,118 +119,119 +120,120 +121,121 +122,122 +123,123 +124,124 +125,125 +126,126 +127,127 +128,128 +129,129 +130,130 +131,131 +132,132 +133,133 +134,134 +135,135 +136,136 +137,137 +138,138 +139,139 +140,140 +141,141 +142,142 +143,143 +144,144 +145,145 +146,146 +147,147 +148,148 +149,149 +150,150 +151,151 +152,152 +153,153 +154,154 +155,155 +156,156 +157,157 +158,158 +159,159 +160,160 +161,161 +162,162 +163,163 +164,164 +165,165 +166,166 +167,167 +168,168 +169,169 +170,170 +171,171 +172,172 +173,173 +174,174 +175,175 +176,176 +177,177 +178,178 +179,179 +180,180 +181,181 +182,182 +183,183 +184,184 +185,185 +186,186 +187,187 +188,188 +189,189 +190,190 +191,191 +192,192 +193,193 +194,194 +195,195 +196,196 +197,197 +198,198 +199,199 +200,200 diff --git a/db/user_des.csv b/db/user_des.csv new file mode 100644 index 00000000..e3bf3323 --- /dev/null +++ b/db/user_des.csv @@ -0,0 +1,201 @@ +UserID,User_des +1,789 Maple Avenue Boston MA +2,5354 Sprucehill Street Boston MA +3,2324 Poplar Street Boston MA +4,6566 Locust Street Boston MA +5,5758 Aspen Street Boston MA +6,5354 Sprucehill Street Cambridge MA +7,8788 Sprucewood Drive Cambridge MA +8,1313 Pine Street Boston MA +9,9596 Walnutwood Drive Boston MA +10,5556 Hemlock Street Springfield MA +11,5152 Willowhill Street Boston MA +12,8990 Pinecrest Drive Boston MA +13,2122 Spruce Street Boston MA +14,8182 Oakridge Street Boston MA +15,4344 Maplewood Street Boston MA +16,5758 Aspen Street Springfield MA +17,4748 Pinehill Street Cambridge MA +18,6970 Mulberry Street Springfield MA +19,103104 Pinehill Drive Boston MA +20,6162 Larch Street Springfield MA +21,5152 Willowhill Street Boston MA +22,8788 Sprucewood Drive Springfield MA +23,9596 Walnutwood Drive Boston MA +24,5152 Willowhill Street Cambridge MA +25,7576 Elmcrest Street Springfield MA +26,3738 Brookside Street Cambridge MA +27,2122 Spruce Street Cambridge MA +28,3132 Laurel Street Cambridge MA +29,99100 Maplehill Drive Springfield MA +30,103104 Pinehill Drive Springfield MA. 123 Main Street Amherst MA +31,3738 Brookside Street Cambridge MA +32,9394 Oakwood Drive Cambridge MA +33,6162 Larch Street Springfield MA +34,8788 Sprucewood Drive Cambridge MA +35,3132 Laurel Street Cambridge MA +36,789 Maple Avenue Boston MA +37,8384 Maplewood Drive Cambridge MA +38,4546 Oakhill Street Boston MA +39,2526 Willow Street Boston MA +40,7980 Pinewood Street Cambridge MA +41,5960 Magnolia Street Boston MA +42,4950 Chestnuthill Street Boston MA +43,1516 Walnut Street Boston MA +44,3536 Pinecrest Street Cambridge MA +45,7980 Pinewood Street Boston MA +46,99100 Maplehill Drive Boston MA +47,6566 Locust Street Springfield MA +48,789 Maple Avenue Cambridge MA +49,9192 Elmwood Drive Boston MA +50,1920 Birch Street Boston MA +51,6970 Mulberry Street Springfield MA +52,4344 Maplewood Street Boston MA +53,8586 Cedarwood Drive Boston MA +54,456 Elm Street Amherst MA +55,8788 Sprucewood Drive Springfield MA +56,3132 Laurel Street Boston MA +57,8586 Cedarwood Drive Boston MA +58,1920 Birch Street Amherst MA +59,8384 Maplewood Drive Boston MA +60,7778 Birchcrest Street Cambridge MA +61,6162 Larch Street Springfield MA +62,789 Maple Avenue Boston MA +63,3940 Redwood Street Boston MA +64,3334 Elmwood Street Cambridge MA +65,7172 Vine Street Cambridge MA +66,5960 Magnolia Street Boston MA +67,5354 Sprucehill Street Springfield MA +68,9192 Elmwood Drive Cambridge MA +69,7576 Elmcrest Street Boston MA +70,2930 Chestnut Street Boston MA +71,3334 Elmwood Street Boston MA +72,1313 Pine Street Amherst MA +73,3940 Redwood Street Boston MA +74,5354 Sprucehill Street Cambridge MA +75,123 Main Street Boston MA +76,5354 Sprucehill Street Springfield MA +77,2122 Spruce Street Amherst MA +78,5556 Hemlock Street Boston MA +79,7980 Pinewood Street Cambridge MA +80,2122 Spruce Street Cambridge MA +81,9596 Walnutwood Drive Cambridge MA +82,6364 Birchhill Street Springfield MA +83,101102 Birchhill Drive Springfield MA +84,9394 Oakwood Drive Cambridge MA +85,6970 Mulberry Street Boston MA +86,789 Maple Avenue Cambridge MA +87,6768 Alder Street Cambridge MA +88,8586 Cedarwood Drive Cambridge MA +89,5758 Aspen Street Cambridge MA +90,6970 Mulberry Street Cambridge MA +91,5960 Magnolia Street Cambridge MA +92,2526 Willow Street Cambridge MA +93,5354 Sprucehill Street Cambridge MA +94,9798 Chestnutwood Drive Boston MA +95,8788 Sprucewood Drive Boston MA +96,99100 Maplehill Drive Cambridge MA +97,6364 Birchhill Street Boston MA +98,9192 Elmwood Drive Boston MA +99,101102 Birchhill Drive Boston MA +100,3738 Brookside Street Boston MA +101,1516 Walnut Street Cambridge MA +102,8990 Pinecrest Drive Boston MA +103,6768 Alder Street Cambridge MA +104,5960 Magnolia Street Boston MA +105,3940 Redwood Street Boston MA +106,"" +107,6768 Alder Street Springfield MA +108,2122 Spruce Street Boston MA +109,4950 Chestnuthill Street Boston MA +110,8384 Maplewood Drive Cambridge MA +111,7576 Elmcrest Street Springfield MA +112,9596 Walnutwood Drive Cambridge MA +113,4950 Chestnuthill Street Cambridge MA +114,6768 Alder Street Boston MA +115,3940 Redwood Street Boston MA +116,8586 Cedarwood Drive Boston MA +117,3738 Brookside Street Boston MA +118,1718 Cedar Street Cambridge MA +119,8586 Cedarwood Drive Boston MA +120,9394 Oakwood Drive Cambridge MA +121,7778 Birchcrest Street Cambridge MA +122,5758 Aspen Street Cambridge MA +123,103104 Pinehill Drive Cambridge MA +124,2930 Chestnut Street Boston MA +125,4950 Chestnuthill Street Boston MA +126,8990 Pinecrest Drive Boston MA +127,6364 Birchhill Street Cambridge MA +128,2526 Willow Street Cambridge MA +129,7172 Vine Street Boston MA +130,8990 Pinecrest Drive Boston MA +131,2122 Spruce Street Cambridge MA +132,5354 Sprucehill Street Springfield MA +133,789 Maple Avenue Boston MA +134,8384 Maplewood Drive Cambridge MA +135,9394 Oakwood Drive Springfield MA +136,1011 Oak Street Amherst MA +137,456 Elm Street Amherst MA +138,9192 Elmwood Drive Cambridge MA +139,103104 Pinehill Drive Springfield MA. 123 Main Street Amherst MA +140,456 Elm Street Boston MA +141,8384 Maplewood Drive Cambridge MA +142,7374 Willowcrest Street Springfield MA +143,9596 Walnutwood Drive Cambridge MA +144,4142 Cedarwood Street Cambridge MA +145,9596 Walnutwood Drive Boston MA +146,8384 Maplewood Drive Springfield MA +147,3940 Redwood Street Cambridge MA +148,5758 Aspen Street Cambridge MA +149,2526 Willow Street Cambridge MA +150,9394 Oakwood Drive Cambridge MA +151,"" +152,101102 Birchhill Drive Cambridge MA +153,2728 Oakwood Street Worcester MA +154,456 Elm Street Cambridge MA +155,103104 Pinehill Drive Boston MA +156,9798 Chestnutwood Drive Boston MA +157,8990 Pinecrest Drive Cambridge MA +158,7374 Willowcrest Street Boston MA +159,8586 Cedarwood Drive Boston MA +160,3334 Elmwood Street Boston MA +161,3334 Elmwood Street Boston MA +162,1313 Pine Street Amherst MA +163,7576 Elmcrest Street Cambridge MA +164,2930 Chestnut Street Worcester MA +165,3738 Brookside Street Boston MA +166,7374 Willowcrest Street Cambridge MA +167,7374 Willowcrest Street Cambridge MA +168,3334 Elmwood Street Cambridge MA +169,4344 Maplewood Street Boston MA +170,8788 Sprucewood Drive Springfield MA +171,1516 Walnut Street Amherst MA +172,1313 Pine Street Boston MA +173,8182 Oakridge Street Springfield MA +174,8586 Cedarwood Drive Cambridge MA +175,2324 Poplar Street Worcester MA +176,6162 Larch Street Boston MA +177,3940 Redwood Street Boston MA +178,2930 Chestnut Street Worcester MA +179,7778 Birchcrest Street Boston MA +180,5354 Sprucehill Street Boston MA +181,8182 Oakridge Street Springfield MA +182,3132 Laurel Street Boston MA +183,8586 Cedarwood Drive Cambridge MA +184,789 Maple Avenue Boston MA +185,6162 Larch Street Springfield MA +186,3738 Brookside Street Cambridge MA +187,1313 Pine Street Cambridge MA +188,6364 Birchhill Street Boston MA +189,7374 Willowcrest Street Springfield MA +190,7980 Pinewood Street Cambridge MA +191,4344 Maplewood Street Cambridge MA +192,456 Elm Street Amherst MA +193,6566 Locust Street Cambridge MA +194,2526 Willow Street Worcester MA +195,4546 Oakhill Street Cambridge MA +196,4950 Chestnuthill Street Boston MA +197,9192 Elmwood Drive Springfield MA +198,101102 Birchhill Drive Boston MA +199,6970 Mulberry Street Boston MA +200,4748 Pinehill Street Cambridge MA diff --git a/db/user_locations.csv b/db/user_locations.csv new file mode 100644 index 00000000..8604ea69 --- /dev/null +++ b/db/user_locations.csv @@ -0,0 +1,201 @@ +UserID,Location +1,5959 Elmcrest Road Braintree MA +2,181920 Fayerweather Street Cambridge MA +3,9595 Cherrywood Avenue Auburn MA +4,5151 Walnutcrest Drive Melrose MA +5,212223 Garden Street Cambridge MA +6,456 Elm Street Cambridge MA +7,2021 Spruce Road Springfield MA +8,6767 Cedarwood Court Hudson MA +9,7777 Chestnutcrest Avenue Northborough MA +10,181920 Fayerweather Street Cambridge MA +11,5555 Cedarcrest Drive Natick MA +12,91011 Commonwealth Avenue Boston MA +13,1415 Walnut Drive Springfield MA +14,2223 Magnolia Lane Springfield MA +15,3131 Cedarwood Lane Peabody MA +16,8181 Maplecrest Drive Shrewsbury MA +17,789 Oak Avenue Springfield MA +18,1213 Pine Lane Springfield MA +19,151617 Elmwood Avenue Cambridge MA +20,6767 Cedarwood Court Hudson MA +21,6161 Birchwood Lane Milton MA +22,789 Oak Avenue Springfield MA +23,8989 Birchcrest Avenue Sutton MA +24,7171 Elmwood Avenue Sudbury MA +25,2223 Magnolia Lane Springfield MA +26,9999 Willowwood Road Webster MA +27,151617 Elmwood Avenue Cambridge MA +28,5151 Walnutcrest Drive Melrose MA +29,5555 Cedarcrest Drive Natick MA +30,8181 Maplecrest Drive Shrewsbury MA +31,91011 Cedar Street Cambridge MA +32,789 Oak Avenue Springfield MA +33,1717 Birch Road Brockton MA +34,1415 Walnut Drive Springfield MA +35,3535 Elmwood Drive Everett MA +36,212223 Garden Street Cambridge MA +37,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA +38,303132 Jersey Street Boston MA +39,8181 Maplecrest Drive Shrewsbury MA +40,6161 Birchwood Lane Milton MA +41,242526 Hereford Street Boston MA +42,6565 Pinecrest Drive Acton MA +43,4343 Cedarcrest Court Marlborough MA +44,272829 Ipswich Street Boston MA +45,2727 Willow Street Waltham MA +46,5678 Banks Street Cambridge MA +47,6565 Pinecrest Drive Acton MA +48,1313 Pine Lane Quincy MA +49,151617 Elmwood Avenue Cambridge MA +50,4343 Cedarcrest Court Marlborough MA +51,1213 Pine Lane Springfield MA +52,789 Maple Avenue Springfield MA +53,6565 Pinecrest Drive Acton MA +54,151617 Exeter Street Boston MA +55,9797 Maplewood Lane Oxford MA +56,9393 Chestnutwood Drive Spencer MA +57,5151 Walnutcrest Drive Melrose MA +58,8989 Birchcrest Avenue Sutton MA +59,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA +60,91011 Cedar Street Cambridge MA +61,3333 Oakwood Court Revere MA +62,1234 Beacon Street Boston MA +63,151617 Exeter Street Boston MA +64,789 Maple Avenue Springfield MA +65,789 Maple Avenue Springfield MA +66,3535 Elmwood Drive Everett MA +67,91011 Cedar Street Cambridge MA +68,456 Elm Street Cambridge MA +69,6969 Oakwood Lane Maynard MA +70,4343 Cedarcrest Court Marlborough MA +71,6565 Pinecrest Drive Acton MA +72,2929 Redwood Avenue Medford MA +73,123 Main Street Springfield MA +74,242526 Hereford Street Boston MA +75,4747 Elmcrest Avenue Lexington MA +76,6161 Birchwood Lane Milton MA +77,151617 Exeter Street Boston MA +78,1234 Aberdeen Avenue Cambridge MA +79,2727 Willow Street Waltham MA +80,456 Elm Street Springfield MA +81,91011 Cedar Street Cambridge MA +82,456 Elm Street Cambridge MA +83,7171 Elmwood Avenue Sudbury MA +84,5678 Boylston Street Boston MA +85,9595 Cherrywood Avenue Auburn MA +86,1617 Cedar Avenue Springfield MA +87,242526 Hereford Street Boston MA +88,151617 Elmwood Avenue Cambridge MA +89,1415 Walnut Drive Springfield MA +90,9191 Walnutwood Road Leicester MA +91,8181 Maplecrest Drive Shrewsbury MA +92,2121 Chestnut Avenue Newton MA +93,272829 Ipswich Street Boston MA +94,272829 Ipswich Street Boston MA +95,123 Main Street Boston MA +96,5353 Maplecrest Avenue Belmont MA +97,9999 Willowwood Road Webster MA +98,2323 Cherry Lane Somerville MA +99,3131 Cedarwood Lane Peabody MA +100,5757 Oakcrest Lane Norwood MA +101,5678 Boylston Street Boston MA +102,3737 Birchwood Road Salem MA +103,7777 Chestnutcrest Avenue Northborough MA +104,4343 Cedarcrest Court Marlborough MA +105,121314 Dartmouth Street Boston MA +106,242526 Harvard Street Cambridge MA +107,789 Oak Avenue Springfield MA +108,121314 Dartmouth Street Boston MA +109,242526 Hereford Street Boston MA +110,5757 Oakcrest Lane Norwood MA +111,789 Oak Avenue Springfield MA +112,3333 Oakwood Court Revere MA +113,6161 Birchwood Lane Milton MA +114,6767 Cedarwood Court Hudson MA +115,4949 Birchcrest Court Arlington MA +116,3535 Elmwood Drive Everett MA +117,1313 Pine Lane Quincy MA +118,9999 Willowwood Road Webster MA +119,151617 Elmwood Avenue Cambridge MA +120,4141 Pinecrest Avenue Chelsea MA +121,5353 Maplecrest Avenue Belmont MA +122,1919 Walnut Street Lynn MA +123,7171 Elmwood Avenue Sudbury MA +124,272829 Ipswich Street Boston MA +125,5757 Oakcrest Lane Norwood MA +126,789 Maple Avenue Springfield MA +127,8181 Maplecrest Drive Shrewsbury MA +128,789 Maple Avenue Springfield MA +129,242526 Hereford Street Boston MA +130,272829 Inman Street Cambridge MA +131,242526 Hereford Street Boston MA +132,7575 Walnutwood Drive Hopkinton MA +133,7171 Elmwood Avenue Sudbury MA +134,5555 Cedarcrest Drive Natick MA +135,1234 Aberdeen Avenue Cambridge MA +136,7373 Birchwood Road Ashland MA +137,6363 Walnutwood Avenue Westford MA +138,8383 Cedarcrest Avenue Westborough MA +139,2727 Willow Street Waltham MA +140,2121 Chestnut Avenue Newton MA +141,212223 Gloucester Street Boston MA +142,5757 Oakcrest Lane Norwood MA +143,789 Maple Avenue Springfield MA +144,5959 Elmcrest Road Braintree MA +145,9999 Willowwood Road Webster MA +146,1234 Beacon Street Boston MA +147,1717 Birch Road Brockton MA +148,5151 Walnutcrest Drive Melrose MA +149,3333 Oakwood Court Revere MA +150,2929 Redwood Avenue Medford MA +151,2223 Magnolia Lane Springfield MA +152,6969 Oakwood Lane Maynard MA +153,7777 Chestnutcrest Avenue Northborough MA +154,8383 Cedarcrest Avenue Westborough MA +155,6969 Oakwood Lane Maynard MA +156,1234 Beacon Street Boston MA +157,4141 Pinecrest Avenue Chelsea MA +158,212223 Gloucester Street Boston MA +159,1819 Birchwood Court Springfield MA +160,5757 Oakcrest Lane Norwood MA +161,6565 Pinecrest Drive Acton MA +162,3737 Birchwood Road Salem MA +163,456 Elm Street Cambridge MA +164,2223 Magnolia Lane Springfield MA +165,151617 Exeter Street Boston MA +166,1617 Cedar Avenue Springfield MA +167,181920 Fairfield Street Boston MA +168,1919 Walnut Street Lynn MA +169,151617 Exeter Street Boston MA +170,6565 Pinecrest Drive Acton MA +171,9393 Chestnutwood Drive Spencer MA +172,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA +173,5757 Oakcrest Lane Norwood MA +174,4141 Pinecrest Avenue Chelsea MA +175,5678 Boylston Street Boston MA +176,212223 Garden Street Cambridge MA +177,1234 Aberdeen Avenue Cambridge MA +178,1617 Cedar Avenue Springfield MA +179,5151 Walnutcrest Drive Melrose MA +180,5555 Cedarcrest Drive Natick MA +181,5959 Elmcrest Road Braintree MA +182,1919 Walnut Street Lynn MA +183,7575 Walnutwood Drive Hopkinton MA +184,3737 Birchwood Road Salem MA +185,1011 Oak Street Springfield MA +186,1011 Oak Street Springfield MA +187,6565 Pinecrest Drive Acton MA +188,456 Elm Street Cambridge MA +189,123 Main Street Boston MA +190,5678 Boylston Street Boston MA +191,1213 Pine Lane Springfield MA +192,3939 Walnutwood Lane Malden MA +193,9797 Maplewood Lane Oxford MA +194,6767 Cedarwood Court Hudson MA +195,6767 Cedarwood Court Hudson MA +196,242526 Harvard Street Cambridge MA +197,3737 Birchwood Road Salem MA +198,212223 Garden Street Cambridge MA +199,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA +200,181920 Fayerweather Street Cambridge MA From c2fc74a00d67a209927752d9df317c35a0a9993b Mon Sep 17 00:00:00 2001 From: melinayg Date: Mon, 15 Apr 2024 13:03:51 -0400 Subject: [PATCH 13/33] sql file for insert statements --- db/sample_data.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/sample_data.sql diff --git a/db/sample_data.sql b/db/sample_data.sql new file mode 100644 index 00000000..0b42ea69 --- /dev/null +++ b/db/sample_data.sql @@ -0,0 +1,5 @@ + +/* INSERT STATEMENTS */ + +USE 'GoMass'; + From 6775e0145d8349722508fe7c68fb21adb4927bb2 Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:26:30 -0400 Subject: [PATCH 14/33] just added balance --- db/phasetwo.sql | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/db/phasetwo.sql b/db/phasetwo.sql index 480e39e1..20bf5ca4 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -12,10 +12,8 @@ CREATE TABLE User ( Likes TEXT, Gender VARCHAR(10), DietaryRestrictions TEXT, - SubscriptionPlan TEXT, PaymentID INT, - Paid VARCHAR(255), - Free TEXT, + Balance INT, PaymentMethod TEXT ); @@ -58,7 +56,6 @@ CREATE TABLE Interests_Hobbies ( CREATE TABLE PaymentPlan( PaymentID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Paid INT, - Free INT, PaymentMethod TEXT, UserID INT, CONSTRAINT fk_4 From 6db2b0a280f8110c54059255effb2b7aad09efd3 Mon Sep 17 00:00:00 2001 From: melinayg Date: Mon, 15 Apr 2024 16:56:58 -0400 Subject: [PATCH 15/33] added movies location --- db/phasetwo.sql | 15 +++++++++++---- db/sample_data.sql | 8 ++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/db/phasetwo.sql b/db/phasetwo.sql index 20bf5ca4..c641fac0 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -12,8 +12,9 @@ CREATE TABLE User ( Likes TEXT, Gender VARCHAR(10), DietaryRestrictions TEXT, + SubscriptionPlan TEXT, PaymentID INT, - Balance INT, + Balance INT, PaymentMethod TEXT ); @@ -27,7 +28,7 @@ CREATE TABLE User_Location ( CREATE TABLE Activity ( ActivityID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, - Name VARCHAR(255) NOT NULL + /* category */ ); CREATE TABLE User_to_Activity( @@ -154,7 +155,7 @@ CREATE TABLE Restaurants( RestaurantID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name TEXT, Reservations INT, - CuisineType TEXT,X + CuisineType TEXT, PriceTag VARCHAR(5), Location TEXT, ActivityTypeID INT, @@ -264,7 +265,13 @@ CREATE TABLE Movies ( FOREIGN KEY (Activity_Type_ID) REFERENCES Activity(ActivityID) ); - +CREATE TABLE MoviesLocation ( + Location VARCHAR(255) PRIMARY KEY UNIQUE, + MovieID INT, + CONSTRAINT fk_28 + FOREIGN KEY (MovieID) REFERENCES Movies(MovieID) + ON UPDATE CASCADE ON DELETE RESTRICT +); CREATE TABLE ArtsMuseums ( ArtMuseumID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, diff --git a/db/sample_data.sql b/db/sample_data.sql index 0b42ea69..6c52fb82 100644 --- a/db/sample_data.sql +++ b/db/sample_data.sql @@ -3,3 +3,11 @@ USE 'GoMass'; +insert into Activity (ActivityID) values (1); +insert into Activity (ActivityID) values (2); +insert into Activity (ActivityID) values (3); +insert into Activity (ActivityID) values (4); +insert into Activity (ActivityID) values (5); +insert into Activity (ActivityID) values (6); +insert into Activity (ActivityID) values (7); +insert into Activity (ActivityID) values (8); \ No newline at end of file From a5a4dd5dfb46a2f614ab3bc4cd6276a6ae51e282 Mon Sep 17 00:00:00 2001 From: atamam Date: Mon, 15 Apr 2024 19:04:28 -0400 Subject: [PATCH 16/33] adding the secrets file --- db/Destination_to_Transportation.csv | 201 --------------------------- db/User_to_Activity.csv | 201 --------------------------- db/paymentplan.csv | 51 ------- db/transportation.csv | 51 ------- db/transportationtype.csv | 201 --------------------------- db/user_des.csv | 201 --------------------------- db/user_locations.csv | 201 --------------------------- db/user_to_transpo.csv | 201 --------------------------- 8 files changed, 1308 deletions(-) delete mode 100644 db/Destination_to_Transportation.csv delete mode 100644 db/User_to_Activity.csv delete mode 100644 db/paymentplan.csv delete mode 100644 db/transportation.csv delete mode 100644 db/transportationtype.csv delete mode 100644 db/user_des.csv delete mode 100644 db/user_locations.csv delete mode 100644 db/user_to_transpo.csv diff --git a/db/Destination_to_Transportation.csv b/db/Destination_to_Transportation.csv deleted file mode 100644 index 0fbea461..00000000 --- a/db/Destination_to_Transportation.csv +++ /dev/null @@ -1,201 +0,0 @@ -Address,TransportationId -8801 Rigney Lane,1 -626 Michigan Court,2 -2215 Acker Avenue,3 -018 Dexter Street,4 -666 Hooker Point,5 -52 Lighthouse Bay Pass,6 -73162 Goodland Crossing,7 -2 Homewood Crossing,8 -5727 Dawn Hill,9 -3925 Washington Point,10 -20559 Clemons Avenue,11 -9466 Hooker Terrace,12 -82 Declaration Junction,13 -851 Green Ridge Drive,14 -032 Rieder Parkway,15 -55 Loeprich Plaza,16 -6521 Fordem Center,17 -913 Mitchell Plaza,18 -72327 Rowland Drive,19 -1 Waubesa Place,20 -38 Jenna Terrace,21 -2 Larry Plaza,22 -57644 Gerald Pass,23 -53 Hagan Avenue,24 -782 Bultman Road,25 -0 Fordem Hill,26 -74 Parkside Drive,27 -8473 Lunder Hill,28 -4307 Helena Pass,29 -876 Fordem Street,30 -820 Cardinal Trail,31 -67 Schmedeman Street,32 -59516 Sundown Center,33 -99 Blue Bill Park Place,34 -58322 Melby Lane,35 -5594 Texas Lane,36 -48215 Annamark Drive,37 -8700 Dovetail Junction,38 -82156 Walton Street,39 -35707 Linden Parkway,40 -8915 Derek Junction,41 -7761 Mockingbird Terrace,42 -814 Mockingbird Court,43 -17143 Lawn Avenue,44 -63 Drewry Court,45 -0984 Eliot Alley,46 -280 Straubel Center,47 -153 Delladonna Parkway,48 -00 Upham Circle,49 -0703 Donald Center,50 -509 Butterfield Crossing,51 -50960 Sachs Court,52 -285 Autumn Leaf Junction,53 -22 Sloan Alley,54 -42863 Evergreen Point,55 -57276 Troy Road,56 -33 Evergreen Crossing,57 -6060 Drewry Alley,58 -35 Gale Crossing,59 -0 Lukken Terrace,60 -42 Pine View Terrace,61 -8 Fieldstone Lane,62 -231 Myrtle Circle,63 -872 Northridge Court,64 -15 Dexter Road,65 -6 Mandrake Way,66 -56285 Talisman Place,67 -7 Golf View Place,68 -0 Moose Point,69 -9114 Independence Court,70 -64 Sunnyside Crossing,71 -8 Crescent Oaks Center,72 -19 Bashford Pass,73 -003 Reinke Plaza,74 -60576 Annamark Circle,75 -0631 Marquette Hill,76 -754 Hansons Road,77 -61068 Warrior Point,78 -9129 Hoffman Point,79 -3316 Westridge Trail,80 -1346 Summerview Point,81 -27425 Prairieview Road,82 -0 Mallory Center,83 -336 Crescent Oaks Court,84 -2 Jenifer Hill,85 -1562 Springview Alley,86 -1 Susan Center,87 -9 Blaine Place,88 -42 Randy Terrace,89 -8 Goodland Avenue,90 -595 Little Fleur Way,91 -6 Packers Drive,92 -7288 Hintze Street,93 -43457 Lawn Court,94 -47 Norway Maple Plaza,95 -8694 Shelley Trail,96 -86357 Heath Park,97 -15040 Karstens Street,98 -31 Kipling Alley,99 -73 Colorado Road,100 -60866 Vidon Court,101 -9 Eagan Pass,102 -8068 Esch Place,103 -7 Westerfield Court,104 -5235 Valley Edge Drive,105 -1693 Petterle Drive,106 -00393 Superior Crossing,107 -961 Arrowood Place,108 -1 Steensland Hill,109 -96 Crownhardt Terrace,110 -1565 Ludington Circle,111 -5 Petterle Point,112 -573 Clarendon Trail,113 -854 Jackson Terrace,114 -57480 Dovetail Point,115 -3659 Bunting Park,116 -3 Fordem Plaza,117 -0 Oxford Drive,118 -09 Miller Court,119 -0 Sage Trail,120 -87219 Westport Pass,121 -19530 Bultman Drive,122 -37065 Coleman Avenue,123 -6 Sauthoff Center,124 -533 Village Parkway,125 -2 Mayer Trail,126 -4 Caliangt Place,127 -5445 Corscot Parkway,128 -75 Bartillon Pass,129 -3 Village Place,130 -77 Continental Hill,131 -6670 Rusk Circle,132 -8 Northridge Terrace,133 -04843 Bultman Park,134 -0543 Chinook Place,135 -36 Summit Circle,136 -86 Mosinee Center,137 -8490 Springs Point,138 -5 Coleman Parkway,139 -2 Memorial Road,140 -651 Marquette Lane,141 -11338 Carpenter Court,142 -6 Talisman Pass,143 -799 Butternut Drive,144 -3 Kedzie Parkway,145 -3805 Pawling Street,146 -17 Lyons Drive,147 -41452 Sundown Street,148 -4 Nancy Alley,149 -19 Susan Alley,150 -54522 Autumn Leaf Avenue,151 -1 Sunnyside Junction,152 -0 Reindahl Drive,153 -1872 Fair Oaks Drive,154 -55 Donald Avenue,155 -59 Cascade Plaza,156 -98 Parkside Trail,157 -340 Northridge Point,158 -3645 Scoville Court,159 -79 Kipling Lane,160 -121 Donald Junction,161 -73 Bluejay Way,162 -01 Oriole Way,163 -47 Toban Hill,164 -0 Killdeer Pass,165 -95 Debra Hill,166 -26 Dapin Hill,167 -66629 Sauthoff Lane,168 -4 Jenna Circle,169 -5 Muir Way,170 -33 Oak Drive,171 -410 Colorado Trail,172 -5 Nancy Point,173 -43592 Cherokee Crossing,174 -03 Namekagon Circle,175 -0 Golf Course Pass,176 -8 Division Circle,177 -56 Hoard Alley,178 -326 Meadow Vale Parkway,179 -17365 Fieldstone Parkway,180 -84866 Mcbride Trail,181 -227 Shopko Terrace,182 -46 5th Alley,183 -02 Pearson Junction,184 -1695 Bultman Parkway,185 -6827 Bowman Terrace,186 -362 Old Gate Park,187 -043 Jenifer Center,188 -26057 Grover Way,189 -10237 Pleasure Alley,190 -7 Swallow Court,191 -6 Main Park,192 -5493 Straubel Plaza,193 -7110 Mitchell Parkway,194 -6 Hanson Lane,195 -4 Bluejay Trail,196 -7 Kensington Plaza,197 -6611 Lawn Junction,198 -4630 Jana Center,199 -6402 Erie Trail,200 diff --git a/db/User_to_Activity.csv b/db/User_to_Activity.csv deleted file mode 100644 index 44c338bd..00000000 --- a/db/User_to_Activity.csv +++ /dev/null @@ -1,201 +0,0 @@ -UserID,ActivityID -1,1 -2,2 -3,3 -4,4 -5,5 -6,6 -7,7 -8,8 -9,9 -10,10 -11,11 -12,12 -13,13 -14,14 -15,15 -16,16 -17,17 -18,18 -19,19 -20,20 -21,21 -22,22 -23,23 -24,24 -25,25 -26,26 -27,27 -28,28 -29,29 -30,30 -31,31 -32,32 -33,33 -34,34 -35,35 -36,36 -37,37 -38,38 -39,39 -40,40 -41,41 -42,42 -43,43 -44,44 -45,45 -46,46 -47,47 -48,48 -49,49 -50,50 -51,51 -52,52 -53,53 -54,54 -55,55 -56,56 -57,57 -58,58 -59,59 -60,60 -61,61 -62,62 -63,63 -64,64 -65,65 -66,66 -67,67 -68,68 -69,69 -70,70 -71,71 -72,72 -73,73 -74,74 -75,75 -76,76 -77,77 -78,78 -79,79 -80,80 -81,81 -82,82 -83,83 -84,84 -85,85 -86,86 -87,87 -88,88 -89,89 -90,90 -91,91 -92,92 -93,93 -94,94 -95,95 -96,96 -97,97 -98,98 -99,99 -100,100 -101,101 -102,102 -103,103 -104,104 -105,105 -106,106 -107,107 -108,108 -109,109 -110,110 -111,111 -112,112 -113,113 -114,114 -115,115 -116,116 -117,117 -118,118 -119,119 -120,120 -121,121 -122,122 -123,123 -124,124 -125,125 -126,126 -127,127 -128,128 -129,129 -130,130 -131,131 -132,132 -133,133 -134,134 -135,135 -136,136 -137,137 -138,138 -139,139 -140,140 -141,141 -142,142 -143,143 -144,144 -145,145 -146,146 -147,147 -148,148 -149,149 -150,150 -151,151 -152,152 -153,153 -154,154 -155,155 -156,156 -157,157 -158,158 -159,159 -160,160 -161,161 -162,162 -163,163 -164,164 -165,165 -166,166 -167,167 -168,168 -169,169 -170,170 -171,171 -172,172 -173,173 -174,174 -175,175 -176,176 -177,177 -178,178 -179,179 -180,180 -181,181 -182,182 -183,183 -184,184 -185,185 -186,186 -187,187 -188,188 -189,189 -190,190 -191,191 -192,192 -193,193 -194,194 -195,195 -196,196 -197,197 -198,198 -199,199 -200,200 diff --git a/db/paymentplan.csv b/db/paymentplan.csv deleted file mode 100644 index f6a9a051..00000000 --- a/db/paymentplan.csv +++ /dev/null @@ -1,51 +0,0 @@ -PaymentId,Paid,PaymentMethod,user_id -1,$6.06,credit card,1 -2,$2.21,apple pay,2 -3,$6.35,apple pay,3 -4,$6.74,debit card,4 -5,$1.39,paypal,5 -6,$2.89,paypal,6 -7,$6.08,debit card,7 -8,$0.58,debit card,8 -9,$4.19,credit card,9 -10,$6.21,paypal,10 -11,$5.16,paypal,11 -12,$9.90,debit card,12 -13,$3.80,credit card,13 -14,$0.73,debit card,14 -15,$7.83,apple pay,15 -16,$0.27,apple pay,16 -17,$0.05,credit card,17 -18,$1.26,credit card,18 -19,$9.56,debit card,19 -20,$2.83,credit card,20 -21,$8.91,paypal,21 -22,$2.45,apple pay,22 -23,$8.88,paypal,23 -24,$6.05,paypal,24 -25,$0.17,paypal,25 -26,$8.64,apple pay,26 -27,$6.37,paypal,27 -28,$0.71,paypal,28 -29,$3.66,debit card,29 -30,$6.33,apple pay,30 -31,$2.11,paypal,31 -32,$2.89,debit card,32 -33,$9.74,apple pay,33 -34,$8.77,credit card,34 -35,$1.22,apple pay,35 -36,$9.60,debit card,36 -37,$0.65,paypal,37 -38,$2.98,paypal,38 -39,$1.97,debit card,39 -40,$0.26,paypal,40 -41,$9.35,debit card,41 -42,$6.49,credit card,42 -43,$0.88,debit card,43 -44,$1.52,paypal,44 -45,$7.88,paypal,45 -46,$9.57,paypal,46 -47,$3.54,paypal,47 -48,$5.17,credit card,48 -49,$4.24,paypal,49 -50,$2.47,paypal,50 diff --git a/db/transportation.csv b/db/transportation.csv deleted file mode 100644 index 579fc5d1..00000000 --- a/db/transportation.csv +++ /dev/null @@ -1,51 +0,0 @@ -TransportationID,Budget,CleanlinessSaftey -1,51.5,low -2,13.98,high -3,12.29,low -4,20.41,low -5,51.05,low -6,83.41,low -7,30.77,high -8,90.5,medium -9,66.84,low -10,56.43,low -11,67.79,medium -12,38.63,medium -13,54.91,low -14,44.34,high -15,17.26,low -16,33.41,medium -17,59.72,high -18,99.27,medium -19,52.07,high -20,96.19,low -21,66.26,medium -22,83.41,medium -23,28.29,low -24,40.85,low -25,72.25,low -26,63.17,medium -27,27.02,medium -28,90.91,high -29,67.41,medium -30,33.13,high -31,88.99,high -32,6.53,low -33,51.82,medium -34,90.23,medium -35,48.38,medium -36,84.49,high -37,54.2,low -38,86.79,low -39,70.09,medium -40,31.1,medium -41,0.7,medium -42,90.51,medium -43,15.37,low -44,5.37,medium -45,92.78,high -46,89.7,high -47,97.51,high -48,52.95,high -49,43.8,high -50,70.35,low diff --git a/db/transportationtype.csv b/db/transportationtype.csv deleted file mode 100644 index 51c791cb..00000000 --- a/db/transportationtype.csv +++ /dev/null @@ -1,201 +0,0 @@ -TypeOfTranspo,TransportationId -public transportation,1 -ride-share app,2 -ride-share app,3 -plane,4 -walking,5 -ride-share app,6 -public transportation,7 -car,8 -plane,9 -walking,10 -plane,11 -ride-share app,12 -ride-share app,13 -plane,14 -ride-share app,15 -plane,16 -walking,17 -car,18 -ride-share app,19 -ride-share app,20 -car,21 -car,22 -walking,23 -walking,24 -car,25 -car,26 -public transportation,27 -plane,28 -public transportation,29 -ride-share app,30 -public transportation,31 -car,32 -ride-share app,33 -walking,34 -public transportation,35 -car,36 -car,37 -public transportation,38 -plane,39 -car,40 -walking,41 -ride-share app,42 -car,43 -ride-share app,44 -public transportation,45 -public transportation,46 -plane,47 -public transportation,48 -car,49 -ride-share app,50 -car,51 -plane,52 -ride-share app,53 -car,54 -plane,55 -ride-share app,56 -walking,57 -car,58 -ride-share app,59 -car,60 -walking,61 -walking,62 -car,63 -plane,64 -walking,65 -walking,66 -plane,67 -public transportation,68 -walking,69 -car,70 -public transportation,71 -ride-share app,72 -walking,73 -car,74 -car,75 -public transportation,76 -public transportation,77 -ride-share app,78 -public transportation,79 -public transportation,80 -walking,81 -car,82 -public transportation,83 -walking,84 -plane,85 -ride-share app,86 -public transportation,87 -walking,88 -car,89 -car,90 -car,91 -plane,92 -public transportation,93 -plane,94 -plane,95 -walking,96 -ride-share app,97 -car,98 -plane,99 -walking,100 -ride-share app,101 -car,102 -plane,103 -car,104 -car,105 -public transportation,106 -walking,107 -plane,108 -plane,109 -car,110 -walking,111 -public transportation,112 -public transportation,113 -plane,114 -walking,115 -car,116 -ride-share app,117 -car,118 -car,119 -walking,120 -public transportation,121 -walking,122 -plane,123 -ride-share app,124 -car,125 -car,126 -ride-share app,127 -walking,128 -plane,129 -ride-share app,130 -plane,131 -plane,132 -car,133 -plane,134 -plane,135 -walking,136 -car,137 -car,138 -car,139 -public transportation,140 -walking,141 -ride-share app,142 -plane,143 -public transportation,144 -public transportation,145 -walking,146 -public transportation,147 -ride-share app,148 -car,149 -walking,150 -plane,151 -public transportation,152 -car,153 -plane,154 -car,155 -ride-share app,156 -ride-share app,157 -public transportation,158 -public transportation,159 -public transportation,160 -plane,161 -car,162 -car,163 -public transportation,164 -plane,165 -car,166 -plane,167 -public transportation,168 -ride-share app,169 -car,170 -public transportation,171 -ride-share app,172 -plane,173 -plane,174 -public transportation,175 -walking,176 -public transportation,177 -ride-share app,178 -public transportation,179 -public transportation,180 -walking,181 -public transportation,182 -walking,183 -public transportation,184 -plane,185 -public transportation,186 -ride-share app,187 -car,188 -walking,189 -car,190 -plane,191 -walking,192 -walking,193 -public transportation,194 -ride-share app,195 -car,196 -car,197 -car,198 -car,199 -public transportation,200 diff --git a/db/user_des.csv b/db/user_des.csv deleted file mode 100644 index e3bf3323..00000000 --- a/db/user_des.csv +++ /dev/null @@ -1,201 +0,0 @@ -UserID,User_des -1,789 Maple Avenue Boston MA -2,5354 Sprucehill Street Boston MA -3,2324 Poplar Street Boston MA -4,6566 Locust Street Boston MA -5,5758 Aspen Street Boston MA -6,5354 Sprucehill Street Cambridge MA -7,8788 Sprucewood Drive Cambridge MA -8,1313 Pine Street Boston MA -9,9596 Walnutwood Drive Boston MA -10,5556 Hemlock Street Springfield MA -11,5152 Willowhill Street Boston MA -12,8990 Pinecrest Drive Boston MA -13,2122 Spruce Street Boston MA -14,8182 Oakridge Street Boston MA -15,4344 Maplewood Street Boston MA -16,5758 Aspen Street Springfield MA -17,4748 Pinehill Street Cambridge MA -18,6970 Mulberry Street Springfield MA -19,103104 Pinehill Drive Boston MA -20,6162 Larch Street Springfield MA -21,5152 Willowhill Street Boston MA -22,8788 Sprucewood Drive Springfield MA -23,9596 Walnutwood Drive Boston MA -24,5152 Willowhill Street Cambridge MA -25,7576 Elmcrest Street Springfield MA -26,3738 Brookside Street Cambridge MA -27,2122 Spruce Street Cambridge MA -28,3132 Laurel Street Cambridge MA -29,99100 Maplehill Drive Springfield MA -30,103104 Pinehill Drive Springfield MA. 123 Main Street Amherst MA -31,3738 Brookside Street Cambridge MA -32,9394 Oakwood Drive Cambridge MA -33,6162 Larch Street Springfield MA -34,8788 Sprucewood Drive Cambridge MA -35,3132 Laurel Street Cambridge MA -36,789 Maple Avenue Boston MA -37,8384 Maplewood Drive Cambridge MA -38,4546 Oakhill Street Boston MA -39,2526 Willow Street Boston MA -40,7980 Pinewood Street Cambridge MA -41,5960 Magnolia Street Boston MA -42,4950 Chestnuthill Street Boston MA -43,1516 Walnut Street Boston MA -44,3536 Pinecrest Street Cambridge MA -45,7980 Pinewood Street Boston MA -46,99100 Maplehill Drive Boston MA -47,6566 Locust Street Springfield MA -48,789 Maple Avenue Cambridge MA -49,9192 Elmwood Drive Boston MA -50,1920 Birch Street Boston MA -51,6970 Mulberry Street Springfield MA -52,4344 Maplewood Street Boston MA -53,8586 Cedarwood Drive Boston MA -54,456 Elm Street Amherst MA -55,8788 Sprucewood Drive Springfield MA -56,3132 Laurel Street Boston MA -57,8586 Cedarwood Drive Boston MA -58,1920 Birch Street Amherst MA -59,8384 Maplewood Drive Boston MA -60,7778 Birchcrest Street Cambridge MA -61,6162 Larch Street Springfield MA -62,789 Maple Avenue Boston MA -63,3940 Redwood Street Boston MA -64,3334 Elmwood Street Cambridge MA -65,7172 Vine Street Cambridge MA -66,5960 Magnolia Street Boston MA -67,5354 Sprucehill Street Springfield MA -68,9192 Elmwood Drive Cambridge MA -69,7576 Elmcrest Street Boston MA -70,2930 Chestnut Street Boston MA -71,3334 Elmwood Street Boston MA -72,1313 Pine Street Amherst MA -73,3940 Redwood Street Boston MA -74,5354 Sprucehill Street Cambridge MA -75,123 Main Street Boston MA -76,5354 Sprucehill Street Springfield MA -77,2122 Spruce Street Amherst MA -78,5556 Hemlock Street Boston MA -79,7980 Pinewood Street Cambridge MA -80,2122 Spruce Street Cambridge MA -81,9596 Walnutwood Drive Cambridge MA -82,6364 Birchhill Street Springfield MA -83,101102 Birchhill Drive Springfield MA -84,9394 Oakwood Drive Cambridge MA -85,6970 Mulberry Street Boston MA -86,789 Maple Avenue Cambridge MA -87,6768 Alder Street Cambridge MA -88,8586 Cedarwood Drive Cambridge MA -89,5758 Aspen Street Cambridge MA -90,6970 Mulberry Street Cambridge MA -91,5960 Magnolia Street Cambridge MA -92,2526 Willow Street Cambridge MA -93,5354 Sprucehill Street Cambridge MA -94,9798 Chestnutwood Drive Boston MA -95,8788 Sprucewood Drive Boston MA -96,99100 Maplehill Drive Cambridge MA -97,6364 Birchhill Street Boston MA -98,9192 Elmwood Drive Boston MA -99,101102 Birchhill Drive Boston MA -100,3738 Brookside Street Boston MA -101,1516 Walnut Street Cambridge MA -102,8990 Pinecrest Drive Boston MA -103,6768 Alder Street Cambridge MA -104,5960 Magnolia Street Boston MA -105,3940 Redwood Street Boston MA -106,"" -107,6768 Alder Street Springfield MA -108,2122 Spruce Street Boston MA -109,4950 Chestnuthill Street Boston MA -110,8384 Maplewood Drive Cambridge MA -111,7576 Elmcrest Street Springfield MA -112,9596 Walnutwood Drive Cambridge MA -113,4950 Chestnuthill Street Cambridge MA -114,6768 Alder Street Boston MA -115,3940 Redwood Street Boston MA -116,8586 Cedarwood Drive Boston MA -117,3738 Brookside Street Boston MA -118,1718 Cedar Street Cambridge MA -119,8586 Cedarwood Drive Boston MA -120,9394 Oakwood Drive Cambridge MA -121,7778 Birchcrest Street Cambridge MA -122,5758 Aspen Street Cambridge MA -123,103104 Pinehill Drive Cambridge MA -124,2930 Chestnut Street Boston MA -125,4950 Chestnuthill Street Boston MA -126,8990 Pinecrest Drive Boston MA -127,6364 Birchhill Street Cambridge MA -128,2526 Willow Street Cambridge MA -129,7172 Vine Street Boston MA -130,8990 Pinecrest Drive Boston MA -131,2122 Spruce Street Cambridge MA -132,5354 Sprucehill Street Springfield MA -133,789 Maple Avenue Boston MA -134,8384 Maplewood Drive Cambridge MA -135,9394 Oakwood Drive Springfield MA -136,1011 Oak Street Amherst MA -137,456 Elm Street Amherst MA -138,9192 Elmwood Drive Cambridge MA -139,103104 Pinehill Drive Springfield MA. 123 Main Street Amherst MA -140,456 Elm Street Boston MA -141,8384 Maplewood Drive Cambridge MA -142,7374 Willowcrest Street Springfield MA -143,9596 Walnutwood Drive Cambridge MA -144,4142 Cedarwood Street Cambridge MA -145,9596 Walnutwood Drive Boston MA -146,8384 Maplewood Drive Springfield MA -147,3940 Redwood Street Cambridge MA -148,5758 Aspen Street Cambridge MA -149,2526 Willow Street Cambridge MA -150,9394 Oakwood Drive Cambridge MA -151,"" -152,101102 Birchhill Drive Cambridge MA -153,2728 Oakwood Street Worcester MA -154,456 Elm Street Cambridge MA -155,103104 Pinehill Drive Boston MA -156,9798 Chestnutwood Drive Boston MA -157,8990 Pinecrest Drive Cambridge MA -158,7374 Willowcrest Street Boston MA -159,8586 Cedarwood Drive Boston MA -160,3334 Elmwood Street Boston MA -161,3334 Elmwood Street Boston MA -162,1313 Pine Street Amherst MA -163,7576 Elmcrest Street Cambridge MA -164,2930 Chestnut Street Worcester MA -165,3738 Brookside Street Boston MA -166,7374 Willowcrest Street Cambridge MA -167,7374 Willowcrest Street Cambridge MA -168,3334 Elmwood Street Cambridge MA -169,4344 Maplewood Street Boston MA -170,8788 Sprucewood Drive Springfield MA -171,1516 Walnut Street Amherst MA -172,1313 Pine Street Boston MA -173,8182 Oakridge Street Springfield MA -174,8586 Cedarwood Drive Cambridge MA -175,2324 Poplar Street Worcester MA -176,6162 Larch Street Boston MA -177,3940 Redwood Street Boston MA -178,2930 Chestnut Street Worcester MA -179,7778 Birchcrest Street Boston MA -180,5354 Sprucehill Street Boston MA -181,8182 Oakridge Street Springfield MA -182,3132 Laurel Street Boston MA -183,8586 Cedarwood Drive Cambridge MA -184,789 Maple Avenue Boston MA -185,6162 Larch Street Springfield MA -186,3738 Brookside Street Cambridge MA -187,1313 Pine Street Cambridge MA -188,6364 Birchhill Street Boston MA -189,7374 Willowcrest Street Springfield MA -190,7980 Pinewood Street Cambridge MA -191,4344 Maplewood Street Cambridge MA -192,456 Elm Street Amherst MA -193,6566 Locust Street Cambridge MA -194,2526 Willow Street Worcester MA -195,4546 Oakhill Street Cambridge MA -196,4950 Chestnuthill Street Boston MA -197,9192 Elmwood Drive Springfield MA -198,101102 Birchhill Drive Boston MA -199,6970 Mulberry Street Boston MA -200,4748 Pinehill Street Cambridge MA diff --git a/db/user_locations.csv b/db/user_locations.csv deleted file mode 100644 index 8604ea69..00000000 --- a/db/user_locations.csv +++ /dev/null @@ -1,201 +0,0 @@ -UserID,Location -1,5959 Elmcrest Road Braintree MA -2,181920 Fayerweather Street Cambridge MA -3,9595 Cherrywood Avenue Auburn MA -4,5151 Walnutcrest Drive Melrose MA -5,212223 Garden Street Cambridge MA -6,456 Elm Street Cambridge MA -7,2021 Spruce Road Springfield MA -8,6767 Cedarwood Court Hudson MA -9,7777 Chestnutcrest Avenue Northborough MA -10,181920 Fayerweather Street Cambridge MA -11,5555 Cedarcrest Drive Natick MA -12,91011 Commonwealth Avenue Boston MA -13,1415 Walnut Drive Springfield MA -14,2223 Magnolia Lane Springfield MA -15,3131 Cedarwood Lane Peabody MA -16,8181 Maplecrest Drive Shrewsbury MA -17,789 Oak Avenue Springfield MA -18,1213 Pine Lane Springfield MA -19,151617 Elmwood Avenue Cambridge MA -20,6767 Cedarwood Court Hudson MA -21,6161 Birchwood Lane Milton MA -22,789 Oak Avenue Springfield MA -23,8989 Birchcrest Avenue Sutton MA -24,7171 Elmwood Avenue Sudbury MA -25,2223 Magnolia Lane Springfield MA -26,9999 Willowwood Road Webster MA -27,151617 Elmwood Avenue Cambridge MA -28,5151 Walnutcrest Drive Melrose MA -29,5555 Cedarcrest Drive Natick MA -30,8181 Maplecrest Drive Shrewsbury MA -31,91011 Cedar Street Cambridge MA -32,789 Oak Avenue Springfield MA -33,1717 Birch Road Brockton MA -34,1415 Walnut Drive Springfield MA -35,3535 Elmwood Drive Everett MA -36,212223 Garden Street Cambridge MA -37,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA -38,303132 Jersey Street Boston MA -39,8181 Maplecrest Drive Shrewsbury MA -40,6161 Birchwood Lane Milton MA -41,242526 Hereford Street Boston MA -42,6565 Pinecrest Drive Acton MA -43,4343 Cedarcrest Court Marlborough MA -44,272829 Ipswich Street Boston MA -45,2727 Willow Street Waltham MA -46,5678 Banks Street Cambridge MA -47,6565 Pinecrest Drive Acton MA -48,1313 Pine Lane Quincy MA -49,151617 Elmwood Avenue Cambridge MA -50,4343 Cedarcrest Court Marlborough MA -51,1213 Pine Lane Springfield MA -52,789 Maple Avenue Springfield MA -53,6565 Pinecrest Drive Acton MA -54,151617 Exeter Street Boston MA -55,9797 Maplewood Lane Oxford MA -56,9393 Chestnutwood Drive Spencer MA -57,5151 Walnutcrest Drive Melrose MA -58,8989 Birchcrest Avenue Sutton MA -59,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA -60,91011 Cedar Street Cambridge MA -61,3333 Oakwood Court Revere MA -62,1234 Beacon Street Boston MA -63,151617 Exeter Street Boston MA -64,789 Maple Avenue Springfield MA -65,789 Maple Avenue Springfield MA -66,3535 Elmwood Drive Everett MA -67,91011 Cedar Street Cambridge MA -68,456 Elm Street Cambridge MA -69,6969 Oakwood Lane Maynard MA -70,4343 Cedarcrest Court Marlborough MA -71,6565 Pinecrest Drive Acton MA -72,2929 Redwood Avenue Medford MA -73,123 Main Street Springfield MA -74,242526 Hereford Street Boston MA -75,4747 Elmcrest Avenue Lexington MA -76,6161 Birchwood Lane Milton MA -77,151617 Exeter Street Boston MA -78,1234 Aberdeen Avenue Cambridge MA -79,2727 Willow Street Waltham MA -80,456 Elm Street Springfield MA -81,91011 Cedar Street Cambridge MA -82,456 Elm Street Cambridge MA -83,7171 Elmwood Avenue Sudbury MA -84,5678 Boylston Street Boston MA -85,9595 Cherrywood Avenue Auburn MA -86,1617 Cedar Avenue Springfield MA -87,242526 Hereford Street Boston MA -88,151617 Elmwood Avenue Cambridge MA -89,1415 Walnut Drive Springfield MA -90,9191 Walnutwood Road Leicester MA -91,8181 Maplecrest Drive Shrewsbury MA -92,2121 Chestnut Avenue Newton MA -93,272829 Ipswich Street Boston MA -94,272829 Ipswich Street Boston MA -95,123 Main Street Boston MA -96,5353 Maplecrest Avenue Belmont MA -97,9999 Willowwood Road Webster MA -98,2323 Cherry Lane Somerville MA -99,3131 Cedarwood Lane Peabody MA -100,5757 Oakcrest Lane Norwood MA -101,5678 Boylston Street Boston MA -102,3737 Birchwood Road Salem MA -103,7777 Chestnutcrest Avenue Northborough MA -104,4343 Cedarcrest Court Marlborough MA -105,121314 Dartmouth Street Boston MA -106,242526 Harvard Street Cambridge MA -107,789 Oak Avenue Springfield MA -108,121314 Dartmouth Street Boston MA -109,242526 Hereford Street Boston MA -110,5757 Oakcrest Lane Norwood MA -111,789 Oak Avenue Springfield MA -112,3333 Oakwood Court Revere MA -113,6161 Birchwood Lane Milton MA -114,6767 Cedarwood Court Hudson MA -115,4949 Birchcrest Court Arlington MA -116,3535 Elmwood Drive Everett MA -117,1313 Pine Lane Quincy MA -118,9999 Willowwood Road Webster MA -119,151617 Elmwood Avenue Cambridge MA -120,4141 Pinecrest Avenue Chelsea MA -121,5353 Maplecrest Avenue Belmont MA -122,1919 Walnut Street Lynn MA -123,7171 Elmwood Avenue Sudbury MA -124,272829 Ipswich Street Boston MA -125,5757 Oakcrest Lane Norwood MA -126,789 Maple Avenue Springfield MA -127,8181 Maplecrest Drive Shrewsbury MA -128,789 Maple Avenue Springfield MA -129,242526 Hereford Street Boston MA -130,272829 Inman Street Cambridge MA -131,242526 Hereford Street Boston MA -132,7575 Walnutwood Drive Hopkinton MA -133,7171 Elmwood Avenue Sudbury MA -134,5555 Cedarcrest Drive Natick MA -135,1234 Aberdeen Avenue Cambridge MA -136,7373 Birchwood Road Ashland MA -137,6363 Walnutwood Avenue Westford MA -138,8383 Cedarcrest Avenue Westborough MA -139,2727 Willow Street Waltham MA -140,2121 Chestnut Avenue Newton MA -141,212223 Gloucester Street Boston MA -142,5757 Oakcrest Lane Norwood MA -143,789 Maple Avenue Springfield MA -144,5959 Elmcrest Road Braintree MA -145,9999 Willowwood Road Webster MA -146,1234 Beacon Street Boston MA -147,1717 Birch Road Brockton MA -148,5151 Walnutcrest Drive Melrose MA -149,3333 Oakwood Court Revere MA -150,2929 Redwood Avenue Medford MA -151,2223 Magnolia Lane Springfield MA -152,6969 Oakwood Lane Maynard MA -153,7777 Chestnutcrest Avenue Northborough MA -154,8383 Cedarcrest Avenue Westborough MA -155,6969 Oakwood Lane Maynard MA -156,1234 Beacon Street Boston MA -157,4141 Pinecrest Avenue Chelsea MA -158,212223 Gloucester Street Boston MA -159,1819 Birchwood Court Springfield MA -160,5757 Oakcrest Lane Norwood MA -161,6565 Pinecrest Drive Acton MA -162,3737 Birchwood Road Salem MA -163,456 Elm Street Cambridge MA -164,2223 Magnolia Lane Springfield MA -165,151617 Exeter Street Boston MA -166,1617 Cedar Avenue Springfield MA -167,181920 Fairfield Street Boston MA -168,1919 Walnut Street Lynn MA -169,151617 Exeter Street Boston MA -170,6565 Pinecrest Drive Acton MA -171,9393 Chestnutwood Drive Spencer MA -172,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA -173,5757 Oakcrest Lane Norwood MA -174,4141 Pinecrest Avenue Chelsea MA -175,5678 Boylston Street Boston MA -176,212223 Garden Street Cambridge MA -177,1234 Aberdeen Avenue Cambridge MA -178,1617 Cedar Avenue Springfield MA -179,5151 Walnutcrest Drive Melrose MA -180,5555 Cedarcrest Drive Natick MA -181,5959 Elmcrest Road Braintree MA -182,1919 Walnut Street Lynn MA -183,7575 Walnutwood Drive Hopkinton MA -184,3737 Birchwood Road Salem MA -185,1011 Oak Street Springfield MA -186,1011 Oak Street Springfield MA -187,6565 Pinecrest Drive Acton MA -188,456 Elm Street Cambridge MA -189,123 Main Street Boston MA -190,5678 Boylston Street Boston MA -191,1213 Pine Lane Springfield MA -192,3939 Walnutwood Lane Malden MA -193,9797 Maplewood Lane Oxford MA -194,6767 Cedarwood Court Hudson MA -195,6767 Cedarwood Court Hudson MA -196,242526 Harvard Street Cambridge MA -197,3737 Birchwood Road Salem MA -198,212223 Garden Street Cambridge MA -199,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA -200,181920 Fayerweather Street Cambridge MA diff --git a/db/user_to_transpo.csv b/db/user_to_transpo.csv deleted file mode 100644 index b4fe53ac..00000000 --- a/db/user_to_transpo.csv +++ /dev/null @@ -1,201 +0,0 @@ -UserId,TransportationId -1,1 -2,2 -3,3 -4,4 -5,5 -6,6 -7,7 -8,8 -9,9 -10,10 -11,11 -12,12 -13,13 -14,14 -15,15 -16,16 -17,17 -18,18 -19,19 -20,20 -21,21 -22,22 -23,23 -24,24 -25,25 -26,26 -27,27 -28,28 -29,29 -30,30 -31,31 -32,32 -33,33 -34,34 -35,35 -36,36 -37,37 -38,38 -39,39 -40,40 -41,41 -42,42 -43,43 -44,44 -45,45 -46,46 -47,47 -48,48 -49,49 -50,50 -51,51 -52,52 -53,53 -54,54 -55,55 -56,56 -57,57 -58,58 -59,59 -60,60 -61,61 -62,62 -63,63 -64,64 -65,65 -66,66 -67,67 -68,68 -69,69 -70,70 -71,71 -72,72 -73,73 -74,74 -75,75 -76,76 -77,77 -78,78 -79,79 -80,80 -81,81 -82,82 -83,83 -84,84 -85,85 -86,86 -87,87 -88,88 -89,89 -90,90 -91,91 -92,92 -93,93 -94,94 -95,95 -96,96 -97,97 -98,98 -99,99 -100,100 -101,101 -102,102 -103,103 -104,104 -105,105 -106,106 -107,107 -108,108 -109,109 -110,110 -111,111 -112,112 -113,113 -114,114 -115,115 -116,116 -117,117 -118,118 -119,119 -120,120 -121,121 -122,122 -123,123 -124,124 -125,125 -126,126 -127,127 -128,128 -129,129 -130,130 -131,131 -132,132 -133,133 -134,134 -135,135 -136,136 -137,137 -138,138 -139,139 -140,140 -141,141 -142,142 -143,143 -144,144 -145,145 -146,146 -147,147 -148,148 -149,149 -150,150 -151,151 -152,152 -153,153 -154,154 -155,155 -156,156 -157,157 -158,158 -159,159 -160,160 -161,161 -162,162 -163,163 -164,164 -165,165 -166,166 -167,167 -168,168 -169,169 -170,170 -171,171 -172,172 -173,173 -174,174 -175,175 -176,176 -177,177 -178,178 -179,179 -180,180 -181,181 -182,182 -183,183 -184,184 -185,185 -186,186 -187,187 -188,188 -189,189 -190,190 -191,191 -192,192 -193,193 -194,194 -195,195 -196,196 -197,197 -198,198 -199,199 -200,200 From 911dece07a74810b92aaef34011329455d83bb88 Mon Sep 17 00:00:00 2001 From: Ala'a Tamam <115435010+alaatamam@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:37:38 -0400 Subject: [PATCH 17/33] Add files via upload --- secrets/db_password.txt | 1 + secrets/db_root_password.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 secrets/db_password.txt create mode 100644 secrets/db_root_password.txt diff --git a/secrets/db_password.txt b/secrets/db_password.txt new file mode 100644 index 00000000..0737b253 --- /dev/null +++ b/secrets/db_password.txt @@ -0,0 +1 @@ +Datascience2024 \ No newline at end of file diff --git a/secrets/db_root_password.txt b/secrets/db_root_password.txt new file mode 100644 index 00000000..4876373a --- /dev/null +++ b/secrets/db_root_password.txt @@ -0,0 +1 @@ +Datascience2024!! \ No newline at end of file From 2bd5cece13f10b4c0568a3219224dda3f4cfe4c2 Mon Sep 17 00:00:00 2001 From: rhodazerit1 Date: Tue, 16 Apr 2024 00:00:01 -0400 Subject: [PATCH 18/33] adding destination --- flask-app/src/Destination/destination.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 flask-app/src/Destination/destination.py diff --git a/flask-app/src/Destination/destination.py b/flask-app/src/Destination/destination.py new file mode 100644 index 00000000..e69de29b From 1adf0580777db7da91b61a91a5e5e973645fda4f Mon Sep 17 00:00:00 2001 From: rhodazerit1 Date: Tue, 16 Apr 2024 00:05:29 -0400 Subject: [PATCH 19/33] adding destination --- flask-app/src/Destination/destination.py | 112 +++++++++++++++++++++++ flask-app/src/__init__.py | 1 + 2 files changed, 113 insertions(+) diff --git a/flask-app/src/Destination/destination.py b/flask-app/src/Destination/destination.py index e69de29b..bf80ce72 100644 --- a/flask-app/src/Destination/destination.py +++ b/flask-app/src/Destination/destination.py @@ -0,0 +1,112 @@ +from flask import Blueprint, request, jsonify +from src import db + +destination_blueprint = Blueprint('destination', __name__) + +# Create a new destination +@destination_blueprint.route('/destinations', methods=['POST']) +def create_destination(): + data = request.get_json() + try: + address = data['address'] + street = data['street'] + zipcode = data['zipcode'] + city = data['city'] + state = data['state'] + distance = data['distance'] + proximity = data['proximity'] + weather_recommendations = data['weather_recommendations'] + + query = ''' + INSERT INTO Destination (Address, Street, Zipcode, City, State, Distance, Proximity, WeatherRecommendations) + VALUES (%s, %s, %s, %s, %s, %s, %s, %s) + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (address, street, zipcode, city, state, distance, proximity, weather_recommendations)) + conn.commit() + + return jsonify({"message": "Destination created successfully.", "id": address}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the destination."}), 500 + +# Retrieve all destinations +@destination_blueprint.route('/destinations', methods=['GET']) +def get_all_destinations(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Destination') + destinations = cur.fetchall() + + return jsonify(destinations), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the destinations."}), 500 + +# Retrieve a single destination by address +@destination_blueprint.route('/destinations/', methods=['GET']) +def get_destination(address): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM Destination WHERE Address = %s', (address,)) + destination = cur.fetchone() + + if not destination: + return jsonify({"message": "No destination found with this address."}), 404 + + return jsonify(destination), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the destination: " + str(e)}), 500 + +# Update a destination +@destination_blueprint.route('/destinations/', methods=['PUT']) +def update_destination(address): + data = request.get_json() + try: + street = data['street'] + zipcode = data['zipcode'] + city = data['city'] + state = data['state'] + distance = data['distance'] + proximity = data['proximity'] + weather_recommendations = data['weather_recommendations'] + + query = ''' + UPDATE Destination + SET Street = %s, Zipcode = %s, City = %s, State = %s, Distance = %s, Proximity = %s, WeatherRecommendations = %s + WHERE Address = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (street, zipcode, city, state, distance, proximity, weather_recommendations, address)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Destination not found."}), 404 + + return jsonify({"message": "Destination updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred updating the destination."}), 500 + +# Delete a destination +@destination_blueprint.route('/destinations/', methods=['DELETE']) +def delete_destination(address): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM Destination WHERE Address = %s', (address,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Destination not found."}), 404 + + return jsonify({"message": "Destination deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the destination."}), 500 + +# Additional routes for sorting or filtering destinations can be added here, following the same pattern. diff --git a/flask-app/src/__init__.py b/flask-app/src/__init__.py index 05446355..898e5c6e 100644 --- a/flask-app/src/__init__.py +++ b/flask-app/src/__init__.py @@ -40,4 +40,5 @@ def welcome(): app.register_blueprint(payment_plan_blueprint, url_prefix='/payment_plan') app.register_blueprint(transportation_blueprint, url_prefix='/transportation') app.register_blueprint(shopping_blueprint, url_prefix='/shopping') + app.register_blueprint(destination_blueprint, url_prefix='/destination') return app \ No newline at end of file From fdaac5522e212f793feed4a86331859e5713e929 Mon Sep 17 00:00:00 2001 From: melinayg Date: Tue, 16 Apr 2024 00:11:31 -0400 Subject: [PATCH 20/33] dont need location attribute --- db/phasetwo.sql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/db/phasetwo.sql b/db/phasetwo.sql index c641fac0..4b32ddb3 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -151,13 +151,13 @@ CREATE TABLE Destination_to_Transportation ( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 3 */ CREATE TABLE Restaurants( RestaurantID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name TEXT, Reservations INT, CuisineType TEXT, PriceTag VARCHAR(5), - Location TEXT, ActivityTypeID INT, CONSTRAINT fk_16 FOREIGN KEY (ActivityType) REFERENCES Activity(ActivityID) @@ -197,7 +197,6 @@ CREATE TABLE MusicFestivals( Name TEXT, MusicType TEXT, CrowdSize INT, - Location TEXT, OverallRating INT, PriceTag VARCHAR(5), ActivityTypeID INT, @@ -240,7 +239,6 @@ CREATE TABLE Outdoor_Activity ( Difficulty_level VARCHAR(255), Danger_level VARCHAR(255), Experience VARCHAR(255), - Location VARCHAR(255), PriceTag VARCHAR(5), ActivityTypeID INT, CONSTRAINT fk_24 @@ -257,7 +255,6 @@ CREATE TABLE Outdoor_Activity_Location ( CREATE TABLE Movies ( MovieID INT PRIMARY KEY AUTO_INCREMENT, - TheaterLocation VARCHAR(255), Name VARCHAR(255) NOT NULL, OverallRating DECIMAL(3, 1), Genre VARCHAR(255), @@ -280,7 +277,6 @@ CREATE TABLE ArtsMuseums ( CollegeStudents INT, PriceTag VARCHAR(5), OverallRating CHAR(5), - Location VARCHAR(255), ActivityTypeID INT, CONSTRAINT fk_26 FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) From 587f5bcb66dfbf8373abd1afd60de252ae3636be Mon Sep 17 00:00:00 2001 From: rhodazerit1 Date: Tue, 16 Apr 2024 00:43:25 -0400 Subject: [PATCH 21/33] adding music festivals and destinaiton --- flask-app/src/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flask-app/src/__init__.py b/flask-app/src/__init__.py index 898e5c6e..c54b42b0 100644 --- a/flask-app/src/__init__.py +++ b/flask-app/src/__init__.py @@ -41,4 +41,5 @@ def welcome(): app.register_blueprint(transportation_blueprint, url_prefix='/transportation') app.register_blueprint(shopping_blueprint, url_prefix='/shopping') app.register_blueprint(destination_blueprint, url_prefix='/destination') + app.register_blueprint(festivals_blueprint, url_prefix='/festivals') return app \ No newline at end of file From 658d2c9ecb2b21d6a7d32cf34852c90f9cacc063 Mon Sep 17 00:00:00 2001 From: rhodazerit1 Date: Tue, 16 Apr 2024 00:58:15 -0400 Subject: [PATCH 22/33] edits on init file --- flask-app/src/Destination/destination.py | 10 +- .../src/MusicFestivals/musicfestivals.py | 237 ++++++++++++++++++ 2 files changed, 242 insertions(+), 5 deletions(-) diff --git a/flask-app/src/Destination/destination.py b/flask-app/src/Destination/destination.py index bf80ce72..d796f4bc 100644 --- a/flask-app/src/Destination/destination.py +++ b/flask-app/src/Destination/destination.py @@ -4,7 +4,7 @@ destination_blueprint = Blueprint('destination', __name__) # Create a new destination -@destination_blueprint.route('/destinations', methods=['POST']) +@destination_blueprint.route('/destination', methods=['POST']) def create_destination(): data = request.get_json() try: @@ -33,7 +33,7 @@ def create_destination(): return jsonify({"error": "An error occurred creating the destination."}), 500 # Retrieve all destinations -@destination_blueprint.route('/destinations', methods=['GET']) +@destination_blueprint.route('/destination', methods=['GET']) def get_all_destinations(): try: conn = db.get_db() @@ -46,7 +46,7 @@ def get_all_destinations(): return jsonify({"error": "An error occurred fetching the destinations."}), 500 # Retrieve a single destination by address -@destination_blueprint.route('/destinations/', methods=['GET']) +@destination_blueprint.route('/destination/', methods=['GET']) def get_destination(address): try: conn = db.get_db() @@ -62,7 +62,7 @@ def get_destination(address): return jsonify({"error": "An error occurred fetching the destination: " + str(e)}), 500 # Update a destination -@destination_blueprint.route('/destinations/', methods=['PUT']) +@destination_blueprint.route('/destination/', methods=['PUT']) def update_destination(address): data = request.get_json() try: @@ -94,7 +94,7 @@ def update_destination(address): return jsonify({"error": "An error occurred updating the destination."}), 500 # Delete a destination -@destination_blueprint.route('/destinations/', methods=['DELETE']) +@destination_blueprint.route('/destination/', methods=['DELETE']) def delete_destination(address): try: conn = db.get_db() diff --git a/flask-app/src/MusicFestivals/musicfestivals.py b/flask-app/src/MusicFestivals/musicfestivals.py index e69de29b..18276322 100644 --- a/flask-app/src/MusicFestivals/musicfestivals.py +++ b/flask-app/src/MusicFestivals/musicfestivals.py @@ -0,0 +1,237 @@ +from flask import Blueprint, request, jsonify +from src import db + +festivals_blueprint = Blueprint('festivals', __name__) + +# Create a new music festival +@festivals_blueprint.route('/festivals', methods=['POST']) +def create_festival(): + data = request.get_json() + try: + name = data['name'] + music_type = data['music_type'] + crowd_size = data['crowd_size'] + location = data['location'] + overall_rating = data['overall_rating'] + activity_type_id = data['activity_type_id'] + + query = ''' + INSERT INTO MusicFestivals (Name, MusicType, CrowdSize, Location, OverallRating, ActivityTypeID) + VALUES (%s, %s, %s, %s, %s, %s) + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (name, music_type, crowd_size, location, overall_rating, activity_type_id)) + conn.commit() + + return jsonify({"message": "Festival created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the festival."}), 500 + +# Retrieve all festivals +@festivals_blueprint.route('/festivals', methods=['GET']) +def get_all_festivals(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM MusicFestivals') + festivals = cur.fetchall() + + return jsonify(festivals), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the festivals."}), 500 + +# Retrieve a single festival by ID +@festivals_blueprint.route('/festivals/', methods=['GET']) +def get_festival_by_id(festival_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM MusicFestivals WHERE FestivalID = %s', (festival_id,)) + festival = cur.fetchone() + + if not festival: + return jsonify({"error": "Festival not found."}), 404 + + return jsonify(festival), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the festival: " + str(e)}), 500 + +# Update a festival +@festivals_blueprint.route('/festivals/', methods=['PUT']) +def update_festival(festival_id): + data = request.get_json() + try: + name = data['name'] + music_type = data['music_type'] + crowd_size = data['crowd_size'] + location = data['location'] + overall_rating = data['overall_rating'] + activity_type_id = data['activity_type_id'] + + query = ''' + UPDATE MusicFestivals + SET Name = %s, MusicType = %s, CrowdSize = %s, Location = %s, OverallRating = %s, ActivityTypeID = %s + WHERE FestivalID = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (name, music_type, crowd_size, location, overall_rating, activity_type_id, festival_id)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Festival not found."}), 404 + + return jsonify({"message": "Festival updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred updating the festival."}), 500 + +# Delete a festival +@festivals_blueprint.route('/festivals/', methods=['DELETE']) +def delete_festival(festival_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM MusicFestivals WHERE FestivalID = %s', (festival_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Festival not found."}), 404 + + return jsonify({"message": "Festival deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the festival."}), 500 + +# Retrieve festivals by music type +@festivals_blueprint.route('/festivals/type/', methods=['GET']) +def get_festivals_by_type(music_type): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM MusicFestivals WHERE MusicType = %s', (music_type,)) + festivals = cur.fetchall() + + if not festivals: + return jsonify({"message": "No festivals found with this music type."}), 404 + + return jsonify(festivals), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the festivals by music type: " + str(e)}), 500 + +# Retrieve music festivals by rating +@festivals_blueprint.route('/festivals/rating/', methods=['GET']) +def get_festivals_by_rating(rating): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM MusicFestivals WHERE OverallRating = %s', (rating,)) + festivals = cur.fetchall() + + if not festivals: + return jsonify({"message": "No festivals found with this rating."}), 404 + + return jsonify(festivals), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the festivals: " + str(e)}), 500 + +# Add a rating to a music festival +@festivals_blueprint.route('/festivals/rating', methods=['POST']) +def add_festival_rating(): + data = request.get_json() + try: + festival_id = data['festival_id'] + rating = data['rating'] + + query = ''' + UPDATE MusicFestivals + SET OverallRating = %s + WHERE FestivalID = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (rating, festival_id)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Festival not found or rating not changed."}), 404 + + return jsonify({"message": "Festival rating added successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred adding the festival rating."}), 500 + +# Update a music festival rating +@festivals_blueprint.route('/festivals/rating/', methods=['PUT']) +def update_festival_rating(festival_id): + data = request.get_json() + try: + new_rating = data['new_rating'] + + query = ''' + UPDATE MusicFestivals + SET OverallRating = %s + WHERE FestivalID = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (new_rating, festival_id)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Festival not found or rating unchanged."}), 404 + + return jsonify({"message": "Festival rating updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred updating the festival rating."}), 500 + +# Remove a rating from a music festival +@festivals_blueprint.route('/festivals/rating/', methods=['DELETE']) +def remove_festival_rating(festival_id): + try: + query = ''' + UPDATE MusicFestivals + SET OverallRating = NULL + WHERE FestivalID = %s + ''' + conn = db.get_db() + cur = conn.cursor() + cur.execute(query, (festival_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Festival not found or rating already null."}), 404 + + return jsonify({"message": "Festival rating removed successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred removing the festival rating."}), 500 + +# GET: Retrieves a list of music festivals and attached prices (assuming Price is a separate attribute or can be derived) +@festivals_blueprint.route('/festivals/price', methods=['GET']) +def get_festivals_with_prices(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT FestivalID, Name, Location, OverallRating AS Price FROM MusicFestivals') + festivals = cur.fetchall() + return jsonify(festivals), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the festivals with prices: " + str(e)}), 500 + +# GET: Lists the locations where music festivals are happening (Location is a TEXT in MusicFestivals table) +@festivals_blueprint.route('/festivals/location', methods=['GET']) +def get_festival_locations(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT DISTINCT Location FROM MusicFestivals') + locations = cur.fetchall() + return jsonify(locations), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the festival locations: " + str(e)}), 500 \ No newline at end of file From 3161f822f5efcb98805c1494825dc312df5c882a Mon Sep 17 00:00:00 2001 From: melinayg Date: Tue, 16 Apr 2024 10:36:30 -0400 Subject: [PATCH 23/33] mockaroo data insert statements --- db/sample_data.sql | 476 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 475 insertions(+), 1 deletion(-) diff --git a/db/sample_data.sql b/db/sample_data.sql index 6c52fb82..4c32bec2 100644 --- a/db/sample_data.sql +++ b/db/sample_data.sql @@ -3,6 +3,7 @@ USE 'GoMass'; +/* Activity */ insert into Activity (ActivityID) values (1); insert into Activity (ActivityID) values (2); insert into Activity (ActivityID) values (3); @@ -10,4 +11,477 @@ insert into Activity (ActivityID) values (4); insert into Activity (ActivityID) values (5); insert into Activity (ActivityID) values (6); insert into Activity (ActivityID) values (7); -insert into Activity (ActivityID) values (8); \ No newline at end of file +insert into Activity (ActivityID) values (8); + +/* User */ +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (1, 4, 'Constancy Hargess', 'baker', 'Female', '321 Maple Dr Riverdale GA', 'funny movies', 'adventure movies', 'none', 1, 200, 'Apple Pay', 203); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (2, 26, 'Cherlyn Bernolet', 'unemployed', 'Female', '321 Walnut Ave Springfield MO', 'adventure movies', 'quiet areas', 'vegan', 2, 187, 'Credit Card', 227); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (3, 32, 'Stephanus Bonds', 'student', 'Male', '789 Ash Dr Cincinnati OH', 'good study areas', 'good study areas', 'none', 3, 400, 'Debit Card', 222); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (4, 47, 'Bennie Bollon', 'baker', 'Male', '321 Oak St Seattle WA', 'loud areas', 'funny movies', 'gluten free', 4, 425, 'Paypal', 80); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (5, 44, 'Melitta Stoller', 'fire fighter', 'Genderqueer', '987 Maple St Nashville TN', 'romance movies', 'Thai restaurant', 'vegan', 5, 92, 'Venmo', 247); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (6, 54, 'Sukey Younglove', 'teacher', 'Female', '987 Cedar Ave Boise ID', 'adventure movies', 'loud areas', 'paleo', 6, 225, 'Debit Card', 50); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (7, 9, 'Doloritas Gonzales', 'unemployed', 'Female', '654 Poplar St Baltimore MD', 'quiet areas', 'savory food', 'vegetarian', 7, 406, 'Paypal', 28); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (8, 11, 'Jereme Tams', 'unemployed', 'Male', '789 Elm Dr Philadelphia PA', 'savory food', 'quiet areas', 'none', 8, 53, 'Debit Card', 115); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (9, 32, 'Derk Toulch', 'unemployed', 'Male', '321 Oak St Seattle WA', 'quiet areas', 'romance movies', 'kosher', 9, 373, 'Venmo', 257); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (10, 16, 'Rupert Relph', 'unemployed', 'Male', '123 Ash St Denver CO', 'expensive places', 'Thai restaurant', 'vegetarian', 10, 479, 'Credit Card', 293); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (11, 2, 'Ferguson Holleran', 'teacher', 'Male', '321 Birch Ave Orlando FL', 'good study areas', 'adventure movies', 'none', 11, 191, 'Paypal', 219); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (12, 14, 'Romy Brood', 'teacher', 'Female', '456 Elm St St. Louis MO', 'Thai restaurant', 'loud areas', 'none', 12, 108, 'Debit Card', 179); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (13, 21, 'Zacherie Pendrid', 'unemployed', 'Male', '789 Elm Dr Philadelphia PA', 'funny movies', 'Thai restaurant', 'vegan', 13, 418, 'Paypal', 17); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (14, 54, 'Twyla Mein', 'unemployed', 'Female', '456 Elm St Springfield IL', 'romance movies', 'spicy food', 'lactose intolerance', 14, 363, 'Paypal', 223); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (15, 4, 'Sherlock Durrad', 'data scientist', 'Male', '321 Oak Ave Oklahoma City OK', 'Chinese restaurant', 'romance movies', 'vegetarian', 15, 317, 'Credit Card', 267); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (16, 36, 'Leela Heynel', 'data scientist', 'Female', '654 Poplar St Baltimore MD', 'sweet food', 'good study areas', 'none', 16, 384, 'Apple Pay', 201); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (17, 37, 'Chrystal Siman', 'police officer', 'Female', '321 Walnut Ave Springfield MO', 'spicy food', 'cheap places', 'gluten free', 17, 141, 'Apple Pay', 90); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (18, 38, 'Emalee Soldan', 'police officer', 'Female', '456 Elm Dr Minneapolis MN', 'spicy food', 'quiet areas', 'vegetarian', 18, 376, 'Venmo', 299); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (19, 38, 'Veda Robardet', 'baker', 'Female', '987 Oak Ave Charlotte NC', 'Thai restaurant', 'Thai restaurant', 'none', 19, 441, 'Credit Card', 221); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (20, 51, 'Dede Scudamore', 'police officer', 'Non-binary', '321 Main Ave Dallas TX', 'Chinese restaurant', 'Thai restaurant', 'none', 20, 442, 'Debit Card', 159); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (21, 51, 'Glen Sawforde', 'professor', 'Male', '987 Oak St Phoenix AZ', 'savory food', 'savory food', 'paleo', 21, 354, 'Credit Card', 279); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (22, 19, 'Nathanil Walbrook', 'unemployed', 'Male', '987 Oak Ave Charlotte NC', 'loud areas', 'adventure movies', 'none', 22, 313, 'Venmo', 18); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (23, 24, 'Wallie Allitt', 'unemployed', 'Male', '987 Elm St Raleigh NC', 'adventure movies', 'funny movies', 'none', 23, 67, 'Venmo', 108); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (24, 50, 'Che Lafayette', 'data scientist', 'Male', '987 Oak St Phoenix AZ', 'good study areas', 'romance movies', 'none', 24, 107, 'Venmo', 126); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (25, 55, 'Freedman Rhelton', 'unemployed', 'Male', '321 Ash St Madison WI', 'quiet areas', 'expensive places', 'vegan', 25, 257, 'Debit Card', 151); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (26, 17, 'Ephrem Commusso', 'fire fighter', 'Male', '789 Walnut St Cleveland OH', 'quiet areas', 'quiet areas', 'gluten free', 26, 163, 'Apple Pay', 158); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (27, 23, 'Carleen Merigon', 'unemployed', 'Female', '987 Oak Ave Charlotte NC', 'Thai restaurant', 'adventure movies', 'none', 27, 440, 'Apple Pay', 194); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (28, 31, 'Biddie Vaux', 'unemployed', 'Female', '456 Elm St Springfield IL', 'music', 'romance movies', 'gluten free', 28, 196, 'Paypal', 207); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (29, 40, 'Theodore Devenport', 'police officer', 'Male', '456 Elm St St. Louis MO', 'quiet areas', 'adventure movies', 'none', 29, 367, 'Venmo', 121); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (30, 15, 'Marjorie McGowan', 'teacher', 'Female', '654 Ash Dr San Diego CA', 'sweet food', 'savory food', 'lactose intolerance', 30, 96, 'Debit Card', 16); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (31, 29, 'Drugi Dickins', 'police officer', 'Male', '789 Walnut St Cleveland OH', 'loud areas', 'sweet food', 'gluten free', 31, 486, 'Apple Pay', 65); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (32, 6, 'Jeanette Dinzey', 'fire fighter', 'Female', '321 Cedar St Indianapolis IN', 'Thai restaurant', 'spicy food', 'kosher', 32, 82, 'Credit Card', 52); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (33, 34, 'Johnette Bramich', 'unemployed', 'Female', '321 Birch Ave Orlando FL', 'sweet food', 'sweet food', 'gluten free', 33, 274, 'Debit Card', 75); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (34, 13, 'Nowell Sange', 'data scientist', 'Male', '789 Pine Dr Boston MA', 'romance movies', 'loud areas', 'none', 34, 75, 'Venmo', 167); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (35, 48, 'Vance Gawkroge', 'unemployed', 'Male', '789 Elm Dr Philadelphia PA', 'spicy food', 'sweet food', 'vegan', 35, 92, 'Paypal', 286); + +/* user location */ +insert into User_Location (Location, UserID) values ('789 Birch St Boston MA', '15'); +insert into User_Location (Location, UserID) values ('321 Cedar St Boston MA', '9'); +insert into User_Location (Location, UserID) values ('456 Elm St Boston MA', '32'); +insert into User_Location (Location, UserID) values ('654 Walnutwood Ct Somerville MA', '12'); +insert into User_Location (Location, UserID) values ('654 Walnutwood Ct Somerville MA', '28'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Somerville MA', '4'); +insert into User_Location (Location, UserID) values ('789 Walnut St Boston MA', '22'); +insert into User_Location (Location, UserID) values ('456 Elm St Boston MA', '6'); +insert into User_Location (Location, UserID) values ('765 Park St Rivertown MA', '24'); +insert into User_Location (Location, UserID) values ('456 Elm St Boston MA', '21'); +insert into User_Location (Location, UserID) values ('123 Elm St Boston MA', '10'); +insert into User_Location (Location, UserID) values ('543 Birchwood Ave Cambridge MA', '18'); +insert into User_Location (Location, UserID) values ('321 Cedar St Boston MA', '33'); +insert into User_Location (Location, UserID) values ('654 Walnut Grove Ct Springfield MA', '25'); +insert into User_Location (Location, UserID) values ('654 Walnutwood Ct Somerville MA', '2'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Springfield MA', '17'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '27'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '8'); +insert into User_Location (Location, UserID) values ('321 Cedarhurst Ln Cambridge MA', '29'); +insert into User_Location (Location, UserID) values ('234 Forest Rd Rivertown MA', '13'); +insert into User_Location (Location, UserID) values ('654 Pineview Rd Cambridge MA', '26'); +insert into User_Location (Location, UserID) values ('432 Riverside Cir Rivertown MA', '7'); +insert into User_Location (Location, UserID) values ('543 Birchwood Ave Cambridge MA', '20'); +insert into User_Location (Location, UserID) values ('098 Chestnutwood Rd Springfield MA', '30'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '3'); +insert into User_Location (Location, UserID) values ('789 Pine St Boston MA', '31'); +insert into User_Location (Location, UserID) values ('765 Elmwood St Cambridge MA', '14'); +insert into User_Location (Location, UserID) values ('543 Birchwood Ave Cambridge MA', '1'); +insert into User_Location (Location, UserID) values ('789 Meadow Ln Rivertown MA', '23'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Somerville MA', '19'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '11'); +insert into User_Location (Location, UserID) values ('789 Pine St Boston MA', '16'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Springfield MA', '34'); +insert into User_Location (Location, UserID) values ('098 Chestnutwood Rd Springfield MA', '35'); +insert into User_Location (Location, UserID) values ('987 Oak Ave Boston MA', '5'); +insert into User_Location (Location, UserID) values ('789 Meadow Ln Rivertown MA', '24'); +insert into User_Location (Location, UserID) values ('321 Valley Dr Rivertown MA', '35'); +insert into User_Location (Location, UserID) values ('987 Elmwood Park Cambridge MA', '11'); +insert into User_Location (Location, UserID) values ('098 Pine Hill Rd Rivertown MA', '13'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '1'); +insert into User_Location (Location, UserID) values ('456 Lakeview Ave Rivertown MA', '34'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '12'); +insert into User_Location (Location, UserID) values ('456 Chestnutview Ave Somerville MA', '23'); +insert into User_Location (Location, UserID) values ('321 Cedar St Boston MA', '3'); +insert into User_Location (Location, UserID) values ('654 Ash St Boston MA', '9'); +insert into User_Location (Location, UserID) values ('654 Poplar St Boston MA', '26'); +insert into User_Location (Location, UserID) values ('890 Lakeside Way Rivertown MA', '14'); +insert into User_Location (Location, UserID) values ('789 Meadow Ln Rivertown MA', '29'); +insert into User_Location (Location, UserID) values ('654 Walnutwood Ct Somerville MA', '6'); +insert into User_Location (Location, UserID) values ('432 Poplarview Cir Springfield MA', '16'); +insert into User_Location (Location, UserID) values ('987 Elmwood Park Cambridge MA', '18'); +insert into User_Location (Location, UserID) values ('123 Pine Ave Boston MA', '30'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '28'); +insert into User_Location (Location, UserID) values ('123 Pine Ave Boston MA', '33'); +insert into User_Location (Location, UserID) values ('098 Chestnut Hill Rd Cambridge MA', '22'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Springfield MA', '21'); +insert into User_Location (Location, UserID) values ('456 Ashland Ave Cambridge MA', '7'); +insert into User_Location (Location, UserID) values ('567 Summit Blvd Rivertown MA', '5'); +insert into User_Location (Location, UserID) values ('321 Valley Dr Rivertown MA', '25'); +insert into User_Location (Location, UserID) values ('123 Pine Ave Boston MA', '32'); +insert into User_Location (Location, UserID) values ('765 Elmwood St Cambridge MA', '27'); +insert into User_Location (Location, UserID) values ('456 Ash St Boston MA', '10'); +insert into User_Location (Location, UserID) values ('098 Pine Hill Rd Rivertown MA', '20'); +insert into User_Location (Location, UserID) values ('456 Ashland Ave Cambridge MA', '31'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '2'); +insert into User_Location (Location, UserID) values ('789 Birch St Boston MA', '4'); +insert into User_Location (Location, UserID) values ('098 Pine Hill Rd Rivertown MA', '15'); +insert into User_Location (Location, UserID) values ('432 Poplarview Cir Springfield MA', '19'); +insert into User_Location (Location, UserID) values ('765 Elmwood St Springfield MA', '17'); +insert into User_Location (Location, UserID) values ('654 Walnut Grove Ct Springfield MA', '8'); +insert into User_Location (Location, UserID) values ('987 Oak Ave Boston MA', '20'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Springfield MA', '9'); +insert into User_Location (Location, UserID) values ('109 Walnut Grove Ln Cambridge MA', '19'); +insert into User_Location (Location, UserID) values ('765 Elmwood St Cambridge MA', '6'); +insert into User_Location (Location, UserID) values ('789 Pine St Boston MA', '7'); +insert into User_Location (Location, UserID) values ('098 Pine Hill Rd Rivertown MA', '32'); +insert into User_Location (Location, UserID) values ('987 Brookside Pl Rivertown MA', '23'); +insert into User_Location (Location, UserID) values ('321 Valley Dr Rivertown MA', '34'); +insert into User_Location (Location, UserID) values ('789 Birch St Boston MA', '30'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Springfield MA', '24'); +insert into User_Location (Location, UserID) values ('098 Pine Hill Rd Rivertown MA', '4'); +insert into User_Location (Location, UserID) values ('098 Pine Hill Rd Rivertown MA', '29'); +insert into User_Location (Location, UserID) values ('987 Ashland Pl Somerville MA', '35'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '21'); +insert into User_Location (Location, UserID) values ('876 Maplewood Dr Cambridge MA', '18'); +insert into User_Location (Location, UserID) values ('321 Cedar St Boston MA', '13'); +insert into User_Location (Location, UserID) values ('432 Riverside Cir Rivertown MA', '26'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Somerville MA', '17'); +insert into User_Location (Location, UserID) values ('321 Valley Dr Rivertown MA', '33'); +insert into User_Location (Location, UserID) values ('654 Poplar St Boston MA', '5'); +insert into User_Location (Location, UserID) values ('456 Ash St Boston MA', '16'); +insert into User_Location (Location, UserID) values ('456 Chestnut Hill Ave Springfield MA', '27'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '10'); +insert into User_Location (Location, UserID) values ('321 Cedarhurst Ln Cambridge MA', '28'); +insert into User_Location (Location, UserID) values ('543 Maple Ave Rivertown MA', '11'); +insert into User_Location (Location, UserID) values ('654 Hillside Ct Rivertown MA', '31'); +insert into User_Location (Location, UserID) values ('456 Ash St Boston MA', '15'); +insert into User_Location (Location, UserID) values ('876 Maplewood Dr Cambridge MA', '3'); +insert into User_Location (Location, UserID) values ('987 Oak Ave Boston MA', '14'); +insert into User_Location (Location, UserID) values ('109 Walnut Grove Ln Cambridge MA', '8'); +insert into User_Location (Location, UserID) values ('432 Riverside Cir Rivertown MA', '22'); +insert into User_Location (Location, UserID) values ('654 Poplar St Boston MA', '2'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Somerville MA', '1'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Springfield MA', '12'); +insert into User_Location (Location, UserID) values ('765 Elmwood St Springfield MA', '25'); +insert into User_Location (Location, UserID) values ('890 Lakeside Way Rivertown MA', '16'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Somerville MA', '17'); +insert into User_Location (Location, UserID) values ('234 Forest Rd Rivertown MA', '5'); +insert into User_Location (Location, UserID) values ('654 Oak St Boston MA', '28'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Springfield MA', '35'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Springfield MA', '24'); +insert into User_Location (Location, UserID) values ('543 Birchwood Ave Cambridge MA', '33'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Springfield MA', '23'); +insert into User_Location (Location, UserID) values ('567 Summit Blvd Rivertown MA', '34'); +insert into User_Location (Location, UserID) values ('543 Maple Ave Rivertown MA', '14'); +insert into User_Location (Location, UserID) values ('456 Ashland Ave Cambridge MA', '8'); +insert into User_Location (Location, UserID) values ('456 Elm St Boston MA', '32'); +insert into User_Location (Location, UserID) values ('456 Chestnutview Ave Somerville MA', '27'); +insert into User_Location (Location, UserID) values ('987 Maple St Boston MA', '4'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Somerville MA', '1'); +insert into User_Location (Location, UserID) values ('321 Valley Dr Rivertown MA', '25'); +insert into User_Location (Location, UserID) values ('432 Riverside Cir Rivertown MA', '18'); +insert into User_Location (Location, UserID) values ('321 Cedar St Boston MA', '20'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '15'); +insert into User_Location (Location, UserID) values ('321 Valley Dr Rivertown MA', '2'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Springfield MA', '29'); +insert into User_Location (Location, UserID) values ('456 Ash St Boston MA', '3'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Springfield MA', '11'); +insert into User_Location (Location, UserID) values ('123 Elm St Boston MA', '9'); +insert into User_Location (Location, UserID) values ('543 Birchwood Ave Cambridge MA', '6'); +insert into User_Location (Location, UserID) values ('456 Lakeview Ave Rivertown MA', '7'); +insert into User_Location (Location, UserID) values ('123 Walnut St Boston MA', '26'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '31'); +insert into User_Location (Location, UserID) values ('876 Maplewood Dr Cambridge MA', '22'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Somerville MA', '19'); +insert into User_Location (Location, UserID) values ('098 Chestnut Hill Rd Cambridge MA', '21'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '30'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Springfield MA', '10'); +insert into User_Location (Location, UserID) values ('432 Poplar Cir Cambridge MA', '12'); +insert into User_Location (Location, UserID) values ('123 Walnut St Boston MA', '13'); +insert into User_Location (Location, UserID) values ('890 Lakeside Way Rivertown MA', '35'); +insert into User_Location (Location, UserID) values ('654 Walnutwood Ct Somerville MA', '7'); +insert into User_Location (Location, UserID) values ('987 Cedar St Boston MA', '12'); +insert into User_Location (Location, UserID) values ('234 Forest Rd Rivertown MA', '23'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Somerville MA', '20'); +insert into User_Location (Location, UserID) values ('654 Hillside Ct Rivertown MA', '17'); +insert into User_Location (Location, UserID) values ('123 Poplarwood Ct Cambridge MA', '9'); +insert into User_Location (Location, UserID) values ('123 Elmwood Dr Springfield MA', '33'); +insert into User_Location (Location, UserID) values ('789 Pine St Boston MA', '8'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Springfield MA', '14'); +insert into User_Location (Location, UserID) values ('654 Pineview Rd Cambridge MA', '15'); +insert into User_Location (Location, UserID) values ('789 Meadow Ln Rivertown MA', '22'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Somerville MA', '5'); +insert into User_Location (Location, UserID) values ('543 Birchwood Ave Cambridge MA', '2'); +insert into User_Location (Location, UserID) values ('234 Forest Rd Rivertown MA', '3'); +insert into User_Location (Location, UserID) values ('654 Walnut Grove Ct Springfield MA', '4'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Somerville MA', '13'); +insert into User_Location (Location, UserID) values ('123 Walnut St Boston MA', '18'); +insert into User_Location (Location, UserID) values ('456 Lakeview Ave Rivertown MA', '19'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '1'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Springfield MA', '31'); +insert into User_Location (Location, UserID) values ('432 Riverside Cir Rivertown MA', '32'); +insert into User_Location (Location, UserID) values ('456 Elm St Boston MA', '16'); +insert into User_Location (Location, UserID) values ('654 Poplar St Boston MA', '34'); +insert into User_Location (Location, UserID) values ('098 Chestnutwood Rd Springfield MA', '29'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Somerville MA', '21'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Somerville MA', '24'); +insert into User_Location (Location, UserID) values ('567 Cedarwood Blvd Springfield MA', '26'); +insert into User_Location (Location, UserID) values ('123 Elmwood Dr Springfield MA', '27'); +insert into User_Location (Location, UserID) values ('123 Pine Ave Boston MA', '10'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '30'); +insert into User_Location (Location, UserID) values ('123 Pine Ave Boston MA', '6'); +insert into User_Location (Location, UserID) values ('890 Lakeside Way Rivertown MA', '28'); +insert into User_Location (Location, UserID) values ('890 Oakwood Way Springfield MA', '25'); +insert into User_Location (Location, UserID) values ('789 Birch St Boston MA', '11'); +insert into User_Location (Location, UserID) values ('543 Maple Ave Rivertown MA', '12'); +insert into User_Location (Location, UserID) values ('456 Chestnutview Ave Somerville MA', '22'); +insert into User_Location (Location, UserID) values ('789 Pine St Boston MA', '32'); +insert into User_Location (Location, UserID) values ('321 Pine St Boston MA', '10'); +insert into User_Location (Location, UserID) values ('456 Ash St Boston MA', '34'); +insert into User_Location (Location, UserID) values ('432 Poplarview Cir Springfield MA', '7'); +insert into User_Location (Location, UserID) values ('987 Brookside Pl Rivertown MA', '27'); +insert into User_Location (Location, UserID) values ('987 Elmwood Park Cambridge MA', '11'); +insert into User_Location (Location, UserID) values ('456 Chestnut Hill Ave Springfield MA', '13'); +insert into User_Location (Location, UserID) values ('987 Maple St Boston MA', '20'); +insert into User_Location (Location, UserID) values ('543 Birchwood Ave Cambridge MA', '24'); +insert into User_Location (Location, UserID) values ('765 Elmwood St Springfield MA', '23'); +insert into User_Location (Location, UserID) values ('321 Maplewood Dr Springfield MA', '4'); +insert into User_Location (Location, UserID) values ('123 Pine Ave Boston MA', '17'); +insert into User_Location (Location, UserID) values ('234 Forest Rd Rivertown MA', '8'); +insert into User_Location (Location, UserID) values ('987 Ashland Pl Somerville MA', '3'); +insert into User_Location (Location, UserID) values ('987 Ashwood Pl Springfield MA', '33'); +insert into User_Location (Location, UserID) values ('654 Pineview Rd Cambridge MA', '19'); +insert into User_Location (Location, UserID) values ('789 Pine St Boston MA', '35'); +insert into User_Location (Location, UserID) values ('432 Poplar Cir Cambridge MA', '18'); +insert into User_Location (Location, UserID) values ('456 Elm St Boston MA', '25'); +insert into User_Location (Location, UserID) values ('234 Pinehurst Rd Somerville MA', '2'); +insert into User_Location (Location, UserID) values ('789 Birchwood Ln Somerville MA', '15'); +insert into User_Location (Location, UserID) values ('654 Pineview Rd Cambridge MA', '1'); +insert into User_Location (Location, UserID) values ('890 Lakeside Way Rivertown MA', '9'); + +/* user_to_activity */ +insert into User_to_Activity (UserID, ActivityID) values ('32', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('20', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('3', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('1', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('31', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('17', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('29', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('13', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('25', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('14', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('33', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('21', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('2', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('23', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('6', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('35', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('27', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('7', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('30', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('4', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('9', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('24', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('12', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('18', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('19', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('34', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('10', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('22', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('26', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('5', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('15', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('11', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('28', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('8', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('16', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('31', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('24', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('33', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('6', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('34', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('32', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('13', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('15', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('12', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('1', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('8', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('25', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('23', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('27', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('10', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('35', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('9', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('29', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('5', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('2', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('14', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('28', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('21', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('26', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('19', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('20', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('7', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('22', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('3', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('11', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('18', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('16', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('4', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('17', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('30', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('25', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('18', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('20', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('14', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('17', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('23', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('12', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('32', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('6', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('27', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('24', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('22', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('33', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('5', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('9', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('16', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('35', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('19', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('13', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('2', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('7', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('1', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('8', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('15', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('30', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('4', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('11', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('10', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('29', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('28', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('26', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('3', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('34', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('21', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('31', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('29', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('2', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('9', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('6', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('28', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('18', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('1', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('12', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('26', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('13', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('24', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('16', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('25', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('19', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('20', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('5', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('4', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('3', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('31', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('35', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('23', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('15', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('14', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('17', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('10', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('32', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('8', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('21', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('27', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('22', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('34', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('11', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('33', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('30', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('7', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('11', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('1', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('31', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('3', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('21', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('6', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('10', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('25', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('13', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('34', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('8', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('30', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('35', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('12', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('16', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('7', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('14', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('33', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('32', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('27', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('26', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('29', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('15', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('18', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('24', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('23', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('20', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('19', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('2', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('5', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('28', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('9', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('22', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('17', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('4', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('12', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('29', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('31', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('24', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('19', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('18', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('15', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('27', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('11', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('32', '6'); +insert into User_to_Activity (UserID, ActivityID) values ('28', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('5', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('4', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('7', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('6', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('33', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('13', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('14', '7'); +insert into User_to_Activity (UserID, ActivityID) values ('3', '8'); +insert into User_to_Activity (UserID, ActivityID) values ('26', '1'); +insert into User_to_Activity (UserID, ActivityID) values ('22', '4'); +insert into User_to_Activity (UserID, ActivityID) values ('25', '3'); +insert into User_to_Activity (UserID, ActivityID) values ('2', '5'); +insert into User_to_Activity (UserID, ActivityID) values ('20', '2'); +insert into User_to_Activity (UserID, ActivityID) values ('17', '6'); + +/* Interests/Hobbies */ +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (1, 'biking', 'Digital art creation', 'Jazz', 'Sauteing', '5'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (2, 'skiing', 'Glassblowing', 'Latin', 'Indonesian', '27'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (3, 'biking', 'Knitting', 'Ska', 'Vietnamese', '8'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (4, 'Surfing', 'Pencil sketching', 'Death metal', 'French', '22'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (5, 'Tennis', 'Quilting', 'Country', 'Vietnamese', '19'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (6, 'fencing', 'Digital art creation', 'Country rock', 'French', '14'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (7, 'fencing', 'Calligraphy', 'Progressive rock', 'Greek', '24'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (8, 'fencing', 'Collage making', 'Ambient', 'Preserving', '18'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (9, 'Surfing', 'Graphic design', 'Jazz', 'Grilling', '16'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (10, 'fencing', 'Jewelry making', 'New wave', 'Moroccan', '28'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (11, 'yoga', 'Woodworking', 'Salsa', 'Turkish', '7'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (12, 'zumba', 'Digital art creation', 'Classical', 'Portuguese', '23'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (13, 'Surfing', 'Painting', 'Dance', 'Preserving', '25'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (14, 'Tennis', 'Watercolor painting', 'Reggae', 'Indonesian', '20'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (15, 'Basketball', 'Pottery', 'Ska', 'Spanish', '30'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (16, 'Golf', 'Woodworking', 'Synth-pop', 'Argentinean', '29'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (17, 'Tennis', 'Crocheting', 'Blues', 'Peruvian', '3'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (18, 'skiing', 'Jewelry making', 'Techno', 'Caribbean', '6'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (19, 'yoga', 'Acrylic painting', 'Ska', 'Peruvian', '32'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (20, 'dance', 'Woodworking', 'Salsa', 'Caribbean', '33'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (21, 'Rock climbing', 'Glassblowing', 'Trance', 'Malaysian', '11'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (22, 'fencing', 'Graphic design', 'Orchestral', 'Portuguese', '10'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (23, 'dance', 'Painting', 'Techno', 'Broiling', '9'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (24, 'dance', 'Calligraphy', 'Acoustic', 'Italian', '31'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (25, 'Hockey', 'Sewing', 'Emo', 'Braising', '34'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (26, 'running', 'Oil painting', 'R&B', 'Broiling', '13'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (27, 'skiing', 'Watercolor painting', 'Death metal', 'Steaming', '17'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (28, 'skiing', 'Quilting', 'Synth-pop', 'Mediterranean', '15'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (29, 'Hockey', 'Pottery', 'Indie', 'Italian', '35'); +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (30, 'yoga', 'Crocheting', 'Blues', 'Peruvian', '26'); \ No newline at end of file From c6179d365239377306339179a8b22a892555583f Mon Sep 17 00:00:00 2001 From: melinayg Date: Tue, 16 Apr 2024 10:38:59 -0400 Subject: [PATCH 24/33] more sample data --- db/sample_data.sql | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/db/sample_data.sql b/db/sample_data.sql index 4c32bec2..c6c14920 100644 --- a/db/sample_data.sql +++ b/db/sample_data.sql @@ -484,4 +484,37 @@ insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cook insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (27, 'skiing', 'Watercolor painting', 'Death metal', 'Steaming', '17'); insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (28, 'skiing', 'Quilting', 'Synth-pop', 'Mediterranean', '15'); insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (29, 'Hockey', 'Pottery', 'Indie', 'Italian', '35'); -insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (30, 'yoga', 'Crocheting', 'Blues', 'Peruvian', '26'); \ No newline at end of file +insert into Interests_Hobbies (InterestHobbiesID , Physical , Art , Music, Cooking, UserID) values (30, 'yoga', 'Crocheting', 'Blues', 'Peruvian', '26'); + +/* payment plan */ +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (1, 1, 'Gift Card', '9'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (2, 0, 'Cash', '4'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (3, 0, 'Credit Card', '30'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (4, 0, 'Bitcoin', '3'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (5, 0, 'Bitcoin', '23'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (6, 1, 'PayPal', '7'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (7, 1, 'Cash', '34'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (8, 1, 'Bank Transfer', '32'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (9, 1, 'Cash', '1'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (10, 0, 'PayPal', '27'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (11, 0, 'Apple Pay', '14'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (12, 1, 'Apple Pay', '31'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (13, 0, 'Cash', '29'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (14, 1, 'Credit Card', '10'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (15, 1, 'Venmo', '24'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (16, 1, 'Zelle', '11'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (17, 1, 'Credit Card', '25'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (18, 0, 'Bank Transfer', '15'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (19, 0, 'Apple Pay', '28'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (20, 0, 'Cash', '33'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (21, 1, 'Bitcoin', '26'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (22, 0, 'Bank Transfer', '8'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (23, 1, 'Gift Card', '13'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (24, 1, 'Google Pay', '2'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (25, 1, 'Gift Card', '17'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (26, 1, 'Bank Transfer', '6'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (27, 1, 'Cash', '16'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (28, 0, 'Venmo', '35'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (29, 1, 'Credit Card', '5'); +insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (30, 0, 'Venmo', '22'); + From 7f66157a1e2d4618346f1fd2444d6cfe08401b38 Mon Sep 17 00:00:00 2001 From: melinayg Date: Tue, 16 Apr 2024 10:43:23 -0400 Subject: [PATCH 25/33] saariyas routes --- db/phasetwo.sql | 7 + flask-app/src/GroupActivity/customers.py | 59 ------- flask-app/src/GroupActivity/groupactivity.py | 149 ++++++++++++++++++ flask-app/src/InterestsHobbies/customers.py | 59 ------- .../src/InterestsHobbies/interestshobbies.py | 137 ++++++++++++++++ 5 files changed, 293 insertions(+), 118 deletions(-) delete mode 100644 flask-app/src/GroupActivity/customers.py create mode 100644 flask-app/src/GroupActivity/groupactivity.py delete mode 100644 flask-app/src/InterestsHobbies/customers.py create mode 100644 flask-app/src/InterestsHobbies/interestshobbies.py diff --git a/db/phasetwo.sql b/db/phasetwo.sql index 4b32ddb3..3d8a5fb8 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -64,6 +64,7 @@ CREATE TABLE PaymentPlan( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 8 */ CREATE TABLE GroupAct ( Group_Type_ID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Number_of_Friends INT, @@ -172,6 +173,7 @@ CREATE TABLE Restaurant_Location ( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 7 */ CREATE TABLE Cafes ( CafeID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Cuisine TEXT, @@ -192,6 +194,7 @@ CREATE TABLE Cafe_Location ( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 2 */ CREATE TABLE MusicFestivals( FestivalID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name TEXT, @@ -213,6 +216,7 @@ CREATE TABLE Music_Festivals_Artists ( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 4 */ CREATE TABLE Shopping ( ShoppingID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name VARCHAR(255) NOT NULL, @@ -233,6 +237,7 @@ CREATE TABLE Shopping_Location ( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 1 */ CREATE TABLE Outdoor_Activity ( OutdoorID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name VARCHAR(255), @@ -253,6 +258,7 @@ CREATE TABLE Outdoor_Activity_Location ( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 5 */ CREATE TABLE Movies ( MovieID INT PRIMARY KEY AUTO_INCREMENT, Name VARCHAR(255) NOT NULL, @@ -270,6 +276,7 @@ CREATE TABLE MoviesLocation ( ON UPDATE CASCADE ON DELETE RESTRICT ); +/* 6 */ CREATE TABLE ArtsMuseums ( ArtMuseumID INT PRIMARY KEY AUTO_INCREMENT UNIQUE, Name TEXT, diff --git a/flask-app/src/GroupActivity/customers.py b/flask-app/src/GroupActivity/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/GroupActivity/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/GroupActivity/groupactivity.py b/flask-app/src/GroupActivity/groupactivity.py new file mode 100644 index 00000000..8dcb81bc --- /dev/null +++ b/flask-app/src/GroupActivity/groupactivity.py @@ -0,0 +1,149 @@ + +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +groupact_blueprint = Blueprint('group_activity', __name__) + +# creating group_activity data +@groupact_blueprint.route('/group_activity', methods=['POST']) +def create_group_activity(): + data = request.get_json() + try: + friends_no = data['type'] + grp_budget = data['budget'] + meeeting_time = data['safety'] + group_activity_id = data['group_activity_id'] + + conn = db.get_db() + cur = conn.cursor() + cur.execute('INSERT INTO group_activity (friends_no, grp_budget, meeeting_time, group_activity_id) VALUES (%s, %s, %s, %s, %s)', + (friends_no, grp_budget, meeeting_time, group_activity_id) + ) + conn.commit() + + + return jsonify({"message": "group_activity created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the group_activity."}), 500 + + +# Retrieve all group_activity possibl +@groupact_blueprint.route('/group_activity', methods=['GET']) +def get_all_groupact(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM group_activity') + group_activity = cur.fetchall() + + return jsonify(group_activity), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the group_activity."}), 500 + +# Retrieve a single group_activity +@groupact_blueprint.route('/group_activity/', methods=['GET']) +def get_trnasportation(group_activity_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM group_activity WHERE group_activity_id = %s', (group_activity_id)) + group_activity = cur.fetchone() + + if group_activity: + return jsonify(group_activity), 200 + else: + return jsonify({"error": "group_activity not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching the group_activity."}), 500 + +# adding a new group_activity +@groupact_blueprint.route('/group_activity', methods=['POST']) +def create_new_group_activity(): + data = request.get_json() + try: + group_activity_id = data['group_activity_id'] + new_group_activity = data.pop('new_group_activity', None) + + # Build the SQL query dynamically + columns = ', '.join(data.keys()) # Gets column names excluding 'group_activity_id' + placeholders = ', '.join(['%s'] * len(data)) # Generates placeholders for the values + values = tuple(data.values()) # Get the values corresponding to the columns + + conn = db.get_db() + cur = conn.cursor() + + if new_group_activity: # If a new group_activity is provided, add it to the SQL query + columns += ', new_group_activity' + placeholders += ', %s' + values += (new_group_activity) + + query = f'INSERT INTO group_activity ({columns}, group_activity_id) VALUES ({placeholders}, %s)' + cur.execute(query, values + (group_activity_id,)) + conn.commit() + + return jsonify({"message": "group_activity created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the group_activity."}), 500 + +# updating no. of people in the group information +@groupact_blueprint.route('/group_activity/', methods=['PUT']) +def update_group_activity(group_activity_id): + try: + data = request.get_json() + friends_no = data['friends_no'] + + conn = db.get_db() + cur = conn.cursor() + + # Update the number of people in the group + cur.execute('UPDATE group_activity SET friends_no = %s WHERE group_activity_id = %s', (friends_no, group_activity_id)) + conn.commit() + + return jsonify({"message": "Number of people in the group updated successfully."}), 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred while updating the number of people in the group."}), 500 + +# Delete a group +@groupact_blueprint.route('/group_activity/', methods=['DELETE']) +def delete_group_activity(group_activity_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM group_activity WHERE group_activity_id = %s', (group_activity_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "group_activity not found."}), 404 + + return jsonify({"message": "group_activity deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the group_activity."}), 500 + +# updating group_activity information +@groupact_blueprint.route('/group_activity', methods=['PUT']) +def update_customer(): + try: + friends_no = data['type'] + grp_budget = data['budget'] + meeting_time = data['safety'] + group_activity_id = data['group_activity_id'] + + query = 'UPDATE group_activity SET friends_no = %s, grp_budget = %s, meeting_time = %s WHERE group_activity_id = %s' + data = (friends_no, grp_budget, meeting_time, group_activity_id) + cursor = db.get_db().cursor() + cursor.execute(query, data) + db.get_db().commit() + + return 'group_activity info updated.', 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred while updating group_activity info."}), 500 \ No newline at end of file diff --git a/flask-app/src/InterestsHobbies/customers.py b/flask-app/src/InterestsHobbies/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/InterestsHobbies/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/InterestsHobbies/interestshobbies.py b/flask-app/src/InterestsHobbies/interestshobbies.py new file mode 100644 index 00000000..819c63b2 --- /dev/null +++ b/flask-app/src/InterestsHobbies/interestshobbies.py @@ -0,0 +1,137 @@ +######################################################## +# Sample customers blueprint of endpoints +# Remove this file if you are not using it in your project +######################################################## +from flask import Blueprint, request, jsonify, make_response +import json +from src import db + + +hobbies_blueprint = Blueprint('hobbies', __name__) + +# would we have to create fake hobby data thru code or mockaroo +@hobbies_blueprint.route('/hobbies', methods=['POST']) +def create_hobbies(): + data = request.get_json() + try: + physical = data['physical'] + art = data['art'] + cooking = data['cooking'] + music = data['music'] + hobby_id = data['hobby_id'] + + conn = db.get_db() + cur = conn.cursor() + cur.execute('INSERT INTO hobbies (physical, art, cooking, music, hobby_id) VALUES (%s, %s, %s, %s, %s)', + (physical, art, cooking, music, hobby_id) + ) + conn.commit() + + + return jsonify({"message": "Hobby created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the hobby."}), 500 + + +# Retrieve all hobbies +@hobbies_blueprint.route('/hobbies', methods=['GET']) +def get_all_hobbies(): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM hobbies') + hobbies = cur.fetchall() + + return jsonify(hobbies), 200 + except Exception as e: + return jsonify({"error": "An error occurred fetching the hobbies."}), 500 + +# Retrieve a single hobby +@hobbies_blueprint.route('/hobbies/', methods=['GET']) +def get_hobby(hobby_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('SELECT * FROM hobbies WHERE hobby_id = %s', (hobby_id)) + hobby = cur.fetchone() + + if hobby: + return jsonify(hobby), 200 + else: + return jsonify({"error": "hobby not found."}), 404 + except Exception as e: + return jsonify({"error": "An error occurred fetching the hobby."}), 500 + +# adding a new hobby +@hobbies_blueprint.route('/hobbies', methods=['POST']) +def create_hobbies(): + data = request.get_json() + try: + hobby_id = data['hobby_id'] + new_hobby = data.pop('new_hobby', None) # Removes 'new_hobby' from data dictionary if present + + # Build the SQL query dynamically + columns = ', '.join(data.keys()) # Gets column names excluding 'hobbies_id' + placeholders = ', '.join(['%s'] * len(data)) # Generates placeholders for the values + values = tuple(data.values()) # Get the values corresponding to the columns + + conn = db.get_db() + cur = conn.cursor() + + if new_hobby: # If a new hobby is provided, add it to the SQL query + columns += ', new_hobby' + placeholders += ', %s' + values += (new_hobby,) + + query = f'INSERT INTO hobbies ({columns}, hobby_id) VALUES ({placeholders}, %s)' + cur.execute(query, values + (hobby_id,)) # Executes the SQL query with values and hobbies_id + conn.commit() + + return jsonify({"message": "Hobby created successfully.", "id": cur.lastrowid}), 201 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the hobby."}), 500 + + +# Delete a hobby +@hobbies_blueprint.route('/hobbies/', methods=['DELETE']) +def delete_hobby(hobby_id): + try: + conn = db.get_db() + cur = conn.cursor() + cur.execute('DELETE FROM hobbies WHERE hobby_id = %s', (hobby_id,)) + conn.commit() + + if cur.rowcount == 0: + return jsonify({"error": "Hobby not found."}), 404 + + return jsonify({"message": "Hobby deleted successfully."}), 200 + except Exception as e: + return jsonify({"error": "An error occurred deleting the Hobby."}), 500 + +# updating hobby information +@hobbies_blueprint.route('/hobbies', methods=['PUT']) +def update_customer(): + try: + data = request.json() + physical = data['physical'] + art = data['art'] + cooking = data['cooking'] + music = data['music'] + hobby_id = data['hobby_id'] + + query = 'UPDATE hobbies SET physical = %s, art = %s, cooking = %s, music = %s WHERE hobby_id = %s' + data = (physical, art, cooking, music, hobby_id) + + cursor = db.get_db().cursor() + cursor.execute(query, data) + db.get_db().commit() + + return 'Hobby info updated.', 200 + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred while updating hobby info."}), 500 \ No newline at end of file From 2171b111d47552f4c2cecfd036fde0c312ccea35 Mon Sep 17 00:00:00 2001 From: melinayg Date: Tue, 16 Apr 2024 10:50:30 -0400 Subject: [PATCH 26/33] deleting extra --- flask-app/src/Destination/customers.py | 59 ----------------------- flask-app/src/MusicFestivals/customers.py | 59 ----------------------- flask-app/src/Shopping/customers.py | 59 ----------------------- 3 files changed, 177 deletions(-) delete mode 100644 flask-app/src/Destination/customers.py delete mode 100644 flask-app/src/MusicFestivals/customers.py delete mode 100644 flask-app/src/Shopping/customers.py diff --git a/flask-app/src/Destination/customers.py b/flask-app/src/Destination/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/Destination/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/MusicFestivals/customers.py b/flask-app/src/MusicFestivals/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/MusicFestivals/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - diff --git a/flask-app/src/Shopping/customers.py b/flask-app/src/Shopping/customers.py deleted file mode 100644 index 676ef0e4..00000000 --- a/flask-app/src/Shopping/customers.py +++ /dev/null @@ -1,59 +0,0 @@ -######################################################## -# Sample customers blueprint of endpoints -# Remove this file if you are not using it in your project -######################################################## -from flask import Blueprint, request, jsonify, make_response -import json -from src import db - - -customers = Blueprint('customers', __name__) - -# Update User information for user -@customers.route('/customers', methods=['PUT']) -def update_customer(): - cus_info = request.json - cus_id = cus_info['id'] - first = cus_info['first_name'] - last = cus_info['last_name'] - company = cus_info['company'] - - query = 'UPDATE customers SET first_name = %s, last_name = %s, company = %s where id = %s' - data = (first, last, company, cus_id) - cursor = db.get_db().cursor() - x = cursor.execute(query, data) - db.get_db().commit() - return 'Customer info updated.' - -# Get all customers from the DB -@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') - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - -# Get customer detail for customer with particular userID -@customers.route('/customers/', methods=['GET']) -def get_customer(userID): - cursor = db.get_db().cursor() - cursor.execute('select * from customers where id = {0}'.format(userID)) - row_headers = [x[0] for x in cursor.description] - json_data = [] - theData = cursor.fetchall() - for row in theData: - json_data.append(dict(zip(row_headers, row))) - the_response = make_response(jsonify(json_data)) - the_response.status_code = 200 - the_response.mimetype = 'application/json' - return the_response - - From a7a8378a7210a52208d54c9d27dc21d312233cdf Mon Sep 17 00:00:00 2001 From: atamam Date: Tue, 16 Apr 2024 16:31:50 -0400 Subject: [PATCH 27/33] everything you need to be able to run the containers and launch appsmith --- .vscode/settings.json | 17 +++++++++++++++++ flask-app/src/User/user.py | 14 +++++++------- flask-app/src/__init__.py | 11 ++++++----- 3 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..f6c4b6c3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,17 @@ +{ + "sqltools.connections": [ + { + "mysqlOptions": { + "authProtocol": "default", + "enableSsl": "Disabled" + }, + "previewLimit": 50, + "server": "localhost", + "port": 3306, + "driver": "MySQL", + "name": "3006", + "database": "GoGoMass", + "username": "root" + } + ] +} \ No newline at end of file diff --git a/flask-app/src/User/user.py b/flask-app/src/User/user.py index 8181aa21..da60fd7d 100644 --- a/flask-app/src/User/user.py +++ b/flask-app/src/User/user.py @@ -2,13 +2,13 @@ import json from src import db -users = Blueprint('users', __name__) +user_blueprint = Blueprint('user', __name__) # Get name and budget from user -@users.route('/user', methods=['GET']) +@user_blueprint.route('/user', methods=['GET']) def get_user_info(): cursor = db.get_db().cursor() - cursor.execute('SELECT Name, Budget FROM User') + cursor.execute('SELECT * FROM User') row_headers = [x[0] for x in cursor.description] json_data = [] theData = cursor.fetchall() @@ -20,7 +20,7 @@ def get_user_info(): return the_response # Get details for specific user by UserID -@users.route('/user/', methods=['GET']) +@user_blueprint.route('/user/', methods=['GET']) def get_user_by_id(UserID): cursor = db.get_db().cursor() cursor.execute('SELECT * FROM User WHERE UserID = %s', (UserID,)) @@ -35,7 +35,7 @@ def get_user_by_id(UserID): return the_response # Update user information -@users.route('/user', methods=['PUT']) +@user_blueprint.route('/user', methods=['PUT']) def update_user(): info = request.json UserID = info['UserID'] @@ -67,7 +67,7 @@ def update_user(): return 'User info is now updated.' # Delete user's budget from DB by UserID -@users.route('/user//Budget', methods=['DELETE']) +@user_blueprint.route('/user//Budget', methods=['DELETE']) def delete_user_budget(UserID): cursor = db.get_db().cursor() cursor.execute('UPDATE User SET Budget = NULL WHERE UserID = %s', (UserID,)) @@ -75,7 +75,7 @@ def delete_user_budget(UserID): return 'User budget deleted.', 200 # Delete user's likes from DB by UserID -@users.route('/user//likes', methods=['DELETE']) +@user_blueprint.route('/user//likes', methods=['DELETE']) def delete_user_likes(UserID): cursor = db.get_db().cursor() cursor.execute('UPDATE User SET Likes = NULL WHERE UserID = %s', (UserID,)) diff --git a/flask-app/src/__init__.py b/flask-app/src/__init__.py index c54b42b0..d246df75 100644 --- a/flask-app/src/__init__.py +++ b/flask-app/src/__init__.py @@ -19,7 +19,7 @@ def create_app(): app.config['MYSQL_DATABASE_PASSWORD'] = open('/secrets/db_root_password.txt').readline().strip() app.config['MYSQL_DATABASE_HOST'] = 'db' app.config['MYSQL_DATABASE_PORT'] = 3306 - app.config['MYSQL_DATABASE_DB'] = 'GoGoMass' # Change this to your DB name + app.config['MYSQL_DATABASE_DB'] = 'GoMass' # Change this to your DB name # Initialize the database object with the settings above. db.init_app(app) @@ -27,19 +27,20 @@ def create_app(): # Default route @app.route("/") def welcome(): - return "

Welcome to the GoMass API service

" + return "

Welcome to the GoMass API TESTING

" - # Import the blueprint objects + # Import the blueprint objects from src.Movies.movies import movies_blueprint from src.PaymentPlan.payment_plan import payment_plan_blueprint from src.Transportation.transportation import transportation_blueprint from src.Shopping.shopping import shopping_blueprint + from src.User.user import user_blueprint + # Register blueprints with the app object and give a url prefix to each app.register_blueprint(movies_blueprint, url_prefix='/movies') app.register_blueprint(payment_plan_blueprint, url_prefix='/payment_plan') app.register_blueprint(transportation_blueprint, url_prefix='/transportation') app.register_blueprint(shopping_blueprint, url_prefix='/shopping') - app.register_blueprint(destination_blueprint, url_prefix='/destination') - app.register_blueprint(festivals_blueprint, url_prefix='/festivals') + app.register_blueprint(user_blueprint, url_prefix='/user') return app \ No newline at end of file From 4fa70e95a6d838c8664ea3f30b65c2a731c26b76 Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:20:18 -0400 Subject: [PATCH 28/33] added movies --- db/sample_data.sql | 42 +++++++++ db/user_des.csv | 201 ++++++++++++++++++++++++++++++++++++++++++ db/user_locations.csv | 200 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 443 insertions(+) create mode 100644 db/user_des.csv create mode 100644 db/user_locations.csv diff --git a/db/sample_data.sql b/db/sample_data.sql index c6c14920..d38a11b4 100644 --- a/db/sample_data.sql +++ b/db/sample_data.sql @@ -518,3 +518,45 @@ insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (28, 0, insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (29, 1, 'Credit Card', '5'); insert into PaymentPlan (PaymentID, Paid, PaymentMethod, UserID) values (30, 0, 'Venmo', '22'); +/* Movies */ +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (1, 'Galaxy Grandview Cinemas Showcase', 2, 'Science Fiction Drama', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (2, 'Dreamland Dreamplex', 5, 'Techno-Thriller', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (3, 'Cinema Celestial Showcase Lounge Theater', 5, 'Disaster', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (4, 'Movie Magic Multiplex', 1, 'Slasher', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (5, 'Galaxy Heights Theater', 4, 'Teen Comedy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (6, 'Cinematic Odyssey', 1, 'Political', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (7, 'Regal Cinemacity', 1, 'Spy Comedy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (8, 'Vista Vista Vista Vista Theaters Lounge Showcase', 3, 'Monster', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (9, 'Cinema Celestial Showcase Lounge Theater', 2, 'Supernatural Drama', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (10, 'Odeon Oasis Theaters', 2, 'Crime', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (11, 'Galaxy Grandview Cinemas Showcase Theater', 3, 'Spy Comedy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (12, 'Vista Vista Vista Vista Theaters Lounge', 4, 'Medical Drama', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (13, 'Showtime Showcase', 5, 'Mockumentary Comedy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (14, 'Golden Gate Cinemas', 5, 'Military', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (15, 'Odeon Odyssey Cinemas Lounge Showcase Theater', 5, 'Western Comedy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (16, 'Starlight Cinematheque', 4, 'Heist', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (17, 'Grandview Cinemas', 2, 'Urban', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (18, 'Dreamland Deluxe Cinemas', 4, 'Psychological Thriller', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (19, 'Golden Gate Cinemas', 1, 'Legal Drama', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (20, 'Starlight Cinematheque', 5, 'Silent', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (21, 'Cinema Celestial Showcase', 3, 'Western', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (22, 'Dreamland Deluxe Movieplex Theater', 5, 'Urban Drama', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (23, 'Harmony Cinematica', 4, 'Musical', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (24, 'Paramount Picture House', 4, 'Romance', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (25, 'Riviera Cinemas', 1, 'Horror', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (26, 'Starlight Stardust Cinema Lounge Showcase', 4, 'Medical Drama', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (27, 'Starlight Cinematheque', 4, 'Military', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (28, 'Galaxy Heights Theater', 3, 'Tragedy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (29, 'Cinema Celestial Showcase Lounge', 2, 'Fantasy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (30, 'Vista Vista Vista Theaters', 5, 'Eco-Thriller', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (31, 'Showtime Showcase', 2, 'War Comedy', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (32, 'Harmony Hilltop Theater Lounge Cinema', 2, 'Urban', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (33, 'Velvet Cinema Lounge', 1, 'Satire', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (34, 'Hollywood Heights Theater', 1, 'Buddy Cop', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (35, 'Regal Royale Reel House Cinema', 3, 'Epic', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (36, 'Odeon Oasis Theaters', 3, 'Disaster', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (37, 'Silver Screen Showcase', 5, 'Slasher', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (38, 'Harmony Hill Movie House', 1, 'Teen', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (39, 'Harmony Hilltop Theater', 4, 'Teen Drama', '5'); +insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (40, 'Empire Movie Palace', 2, 'Science Fiction', '5'); + diff --git a/db/user_des.csv b/db/user_des.csv new file mode 100644 index 00000000..116ce90b --- /dev/null +++ b/db/user_des.csv @@ -0,0 +1,201 @@ +UserID,User_des +1,789 Maple Avenue Boston MA +2,5354 Sprucehill Street Boston MA +3,2324 Poplar Street Boston MA +4,6566 Locust Street Boston MA +5,5758 Aspen Street Boston MA +6,5354 Sprucehill Street Cambridge MA +7,8788 Sprucewood Drive Cambridge MA +8,1313 Pine Street Boston MA +9,9596 Walnutwood Drive Boston MA +10,5556 Hemlock Street Springfield MA +11,5152 Willowhill Street Boston MA +12,8990 Pinecrest Drive Boston MA +13,2122 Spruce Street Boston MA +14,8182 Oakridge Street Boston MA +15,4344 Maplewood Street Boston MA +16,5758 Aspen Street Springfield MA +17,4748 Pinehill Street Cambridge MA +18,6970 Mulberry Street Springfield MA +19,103104 Pinehill Drive Boston MA +20,6162 Larch Street Springfield MA +21,5152 Willowhill Street Boston MA +22,8788 Sprucewood Drive Springfield MA +23,9596 Walnutwood Drive Boston MA +24,5152 Willowhill Street Cambridge MA +25,7576 Elmcrest Street Springfield MA +26,3738 Brookside Street Cambridge MA +27,2122 Spruce Street Cambridge MA +28,3132 Laurel Street Cambridge MA +29,99100 Maplehill Drive Springfield MA +30,103104 Pinehill Drive Springfield MA +31,3738 Brookside Street Cambridge MA +32,9394 Oakwood Drive Cambridge MA +33,6162 Larch Street Springfield MA +34,8788 Sprucewood Drive Cambridge MA +35,3132 Laurel Street Cambridge MA +36,789 Maple Avenue Boston MA +37,8384 Maplewood Drive Cambridge MA +38,4546 Oakhill Street Boston MA +39,2526 Willow Street Boston MA +40,7980 Pinewood Street Cambridge MA +41,5960 Magnolia Street Boston MA +42,4950 Chestnuthill Street Boston MA +43,1516 Walnut Street Boston MA +44,3536 Pinecrest Street Cambridge MA +45,7980 Pinewood Street Boston MA +46,99100 Maplehill Drive Boston MA +47,6566 Locust Street Springfield MA +48,789 Maple Avenue Cambridge MA +49,9192 Elmwood Drive Boston MA +50,1920 Birch Street Boston MA +51,6970 Mulberry Street Springfield MA +52,4344 Maplewood Street Boston MA +53,8586 Cedarwood Drive Boston MA +54,456 Elm Street Amherst MA +55,8788 Sprucewood Drive Springfield MA +56,3132 Laurel Street Boston MA +57,8586 Cedarwood Drive Boston MA +58,1920 Birch Street Amherst MA +59,8384 Maplewood Drive Boston MA +60,7778 Birchcrest Street Cambridge MA +61,6162 Larch Street Springfield MA +62,789 Maple Avenue Boston MA +63,3940 Redwood Street Boston MA +64,3334 Elmwood Street Cambridge MA +65,7172 Vine Street Cambridge MA +66,5960 Magnolia Street Boston MA +67,5354 Sprucehill Street Springfield MA +68,9192 Elmwood Drive Cambridge MA +69,7576 Elmcrest Street Boston MA +70,2930 Chestnut Street Boston MA +71,3334 Elmwood Street Boston MA +72,1313 Pine Street Amherst MA +73,3940 Redwood Street Boston MA +74,5354 Sprucehill Street Cambridge MA +75,123 Main Street Boston MA +76,5354 Sprucehill Street Springfield MA +77,2122 Spruce Street Amherst MA +78,5556 Hemlock Street Boston MA +79,7980 Pinewood Street Cambridge MA +80,2122 Spruce Street Cambridge MA +81,9596 Walnutwood Drive Cambridge MA +82,6364 Birchhill Street Springfield MA +83,101102 Birchhill Drive Springfield MA +84,9394 Oakwood Drive Cambridge MA +85,6970 Mulberry Street Boston MA +86,789 Maple Avenue Cambridge MA +87,6768 Alder Street Cambridge MA +88,8586 Cedarwood Drive Cambridge MA +89,5758 Aspen Street Cambridge MA +90,6970 Mulberry Street Cambridge MA +91,5960 Magnolia Street Cambridge MA +92,2526 Willow Street Cambridge MA +93,5354 Sprucehill Street Cambridge MA +94,9798 Chestnutwood Drive Boston MA +95,8788 Sprucewood Drive Boston MA +96,99100 Maplehill Drive Cambridge MA +97,6364 Birchhill Street Boston MA +98,9192 Elmwood Drive Boston MA +99,101102 Birchhill Drive Boston MA +100,3738 Brookside Street Boston MA +101,1516 Walnut Street Cambridge MA +102,8990 Pinecrest Drive Boston MA +103,6768 Alder Street Cambridge MA +104,5960 Magnolia Street Boston MA +105,3940 Redwood Street Boston MA +106,"" +107,6768 Alder Street Springfield MA +108,2122 Spruce Street Boston MA +109,4950 Chestnuthill Street Boston MA +110,8384 Maplewood Drive Cambridge MA +111,7576 Elmcrest Street Springfield MA +112,9596 Walnutwood Drive Cambridge MA +113,4950 Chestnuthill Street Cambridge MA +114,6768 Alder Street Boston MA +115,3940 Redwood Street Boston MA +116,8586 Cedarwood Drive Boston MA +117,3738 Brookside Street Boston MA +118,1718 Cedar Street Cambridge MA +119,8586 Cedarwood Drive Boston MA +120,9394 Oakwood Drive Cambridge MA +121,7778 Birchcrest Street Cambridge MA +122,5758 Aspen Street Cambridge MA +123,103104 Pinehill Drive Cambridge MA +124,2930 Chestnut Street Boston MA +125,4950 Chestnuthill Street Boston MA +126,8990 Pinecrest Drive Boston MA +127,6364 Birchhill Street Cambridge MA +128,2526 Willow Street Cambridge MA +129,7172 Vine Street Boston MA +130,8990 Pinecrest Drive Boston MA +131,2122 Spruce Street Cambridge MA +132,5354 Sprucehill Street Springfield MA +133,789 Maple Avenue Boston MA +134,8384 Maplewood Drive Cambridge MA +135,9394 Oakwood Drive Springfield MA +136,1011 Oak Street Amherst MA +137,456 Elm Street Amherst MA +138,9192 Elmwood Drive Cambridge MA +139,103104 Pinehill Drive Springfield MA +140,456 Elm Street Boston MA +141,8384 Maplewood Drive Cambridge MA +142,7374 Willowcrest Street Springfield MA +143,9596 Walnutwood Drive Cambridge MA +144,4142 Cedarwood Street Cambridge MA +145,9596 Walnutwood Drive Boston MA +146,8384 Maplewood Drive Springfield MA +147,3940 Redwood Street Cambridge MA +148,5758 Aspen Street Cambridge MA +149,2526 Willow Street Cambridge MA +150,9394 Oakwood Drive Cambridge MA +151,"" +152,101102 Birchhill Drive Cambridge MA +153,2728 Oakwood Street Worcester MA +154,456 Elm Street Cambridge MA +155,103104 Pinehill Drive Boston MA +156,9798 Chestnutwood Drive Boston MA +157,8990 Pinecrest Drive Cambridge MA +158,7374 Willowcrest Street Boston MA +159,8586 Cedarwood Drive Boston MA +160,3334 Elmwood Street Boston MA +161,3334 Elmwood Street Boston MA +162,1313 Pine Street Amherst MA +163,7576 Elmcrest Street Cambridge MA +164,2930 Chestnut Street Worcester MA +165,3738 Brookside Street Boston MA +166,7374 Willowcrest Street Cambridge MA +167,7374 Willowcrest Street Cambridge MA +168,3334 Elmwood Street Cambridge MA +169,4344 Maplewood Street Boston MA +170,8788 Sprucewood Drive Springfield MA +171,1516 Walnut Street Amherst MA +172,1313 Pine Street Boston MA +173,8182 Oakridge Street Springfield MA +174,8586 Cedarwood Drive Cambridge MA +175,2324 Poplar Street Worcester MA +176,6162 Larch Street Boston MA +177,3940 Redwood Street Boston MA +178,2930 Chestnut Street Worcester MA +179,7778 Birchcrest Street Boston MA +180,5354 Sprucehill Street Boston MA +181,8182 Oakridge Street Springfield MA +182,3132 Laurel Street Boston MA +183,8586 Cedarwood Drive Cambridge MA +184,789 Maple Avenue Boston MA +185,6162 Larch Street Springfield MA +186,3738 Brookside Street Cambridge MA +187,1313 Pine Street Cambridge MA +188,6364 Birchhill Street Boston MA +189,7374 Willowcrest Street Springfield MA +190,7980 Pinewood Street Cambridge MA +191,4344 Maplewood Street Cambridge MA +192,456 Elm Street Amherst MA +193,6566 Locust Street Cambridge MA +194,2526 Willow Street Worcester MA +195,4546 Oakhill Street Cambridge MA +196,4950 Chestnuthill Street Boston MA +197,9192 Elmwood Drive Springfield MA +198,101102 Birchhill Drive Boston MA +199,6970 Mulberry Street Boston MA +200,4748 Pinehill Street Cambridge MA diff --git a/db/user_locations.csv b/db/user_locations.csv new file mode 100644 index 00000000..7b197c50 --- /dev/null +++ b/db/user_locations.csv @@ -0,0 +1,200 @@ +UserID,Location +1,5959 Elmcrest Road Braintree MA +2,181920 Fayerweather Street Cambridge MA +3,9595 Cherrywood Avenue Auburn MA +4,5151 Walnutcrest Drive Melrose MA +5,212223 Garden Street Cambridge MA +6,456 Elm Street Cambridge MA +7,2021 Spruce Road Springfield MA +8,6767 Cedarwood Court Hudson MA +9,7777 Chestnutcrest Avenue Northborough MA +10,181920 Fayerweather Street Cambridge MA +11,5555 Cedarcrest Drive Natick MA +12,91011 Commonwealth Avenue Boston MA +13,1415 Walnut Drive Springfield MA +14,2223 Magnolia Lane Springfield MA +15,3131 Cedarwood Lane Peabody MA +16,8181 Maplecrest Drive Shrewsbury MA +17,789 Oak Avenue Springfield MA +18,1213 Pine Lane Springfield MA +19,151617 Elmwood Avenue Cambridge MA +20,6767 Cedarwood Court Hudson MA +21,6161 Birchwood Lane Milton MA +22,789 Oak Avenue Springfield MA +23,8989 Birchcrest Avenue Sutton MA +24,7171 Elmwood Avenue Sudbury MA +25,2223 Magnolia Lane Springfield MA +26,9999 Willowwood Road Webster MA +27,151617 Elmwood Avenue Cambridge MA +28,5151 Walnutcrest Drive Melrose MA +29,5555 Cedarcrest Drive Natick MA +30,8181 Maplecrest Drive Shrewsbury MA +31,91011 Cedar Street Cambridge MA +32,789 Oak Avenue Springfield MA +33,1717 Birch Road Brockton MA +34,1415 Walnut Drive Springfield MA +35,3535 Elmwood Drive Everett MA +36,212223 Garden Street Cambridge MA +37,303132 Jones Road Cambridge MA1010 +39,8181 Maplecrest Drive Shrewsbury MA +40,6161 Birchwood Lane Milton MA +41,242526 Hereford Street Boston MA +42,6565 Pinecrest Drive Acton MA +43,4343 Cedarcrest Court Marlborough MA +44,272829 Ipswich Street Boston MA +45,2727 Willow Street Waltham MA +46,5678 Banks Street Cambridge MA +47,6565 Pinecrest Drive Acton MA +48,1313 Pine Lane Quincy MA +49,151617 Elmwood Avenue Cambridge MA +50,4343 Cedarcrest Court Marlborough MA +51,1213 Pine Lane Springfield MA +52,789 Maple Avenue Springfield MA +53,6565 Pinecrest Drive Acton MA +54,151617 Exeter Street Boston MA +55,9797 Maplewood Lane Oxford MA +56,9393 Chestnutwood Drive Spencer MA +57,5151 Walnutcrest Drive Melrose MA +58,8989 Birchcrest Avenue Sutton MA +59,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA +60,91011 Cedar Street Cambridge MA +61,3333 Oakwood Court Revere MA +62,1234 Beacon Street Boston MA +63,151617 Exeter Street Boston MA +64,789 Maple Avenue Springfield MA +65,789 Maple Avenue Springfield MA +66,3535 Elmwood Drive Everett MA +67,91011 Cedar Street Cambridge MA +68,456 Elm Street Cambridge MA +69,6969 Oakwood Lane Maynard MA +70,4343 Cedarcrest Court Marlborough MA +71,6565 Pinecrest Drive Acton MA +72,2929 Redwood Avenue Medford MA +73,123 Main Street Springfield MA +74,242526 Hereford Street Boston MA +75,4747 Elmcrest Avenue Lexington MA +76,6161 Birchwood Lane Milton MA +77,151617 Exeter Street Boston MA +78,1234 Aberdeen Avenue Cambridge MA +79,2727 Willow Street Waltham MA +80,456 Elm Street Springfield MA +81,91011 Cedar Street Cambridge MA +82,456 Elm Street Cambridge MA +83,7171 Elmwood Avenue Sudbury MA +84,5678 Boylston Street Boston MA +85,9595 Cherrywood Avenue Auburn MA +86,1617 Cedar Avenue Springfield MA +87,242526 Hereford Street Boston MA +88,151617 Elmwood Avenue Cambridge MA +89,1415 Walnut Drive Springfield MA +90,9191 Walnutwood Road Leicester MA +91,8181 Maplecrest Drive Shrewsbury MA +92,2121 Chestnut Avenue Newton MA +93,272829 Ipswich Street Boston MA +94,272829 Ipswich Street Boston MA +95,123 Main Street Boston MA +96,5353 Maplecrest Avenue Belmont MA +97,9999 Willowwood Road Webster MA +98,2323 Cherry Lane Somerville MA +99,3131 Cedarwood Lane Peabody MA +100,5757 Oakcrest Lane Norwood MA +101,5678 Boylston Street Boston MA +102,3737 Birchwood Road Salem MA +103,7777 Chestnutcrest Avenue Northborough MA +104,4343 Cedarcrest Court Marlborough MA +105,121314 Dartmouth Street Boston MA +106,242526 Harvard Street Cambridge MA +107,789 Oak Avenue Springfield MA +108,121314 Dartmouth Street Boston MA +109,242526 Hereford Street Boston MA +110,5757 Oakcrest Lane Norwood MA +111,789 Oak Avenue Springfield MA +112,3333 Oakwood Court Revere MA +113,6161 Birchwood Lane Milton MA +114,6767 Cedarwood Court Hudson MA +115,4949 Birchcrest Court Arlington MA +116,3535 Elmwood Drive Everett MA +117,1313 Pine Lane Quincy MA +118,9999 Willowwood Road Webster MA +119,151617 Elmwood Avenue Cambridge MA +120,4141 Pinecrest Avenue Chelsea MA +121,5353 Maplecrest Avenue Belmont MA +122,1919 Walnut Street Lynn MA +123,7171 Elmwood Avenue Sudbury MA +124,272829 Ipswich Street Boston MA +125,5757 Oakcrest Lane Norwood MA +126,789 Maple Avenue Springfield MA +127,8181 Maplecrest Drive Shrewsbury MA +128,789 Maple Avenue Springfield MA +129,242526 Hereford Street Boston MA +130,272829 Inman Street Cambridge MA +131,242526 Hereford Street Boston MA +132,7575 Walnutwood Drive Hopkinton MA +133,7171 Elmwood Avenue Sudbury MA +134,5555 Cedarcrest Drive Natick MA +135,1234 Aberdeen Avenue Cambridge MA +136,7373 Birchwood Road Ashland MA +137,6363 Walnutwood Avenue Westford MA +138,8383 Cedarcrest Avenue Westborough MA +139,2727 Willow Street Waltham MA +140,2121 Chestnut Avenue Newton MA +141,212223 Gloucester Street Boston MA +142,5757 Oakcrest Lane Norwood MA +143,789 Maple Avenue Springfield MA +144,5959 Elmcrest Road Braintree MA +145,9999 Willowwood Road Webster MA +146,1234 Beacon Street Boston MA +147,1717 Birch Road Brockton MA +148,5151 Walnutcrest Drive Melrose MA +149,3333 Oakwood Court Revere MA +150,2929 Redwood Avenue Medford MA +151,2223 Magnolia Lane Springfield MA +152,6969 Oakwood Lane Maynard MA +153,7777 Chestnutcrest Avenue Northborough MA +154,8383 Cedarcrest Avenue Westborough MA +155,6969 Oakwood Lane Maynard MA +156,1234 Beacon Street Boston MA +157,4141 Pinecrest Avenue Chelsea MA +158,212223 Gloucester Street Boston MA +159,1819 Birchwood Court Springfield MA +160,5757 Oakcrest Lane Norwood MA +161,6565 Pinecrest Drive Acton MA +162,3737 Birchwood Road Salem MA +163,456 Elm Street Cambridge MA +164,2223 Magnolia Lane Springfield MA +165,151617 Exeter Street Boston MA +166,1617 Cedar Avenue Springfield MA +167,181920 Fairfield Street Boston MA +168,1919 Walnut Street Lynn MA +169,151617 Exeter Street Boston MA +170,6565 Pinecrest Drive Acton MA +171,9393 Chestnutwood Drive Spencer MA +172,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA +173,5757 Oakcrest Lane Norwood MA +174,4141 Pinecrest Avenue Chelsea MA +175,5678 Boylston Street Boston MA +176,212223 Garden Street Cambridge MA +177,1234 Aberdeen Avenue Cambridge MA +178,1617 Cedar Avenue Springfield MA +179,5151 Walnutcrest Drive Melrose MA +180,5555 Cedarcrest Drive Natick MA +181,5959 Elmcrest Road Braintree MA +182,1919 Walnut Street Lynn MA +183,7575 Walnutwood Drive Hopkinton MA +184,3737 Birchwood Road Salem MA +185,1011 Oak Street Springfield MA +186,1011 Oak Street Springfield MA +187,6565 Pinecrest Drive Acton MA +188,456 Elm Street Cambridge MA +189,123 Main Street Boston MA +190,5678 Boylston Street Boston MA +191,1213 Pine Lane Springfield MA +192,3939 Walnutwood Lane Malden MA +193,9797 Maplewood Lane Oxford MA +194,6767 Cedarwood Court Hudson MA +195,6767 Cedarwood Court Hudson MA +196,242526 Harvard Street Cambridge MA +197,3737 Birchwood Road Salem MA +198,212223 Garden Street Cambridge MA +199,303132 Jones Road Cambridge MA1010 Maple Drive Worcester MA +200,181920 Fayerweather Street Cambridge MA From 7bbf293692c233aaedbe5a0ffa4a024c8dc3f95c Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:44:29 -0400 Subject: [PATCH 29/33] took away weather --- db/phasetwo.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/phasetwo.sql b/db/phasetwo.sql index 3d8a5fb8..9ed50a98 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -94,8 +94,7 @@ CREATE TABLE Destination ( City VARCHAR(255), State VARCHAR(255), Distance VARCHAR(255), - Proximity ENUM('long', 'med', 'short'), - WeatherRecommendations TEXT + Proximity ENUM('long', 'med', 'short') ); CREATE TABLE Destination_location ( From 4caa684cc466203d74895c07968027f6c9da76d7 Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:03:16 -0400 Subject: [PATCH 30/33] added more --- db/sample_data.sql | 1225 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1225 insertions(+) diff --git a/db/sample_data.sql b/db/sample_data.sql index d38a11b4..f366e120 100644 --- a/db/sample_data.sql +++ b/db/sample_data.sql @@ -560,3 +560,1228 @@ insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) value insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (39, 'Harmony Hilltop Theater', 4, 'Teen Drama', '5'); insert into Movies (MovieID, Name, OverallRating, Genre, Activity_Type_ID) values (40, 'Empire Movie Palace', 2, 'Science Fiction', '5'); +/* Movie_location */ + +insert into Movies_Location (MovieID, Location) values ('28', '77 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('20', '20 Cedar Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('40', '23 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('33', '88 Elmwood Avenue Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('22', '7 Hillside Drive Peabody MA 01960'); +insert into Movies_Location (MovieID, Location) values ('3', '8 Hillcrest Drive Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('13', '32 Riverfront Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('8', '30 Sunset Boulevard Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('21', '5 Park Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('24', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('35', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('16', '32 Riverfront Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('30', '25 Highland Drive Attleboro MA 02703'); +insert into Movies_Location (MovieID, Location) values ('36', '33 Cedar Drive Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('5', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('7', '88 Elmwood Avenue Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('11', '29 Sunset Road Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('18', '7 Hillside Drive Peabody MA 01960'); +insert into Movies_Location (MovieID, Location) values ('6', '55 Pine Lane Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('39', '25 Highland Drive Attleboro MA 02703'); +insert into Movies_Location (MovieID, Location) values ('37', '77 Sunset Road Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('38', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('26', '12 Elm Lane Everett MA 02149'); +insert into Movies_Location (MovieID, Location) values ('29', '30 Sunset Boulevard Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('2', '55 Walnut Avenue Cambridge MA 02138'); +insert into Movies_Location (MovieID, Location) values ('34', '50 Forest Lane Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('15', '8 Oak Lane Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('12', '20 Riverfront Street Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('19', '66 Prospect Avenue Revere MA 02151'); +insert into Movies_Location (MovieID, Location) values ('32', '14 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('27', '21 Cedar Road Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('31', '16 Birchwood Lane Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('14', '55 Walnut Avenue Cambridge MA 02138'); +insert into Movies_Location (MovieID, Location) values ('9', '29 Sunset Road Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('23', '14 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('10', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('1', '8 Hillcrest Drive Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('4', '12 Birchwood Lane Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('17', '33 Cedar Drive Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('25', '16 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('25', '12 Elm Lane Everett MA 02149'); +insert into Movies_Location (MovieID, Location) values ('12', '33 Cedar Drive Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('14', '55 Elmwood Terrace Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('39', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('29', '20 Cedar Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('9', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('23', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('13', '32 Riverfront Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('3', '20 Riverfront Street Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('1', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('40', '3 Spring Street Gloucester MA 01930'); +insert into Movies_Location (MovieID, Location) values ('35', '55 Walnut Avenue Cambridge MA 02138'); +insert into Movies_Location (MovieID, Location) values ('20', '12 Elm Lane Everett MA 02149'); +insert into Movies_Location (MovieID, Location) values ('8', '23 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('30', '25 Highland Drive Attleboro MA 02703'); +insert into Movies_Location (MovieID, Location) values ('34', '32 Riverfront Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('2', '88 Walnut Avenue Cambridge MA 02138'); +insert into Movies_Location (MovieID, Location) values ('36', '44 Willow Street Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('21', '19 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('6', '55 Elmwood Terrace Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('7', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('16', '29 Sunset Road Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('37', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('32', '12 Elm Lane Everett MA 02149'); +insert into Movies_Location (MovieID, Location) values ('18', '25 Highland Drive Attleboro MA 02703'); +insert into Movies_Location (MovieID, Location) values ('27', '16 Birchwood Lane Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('31', '88 Elmwood Avenue Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('24', '8 Highland Drive Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('33', '19 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('38', '14 Grove Street Taunton MA 02780'); +insert into Movies_Location (MovieID, Location) values ('5', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('19', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('15', '33 Cedar Drive Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('4', '44 Willow Street Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('17', '9 Grove Avenue Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('11', '16 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('10', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('22', '14 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('26', '19 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('28', '25 Riverside Drive Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('5', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('1', '36 Highland Avenue Waltham MA 02451'); +insert into Movies_Location (MovieID, Location) values ('6', '17 Oak Street Brookline MA 02445'); +insert into Movies_Location (MovieID, Location) values ('14', '44 Willow Street Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('37', '16 Birchwood Lane Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('4', '44 River Drive Malden MA 02148'); +insert into Movies_Location (MovieID, Location) values ('28', '16 Birchwood Lane Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('39', '88 Elmwood Avenue Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('10', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('38', '16 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('33', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('17', '88 Elmwood Avenue Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('3', '8 Hillcrest Drive Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('24', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('27', '55 Walnut Avenue Cambridge MA 02138'); +insert into Movies_Location (MovieID, Location) values ('18', '8 Hillcrest Drive Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('31', '7 Hillside Drive Peabody MA 01960'); +insert into Movies_Location (MovieID, Location) values ('16', '20 Cedar Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('23', '30 Sunset Boulevard Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('19', '21 Cedar Road Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('7', '55 Elmwood Terrace Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('40', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('8', '20 Cedar Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('12', '33 Cedar Drive Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('35', '33 Elmwood Avenue Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('9', '25 Highland Drive Attleboro MA 02703'); +insert into Movies_Location (MovieID, Location) values ('2', '30 Sunset Boulevard Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('15', '66 Prospect Avenue Revere MA 02151'); +insert into Movies_Location (MovieID, Location) values ('29', '16 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('11', '25 Riverside Drive Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('32', '9 Grove Avenue Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('25', '12 Birchwood Lane Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('22', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('21', '77 Sunset Road Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('36', '50 Forest Lane Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('30', '16 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('20', '19 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('13', '12 Elm Lane Everett MA 02149'); +insert into Movies_Location (MovieID, Location) values ('26', '23 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('34', '14 Grove Street Taunton MA 02780'); +insert into Movies_Location (MovieID, Location) values ('30', '20 Riverfront Street Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('7', '88 Elmwood Avenue Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('17', '20 Riverfront Street Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('26', '50 Forest Lane Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('23', '8 Hillcrest Drive Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('36', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('5', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('3', '20 Riverfront Street Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('39', '12 Elm Lane Everett MA 02149'); +insert into Movies_Location (MovieID, Location) values ('11', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('13', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('24', '17 Oak Street Brookline MA 02445'); +insert into Movies_Location (MovieID, Location) values ('21', '19 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('20', '12 Birchwood Lane Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('37', '88 Elmwood Avenue Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('22', '44 Willow Street Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('4', '33 Cedar Drive Somerville MA 02143'); +insert into Movies_Location (MovieID, Location) values ('40', '8 Hillcrest Drive Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('12', '9 Grove Avenue Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('38', '50 Forest Lane Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('14', '14 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('27', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('18', '12 Birchwood Lane Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('2', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('8', '23 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('28', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('16', '19 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('33', '12 Elm Lane Everett MA 02149'); +insert into Movies_Location (MovieID, Location) values ('25', '20 Riverfront Street Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('19', '25 Riverside Drive Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('9', '8 Hillcrest Drive Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('32', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('35', '20 Cedar Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('10', '3 Spring Street Gloucester MA 01930'); +insert into Movies_Location (MovieID, Location) values ('1', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('15', '14 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('31', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('6', '23 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('34', '5 Park Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('29', '25 Highland Drive Attleboro MA 02703'); +insert into Movies_Location (MovieID, Location) values ('38', '29 Sunset Road Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('10', '12 Birchwood Lane Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('33', '44 River Drive Malden MA 02148'); +insert into Movies_Location (MovieID, Location) values ('32', '21 Cedar Road Framingham MA 01701'); +insert into Movies_Location (MovieID, Location) values ('40', '12 Birchwood Lane Lowell MA 01851'); +insert into Movies_Location (MovieID, Location) values ('29', '9 Grove Avenue Haverhill MA 01830'); +insert into Movies_Location (MovieID, Location) values ('1', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('24', '7 Hillside Drive Peabody MA 01960'); +insert into Movies_Location (MovieID, Location) values ('15', '77 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('26', '20 Cedar Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('19', '19 Maple Street Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('36', '8 Oak Lane Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('27', '29 Sunset Road Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('4', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('11', '36 Highland Avenue Waltham MA 02451'); +insert into Movies_Location (MovieID, Location) values ('31', '55 Elmwood Terrace Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('9', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('16', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('3', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('8', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('18', '10 Oakwood Drive Worcester MA 01608'); +insert into Movies_Location (MovieID, Location) values ('34', '33 Elmwood Avenue Newton MA 02458'); +insert into Movies_Location (MovieID, Location) values ('5', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('12', '77 Cherry Street Boston MA 02108'); +insert into Movies_Location (MovieID, Location) values ('20', '17 Oak Street Brookline MA 02445'); +insert into Movies_Location (MovieID, Location) values ('28', '5 Park Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('25', '8 Oak Lane Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('35', '20 Cedar Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('37', '42 Maple Road Quincy MA 02169'); +insert into Movies_Location (MovieID, Location) values ('7', '25 Highland Drive Attleboro MA 02703'); +insert into Movies_Location (MovieID, Location) values ('17', '16 Pine Lane Springfield MA 01113'); +insert into Movies_Location (MovieID, Location) values ('13', '32 Riverfront Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('6', '55 Pine Lane Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('39', '88 Walnut Avenue Cambridge MA 02138'); +insert into Movies_Location (MovieID, Location) values ('2', '7 Hillside Drive Peabody MA 01960'); +insert into Movies_Location (MovieID, Location) values ('14', '5 Park Avenue Medford MA 02155'); +insert into Movies_Location (MovieID, Location) values ('22', '25 Riverside Drive Lynn MA 01905'); +insert into Movies_Location (MovieID, Location) values ('23', '11 Willow Lane Brockton MA 02301'); +insert into Movies_Location (MovieID, Location) values ('21', '55 Pine Lane Salem MA 01970'); +insert into Movies_Location (MovieID, Location) values ('30', '44 River Drive Malden MA 02148'); + + +/* Cafes */ + +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (1, 'French', 'Java Jive Cafe', 4, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (2, 'Swiss', 'The Perk Place Cafe', 2, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (3, 'Moroccan', 'Java Gems Cafe', 5, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (4, 'Middle Eastern', 'Java Joy Cafe', 4, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (5, 'Argentinean', 'Brewed Awakening Cafe', 4, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (6, 'Brazilian', 'Brewed Delights Cafe', 2, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (7, 'Peruvian', 'Cafe Mocha', 5, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (8, 'Spanish', 'Percolate Cafe', 5, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (9, 'Greek', 'Aroma Haven Cafe', 3, '7', '$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (10, 'Sri Lankan', 'Morning Brew Cafe', 4, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (11, 'Peruvian', 'Brewed Bliss Cafe', 3, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (12, 'African', 'Cozy Bean Cafe', 2, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (13, 'Mediterranean', 'Sip & Savor Cafe', 2, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (14, 'Italian', 'Aroma Haven Cafe', 4, '7', '$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (15, 'Turkish', 'Steep & Sip Cafe', 5, '7', '$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (16, 'British', 'Sunrise Cafe', 5, '7', '$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (17, 'Chinese', 'Percolate Cafe', 5, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (18, 'Nepalese', 'Zenith Coffeehouse', 5, '7', '$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (19, 'Middle Eastern', 'The Bean Machine', 2, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (20, 'Irish', 'Frothy Cup Cafe', 2, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (21, 'Thai', 'Caffeine Culture', 1, '7', '$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (22, 'African', 'Steamy Cup Cafe', 3, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (23, 'American', 'Chill & Sip Cafe', 5, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (24, 'Indian', 'Cafe Elegance', 3, '7', '$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (25, 'Indonesian', 'Brewed Delights Cafe', 3, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (26, 'Swedish', 'Java Gems Cafe', 2, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (27, 'Peruvian', 'The Perk Place Cafe', 1, '7', '$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (28, 'Filipino', 'Brewed Delights Cafe', 2, '7', '$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (29, 'Portuguese', 'Brewmaster''s Cafe', 2, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (30, 'Moroccan', 'Cozy Corner Coffeehouse', 2, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (31, 'Japanese', 'Espresso Emporium', 5, '7', '$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (32, 'Nepalese', 'Cafe Elegance', 1, '7', '$$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (33, 'Filipino', 'Cafe Elegance', 2, '7', '$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (34, 'British', 'Aroma Haven Cafe', 4, '7', '$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (35, 'Moroccan', 'The Daily Grind Cafe', 1, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (36, 'Portuguese', 'Brewtopia Cafe', 4, '7', '$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (37, 'Middle Eastern', 'Steep & Sip Cafe', 2, '7', '$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (38, 'Argentinean', 'Bean Town Cafe', 5, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (39, 'Swedish', 'Bean Blossom Cafe', 4, '7', '$$$$'); +insert into Cafes (CafeID , Cuisine, Name, OverallRating, ActivityTypeID, PriceTag) values (40, 'Irish', 'Bean & Brew Cafe', 2, '7', '$'); + + +/* Cafe_Location */ +insert into Cafe_Location (Location, CafeID) values ('50 Forest Lane Haverhill MA 01830', '38'); +insert into Cafe_Location (Location, CafeID) values ('50 Forest Lane Haverhill MA 01830', '6'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '7'); +insert into Cafe_Location (Location, CafeID) values ('30 Sunset Boulevard Newton MA 02458', '3'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '17'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '22'); +insert into Cafe_Location (Location, CafeID) values ('55 Walnut Avenue Cambridge MA 02138', '23'); +insert into Cafe_Location (Location, CafeID) values ('11 Willow Lane Brockton MA 02301', '34'); +insert into Cafe_Location (Location, CafeID) values ('14 Grove Street Taunton MA 02780', '32'); +insert into Cafe_Location (Location, CafeID) values ('32 Riverfront Avenue Medford MA 02155', '30'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '8'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '5'); +insert into Cafe_Location (Location, CafeID) values ('36 Highland Avenue Waltham MA 02451', '14'); +insert into Cafe_Location (Location, CafeID) values ('77 Cherry Street Boston MA 02108', '28'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '11'); +insert into Cafe_Location (Location, CafeID) values ('55 Walnut Avenue Cambridge MA 02138', '33'); +insert into Cafe_Location (Location, CafeID) values ('20 Riverfront Street Framingham MA 01701', '39'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '26'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '1'); +insert into Cafe_Location (Location, CafeID) values ('10 Oakwood Drive Worcester MA 01608', '21'); +insert into Cafe_Location (Location, CafeID) values ('55 Elmwood Terrace Quincy MA 02169', '18'); +insert into Cafe_Location (Location, CafeID) values ('5 Park Avenue Medford MA 02155', '4'); +insert into Cafe_Location (Location, CafeID) values ('12 Birchwood Lane Lowell MA 01851', '29'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '13'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '25'); +insert into Cafe_Location (Location, CafeID) values ('50 Forest Lane Haverhill MA 01830', '40'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '16'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '2'); +insert into Cafe_Location (Location, CafeID) values ('10 Oakwood Drive Worcester MA 01608', '31'); +insert into Cafe_Location (Location, CafeID) values ('8 Oak Lane Salem MA 01970', '24'); +insert into Cafe_Location (Location, CafeID) values ('55 Elmwood Terrace Quincy MA 02169', '37'); +insert into Cafe_Location (Location, CafeID) values ('77 Cherry Street Boston MA 02108', '9'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '20'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '35'); +insert into Cafe_Location (Location, CafeID) values ('11 Willow Lane Brockton MA 02301', '10'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '12'); +insert into Cafe_Location (Location, CafeID) values ('36 Highland Avenue Waltham MA 02451', '27'); +insert into Cafe_Location (Location, CafeID) values ('9 Grove Avenue Haverhill MA 01830', '36'); +insert into Cafe_Location (Location, CafeID) values ('55 Elmwood Terrace Quincy MA 02169', '19'); +insert into Cafe_Location (Location, CafeID) values ('77 Sunset Road Springfield MA 01113', '15'); +insert into Cafe_Location (Location, CafeID) values ('14 Oakwood Drive Worcester MA', '26'); +insert into Cafe_Location (Location, CafeID) values ('36 Highland Avenue Waltham MA 02451', '27'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '12'); +insert into Cafe_Location (Location, CafeID) values ('42 Maple Road Quincy MA 02169', '22'); +insert into Cafe_Location (Location, CafeID) values ('7 Hillside Drive Peabody MA 01960', '32'); +insert into Cafe_Location (Location, CafeID) values ('77 Cherry Street Boston MA 02108', '35'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '23'); +insert into Cafe_Location (Location, CafeID) values ('55 Walnut Avenue Cambridge MA 02138', '21'); +insert into Cafe_Location (Location, CafeID) values ('12 Birchwood Lane Lowell MA 01851', '8'); +insert into Cafe_Location (Location, CafeID) values ('11 Willow Lane Brockton MA 02301', '7'); +insert into Cafe_Location (Location, CafeID) values ('77 Cherry Street Boston MA 02108', '24'); +insert into Cafe_Location (Location, CafeID) values ('55 Elmwood Terrace Quincy MA 02169', '4'); +insert into Cafe_Location (Location, CafeID) values ('14 Grove Street Taunton MA 02780', '9'); +insert into Cafe_Location (Location, CafeID) values ('77 Sunset Road Springfield MA 01113', '13'); +insert into Cafe_Location (Location, CafeID) values ('66 Prospect Avenue Revere MA 02151', '30'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '10'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '20'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '11'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '34'); +insert into Cafe_Location (Location, CafeID) values ('11 Willow Lane Brockton MA 02301', '14'); +insert into Cafe_Location (Location, CafeID) values ('12 Birchwood Lane Lowell MA 01851', '16'); +insert into Cafe_Location (Location, CafeID) values ('55 Walnut Avenue Cambridge MA 02138', '1'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '17'); +insert into Cafe_Location (Location, CafeID) values ('36 Highland Avenue Waltham MA 02451', '25'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '37'); +insert into Cafe_Location (Location, CafeID) values ('30 Sunset Boulevard Newton MA 02458', '38'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '39'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '31'); +insert into Cafe_Location (Location, CafeID) values ('14 Grove Street Taunton MA 02780', '6'); +insert into Cafe_Location (Location, CafeID) values ('10 Oakwood Drive Worcester MA 01608', '28'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '29'); +insert into Cafe_Location (Location, CafeID) values ('77 Sunset Road Springfield MA 01113', '2'); +insert into Cafe_Location (Location, CafeID) values ('14 Oakwood Drive Worcester MA', '36'); +insert into Cafe_Location (Location, CafeID) values ('88 Elmwood Avenue Lowell MA 01851', '18'); +insert into Cafe_Location (Location, CafeID) values ('77 Sunset Road Springfield MA 01113', '19'); +insert into Cafe_Location (Location, CafeID) values ('30 Sunset Boulevard Newton MA 02458', '33'); +insert into Cafe_Location (Location, CafeID) values ('20 Riverfront Street Framingham MA 01701', '3'); +insert into Cafe_Location (Location, CafeID) values ('14 Grove Street Taunton MA 02780', '15'); +insert into Cafe_Location (Location, CafeID) values ('8 Oak Lane Salem MA 01970', '40'); +insert into Cafe_Location (Location, CafeID) values ('50 Forest Lane Haverhill MA 01830', '5'); +insert into Cafe_Location (Location, CafeID) values ('12 Birchwood Lane Lowell MA 01851', '26'); +insert into Cafe_Location (Location, CafeID) values ('11 Willow Lane Brockton MA 02301', '37'); +insert into Cafe_Location (Location, CafeID) values ('55 Walnut Avenue Cambridge MA 02138', '7'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '10'); +insert into Cafe_Location (Location, CafeID) values ('5 Park Avenue Medford MA 02155', '40'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '38'); +insert into Cafe_Location (Location, CafeID) values ('17 Oak Street Brookline MA 02445', '8'); +insert into Cafe_Location (Location, CafeID) values ('66 Prospect Avenue Revere MA 02151', '20'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '31'); +insert into Cafe_Location (Location, CafeID) values ('5 Park Avenue Medford MA 02155', '29'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '19'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '22'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '6'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '9'); +insert into Cafe_Location (Location, CafeID) values ('77 Cherry Street Boston MA 02108', '32'); +insert into Cafe_Location (Location, CafeID) values ('8 Oak Lane Salem MA 01970', '13'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '12'); +insert into Cafe_Location (Location, CafeID) values ('5 Park Avenue Medford MA 02155', '28'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '17'); +insert into Cafe_Location (Location, CafeID) values ('42 Maple Road Quincy MA 02169', '23'); +insert into Cafe_Location (Location, CafeID) values ('9 Grove Avenue Haverhill MA 01830', '34'); +insert into Cafe_Location (Location, CafeID) values ('9 Grove Avenue Haverhill MA 01830', '4'); +insert into Cafe_Location (Location, CafeID) values ('21 Cedar Road Framingham MA 01701', '1'); +insert into Cafe_Location (Location, CafeID) values ('17 Oak Street Brookline MA 02445', '30'); +insert into Cafe_Location (Location, CafeID) values ('55 Elmwood Terrace Quincy MA 02169', '5'); +insert into Cafe_Location (Location, CafeID) values ('20 Riverfront Street Framingham MA 01701', '11'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '27'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '3'); +insert into Cafe_Location (Location, CafeID) values ('14 Oakwood Drive Worcester MA', '15'); +insert into Cafe_Location (Location, CafeID) values ('14 Grove Street Taunton MA 02780', '33'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '14'); +insert into Cafe_Location (Location, CafeID) values ('50 Forest Lane Haverhill MA 01830', '35'); +insert into Cafe_Location (Location, CafeID) values ('8 Hillcrest Drive Salem MA 01970', '24'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '16'); +insert into Cafe_Location (Location, CafeID) values ('8 Oak Lane Salem MA 01970', '21'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '36'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '2'); +insert into Cafe_Location (Location, CafeID) values ('9 Grove Avenue Haverhill MA 01830', '39'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '25'); +insert into Cafe_Location (Location, CafeID) values ('77 Sunset Road Springfield MA 01113', '18'); +insert into Cafe_Location (Location, CafeID) values ('44 River Drive Malden MA 02148', '15'); +insert into Cafe_Location (Location, CafeID) values ('20 Riverfront Street Framingham MA 01701', '22'); +insert into Cafe_Location (Location, CafeID) values ('44 River Drive Malden MA 02148', '14'); +insert into Cafe_Location (Location, CafeID) values ('66 Prospect Avenue Revere MA 02151', '28'); +insert into Cafe_Location (Location, CafeID) values ('66 Prospect Avenue Revere MA 02151', '30'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '9'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '19'); +insert into Cafe_Location (Location, CafeID) values ('44 River Drive Malden MA 02148', '31'); +insert into Cafe_Location (Location, CafeID) values ('77 Cherry Street Boston MA 02108', '6'); +insert into Cafe_Location (Location, CafeID) values ('21 Cedar Road Framingham MA 01701', '38'); +insert into Cafe_Location (Location, CafeID) values ('32 Riverfront Avenue Medford MA 02155', '13'); +insert into Cafe_Location (Location, CafeID) values ('8 Hillcrest Drive Salem MA 01970', '8'); +insert into Cafe_Location (Location, CafeID) values ('21 Cedar Road Framingham MA 01701', '34'); +insert into Cafe_Location (Location, CafeID) values ('88 Elmwood Avenue Lowell MA 01851', '5'); +insert into Cafe_Location (Location, CafeID) values ('50 Forest Lane Haverhill MA 01830', '39'); +insert into Cafe_Location (Location, CafeID) values ('30 Sunset Boulevard Newton MA 02458', '20'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '4'); +insert into Cafe_Location (Location, CafeID) values ('9 Grove Avenue Haverhill MA 01830', '40'); +insert into Cafe_Location (Location, CafeID) values ('88 Elmwood Avenue Lowell MA 01851', '18'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '2'); +insert into Cafe_Location (Location, CafeID) values ('10 Oakwood Drive Worcester MA 01608', '36'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '7'); +insert into Cafe_Location (Location, CafeID) values ('25 Highland Drive Attleboro MA 02703', '27'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '35'); +insert into Cafe_Location (Location, CafeID) values ('77 Sunset Road Springfield MA 01113', '17'); +insert into Cafe_Location (Location, CafeID) values ('55 Elmwood Terrace Quincy MA 02169', '25'); +insert into Cafe_Location (Location, CafeID) values ('36 Highland Avenue Waltham MA 02451', '21'); +insert into Cafe_Location (Location, CafeID) values ('32 Riverfront Avenue Medford MA 02155', '10'); +insert into Cafe_Location (Location, CafeID) values ('5 Park Avenue Medford MA 02155', '12'); +insert into Cafe_Location (Location, CafeID) values ('32 Riverfront Avenue Medford MA 02155', '33'); +insert into Cafe_Location (Location, CafeID) values ('30 Sunset Boulevard Newton MA 02458', '29'); +insert into Cafe_Location (Location, CafeID) values ('7 Hillside Drive Peabody MA 01960', '16'); +insert into Cafe_Location (Location, CafeID) values ('32 Riverfront Avenue Medford MA 02155', '37'); +insert into Cafe_Location (Location, CafeID) values ('8 Oak Lane Salem MA 01970', '11'); +insert into Cafe_Location (Location, CafeID) values ('12 Birchwood Lane Lowell MA 01851', '26'); +insert into Cafe_Location (Location, CafeID) values ('7 Hillside Drive Peabody MA 01960', '24'); +insert into Cafe_Location (Location, CafeID) values ('32 Riverfront Avenue Medford MA 02155', '1'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '23'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '3'); +insert into Cafe_Location (Location, CafeID) values ('29 Sunset Road Lynn MA 01905', '32'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '21'); +insert into Cafe_Location (Location, CafeID) values ('23 Pine Lane Springfield MA 01113', '7'); +insert into Cafe_Location (Location, CafeID) values ('14 Grove Street Taunton MA 02780', '40'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '37'); +insert into Cafe_Location (Location, CafeID) values ('14 Oakwood Drive Worcester MA', '36'); +insert into Cafe_Location (Location, CafeID) values ('42 Maple Road Quincy MA 02169', '18'); +insert into Cafe_Location (Location, CafeID) values ('66 Prospect Avenue Revere MA 02151', '20'); +insert into Cafe_Location (Location, CafeID) values ('88 Elmwood Avenue Lowell MA 01851', '5'); +insert into Cafe_Location (Location, CafeID) values ('50 Forest Lane Haverhill MA 01830', '13'); +insert into Cafe_Location (Location, CafeID) values ('10 Oakwood Drive Worcester MA 01608', '26'); +insert into Cafe_Location (Location, CafeID) values ('42 Maple Road Quincy MA 02169', '3'); +insert into Cafe_Location (Location, CafeID) values ('7 Hillside Drive Peabody MA 01960', '17'); +insert into Cafe_Location (Location, CafeID) values ('32 Riverfront Avenue Medford MA 02155', '1'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '25'); +insert into Cafe_Location (Location, CafeID) values ('30 Sunset Boulevard Newton MA 02458', '8'); +insert into Cafe_Location (Location, CafeID) values ('55 Walnut Avenue Cambridge MA 02138', '35'); +insert into Cafe_Location (Location, CafeID) values ('3 Spring Street Gloucester MA 01930', '9'); +insert into Cafe_Location (Location, CafeID) values ('44 River Drive Malden MA 02148', '29'); +insert into Cafe_Location (Location, CafeID) values ('12 Elm Lane Everett MA 02149', '30'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '2'); +insert into Cafe_Location (Location, CafeID) values ('7 Hillside Drive Peabody MA 01960', '39'); +insert into Cafe_Location (Location, CafeID) values ('17 Oak Street Brookline MA 02445', '27'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '22'); +insert into Cafe_Location (Location, CafeID) values ('12 Birchwood Lane Lowell MA 01851', '28'); +insert into Cafe_Location (Location, CafeID) values ('30 Sunset Boulevard Newton MA 02458', '23'); +insert into Cafe_Location (Location, CafeID) values ('42 Maple Road Quincy MA 02169', '16'); +insert into Cafe_Location (Location, CafeID) values ('14 Oakwood Drive Worcester MA', '11'); +insert into Cafe_Location (Location, CafeID) values ('77 Cherry Street Boston MA 02108', '14'); +insert into Cafe_Location (Location, CafeID) values ('16 Birchwood Lane Newton MA 02458', '19'); +insert into Cafe_Location (Location, CafeID) values ('9 Grove Avenue Haverhill MA 01830', '15'); +insert into Cafe_Location (Location, CafeID) values ('19 Maple Street Lynn MA 01905', '38'); +insert into Cafe_Location (Location, CafeID) values ('9 Grove Avenue Haverhill MA 01830', '34'); +insert into Cafe_Location (Location, CafeID) values ('10 Oakwood Drive Worcester MA 01608', '24'); +insert into Cafe_Location (Location, CafeID) values ('36 Highland Avenue Waltham MA 02451', '33'); +insert into Cafe_Location (Location, CafeID) values ('14 Oakwood Drive Worcester MA', '12'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '31'); +insert into Cafe_Location (Location, CafeID) values ('88 Elmwood Avenue Lowell MA 01851', '6'); +insert into Cafe_Location (Location, CafeID) values ('5 Park Avenue Medford MA 02155', '10'); +insert into Cafe_Location (Location, CafeID) values ('33 Cedar Drive Somerville MA 02143', '32'); +insert into Cafe_Location (Location, CafeID) values ('23 Pine Lane Springfield MA 01113', '4'); + +/* Destination */ + +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('67890 Elm Court Springfield MA 67890', 'Aspen Place', 54321, 'Cambridge', 'Massachusetts', 9256, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('45678 Birch Road Lowell MA 45678', 'Willow Lane', 23456, 'Newton', 'Massachusetts', 11452, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Cedar Way Boston MA 12345', 'Aspen Place', 67890, 'Newton', 'Massachusetts', 10918, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Elm Court Quincy MA 23456', 'Birch Road', 87654, 'Newton', 'Massachusetts', 11292, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Maplewood Lane Newton MA 78901', 'Sycamore Circle', 34567, 'Brockton', 'Massachusetts', 5364, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elmwood Way Boston MA 12345', 'Birch Road', 34567, 'Lynn', 'Massachusetts', 8485, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('87654 Cedarwood Lane Brockton MA 87654', 'Oak Drive', 45678, 'Worcester', 'Massachusetts', 6399, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('45678 Cedarwood Avenue Lowell MA 45678', 'Pine Court', 54321, 'Cambridge', 'Massachusetts', 6487, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('87654 Cedarwood Court Brockton MA 87654', 'Elm Way', 12345, 'Lowell', 'Massachusetts', 7553, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('67890 Elmwood Avenue Springfield MA 67890', 'Elm Way', 12345, 'Quincy', 'Massachusetts', 1311, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elmwood Drive Boston MA 12345', 'Cedar Avenue', 78901, 'Quincy', 'Massachusetts', 12279, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('21098 Cedar Avenue Lynn MA 21098', 'Cedar Avenue', 12345, 'Springfield', 'Massachusetts', 2604, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Elmwood Lane Quincy MA 23456', 'Sycamore Circle', 67890, 'Boston', 'Massachusetts', 9418, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elmwood Terrace Boston MA 12345', 'Cedar Avenue', 78901, 'Boston', 'Massachusetts', 208, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('34567 Pine Avenue Somerville MA 34567', 'Sycamore Circle', 78901, 'Newton', 'Massachusetts', 6345, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('54321 Oakwood Lane Cambridge MA 54321', 'Willow Lane', 87654, 'Springfield', 'Massachusetts', 2095, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('34567 Pine Terrace Somerville MA 34567', 'Pine Court', 34567, 'Somerville', 'Massachusetts', 10810, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Elmwood Way Quincy MA 23456', 'Sycamore Circle', 34567, 'Quincy', 'Massachusetts', 10256, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Maplewood Lane Newton MA 78901', 'Oak Drive', 98765, 'Lynn', 'Massachusetts', 9514, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('34567 Pine Way Somerville MA 34567', 'Maple Street', 23456, 'Brockton', 'Massachusetts', 1033, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Elmwood Avenue Quincy MA 23456', 'Maple Street', 34567, 'Lynn', 'Massachusetts', 556, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('21098 Oakwood Way Lynn MA 21098', 'Aspen Place', 98765, 'Brockton', 'Massachusetts', 8180, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elm Drive Boston MA 12345', 'Elm Way', 34567, 'Quincy', 'Massachusetts', 12907, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('21098 Oak Avenue Lynn MA 21098', 'Oak Drive', 45678, 'Somerville', 'Massachusetts', 8567, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('98765 Pinewood Lane Worcester MA 98765', 'Oak Drive', 98765, 'Lynn', 'Massachusetts', 6523, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('45678 Birchwood Lane Lowell MA 45678', 'Birch Road', 45678, 'Cambridge', 'Massachusetts', 11754, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Maplewood Lane Newton MA 78901', 'Maple Street', 12345, 'Cambridge', 'Massachusetts', 7434, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('45678 Elmwood Court Lowell MA 45678', 'Oak Drive', 98765, 'Lowell', 'Massachusetts', 3335, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('67890 Elm Court Springfield MA 67890', 'Pine Court', 12345, 'Brockton', 'Massachusetts', 11810, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('67890 Oakwood Drive Springfield MA 67890', 'Elm Way', 21098, 'Cambridge', 'Massachusetts', 10563, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('34567 Pine Way Somerville MA 34567', 'Willow Lane', 54321, 'Quincy', 'Massachusetts', 10185, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Maple Drive Newton MA 78901', 'Birch Road', 54321, 'Newton', 'Massachusetts', 132, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('87654 Cedarwood Drive Brockton MA 87654', 'Oak Drive', 98765, 'Quincy', 'Massachusetts', 8795, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Maplewood Drive Newton MA 78901', 'Pine Court', 34567, 'Worcester', 'Massachusetts', 104, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('54321 Cedar Avenue Cambridge MA 54321', 'Pine Court', 98765, 'Somerville', 'Massachusetts', 8831, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Maple Drive Newton MA 78901', 'Cedar Avenue', 78901, 'Boston', 'Massachusetts', 2485, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('54321 Oak Lane Cambridge MA 54321', 'Aspen Place', 45678, 'Somerville', 'Massachusetts', 1256, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Birchwood Avenue Quincy MA 23456', 'Hickory Lane', 45678, 'Lowell', 'Massachusetts', 5187, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('54321 Oakwood Lane Cambridge MA 54321', 'Elm Way', 45678, 'Boston', 'Massachusetts', 11431, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Aspen Place Newton MA 78901', 'Pine Court', 54321, 'Worcester', 'Massachusetts', 12380, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('87654 Cedarwood Court Brockton MA 87654', 'Cedar Avenue', 98765, 'Lowell', 'Massachusetts', 4099, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('87654 Maplewood Drive Brockton MA 87654', 'Oak Drive', 23456, 'Newton', 'Massachusetts', 11973, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Birchwood Avenue Quincy MA 23456', 'Elm Way', 54321, 'Newton', 'Massachusetts', 7706, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('34567 Elm Court Somerville MA 34567', 'Oak Drive', 12345, 'Lynn', 'Massachusetts', 10712, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elmwood Lane Boston MA 12345', 'Hickory Lane', 12345, 'Somerville', 'Massachusetts', 5975, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elmwood Drive Boston MA 12345', 'Cedar Avenue', 98765, 'Cambridge', 'Massachusetts', 7353, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('87654 Cedarwood Lane Brockton MA 87654', 'Birch Road', 23456, 'Lowell', 'Massachusetts', 10645, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('78901 Maplewood Drive Newton MA 78901', 'Oak Drive', 54321, 'Brockton', 'Massachusetts', 12986, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elmwood Lane Boston MA 12345', 'Sycamore Circle', 12345, 'Quincy', 'Massachusetts', 6153, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('87654 Cedar Lane Brockton MA 87654', 'Pine Court', 45678, 'Brockton', 'Massachusetts', 7869, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('45678 Cedar Lane Lowell MA 45678', 'Willow Lane', 54321, 'Cambridge', 'Massachusetts', 12918, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Birch Avenue Quincy MA 23456', 'Elm Way', 98765, 'Springfield', 'Massachusetts', 12008, 'short'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('34567 Pine Avenue Somerville MA 34567', 'Elm Way', 54321, 'Lowell', 'Massachusetts', 489, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('45678 Cedarwood Lane Lowell MA 45678', 'Birch Road', 23456, 'Newton', 'Massachusetts', 1451, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('21098 Oakwood Lane Lynn MA 21098', 'Pine Court', 23456, 'Lowell', 'Massachusetts', 4635, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('67890 Elmwood Avenue Springfield MA 67890', 'Sycamore Circle', 67890, 'Brockton', 'Massachusetts', 10771, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('12345 Elmwood Drive Boston MA 12345', 'Pine Court', 87654, 'Worcester', 'Massachusetts', 5650, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('67890 Elmwood Lane Springfield MA 67890', 'Pine Court', 21098, 'Lowell', 'Massachusetts', 8704, 'long'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Elmwood Lane Quincy MA 23456', 'Pine Court', 87654, 'Boston', 'Massachusetts', 2753, 'medium'); +insert into Destination (Address , Street, Zipcode, City, State, Distance, Proximity) values ('23456 Birchwood Avenue Quincy MA 23456', 'Sycamore Circle', 54321, 'Somerville', 'Massachusetts', 3536, 'medium'); + +/* Destination_to_Transportation */ + +insert into Destination_to_Transportation (TransportationID, Address) values ('294', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('74', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('114', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('353', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('342', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('876', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('984', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('750', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('756', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('59', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('558', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('814', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('113', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('316', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('954', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('857', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('528', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('997', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('220', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('843', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('837', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('291', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('990', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('237', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('221', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('198', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('218', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('885', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('724', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('659', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('860', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('726', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('378', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('234', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('96', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('598', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('443', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('701', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('574', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('993', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('418', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('516', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('874', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('430', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('931', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('212', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('7', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('61', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('896', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('758', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('42', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('943', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('792', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('132', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('877', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('788', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('928', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('487', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('550', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('620', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('847', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('631', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('811', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('626', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('974', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('35', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('365', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('892', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('775', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('203', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('840', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('741', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('559', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('323', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('176', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('966', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('228', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('249', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('92', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('439', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('65', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('596', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('362', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('328', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('305', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('267', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('79', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('556', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('819', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('569', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('91', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('356', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('858', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('547', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('423', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('747', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('179', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('731', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('100', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('108', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('521', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('209', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('872', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('145', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('578', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('408', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('248', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('85', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('310', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('647', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('850', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('397', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('269', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('777', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('196', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('11', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('338', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('159', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('864', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('575', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('869', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('89', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('388', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('780', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('417', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('999', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('73', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('88', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('118', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('293', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('821', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('478', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('314', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('832', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('404', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('14', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('962', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('542', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('501', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('588', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('965', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('664', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('907', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('689', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('914', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('441', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('940', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('543', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('62', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('121', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('602', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('532', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('856', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('26', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('399', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('734', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('649', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('634', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('891', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('386', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('705', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('629', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('358', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('989', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('633', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('742', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('457', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('98', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('785', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('259', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('214', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('270', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('421', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('752', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('137', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('116', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('905', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('992', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('678', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('327', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('55', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('169', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('335', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('957', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('219', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('117', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('751', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('235', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('104', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('652', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('149', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('786', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('706', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('241', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('466', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('424', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('923', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('981', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('133', null); +insert into Destination_to_Transportation (TransportationID, Address) values ('366', null); + +/* GroupAct */ + +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (1, 1, 47, '12', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (2, 2, 248, '25', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (3, 3, 90, '6', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (4, 6, 386, '26', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (5, 6, 173, '1', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (6, 9, 305, '24', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (7, 4, 246, '33', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (8, 6, 104, '2', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (9, 3, 99, '32', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (10, 3, 432, '7', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (11, 4, 191, '13', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (12, 2, 73, '28', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (13, 10, 233, '14', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (14, 9, 178, '18', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (15, 7, 120, '23', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (16, 8, 224, '16', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (17, 7, 125, '22', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (18, 8, 122, '20', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (19, 3, 399, '11', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (20, 7, 473, '3', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (21, 2, 222, '17', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (22, 3, 120, '8', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (23, 4, 428, '5', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (24, 5, 244, '34', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (25, 8, 206, '15', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (26, 6, 98, '35', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (27, 10, 24, '10', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (28, 5, 407, '31', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (29, 4, 189, '27', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (30, 3, 209, '29', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (31, 3, 201, '19', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (32, 8, 6, '9', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (33, 8, 289, '21', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (34, 1, 120, '30', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (35, 10, 417, '4', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (36, 5, 332, '22', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (37, 1, 358, '24', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (38, 3, 264, '14', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (39, 9, 157, '10', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (40, 8, 50, '32', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (41, 8, 424, '21', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (42, 4, 193, '7', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (43, 4, 168, '15', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (44, 2, 496, '4', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (45, 4, 291, '28', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (46, 1, 21, '11', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (47, 3, 149, '12', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (48, 1, 24, '34', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (49, 4, 476, '6', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (50, 7, 54, '26', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (51, 3, 315, '9', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (52, 3, 305, '20', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (53, 1, 106, '16', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (54, 9, 309, '18', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (55, 9, 265, '2', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (56, 9, 462, '23', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (57, 9, 277, '29', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (58, 7, 22, '17', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (59, 4, 286, '25', '8'); +insert into GroupAct (Group_Type_ID, Number_of_Friends, Group_Budget, UserID, ActivityID) values (60, 8, 235, '5', '8'); + +/* Group_Meeting */ +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:18 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:09 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:07 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:44 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:08 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:02 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:30 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:33 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:40 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:34 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:17 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:54 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:21 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:19 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:04 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:16 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:08 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:38 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:46 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:07 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:01 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:59 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:24 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:37 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:27 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:42 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:26 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:21 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:46 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:18 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:39 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:51 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:54 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:44 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:48 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:39 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:00 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:56 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:41 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:46 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:01 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:48 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:27 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:08 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:46 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:35 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:07 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:24 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:27 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:21 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:39 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:06 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:15 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:50 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:30 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:09 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:42 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:07 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:20 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:41 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:56 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:53 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:58 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:11 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:30 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:06 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:06 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:02 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:27 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:00 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:02 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:31 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:07 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:31 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:30 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:28 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:50 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:50 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:45 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:24 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:55 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:55 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:38 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:39 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:08 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:52 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:43 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:05 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:39 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:17 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:25 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:18 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:18 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:46 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:57 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:22 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:30 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:36 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:20 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:27 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:27 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:04 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:41 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:29 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:36 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:58 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:03 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:29 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:35 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:00 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:15 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:01 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:04 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:21 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:28 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:48 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:27 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:51 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:31 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:00 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:10 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:25 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:07 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:03 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:38 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:41 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:09 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:59 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:02 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:29 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:02 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:45 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:00 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:33 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:46 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:55 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:02 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:03 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:24 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:03 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:08 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:33 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:35 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:01 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:05 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:25 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:42 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:26 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:10 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:17 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:25 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:42 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:34 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:23 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:17 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:00 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:52 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:50 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:31 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:55 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:29 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:14 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:27 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:50 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:07 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:41 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:25 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:42 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:05 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:04 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:08 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:06 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:58 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:35 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:50 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:31 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:01 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:21 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:39 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('3:12 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:53 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:01 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:29 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:17 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('5:54 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:50 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:09 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('4:36 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('9:09 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('6:27 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:39 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:12 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('7:17 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:26 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('10:05 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('12:05 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('1:14 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('8:55 AM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('11:05 PM', null); +insert into Group_Meeting (Meeting_Time, Group_Type_ID) values ('2:27 PM', null); + +/* Shopping */ + +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (1, 'Town Center Plaza', '$$$$', 'small', 2, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (2, 'City Plaza', '$$$$$', 'big', 4, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (3, 'Metropolitan Mall', '$$$$', 'large', 2, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (4, 'City Plaza', '$$', 'large', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (5, 'Spring Valley Shopping Centre', '$$$$$', 'big', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (6, 'Fountain Square', '$$$', 'large', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (7, 'Central Plaza', '$$$$$', 'large', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (8, 'Fashion Square', '$$$$$', 'small', 2, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (9, 'Emerald City Mall', '$$$', 'big', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (10, 'Magnolia Mall', '$$', 'small', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (11, 'Crystal Gardens Mall', '$$$$', 'large', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (12, 'Fountain Square', '$$$$$', 'large', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (13, 'Meadowbrook Mall', '$$$$', 'small', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (14, 'Grand Arcade', '$$$', 'big', 4, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (15, 'Fashion Square', '$$$$$', 'large', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (16, 'Pacific Place', '$', 'large', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (17, 'Lakeside Shopping Centre', '$$', 'large', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (18, 'Crystal Gardens Mall', '$$$', 'large', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (19, 'Maple Grove Mall', '$$$', 'big', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (20, 'Crystal Gardens Mall', '$$$$', 'large', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (21, 'Palm Springs Mall', '$', 'large', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (22, 'Oasis Center', '$', 'large', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (23, 'Maple Grove Mall', '$$$$', 'big', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (24, 'Oasis Center', '$$', 'small', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (25, 'City Plaza', '$', 'small', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (26, 'Galaxy Mall', '$', 'big', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (27, 'Palm Springs Mall', '$$', 'big', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (28, 'Fashion Square', '$$$$$', 'large', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (29, 'Southpoint Mall', '$$', 'large', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (30, 'Lakeside Shopping Centre', '$$', 'big', 4, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (31, 'Fountain Square', '$', 'big', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (32, 'Paradise Valley Mall', '$$$$', 'big', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (33, 'Emerald City Mall', '$', 'big', 1, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (34, 'Summit Shopping Center', '$', 'large', 5, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (35, 'Crystal Gardens Mall', '$$', 'small', 4, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (36, 'Sunflower Plaza', '$$', 'big', 3, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (37, 'Oakwood Mall', '$$$$', 'small', 4, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (38, 'Central Plaza', '$', 'small', 4, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (39, 'Capital Mall', '$$$$$', 'small', 2, '4'); +insert into Shopping (ShoppingID, Name, PriceTag, Shopping_Area_Size, OverallRating, ActivityTypeID) values (40, 'Silver Lake Mall', '$$', 'large', 3, '4'); + +/* Shopping_Location */ +insert into Shopping_Location (Location, ShoppingID) values ('6868 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('6767 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('18888 Hawthorn Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('8888 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('2121 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('202 Maple Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('12424 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('18484 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('9191 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('14040 Spruce Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('3030 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('16868 Spruce Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('13434 Birch Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('13838 Pine Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('5454 Walnut Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('11919 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('1313 Spruce Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('15252 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('11818 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('1212 Walnut Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('1414 Ash Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('5555 Spruce Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('16868 Spruce Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('19898 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('2323 Oak Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('15757 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('6363 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('789 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('13939 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('17878 Oak Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('1717 Poplar Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('19595 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('3030 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('1818 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('1414 Ash Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('4444 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('8080 Maple Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('4949 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('16161 Cedar Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('17171 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('5959 Poplar Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('16565 Maple Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('4646 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('5757 Willow Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('7878 Elm Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('11515 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('3232 Sycamore Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('3838 Maple Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('19898 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('18686 Poplar Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('2626 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('8888 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('18888 Hawthorn Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('12929 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('16565 Maple Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('19999 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('1919 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('16666 Pine Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('3131 Poplar Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('15050 Oak Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('2525 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('3737 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('14747 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('8686 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('5959 Poplar Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('9797 Spruce Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('9292 Elm Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('5353 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('8787 Poplar Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('5353 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('18787 Sycamore Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('13838 Pine Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('333 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('10606 Birch Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('13131 Sycamore Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('666 Elm Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('1313 Spruce Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('606 Spruce Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('8989 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('17373 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('1717 Poplar Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('5454 Walnut Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('19898 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('13636 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('6868 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('13636 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('18383 Ash Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('6969 Spruce Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('111 Poplar Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('7474 Sycamore Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('5252 Maple Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('5454 Walnut Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('5050 Elm Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('6161 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('14747 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('7979 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('16767 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('12424 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('8686 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('13333 Cedar Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('1515 Willow Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('505 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('16161 Cedar Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('3939 Pine Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('7171 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('9494 Maple Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('2525 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('123 Main Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('5353 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('9898 Ash Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('3333 Hawthorn Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('14646 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('19292 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('777 Oak Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('8686 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('8686 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('11919 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('17373 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('505 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('11313 Ash Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('12020 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('2020 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('13232 Hawthorn Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('18181 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('808 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('16464 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('5959 Poplar Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('16363 Elm Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('10707 Elm Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('888 Maple Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('13636 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('2929 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('101 Pine Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('4343 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('5656 Ash Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('18181 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('11717 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('6262 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('3333 Hawthorn Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('6767 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('505 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('18383 Ash Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('555 Birch Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('7979 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('6767 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('15757 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('4242 Ash Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('14848 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('14747 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('333 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('19393 Maple Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('4444 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('16565 Maple Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('303 Cedar Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('13838 Pine Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('12323 Maple Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('19696 Spruce Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('15050 Oak Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('7878 Elm Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('19292 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('6060 Sycamore Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('6969 Spruce Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('6464 Elm Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('3131 Poplar Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('18888 Hawthorn Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('18686 Poplar Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('19595 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('7878 Elm Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('17979 Maple Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('5555 Spruce Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('3737 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('8383 Spruce Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('101 Pine Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('10101 Chestnut Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('14141 Ash Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('1515 Willow Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('9696 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('5555 Spruce Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('9797 Spruce Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('18181 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('4949 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('8080 Maple Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('12626 Spruce Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('12828 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('808 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('6565 Oak Street', null); +insert into Shopping_Location (Location, ShoppingID) values ('15858 Poplar Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('1313 Spruce Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('6868 Walnut Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('6666 Maple Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('5353 Pine Court', null); +insert into Shopping_Location (Location, ShoppingID) values ('13535 Elm Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('3737 Oak Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('17070 Willow Drive', null); +insert into Shopping_Location (Location, ShoppingID) values ('4040 Walnut Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('9191 Birch Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('16666 Pine Road', null); +insert into Shopping_Location (Location, ShoppingID) values ('7070 Ash Lane', null); +insert into Shopping_Location (Location, ShoppingID) values ('4747 Hawthorn Avenue', null); +insert into Shopping_Location (Location, ShoppingID) values ('16969 Ash Street', null); From 09fd222bfc8ccb049c5d00e15516d5277b7db966 Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:48:43 -0400 Subject: [PATCH 31/33] MADE CHANGES TO USER --- db/phasetwo.sql | 1 + flask-app/src/User/user.py | 49 +++++++++++++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/db/phasetwo.sql b/db/phasetwo.sql index 9ed50a98..dad025ff 100644 --- a/db/phasetwo.sql +++ b/db/phasetwo.sql @@ -201,6 +201,7 @@ CREATE TABLE MusicFestivals( CrowdSize INT, OverallRating INT, PriceTag VARCHAR(5), + Artists VARCHAR(255), ActivityTypeID INT, CONSTRAINT fk_20 FOREIGN KEY (ActivityTypeID) REFERENCES Activity(ActivityID) diff --git a/flask-app/src/User/user.py b/flask-app/src/User/user.py index da60fd7d..480aa867 100644 --- a/flask-app/src/User/user.py +++ b/flask-app/src/User/user.py @@ -5,6 +5,7 @@ user_blueprint = Blueprint('user', __name__) # Get name and budget from user + @user_blueprint.route('/user', methods=['GET']) def get_user_info(): cursor = db.get_db().cursor() @@ -19,10 +20,11 @@ def get_user_info(): the_response.mimetype = 'application/json' return the_response -# Get details for specific user by UserID -@user_blueprint.route('/user/', methods=['GET']) +#Get details for specific user by UserID +@user_blueprint.route('/user/', methods=['GET']) def get_user_by_id(UserID): cursor = db.get_db().cursor() + print("checking to see") cursor.execute('SELECT * FROM User WHERE UserID = %s', (UserID,)) row_headers = [x[0] for x in cursor.description] json_data = [] @@ -50,16 +52,16 @@ def update_user(): DietaryRestrictions = info['DietaryRestrictions'] SubscriptionPlan = info['SubscriptionPlan'] PaymentID = info['PaymentID'] - Paid_Free = info['Paid/Free'] + Balance = info['Balance'] PaymentMethod = info['PaymentMethod'] query = ''' UPDATE User SET Name = %s, Age = %s, Occupation = %s, Hometown = %s, Budget = %s, Dislikes = %s, Likes = %s, Gender = %s, DietaryRestrictions = %s, SubscriptionPlan = %s, PaymentID = %s, - Paid_Free = %s, PaymentMethod = %s WHERE UserID = %s + Balance = %s, PaymentMethod = %s WHERE UserID = %s ''' data = (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, - SubscriptionPlan, PaymentID, Paid_Free, PaymentMethod, UserID) + SubscriptionPlan, PaymentID, Balance, PaymentMethod, UserID) cursor = db.get_db().cursor() cursor.execute(query, data) @@ -80,4 +82,39 @@ def delete_user_likes(UserID): cursor = db.get_db().cursor() cursor.execute('UPDATE User SET Likes = NULL WHERE UserID = %s', (UserID,)) db.get_db().commit() - return 'User likes deleted.', 200 \ No newline at end of file + return 'User likes deleted.', 200 +#post new user +@app.route('/users', methods=['POST']) +def create_user(): + data = request.get_json() + try: + name = data['Name'] + age = data['Age'] + occupation = data['Occupation'] + hometown = data['Hometown'] + budget = data['Budget'] + dislikes = data['Dislikes'] + likes = data['Likes'] + gender = data['Gender'] + dietary_restrictions = data['Dietary_restrictions'] + subscription_plan = data['Subscription_plan'] + payment_id = data['Payment_id'] + Balance = data['Balance'] + payment_method = data['Payment_method'] + + cursor = db.cursor() + + query = ''' + INSERT INTO User (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, SubscriptionPlan, PaymentID, Balance, PaymentMethod) + VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) + ''' + + cursor.execute(query, (name, age, occupation, hometown, budget, dislikes, likes, gender, dietary_restrictions, subscription_plan, payment_id, Balance, payment_method)) + db.commit() + + return jsonify({"message": "User created successfully."}), 201 + + except KeyError as e: + return jsonify({"error": f"Missing field: {e}"}), 400 + except Exception as e: + return jsonify({"error": "An error occurred creating the user."}), 500 From ca5cc5660eed1cb494116818072d3ae8856e1b6e Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:04:30 -0400 Subject: [PATCH 32/33] new post for user plz add --- db/sample_data.sql | 1402 +++++++++++++++++++++++++++++++++++- flask-app/src/User/user.py | 28 +- 2 files changed, 1415 insertions(+), 15 deletions(-) diff --git a/db/sample_data.sql b/db/sample_data.sql index f366e120..ee27b62e 100644 --- a/db/sample_data.sql +++ b/db/sample_data.sql @@ -14,7 +14,7 @@ insert into Activity (ActivityID) values (7); insert into Activity (ActivityID) values (8); /* User */ -insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (1, 4, 'Constancy Hargess', 'baker', 'Female', '321 Maple Dr Riverdale GA', 'funny movies', 'adventure movies', 'none', 1, 200, 'Apple Pay', 203); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (1, 4, 'Timothee Chalamet', 'student', 'male', '321 Maple Dr Riverdale GA', 'funny movies', 'adventure movies', 'none', 1, 200, 'Apple Pay', 203); insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (2, 26, 'Cherlyn Bernolet', 'unemployed', 'Female', '321 Walnut Ave Springfield MO', 'adventure movies', 'quiet areas', 'vegan', 2, 187, 'Credit Card', 227); insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (3, 32, 'Stephanus Bonds', 'student', 'Male', '789 Ash Dr Cincinnati OH', 'good study areas', 'good study areas', 'none', 3, 400, 'Debit Card', 222); insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (4, 47, 'Bennie Bollon', 'baker', 'Male', '321 Oak St Seattle WA', 'loud areas', 'funny movies', 'gluten free', 4, 425, 'Paypal', 80); @@ -1785,3 +1785,1403 @@ insert into Shopping_Location (Location, ShoppingID) values ('16666 Pine Road', insert into Shopping_Location (Location, ShoppingID) values ('7070 Ash Lane', null); insert into Shopping_Location (Location, ShoppingID) values ('4747 Hawthorn Avenue', null); insert into Shopping_Location (Location, ShoppingID) values ('16969 Ash Street', null); + +/* ArtMusemLocation */ +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('69 Oakwood Avenue Revere MA 02151', '24'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('16 Chestnut Avenue Holyoke MA 01040', '3'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Maplewood Drive Salem MA 01970', '31'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Riverfront Street Quincy MA 02169', '30'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Willow Street Somerville MA 02143', '8'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('30 Elmwood Avenue Woburn MA 01801', '17'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('12 Springdale Street Gloucester MA 01930', '14'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('45 Cedar Road Quincy MA 02169', '15'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('17 Prospect Avenue Agawam MA 01001', '9'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('1 Spring Street Gloucester MA 01930', '16'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Willow Street Somerville MA 02143', '11'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('10 Oakwood Terrace Medford MA 02155', '20'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('15 Birchwood Drive Greenfield MA 01301', '19'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('60 Elmwood Terrace Belmont MA 02478', '29'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('1 Spring Street Gloucester MA 01930', '34'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('8 Forest Street Framingham MA 01701', '7'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Malden MA 02148', '32'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('13 Walnut Street Westfield MA 01085', '35'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('66 Chestnut Street Fall River MA 02720', '23'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Washington Street Haverhill MA 01830', '27'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('36 Riverside Drive Chicopee MA 01013', '38'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('36 Highland Drive Newton MA 02458', '18'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('11 Hillcrest Avenue Fall River MA 02720', '2'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('10 Oakwood Terrace Medford MA 02155', '12'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('15 Birchwood Drive Greenfield MA 01301', '21'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Elm Street Leominster MA 01453', '39'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('101 Oak Lane Cambridge MA 02138', '5'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('17 Prospect Avenue Agawam MA 01001', '28'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Riverfront Street Fitchburg MA 01420', '40'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('15 Birchwood Drive Greenfield MA 01301', '13'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Brookside Lane Westfield MA 01085', '4'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('10 Oakwood Terrace Medford MA 02155', '26'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Lakeview Drive Barnstable MA 02630', '10'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Hillside Drive Northampton MA 01060', '25'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Elm Street Boston MA 02108', '36'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Elm Lane Worcester MA 01608', '22'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('44 Riverside Road Braintree MA 02184', '6'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('8 Forest Street Framingham MA 01701', '37'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Brookside Lane Westfield MA 01085', '1'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('1 Spring Street Gloucester MA 01930', '33'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('44 Riverside Road Braintree MA 02184', '32'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Parkview Drive Wellesley MA 02482', '23'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('13 Walnut Street Westfield MA 01085', '36'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('17 Oakwood Lane Medford MA 02155', '10'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('42 Highland Avenue Brookline MA 02445', '6'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Riverside Drive Malden MA 02148', '3'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Washington Street Haverhill MA 01830', '31'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('40 Laurel Street Amesbury MA 01913', '27'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('36 Highland Drive Newton MA 02458', '20'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('13 Walnut Street Westfield MA 01085', '40'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Central Avenue Peabody MA 01960', '11'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('11 Hillcrest Avenue Fall River MA 02720', '26'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('17 Prospect Avenue Agawam MA 01001', '12'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Brookside Road Melrose MA 02176', '5'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Brookside Road Melrose MA 02176', '24'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('18 Maple Lane Franklin MA 02038', '19'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Newton MA 02458', '33'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Newton MA 02458', '39'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Elm Lane Worcester MA 01608', '29'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Elm Street Leominster MA 01453', '34'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Hillside Drive Northampton MA 01060', '8'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('101 Oak Lane Cambridge MA 02138', '9'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('12 Lincoln Avenue Taunton MA 02780', '38'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Brookside Lane Westfield MA 01085', '13'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Malden MA 02148', '7'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('17 Prospect Avenue Agawam MA 01001', '4'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('28 Sunset Road Lowell MA 01851', '18'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('44 Riverside Road Braintree MA 02184', '2'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('10 Cedar Lane West Springfield MA 01089', '14'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('90 Hillside Drive Waltham MA 02451', '21'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Hillside Drive Northampton MA 01060', '1'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Elm Lane Worcester MA 01608', '25'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Malden MA 02148', '22'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('66 Chestnut Street Fall River MA 02720', '37'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('42 Spring Street Brockton MA 02301', '16'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('55 River Drive Lowell MA 01851', '35'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Oakhurst Road Gardner MA 01440', '15'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('5 Forest Avenue Lexington MA 02420', '28'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Oakhurst Road Gardner MA 01440', '30'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('11 Hillcrest Avenue Fall River MA 02720', '17'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Elm Street Boston MA 02108', '2'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Elm Street Leominster MA 01453', '25'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Brookside Lane Westfield MA 01085', '14'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Brookside Lane Westfield MA 01085', '3'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Riverside Drive Malden MA 02148', '37'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('3 Elmwood Drive Salem MA 01970', '38'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('42 Spring Street Brockton MA 02301', '33'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('8 Forest Street Framingham MA 01701', '22'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('66 Chestnut Street Fall River MA 02720', '35'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('10 Cedar Lane West Springfield MA 01089', '4'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('3 Elmwood Drive Salem MA 01970', '26'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Riverside Drive Malden MA 02148', '8'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Grove Street Brockton MA 02301', '30'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('77 Union Street Chelsea MA 02150', '32'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('66 Chestnut Street Fall River MA 02720', '18'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('36 Riverside Drive Chicopee MA 01013', '23'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('101 Oak Lane Cambridge MA 02138', '34'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Cedar Road Brockton MA 02301', '36'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Riverfront Street Fitchburg MA 01420', '7'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Brookside Lane Westfield MA 01085', '12'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Elm Lane Worcester MA 01608', '40'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('11 Hillcrest Avenue Fall River MA 02720', '20'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('4 Prospect Street Salem MA 01970', '24'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('17 Prospect Avenue Agawam MA 01001', '15'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Hillside Drive Northampton MA 01060', '16'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Central Avenue Peabody MA 01960', '1'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('101 Oak Lane Cambridge MA 02138', '29'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('66 Chestnut Street Fall River MA 02720', '11'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('3 Elmwood Drive Salem MA 01970', '21'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('31 Pineview Terrace Pittsfield MA 01201', '28'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Newton MA 02458', '6'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('28 Park Avenue Lynn MA 01905', '17'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('60 Elmwood Terrace Belmont MA 02478', '27'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('17 Oakwood Lane Medford MA 02155', '39'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Parkview Drive Wellesley MA 02482', '13'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Brookside Road Melrose MA 02176', '19'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Grove Street Brockton MA 02301', '5'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Elm Street Boston MA 02108', '31'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Parkview Drive Wellesley MA 02482', '9'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Brookside Road Melrose MA 02176', '10'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('12 Springdale Street Gloucester MA 01930', '19'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Hillside Drive Northampton MA 01060', '15'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('5 Forest Avenue Lexington MA 02420', '24'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Elm Street North Adams MA 01247', '28'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('31 Pineview Terrace Pittsfield MA 01201', '14'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('36 Highland Drive Newton MA 02458', '2'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('3 Elmwood Drive Salem MA 01970', '12'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Pine Avenue Worcester MA 01608', '38'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('44 Riverside Road Braintree MA 02184', '27'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('55 Highland Avenue Attleboro MA 02703', '18'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('8 Riverside Drive Taunton MA 02780', '4'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Oak Hill Drive Winchester MA 01890', '3'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('77 Union Street Chelsea MA 02150', '13'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('8 Forest Street Framingham MA 01701', '34'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Willow Street Somerville MA 02143', '29'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Lakeview Drive Barnstable MA 02630', '20'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('42 Spring Street Brockton MA 02301', '21'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('12 Lincoln Avenue Taunton MA 02780', '39'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('60 Elmwood Terrace Belmont MA 02478', '26'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('55 Forest Street Lynn MA 01905', '37'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('28 Park Avenue Lynn MA 01905', '16'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Oak Hill Drive Winchester MA 01890', '5'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('10 Oakwood Terrace Medford MA 02155', '10'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Willow Street Somerville MA 02143', '30'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Riverside Drive Malden MA 02148', '6'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Cedar Road Brockton MA 02301', '23'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Brookside Road Melrose MA 02176', '32'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Oak Hill Drive Winchester MA 01890', '25'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('28 Sunset Road Lowell MA 01851', '31'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('40 Laurel Street Amesbury MA 01913', '1'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('11 Maplewood Road Everett MA 02149', '7'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Newton MA 02458', '9'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('10 Oakwood Terrace Medford MA 02155', '33'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Washington Street Haverhill MA 01830', '17'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Central Avenue Peabody MA 01960', '35'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('4 Prospect Street Salem MA 01970', '40'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('55 Highland Avenue Attleboro MA 02703', '22'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('88 Prospect Avenue Cambridge MA 02138', '11'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Oakhurst Road Gardner MA 01440', '8'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('60 Elmwood Terrace Belmont MA 02478', '36'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Riverfront Street Fitchburg MA 01420', '4'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Oak Hill Drive Winchester MA 01890', '10'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('28 Sunset Road Lowell MA 01851', '18'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('40 Laurel Street Amesbury MA 01913', '37'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('42 Highland Avenue Brookline MA 02445', '33'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Brookside Lane Westfield MA 01085', '7'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('30 Elmwood Avenue Woburn MA 01801', '22'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Washington Street Haverhill MA 01830', '11'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Park Avenue Lynn MA 01905', '23'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Parkview Drive Wellesley MA 02482', '30'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('55 Highland Avenue Attleboro MA 02703', '28'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('44 Riverside Road Braintree MA 02184', '2'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('42 Highland Avenue Brookline MA 02445', '27'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Elm Street Boston MA 02108', '9'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('55 Forest Street Lynn MA 01905', '31'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('8 Glenwood Avenue Easthampton MA 01027', '21'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Parkview Drive Wellesley MA 02482', '35'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Riverside Drive Malden MA 02148', '12'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('27 Riverside Drive Malden MA 02148', '1'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Sunset Boulevard Newton MA 02458', '20'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('4 Prospect Street Salem MA 01970', '5'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Elm Street Boston MA 02108', '19'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('6 Park Avenue Lynn MA 01905', '40'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('25 Washington Street Haverhill MA 01830', '3'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('101 Oak Lane Cambridge MA 02138', '8'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Maplewood Drive Salem MA 01970', '32'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('11 Hillcrest Avenue Fall River MA 02720', '16'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Maple Street Springfield MA 01113', '13'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('50 Elm Street North Adams MA 01247', '26'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('28 Park Avenue Lynn MA 01905', '39'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('8 Riverside Drive Taunton MA 02780', '14'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('19 Lakeview Drive Barnstable MA 02630', '38'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('22 Maple Street Springfield MA 01113', '6'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('45 Cedar Road Quincy MA 02169', '29'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('15 Birchwood Drive Greenfield MA 01301', '36'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('16 Chestnut Avenue Holyoke MA 01040', '17'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('88 Birch Lane Newton MA 02458', '24'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('7 Brookside Road Melrose MA 02176', '34'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('33 Elm Lane Worcester MA 01608', '25'); +insert into ArtMuseumsLocation (Location , ArtMuseumID) values ('14 Elm Street Boston MA 02108', '15'); + +/* ArtsMuseums */ +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (1, 'Baroque Art Museum', 'Baroque', 0, '$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (2, 'Cubist Art Museum', 'Romantic', 1, '$$$$$', 1, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (3, 'Contemporary ArtType Museum', 'Post-Impressionist', 1, '$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (4, 'Art Deco Art Museum', 'Contemporary', 0, '$$$$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (5, 'Romantic Art Museum', 'Baroque', 1, '$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (6, 'Abstract Expressionist ArtType Museum', 'Abstract', 0, '$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (7, 'Art Deco ArtType Museum', 'Romantic', 1, '$$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (8, 'Cubist ArtType Museum', 'Romantic', 0, '$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (9, 'Conceptual Art Museum', 'Rococo', 0, '$$$$', 3, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (10, 'Gothic Art Museum', 'Impressionist', 0, '$$$', 1, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (11, 'Minimalist Art Museum', 'Dadaist', 1, '$', 3, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (12, 'Fauvist Art Museum', 'Gothic', 0, '$$$$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (13, 'Fauvist Art Museum', 'Art Deco', 1, '$$$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (14, 'Photorealist ArtType Museum', 'Modernist', 0, '$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (15, 'Art Deco ArtType Museum', 'Romantic', 1, '$$$$$', 2, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (16, 'Symbolist Art Museum', 'Neoclassical', 1, '$$$$$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (17, 'Surrealist Art Museum', 'Abstract Expressionist', 0, '$$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (18, 'Rococo ArtType Museum', 'Impressionist', 1, '$$$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (19, 'Fauvist Art Museum', 'Post-Impressionist', 0, '$$$$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (20, 'Photorealist Art Museum', 'Pop', 1, '$$', 1, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (21, 'Modernist ArtType Museum', 'Gothic', 0, '$$$$', 1, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (22, 'Pre-Raphaelite ArtType Museum', 'Postmodernist', 1, '$$$$$', 2, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (23, 'Contemporary ArtType Museum', 'Pop', 1, '$$$$$', 3, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (24, 'Cubist ArtType Museum', 'Impressionist', 0, '$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (25, 'Photorealist ArtType Museum', 'Impressionist', 0, '$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (26, 'Cubist Art Museum', 'Baroque', 0, '$$$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (27, 'Art Deco Art Museum', 'Romantic', 0, '$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (28, 'Baroque ArtType Museum', 'Renaissance', 1, '$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (29, 'Gothic Art Museum', 'Postmodernist', 0, '$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (30, 'Post-Impressionist ArtType Museum', 'Rococo', 0, '$$$$$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (31, 'Classical Art Museum', 'Gothic', 0, '$', 2, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (32, 'Photorealist ArtType Museum', 'Post-Impressionist', 1, '$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (33, 'Modernist ArtType Museum', 'Renaissance', 0, '$', 5, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (34, 'Postmodernist Art Museum', 'Classical', 0, '$$', 2, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (35, 'Abstract ArtType Museum', 'Cubist', 1, '$$', 2, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (36, 'Classical Art Museum', 'Postmodernist', 1, '$$$', 1, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (37, 'Expressionist Art Museum', 'Abstract', 1, '$', 4, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (38, 'Contemporary ArtType Museum', 'Photorealist', 0, '$$', 1, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (39, 'Symbolist ArtType Museum', 'Postmodernist', 1, '$$$', 3, '6'); +insert into ArtMuseums (ArtMuseumID, Name, ArtType, CollegeStudents, PriceTag, OverallRating, ActivityTypeID) values (40, 'Modernist ArtType Museum', 'Baroque', 0, '$', 2, '6'); + +/* Outdoor Activity */ +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (1, 'Cross-country Skiing', 'hard', 'medium', 'beginner', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (2, 'Hot Air Ballooning', 'hard', 'low', 'beginner', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (3, 'Paragliding', 'hard', 'high', 'intermediate', '$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (4, 'Scuba Diving', 'hard', 'medium', 'intermediate', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (5, 'Picnicking', 'medium', 'low', 'advanced', '$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (6, 'Picnicking', 'medium', 'low', 'beginner', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (7, 'Rock Climbing', 'easy', 'medium', 'beginner', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (8, 'Ice Climbing', 'hard', 'low', 'intermediate', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (9, 'Ice Climbing', 'easy', 'medium', 'beginner', '$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (10, 'Kiteboarding', 'easy', 'high', 'beginner', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (11, 'Camping', 'medium', 'high', 'beginner', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (12, 'Hang Gliding', 'medium', 'high', 'advanced', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (13, 'Wakeboarding', 'hard', 'low', 'beginner', '$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (14, 'Canoeing', 'hard', 'medium', 'advanced', '$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (15, 'Golfing', 'easy', 'high', 'beginner', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (16, 'Zip Lining', 'medium', 'low', 'advanced', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (17, 'Hang Gliding', 'medium', 'medium', 'intermediate', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (18, 'Rock Climbing', 'medium', 'medium', 'intermediate', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (19, 'Bungee Jumping', 'easy', 'low', 'beginner', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (20, 'Kayaking', 'easy', 'high', 'advanced', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (21, 'Rock Climbing', 'easy', 'medium', 'advanced', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (22, 'Windsurfing', 'easy', 'high', 'intermediate', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (23, 'Snowshoeing', 'hard', 'low', 'advanced', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (24, 'Tubing', 'medium', 'low', 'beginner', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (25, 'Snowshoeing', 'medium', 'medium', 'advanced', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (26, 'Wakeboarding', 'medium', 'low', 'beginner', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (27, 'Wakeboarding', 'easy', 'medium', 'beginner', '$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (28, 'Ice Climbing', 'hard', 'high', 'intermediate', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (29, 'Cycling', 'hard', 'high', 'intermediate', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (30, 'Cycling', 'medium', 'high', 'beginner', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (31, 'Sailing', 'hard', 'high', 'beginner', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (32, 'Wildlife Viewing', 'hard', 'medium', 'beginner', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (33, 'Trail Running', 'hard', 'medium', 'intermediate', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (34, 'Kiteboarding', 'easy', 'high', 'intermediate', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (35, 'Paragliding', 'medium', 'medium', 'beginner', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (36, 'Camping', 'hard', 'low', 'advanced', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (37, 'Geocaching', 'medium', 'medium', 'beginner', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (38, 'Ice Skating', 'hard', 'high', 'beginner', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (39, 'Sledding', 'easy', 'high', 'advanced', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (40, 'Wakeboarding', 'easy', 'low', 'beginner', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (41, 'Canoeing', 'easy', 'high', 'intermediate', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (42, 'Rafting', 'hard', 'low', 'intermediate', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (43, 'Ice Skating', 'medium', 'low', 'beginner', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (44, 'Paintball', 'easy', 'medium', 'intermediate', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (45, 'Geocaching', 'easy', 'high', 'advanced', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (46, 'Hot Air Ballooning', 'easy', 'medium', 'intermediate', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (47, 'Ice Skating', 'easy', 'low', 'advanced', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (48, 'Paragliding', 'hard', 'low', 'beginner', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (49, 'Snow Tubing', 'hard', 'high', 'intermediate', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (50, 'Boating', 'easy', 'high', 'advanced', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (51, 'Snow Tubing', 'medium', 'high', 'advanced', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (52, 'Geocaching', 'hard', 'medium', 'advanced', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (53, 'Tubing', 'medium', 'medium', 'intermediate', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (54, 'Snorkeling', 'hard', 'medium', 'beginner', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (55, 'Sledding', 'hard', 'medium', 'intermediate', '$$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (56, 'Wakeboarding', 'medium', 'high', 'intermediate', '$$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (57, 'Hiking', 'easy', 'high', 'beginner', '$$$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (58, 'Scuba Diving', 'medium', 'low', 'advanced', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (59, 'Horseback Riding', 'easy', 'medium', 'intermediate', '$', '1'); +insert into Outdoor_Activity (OutdoorID, Name, Difficulty_level, Danger_level , Experience, PriceTag, ActivityTypeID) values (60, 'Paintball', 'hard', 'low', 'intermediate', '$$$', '1'); + +/* Outdoor_Activity_Location */ +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '79'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Greenfield MA 01301', '188'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '84'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '75'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '158'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '25'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '134'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '126'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '133'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '77'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '16'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '180'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '6'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '34'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '87'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '58'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '120'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '43'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Brookline MA 02445', '69'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Quincy MA 02169', '66'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '10'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '17'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '137'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '170'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '22'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '142'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '94'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '33'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '175'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '157'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '191'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '173'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 Highland Avenue Medford MA 02155', '182'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '149'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '154'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '111'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '19'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '59'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '89'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '67'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Boulevard Malden MA 02148', '32'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '141'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '8'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '136'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Boston MA 02108', '140'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 Highland Avenue Medford MA 02155', '162'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Boston MA 02108', '85'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Brookline MA 02445', '72'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '144'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '96'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '12'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '35'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Hillcrest Drive Waltham MA 02451', '29'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '5'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '55'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '128'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '172'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '73'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '99'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '135'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 Riverfront Street Peabody MA 01960', '2'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '95'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '11'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 Riverfront Street Peabody MA 01960', '97'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 Highland Avenue Medford MA 02155', '196'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '164'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '116'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '4'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '159'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '107'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '26'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Highland Road Lexington MA 02420', '118'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 Highland Avenue Medford MA 02155', '82'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Boston MA 02108', '166'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '115'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '192'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '165'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Worcester MA 01601', '40'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '74'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '169'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '195'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Maple Street Quincy MA 02169', '127'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '65'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '198'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '92'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '148'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '88'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '37'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Hillcrest Drive Waltham MA 02451', '1'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '102'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Maple Street Quincy MA 02169', '7'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '132'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '61'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '152'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '176'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '150'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '139'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Worcester MA 01601', '90'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '62'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '50'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '153'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Spring Street Gloucester MA 01930', '156'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '146'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '113'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Brookline MA 02445', '76'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Oakwood Terrace Medford MA 02155', '117'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '68'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Sunset Boulevard Malden MA 02148', '129'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '14'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '200'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '47'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '104'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '119'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '38'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '163'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Maple Street Quincy MA 02169', '3'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '86'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Brookline MA 02445', '131'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 Highland Avenue Medford MA 02155', '122'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '46'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '52'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '193'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Boston MA 02108', '167'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '64'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '31'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '121'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '123'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Somerville MA 02143', '185'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '151'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '81'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '60'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '145'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Greenfield MA 01301', '63'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '83'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Everett MA 02149', '49'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Sunset Boulevard Malden MA 02148', '13'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '190'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Birch Lane Lowell MA 01852', '44'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '54'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '51'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '168'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '174'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '181'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '105'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '178'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '57'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '24'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '194'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '42'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '197'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '98'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '147'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 Grove Avenue Lynn MA 01905', '41'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '161'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '21'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Highland Road Lexington MA 02420', '100'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Spring Street Gloucester MA 01930', '101'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '186'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('111 River Road Lynn MA 01905', '71'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Brookline MA 02445', '28'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '155'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Highland Road Lexington MA 02420', '93'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '130'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '78'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '160'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '124'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '110'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '109'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Boston MA 02110', '70'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '177'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '106'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillside Drive Springfield MA 01101', '114'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillside Drive Springfield MA 01101', '187'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '23'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Salem MA 01970', '91'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Cambridge MA 02141', '103'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillside Drive Springfield MA 01101', '108'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '48'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Sunset Boulevard Malden MA 02148', '53'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '143'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Highland Road Lexington MA 02420', '184'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Forest Street Brookline MA 02445', '138'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Quincy MA 02169', '9'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('222 Elmwood Terrace Worcester MA 01601', '178'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Pineview Lane Lowell MA 01851', '162'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Lowell MA 01851', '77'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '80'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('888 Elm Avenue Worcester MA 01601', '132'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '200'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '100'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Quincy MA 02169', '76'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '189'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Springfield MA 01105', '93'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('444 Cedar Road Brookline MA 02445', '89'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '37'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('777 Sunset Road Everett MA 02149', '32'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('333 Hillcrest Avenue Worcester MA 01609', '63'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('999 Oak Lane Chelsea MA 02150', '108'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('555 Birch Lane Lowell MA 01852', '34'); +insert into Outdoor_Activity_Location (Location , OutdoorID) values ('666 River Drive Quincy MA 02169', '85'); + +/* Restaurants */ +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (1, 'Taco Town', 1, 'Korean', '$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (2, 'The Fish Fry', 0, 'French', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (3, 'The Sandwich Spot', 1, 'American', '$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (4, 'Mama Mia''s Pizzeria', 1, 'Brazilian', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (5, 'Wok n Roll', 0, 'French', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (6, 'Bella Italia', 0, 'Greek', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (7, 'The Food Truck', 0, 'Japanese', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (8, 'The Juice Bar', 0, 'Thai', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (9, 'Mama Mia''s Pizzeria', 0, 'Vietnamese', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (10, 'The Hot Dog Stand', 1, 'Moroccan', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (11, 'Wok n Roll', 0, 'Turkish', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (12, 'Taco Town', 0, 'Japanese', '$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (13, 'The Diner', 0, 'Chinese', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (14, 'The Ice Cream Parlor', 0, 'Indian', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (15, 'The Tapas Tavern', 1, 'Mexican', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (16, 'The Bistro', 0, 'Italian', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (17, 'The Spice House', 0, 'French', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (18, 'Burger Barn', 1, 'Moroccan', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (19, 'The Bagel Bakery', 1, 'Mediterranean', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (20, 'The Donut Shop', 1, 'Brazilian', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (21, 'The Smoothie Shack', 1, 'Vietnamese', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (22, 'Wok n Roll', 1, 'Mexican', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (23, 'The BBQ Pit', 1, 'Chinese', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (24, 'Wok n Roll', 1, 'American', '$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (25, 'The Cheesy Grill', 0, 'French', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (26, 'The Diner', 0, 'Mexican', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (27, 'The Breakfast Club', 1, 'Greek', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (28, 'The Salad Bar', 0, 'Mexican', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (29, 'Taste of Thailand', 1, 'Indian', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (30, 'The Veggie Patch', 1, 'Chinese', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (31, 'The BBQ Pit', 1, 'Brazilian', '$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (32, 'The Hot Dog Stand', 1, 'Greek', '$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (33, 'The Pancake Place', 1, 'Korean', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (34, 'The Bistro', 1, 'Italian', '$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (35, 'Burger Barn', 0, 'Brazilian', '$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (36, 'The Spice House', 1, 'Indian', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (37, 'The Soup Kitchen', 1, 'Chinese', '$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (38, 'Pizza Palace', 1, 'American', '$$$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (39, 'Bella Italia', 0, 'Japanese', '$$$', '3'); +insert into Restaurants (RestaurantID, Name, Reservations, CuisineType, PriceTag, ActivityTypeID) values (40, 'The Salad Bar', 1, 'Moroccan', '$', '3'); + +/* Restaurant_location */ +insert into Restaurant_Location (Location, RestaurantID) values ('444 Pass', '21'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Spruce St Boston MA 02109', '38'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Pineapple St Boston MA 02127', '3'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Strawberry St Boston MA 02131', '22'); +insert into Restaurant_Location (Location, RestaurantID) values ('101 Oak St Boston MA 02104', '25'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '39'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Pine St Boston MA 02105', '11'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Cherry St Boston MA 02112', '7'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Watermelon St Boston MA 02126', '14'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Pineapple St Boston MA 02127', '24'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Pass', '6'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '26'); +insert into Restaurant_Location (Location, RestaurantID) values ('789 Maple St Boston MA 02103', '20'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Orange St Boston MA 02117', '23'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '31'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Banana St Boston MA 02122', '15'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Coconut St Boston MA 02120', '36'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '35'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '40'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Blackberry St Boston MA 02130', '33'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '10'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Pear St Boston MA 02124', '2'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '29'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Raspberry St Boston MA 02129', '5'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Blueberry St Boston MA 02128', '34'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Pass', '28'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Spruce St Boston MA 02109', '1'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Pine St Boston MA 02105', '9'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Willow St Boston MA 02111', '18'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Banana St Boston MA 02122', '30'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Coconut St Boston MA 02120', '12'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Pine St Boston MA 02105', '8'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Orange St Boston MA 02117', '4'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '17'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Strawberry St Boston MA 02131', '19'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Avocado St Boston MA 02125', '16'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Pineapple St Boston MA 02127', '37'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Orange St Boston MA 02117', '27'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '13'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Pine St Boston MA 02105', '32'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '26'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '25'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '24'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Cherry St Boston MA 02112', '4'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '34'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Strawberry St Boston MA 02131', '16'); +insert into Restaurant_Location (Location, RestaurantID) values ('789 Maple St Boston MA 02103', '37'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '1'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Spruce St Boston MA 02109', '15'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Blueberry St Boston MA 02128', '18'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '29'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Lemon St Boston MA 02118', '36'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Grape St Boston MA 02115', '33'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '8'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Grape St Boston MA 02115', '17'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Spruce St Boston MA 02109', '19'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Pear St Boston MA 02124', '30'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '2'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Pineapple St Boston MA 02127', '7'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '39'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Coconut St Boston MA 02120', '12'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '6'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '9'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Pineapple St Boston MA 02127', '21'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '5'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '32'); +insert into Restaurant_Location (Location, RestaurantID) values ('789 Maple St Boston MA 02103', '28'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '22'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Lemon St Boston MA 02118', '35'); +insert into Restaurant_Location (Location, RestaurantID) values ('101 Oak St Boston MA 02104', '23'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Orange St Boston MA 02117', '40'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Cherry St Boston MA 02112', '27'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Lemon St Boston MA 02118', '38'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Spruce St Boston MA 02109', '20'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Walnut St Boston MA 02106', '11'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '13'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '10'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '3'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Pear St Boston MA 02124', '31'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Peach St Boston MA 02114', '14'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Avocado St Boston MA 02125', '24'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Pear St Boston MA 02124', '26'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Grape St Boston MA 02115', '33'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Cherry St Boston MA 02112', '3'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Blackberry St Boston MA 02130', '9'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '34'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Pear St Boston MA 02124', '15'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '31'); +insert into Restaurant_Location (Location, RestaurantID) values ('789 Maple St Boston MA 02103', '12'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Walnut St Boston MA 02106', '39'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '27'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '37'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Apple St Boston MA 02123', '20'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Cherry St Boston MA 02112', '32'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '35'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '25'); +insert into Restaurant_Location (Location, RestaurantID) values ('789 Maple St Boston MA 02103', '5'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '6'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Willow St Boston MA 02111', '19'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '23'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '36'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Peach St Boston MA 02114', '10'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Avocado St Boston MA 02125', '17'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Cedar St Boston MA 02107', '11'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '8'); +insert into Restaurant_Location (Location, RestaurantID) values ('101 Oak St Boston MA 02104', '18'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '16'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Orange St Boston MA 02117', '14'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Watermelon St Boston MA 02126', '22'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '40'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Coconut St Boston MA 02120', '4'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '21'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '1'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Cedar St Boston MA 02107', '28'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '30'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '29'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Pass', '13'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Raspberry St Boston MA 02129', '7'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Raspberry St Boston MA 02129', '38'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Spruce St Boston MA 02109', '2'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Apple St Boston MA 02123', '9'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Walnut St Boston MA 02106', '6'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '40'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '26'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '13'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Blackberry St Boston MA 02130', '7'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Pine St Boston MA 02105', '35'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Lemon St Boston MA 02118', '20'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Lemon St Boston MA 02118', '15'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Grape St Boston MA 02115', '5'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Avocado St Boston MA 02125', '17'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '21'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Blueberry St Boston MA 02128', '30'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '38'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Plum St Boston MA 02113', '37'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Lime St Boston MA 02119', '31'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Peach St Boston MA 02114', '16'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '32'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '27'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Blueberry St Boston MA 02128', '36'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Pass', '3'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Cedar St Boston MA 02107', '4'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '1'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Pine St Boston MA 02105', '25'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Cedar St Boston MA 02107', '34'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '18'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Apple St Boston MA 02123', '8'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Blackberry St Boston MA 02130', '39'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '23'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Cherry St Boston MA 02112', '19'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Lime St Boston MA 02119', '14'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '2'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '28'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '11'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '22'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Blackberry St Boston MA 02130', '12'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Plum St Boston MA 02113', '33'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Grape St Boston MA 02115', '29'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '24'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Peach St Boston MA 02114', '10'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '14'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Plum St Boston MA 02113', '6'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '40'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Peach St Boston MA 02114', '10'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Lemon St Boston MA 02118', '36'); +insert into Restaurant_Location (Location, RestaurantID) values ('333 Papaya St Boston MA 02133', '39'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Avocado St Boston MA 02125', '38'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Willow St Boston MA 02111', '5'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '21'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Cedar St Boston MA 02107', '9'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '15'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Lime St Boston MA 02119', '3'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '25'); +insert into Restaurant_Location (Location, RestaurantID) values ('888 Willow St Boston MA 02111', '37'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '31'); +insert into Restaurant_Location (Location, RestaurantID) values ('456 Elm St Boston MA 02102', '27'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Watermelon St Boston MA 02126', '22'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Lime St Boston MA 02119', '18'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Blueberry St Boston MA 02128', '24'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Banana St Boston MA 02122', '30'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Blueberry St Boston MA 02128', '26'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Avocado St Boston MA 02125', '19'); +insert into Restaurant_Location (Location, RestaurantID) values ('555 Birch St Boston MA 02108', '34'); +insert into Restaurant_Location (Location, RestaurantID) values ('789 Maple St Boston MA 02103', '20'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Cherry St Boston MA 02112', '16'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Peach St Boston MA 02114', '4'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '11'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Strawberry St Boston MA 02131', '28'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '29'); +insert into Restaurant_Location (Location, RestaurantID) values ('777 Ash St Boston MA 02110', '8'); +insert into Restaurant_Location (Location, RestaurantID) values ('123 Main St Boston MA 02101', '1'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '7'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Avocado St Boston MA 02125', '2'); +insert into Restaurant_Location (Location, RestaurantID) values ('666 Spruce St Boston MA 02109', '12'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Kiwi St Boston MA 02132', '33'); +insert into Restaurant_Location (Location, RestaurantID) values ('111 Plum St Boston MA 02113', '23'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Peach St Boston MA 02114', '32'); +insert into Restaurant_Location (Location, RestaurantID) values ('222 Apple St Boston MA 02123', '17'); +insert into Restaurant_Location (Location, RestaurantID) values ('999 Mango St Boston MA 02121', '35'); +insert into Restaurant_Location (Location, RestaurantID) values ('444 Berry St Boston MA 02116', '13'); + +/* TransportationType */ +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '907'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '390'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '721'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '683'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '144'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '681'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '768'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '428'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '403'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '651'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '710'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '39'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '896'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '10'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '174'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '251'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '278'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '885'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '235'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '131'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '518'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '974'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '17'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '214'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '400'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '528'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '853'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '783'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '430'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '285'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '922'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '115'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '587'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '582'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '686'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '470'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '496'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '507'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '110'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '415'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '646'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '103'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '722'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '342'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '797'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '790'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '623'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '544'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '207'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '601'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '269'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '537'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '153'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '123'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '193'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '989'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '234'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '492'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '8'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '410'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '258'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '741'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '734'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '217'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '138'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '759'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '397'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '692'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '47'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '724'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '28'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '423'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '184'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '954'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '200'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '180'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '995'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '886'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '147'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '612'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '847'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '523'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '312'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '746'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '871'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '678'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '452'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '30'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '786'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '901'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '893'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '163'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '37'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '870'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '865'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '446'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '778'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '405'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '566'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '77'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '973'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '253'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '65'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '806'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '432'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '960'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '406'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '879'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '738'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '385'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '767'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '486'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '958'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '24'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '443'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '868'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '663'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '892'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '580'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '227'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '466'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '652'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '374'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '594'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '873'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '882'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '911'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '503'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '185'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '827'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '170'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '602'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '162'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '436'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '807'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '112'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '483'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '517'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '68'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '125'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '307'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '649'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '947'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '952'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '556'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '635'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '568'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '752'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '648'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '136'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '929'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '316'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '890'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '812'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '550'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '745'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '842'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '919'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '284'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '854'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '226'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('submarine', '323'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '931'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '904'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '525'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '23'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '419'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '804'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '780'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '4'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '177'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '863'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('helicopter', '233'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '487'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '231'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('car', '839'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '433'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '172'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '197'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '532'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '408'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '887'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '43'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '203'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '201'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '126'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bus', '579'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('bicycle', '849'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '604'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '835'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '731'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '394'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('train', '82'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('scooter', '155'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hovercraft', '427'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '950'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '764'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('zeppelin', '175'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '603'); +insert into TransportationType (Type_of_Transpo, TransportationID) values ('hot air balloon', '54'); + +/* User_to_Transpo */ +insert into User_to_Transpo (UserID, TransportationID) values ('18', '25'); +insert into User_to_Transpo (UserID, TransportationID) values ('29', '363'); +insert into User_to_Transpo (UserID, TransportationID) values ('5', '142'); +insert into User_to_Transpo (UserID, TransportationID) values ('7', '843'); +insert into User_to_Transpo (UserID, TransportationID) values ('16', '188'); +insert into User_to_Transpo (UserID, TransportationID) values ('4', '309'); +insert into User_to_Transpo (UserID, TransportationID) values ('11', '206'); +insert into User_to_Transpo (UserID, TransportationID) values ('2', '158'); +insert into User_to_Transpo (UserID, TransportationID) values ('19', '719'); +insert into User_to_Transpo (UserID, TransportationID) values ('20', '610'); +insert into User_to_Transpo (UserID, TransportationID) values ('8', '459'); +insert into User_to_Transpo (UserID, TransportationID) values ('6', '166'); +insert into User_to_Transpo (UserID, TransportationID) values ('10', '354'); +insert into User_to_Transpo (UserID, TransportationID) values ('34', '88'); +insert into User_to_Transpo (UserID, TransportationID) values ('13', '411'); +insert into User_to_Transpo (UserID, TransportationID) values ('12', '670'); +insert into User_to_Transpo (UserID, TransportationID) values ('1', '896'); +insert into User_to_Transpo (UserID, TransportationID) values ('31', '999'); +insert into User_to_Transpo (UserID, TransportationID) values ('9', '657'); +insert into User_to_Transpo (UserID, TransportationID) values ('17', '114'); +insert into User_to_Transpo (UserID, TransportationID) values ('30', '244'); +insert into User_to_Transpo (UserID, TransportationID) values ('26', '851'); +insert into User_to_Transpo (UserID, TransportationID) values ('33', '804'); +insert into User_to_Transpo (UserID, TransportationID) values ('23', '388'); +insert into User_to_Transpo (UserID, TransportationID) values ('32', '150'); +insert into User_to_Transpo (UserID, TransportationID) values ('35', '493'); +insert into User_to_Transpo (UserID, TransportationID) values ('15', '966'); +insert into User_to_Transpo (UserID, TransportationID) values ('25', '540'); +insert into User_to_Transpo (UserID, TransportationID) values ('14', '535'); +insert into User_to_Transpo (UserID, TransportationID) values ('24', '469'); +insert into User_to_Transpo (UserID, TransportationID) values ('21', '736'); +insert into User_to_Transpo (UserID, TransportationID) values ('28', '437'); +insert into User_to_Transpo (UserID, TransportationID) values ('27', '507'); +insert into User_to_Transpo (UserID, TransportationID) values ('3', '833'); +insert into User_to_Transpo (UserID, TransportationID) values ('22', '89'); +insert into User_to_Transpo (UserID, TransportationID) values ('27', '967'); +insert into User_to_Transpo (UserID, TransportationID) values ('20', '299'); +insert into User_to_Transpo (UserID, TransportationID) values ('7', '839'); +insert into User_to_Transpo (UserID, TransportationID) values ('2', '325'); +insert into User_to_Transpo (UserID, TransportationID) values ('1', '580'); +insert into User_to_Transpo (UserID, TransportationID) values ('34', '165'); +insert into User_to_Transpo (UserID, TransportationID) values ('4', '80'); +insert into User_to_Transpo (UserID, TransportationID) values ('33', '115'); +insert into User_to_Transpo (UserID, TransportationID) values ('14', '819'); +insert into User_to_Transpo (UserID, TransportationID) values ('5', '979'); +insert into User_to_Transpo (UserID, TransportationID) values ('31', '16'); +insert into User_to_Transpo (UserID, TransportationID) values ('6', '972'); +insert into User_to_Transpo (UserID, TransportationID) values ('23', '803'); +insert into User_to_Transpo (UserID, TransportationID) values ('26', '400'); +insert into User_to_Transpo (UserID, TransportationID) values ('16', '152'); +insert into User_to_Transpo (UserID, TransportationID) values ('22', '241'); +insert into User_to_Transpo (UserID, TransportationID) values ('3', '212'); +insert into User_to_Transpo (UserID, TransportationID) values ('19', '965'); +insert into User_to_Transpo (UserID, TransportationID) values ('8', '969'); +insert into User_to_Transpo (UserID, TransportationID) values ('32', '372'); +insert into User_to_Transpo (UserID, TransportationID) values ('30', '785'); +insert into User_to_Transpo (UserID, TransportationID) values ('24', '69'); +insert into User_to_Transpo (UserID, TransportationID) values ('9', '522'); +insert into User_to_Transpo (UserID, TransportationID) values ('35', '116'); +insert into User_to_Transpo (UserID, TransportationID) values ('21', '672'); +insert into User_to_Transpo (UserID, TransportationID) values ('10', '263'); +insert into User_to_Transpo (UserID, TransportationID) values ('12', '64'); +insert into User_to_Transpo (UserID, TransportationID) values ('25', '412'); +insert into User_to_Transpo (UserID, TransportationID) values ('17', '603'); +insert into User_to_Transpo (UserID, TransportationID) values ('13', '716'); +insert into User_to_Transpo (UserID, TransportationID) values ('28', '123'); +insert into User_to_Transpo (UserID, TransportationID) values ('15', '501'); +insert into User_to_Transpo (UserID, TransportationID) values ('18', '921'); +insert into User_to_Transpo (UserID, TransportationID) values ('11', '860'); +insert into User_to_Transpo (UserID, TransportationID) values ('29', '787'); +insert into User_to_Transpo (UserID, TransportationID) values ('9', '541'); +insert into User_to_Transpo (UserID, TransportationID) values ('6', '594'); +insert into User_to_Transpo (UserID, TransportationID) values ('33', '258'); +insert into User_to_Transpo (UserID, TransportationID) values ('21', '504'); +insert into User_to_Transpo (UserID, TransportationID) values ('19', '135'); +insert into User_to_Transpo (UserID, TransportationID) values ('8', '849'); +insert into User_to_Transpo (UserID, TransportationID) values ('4', '893'); +insert into User_to_Transpo (UserID, TransportationID) values ('10', '333'); +insert into User_to_Transpo (UserID, TransportationID) values ('24', '726'); +insert into User_to_Transpo (UserID, TransportationID) values ('20', '991'); +insert into User_to_Transpo (UserID, TransportationID) values ('13', '585'); +insert into User_to_Transpo (UserID, TransportationID) values ('2', '700'); +insert into User_to_Transpo (UserID, TransportationID) values ('14', '641'); +insert into User_to_Transpo (UserID, TransportationID) values ('12', '6'); +insert into User_to_Transpo (UserID, TransportationID) values ('22', '667'); +insert into User_to_Transpo (UserID, TransportationID) values ('11', '943'); +insert into User_to_Transpo (UserID, TransportationID) values ('32', '783'); +insert into User_to_Transpo (UserID, TransportationID) values ('34', '324'); +insert into User_to_Transpo (UserID, TransportationID) values ('25', '203'); +insert into User_to_Transpo (UserID, TransportationID) values ('29', '674'); +insert into User_to_Transpo (UserID, TransportationID) values ('26', '778'); +insert into User_to_Transpo (UserID, TransportationID) values ('16', '755'); +insert into User_to_Transpo (UserID, TransportationID) values ('1', '107'); +insert into User_to_Transpo (UserID, TransportationID) values ('3', '521'); +insert into User_to_Transpo (UserID, TransportationID) values ('28', '628'); +insert into User_to_Transpo (UserID, TransportationID) values ('23', '677'); +insert into User_to_Transpo (UserID, TransportationID) values ('5', '423'); +insert into User_to_Transpo (UserID, TransportationID) values ('27', '698'); +insert into User_to_Transpo (UserID, TransportationID) values ('17', '868'); +insert into User_to_Transpo (UserID, TransportationID) values ('30', '845'); +insert into User_to_Transpo (UserID, TransportationID) values ('18', '305'); +insert into User_to_Transpo (UserID, TransportationID) values ('35', '608'); +insert into User_to_Transpo (UserID, TransportationID) values ('15', '342'); +insert into User_to_Transpo (UserID, TransportationID) values ('7', '558'); +insert into User_to_Transpo (UserID, TransportationID) values ('31', '256'); +insert into User_to_Transpo (UserID, TransportationID) values ('9', '199'); +insert into User_to_Transpo (UserID, TransportationID) values ('29', '737'); +insert into User_to_Transpo (UserID, TransportationID) values ('6', '286'); +insert into User_to_Transpo (UserID, TransportationID) values ('30', '552'); +insert into User_to_Transpo (UserID, TransportationID) values ('31', '801'); +insert into User_to_Transpo (UserID, TransportationID) values ('35', '596'); +insert into User_to_Transpo (UserID, TransportationID) values ('2', '291'); +insert into User_to_Transpo (UserID, TransportationID) values ('8', '360'); +insert into User_to_Transpo (UserID, TransportationID) values ('14', '560'); +insert into User_to_Transpo (UserID, TransportationID) values ('15', '61'); +insert into User_to_Transpo (UserID, TransportationID) values ('25', '83'); +insert into User_to_Transpo (UserID, TransportationID) values ('1', '198'); +insert into User_to_Transpo (UserID, TransportationID) values ('17', '143'); +insert into User_to_Transpo (UserID, TransportationID) values ('28', '856'); +insert into User_to_Transpo (UserID, TransportationID) values ('19', '383'); +insert into User_to_Transpo (UserID, TransportationID) values ('11', '147'); +insert into User_to_Transpo (UserID, TransportationID) values ('27', '468'); +insert into User_to_Transpo (UserID, TransportationID) values ('22', '789'); +insert into User_to_Transpo (UserID, TransportationID) values ('32', '928'); +insert into User_to_Transpo (UserID, TransportationID) values ('4', '675'); +insert into User_to_Transpo (UserID, TransportationID) values ('21', '91'); +insert into User_to_Transpo (UserID, TransportationID) values ('34', '340'); +insert into User_to_Transpo (UserID, TransportationID) values ('33', '29'); +insert into User_to_Transpo (UserID, TransportationID) values ('24', '446'); +insert into User_to_Transpo (UserID, TransportationID) values ('10', '432'); +insert into User_to_Transpo (UserID, TransportationID) values ('5', '184'); +insert into User_to_Transpo (UserID, TransportationID) values ('16', '924'); +insert into User_to_Transpo (UserID, TransportationID) values ('7', '349'); +insert into User_to_Transpo (UserID, TransportationID) values ('13', '714'); +insert into User_to_Transpo (UserID, TransportationID) values ('26', '154'); +insert into User_to_Transpo (UserID, TransportationID) values ('20', '210'); +insert into User_to_Transpo (UserID, TransportationID) values ('12', '994'); +insert into User_to_Transpo (UserID, TransportationID) values ('3', '818'); +insert into User_to_Transpo (UserID, TransportationID) values ('18', '605'); +insert into User_to_Transpo (UserID, TransportationID) values ('23', '954'); +insert into User_to_Transpo (UserID, TransportationID) values ('27', '348'); +insert into User_to_Transpo (UserID, TransportationID) values ('6', '78'); +insert into User_to_Transpo (UserID, TransportationID) values ('17', '499'); +insert into User_to_Transpo (UserID, TransportationID) values ('12', '139'); +insert into User_to_Transpo (UserID, TransportationID) values ('19', '467'); +insert into User_to_Transpo (UserID, TransportationID) values ('30', '555'); +insert into User_to_Transpo (UserID, TransportationID) values ('2', '694'); +insert into User_to_Transpo (UserID, TransportationID) values ('20', '281'); +insert into User_to_Transpo (UserID, TransportationID) values ('16', '629'); +insert into User_to_Transpo (UserID, TransportationID) values ('29', '264'); +insert into User_to_Transpo (UserID, TransportationID) values ('35', '724'); +insert into User_to_Transpo (UserID, TransportationID) values ('11', '318'); +insert into User_to_Transpo (UserID, TransportationID) values ('13', '528'); +insert into User_to_Transpo (UserID, TransportationID) values ('22', '410'); +insert into User_to_Transpo (UserID, TransportationID) values ('24', '169'); +insert into User_to_Transpo (UserID, TransportationID) values ('10', '174'); +insert into User_to_Transpo (UserID, TransportationID) values ('28', '838'); +insert into User_to_Transpo (UserID, TransportationID) values ('4', '23'); +insert into User_to_Transpo (UserID, TransportationID) values ('34', '865'); +insert into User_to_Transpo (UserID, TransportationID) values ('25', '282'); +insert into User_to_Transpo (UserID, TransportationID) values ('23', '587'); +insert into User_to_Transpo (UserID, TransportationID) values ('31', '806'); +insert into User_to_Transpo (UserID, TransportationID) values ('33', '978'); +insert into User_to_Transpo (UserID, TransportationID) values ('3', '929'); +insert into User_to_Transpo (UserID, TransportationID) values ('21', '982'); +insert into User_to_Transpo (UserID, TransportationID) values ('9', '963'); +insert into User_to_Transpo (UserID, TransportationID) values ('32', '796'); +insert into User_to_Transpo (UserID, TransportationID) values ('8', '359'); +insert into User_to_Transpo (UserID, TransportationID) values ('14', '490'); +insert into User_to_Transpo (UserID, TransportationID) values ('15', '84'); +insert into User_to_Transpo (UserID, TransportationID) values ('1', '103'); +insert into User_to_Transpo (UserID, TransportationID) values ('26', '948'); +insert into User_to_Transpo (UserID, TransportationID) values ('18', '444'); +insert into User_to_Transpo (UserID, TransportationID) values ('5', '334'); +insert into User_to_Transpo (UserID, TransportationID) values ('7', '546'); +insert into User_to_Transpo (UserID, TransportationID) values ('7', '729'); +insert into User_to_Transpo (UserID, TransportationID) values ('8', '170'); +insert into User_to_Transpo (UserID, TransportationID) values ('29', '713'); +insert into User_to_Transpo (UserID, TransportationID) values ('34', '329'); +insert into User_to_Transpo (UserID, TransportationID) values ('27', '602'); +insert into User_to_Transpo (UserID, TransportationID) values ('14', '321'); +insert into User_to_Transpo (UserID, TransportationID) values ('6', '786'); +insert into User_to_Transpo (UserID, TransportationID) values ('17', '376'); +insert into User_to_Transpo (UserID, TransportationID) values ('21', '747'); +insert into User_to_Transpo (UserID, TransportationID) values ('3', '745'); +insert into User_to_Transpo (UserID, TransportationID) values ('9', '656'); +insert into User_to_Transpo (UserID, TransportationID) values ('10', '398'); +insert into User_to_Transpo (UserID, TransportationID) values ('35', '692'); +insert into User_to_Transpo (UserID, TransportationID) values ('24', '857'); +insert into User_to_Transpo (UserID, TransportationID) values ('13', '200'); +insert into User_to_Transpo (UserID, TransportationID) values ('15', '268'); +insert into User_to_Transpo (UserID, TransportationID) values ('12', '616'); +insert into User_to_Transpo (UserID, TransportationID) values ('11', '916'); +insert into User_to_Transpo (UserID, TransportationID) values ('33', '981'); +insert into User_to_Transpo (UserID, TransportationID) values ('31', '509'); +insert into User_to_Transpo (UserID, TransportationID) values ('28', '764'); +insert into User_to_Transpo (UserID, TransportationID) values ('1', '250'); +insert into User_to_Transpo (UserID, TransportationID) values ('5', '315'); +insert into User_to_Transpo (UserID, TransportationID) values ('4', '280'); +insert into User_to_Transpo (UserID, TransportationID) values ('25', '998'); +/* user_des */ +insert into User_Des (Address, UserID) values (null, '20'); +insert into User_Des (Address, UserID) values (null, '10'); +insert into User_Des (Address, UserID) values (null, '35'); +insert into User_Des (Address, UserID) values (null, '9'); +insert into User_Des (Address, UserID) values (null, '24'); +insert into User_Des (Address, UserID) values (null, '14'); +insert into User_Des (Address, UserID) values (null, '17'); +insert into User_Des (Address, UserID) values (null, '22'); +insert into User_Des (Address, UserID) values (null, '23'); +insert into User_Des (Address, UserID) values (null, '4'); +insert into User_Des (Address, UserID) values (null, '31'); +insert into User_Des (Address, UserID) values (null, '28'); +insert into User_Des (Address, UserID) values (null, '7'); +insert into User_Des (Address, UserID) values (null, '25'); +insert into User_Des (Address, UserID) values (null, '11'); +insert into User_Des (Address, UserID) values (null, '13'); +insert into User_Des (Address, UserID) values (null, '16'); +insert into User_Des (Address, UserID) values (null, '34'); +insert into User_Des (Address, UserID) values (null, '3'); +insert into User_Des (Address, UserID) values (null, '19'); +insert into User_Des (Address, UserID) values (null, '30'); +insert into User_Des (Address, UserID) values (null, '6'); +insert into User_Des (Address, UserID) values (null, '18'); +insert into User_Des (Address, UserID) values (null, '29'); +insert into User_Des (Address, UserID) values (null, '27'); +insert into User_Des (Address, UserID) values (null, '5'); +insert into User_Des (Address, UserID) values (null, '15'); +insert into User_Des (Address, UserID) values (null, '21'); +insert into User_Des (Address, UserID) values (null, '8'); +insert into User_Des (Address, UserID) values (null, '1'); +insert into User_Des (Address, UserID) values (null, '12'); +insert into User_Des (Address, UserID) values (null, '2'); +insert into User_Des (Address, UserID) values (null, '33'); +insert into User_Des (Address, UserID) values (null, '32'); +insert into User_Des (Address, UserID) values (null, '26'); +insert into User_Des (Address, UserID) values (null, '23'); +insert into User_Des (Address, UserID) values (null, '6'); +insert into User_Des (Address, UserID) values (null, '17'); +insert into User_Des (Address, UserID) values (null, '8'); +insert into User_Des (Address, UserID) values (null, '11'); +insert into User_Des (Address, UserID) values (null, '10'); +insert into User_Des (Address, UserID) values (null, '7'); +insert into User_Des (Address, UserID) values (null, '3'); +insert into User_Des (Address, UserID) values (null, '26'); +insert into User_Des (Address, UserID) values (null, '12'); +insert into User_Des (Address, UserID) values (null, '35'); +insert into User_Des (Address, UserID) values (null, '22'); +insert into User_Des (Address, UserID) values (null, '33'); +insert into User_Des (Address, UserID) values (null, '27'); +insert into User_Des (Address, UserID) values (null, '18'); +insert into User_Des (Address, UserID) values (null, '16'); +insert into User_Des (Address, UserID) values (null, '4'); +insert into User_Des (Address, UserID) values (null, '19'); +insert into User_Des (Address, UserID) values (null, '28'); +insert into User_Des (Address, UserID) values (null, '15'); +insert into User_Des (Address, UserID) values (null, '2'); +insert into User_Des (Address, UserID) values (null, '34'); +insert into User_Des (Address, UserID) values (null, '25'); +insert into User_Des (Address, UserID) values (null, '24'); +insert into User_Des (Address, UserID) values (null, '14'); +insert into User_Des (Address, UserID) values (null, '20'); +insert into User_Des (Address, UserID) values (null, '13'); +insert into User_Des (Address, UserID) values (null, '21'); +insert into User_Des (Address, UserID) values (null, '30'); +insert into User_Des (Address, UserID) values (null, '1'); +insert into User_Des (Address, UserID) values (null, '31'); +insert into User_Des (Address, UserID) values (null, '32'); +insert into User_Des (Address, UserID) values (null, '5'); +insert into User_Des (Address, UserID) values (null, '29'); +insert into User_Des (Address, UserID) values (null, '9'); +insert into User_Des (Address, UserID) values (null, '5'); +insert into User_Des (Address, UserID) values (null, '3'); +insert into User_Des (Address, UserID) values (null, '27'); +insert into User_Des (Address, UserID) values (null, '26'); +insert into User_Des (Address, UserID) values (null, '28'); +insert into User_Des (Address, UserID) values (null, '11'); +insert into User_Des (Address, UserID) values (null, '9'); +insert into User_Des (Address, UserID) values (null, '21'); +insert into User_Des (Address, UserID) values (null, '18'); +insert into User_Des (Address, UserID) values (null, '17'); +insert into User_Des (Address, UserID) values (null, '14'); +insert into User_Des (Address, UserID) values (null, '13'); +insert into User_Des (Address, UserID) values (null, '15'); +insert into User_Des (Address, UserID) values (null, '1'); +insert into User_Des (Address, UserID) values (null, '33'); +insert into User_Des (Address, UserID) values (null, '4'); +insert into User_Des (Address, UserID) values (null, '23'); +insert into User_Des (Address, UserID) values (null, '30'); +insert into User_Des (Address, UserID) values (null, '19'); +insert into User_Des (Address, UserID) values (null, '6'); +insert into User_Des (Address, UserID) values (null, '31'); +insert into User_Des (Address, UserID) values (null, '20'); +insert into User_Des (Address, UserID) values (null, '16'); +insert into User_Des (Address, UserID) values (null, '32'); +insert into User_Des (Address, UserID) values (null, '22'); +insert into User_Des (Address, UserID) values (null, '25'); +insert into User_Des (Address, UserID) values (null, '10'); +insert into User_Des (Address, UserID) values (null, '34'); +insert into User_Des (Address, UserID) values (null, '24'); +insert into User_Des (Address, UserID) values (null, '7'); +insert into User_Des (Address, UserID) values (null, '2'); +insert into User_Des (Address, UserID) values (null, '35'); +insert into User_Des (Address, UserID) values (null, '29'); +insert into User_Des (Address, UserID) values (null, '8'); +insert into User_Des (Address, UserID) values (null, '12'); +insert into User_Des (Address, UserID) values (null, '13'); +insert into User_Des (Address, UserID) values (null, '24'); +insert into User_Des (Address, UserID) values (null, '33'); +insert into User_Des (Address, UserID) values (null, '6'); +insert into User_Des (Address, UserID) values (null, '12'); +insert into User_Des (Address, UserID) values (null, '26'); +insert into User_Des (Address, UserID) values (null, '17'); +insert into User_Des (Address, UserID) values (null, '27'); +insert into User_Des (Address, UserID) values (null, '21'); +insert into User_Des (Address, UserID) values (null, '30'); +insert into User_Des (Address, UserID) values (null, '34'); +insert into User_Des (Address, UserID) values (null, '10'); +insert into User_Des (Address, UserID) values (null, '35'); +insert into User_Des (Address, UserID) values (null, '29'); +insert into User_Des (Address, UserID) values (null, '25'); +insert into User_Des (Address, UserID) values (null, '23'); +insert into User_Des (Address, UserID) values (null, '3'); +insert into User_Des (Address, UserID) values (null, '20'); +insert into User_Des (Address, UserID) values (null, '5'); +insert into User_Des (Address, UserID) values (null, '1'); +insert into User_Des (Address, UserID) values (null, '15'); +insert into User_Des (Address, UserID) values (null, '14'); +insert into User_Des (Address, UserID) values (null, '4'); +insert into User_Des (Address, UserID) values (null, '28'); +insert into User_Des (Address, UserID) values (null, '31'); +insert into User_Des (Address, UserID) values (null, '22'); +insert into User_Des (Address, UserID) values (null, '11'); +insert into User_Des (Address, UserID) values (null, '32'); +insert into User_Des (Address, UserID) values (null, '19'); +insert into User_Des (Address, UserID) values (null, '8'); +insert into User_Des (Address, UserID) values (null, '18'); +insert into User_Des (Address, UserID) values (null, '7'); +insert into User_Des (Address, UserID) values (null, '2'); +insert into User_Des (Address, UserID) values (null, '16'); +insert into User_Des (Address, UserID) values (null, '9'); +insert into User_Des (Address, UserID) values (null, '7'); +insert into User_Des (Address, UserID) values (null, '17'); +insert into User_Des (Address, UserID) values (null, '29'); +insert into User_Des (Address, UserID) values (null, '15'); +insert into User_Des (Address, UserID) values (null, '19'); +insert into User_Des (Address, UserID) values (null, '31'); +insert into User_Des (Address, UserID) values (null, '5'); +insert into User_Des (Address, UserID) values (null, '3'); +insert into User_Des (Address, UserID) values (null, '10'); +insert into User_Des (Address, UserID) values (null, '11'); +insert into User_Des (Address, UserID) values (null, '33'); +insert into User_Des (Address, UserID) values (null, '16'); +insert into User_Des (Address, UserID) values (null, '25'); +insert into User_Des (Address, UserID) values (null, '34'); +insert into User_Des (Address, UserID) values (null, '9'); +insert into User_Des (Address, UserID) values (null, '24'); +insert into User_Des (Address, UserID) values (null, '35'); +insert into User_Des (Address, UserID) values (null, '32'); +insert into User_Des (Address, UserID) values (null, '2'); +insert into User_Des (Address, UserID) values (null, '30'); +insert into User_Des (Address, UserID) values (null, '6'); +insert into User_Des (Address, UserID) values (null, '18'); +insert into User_Des (Address, UserID) values (null, '13'); +insert into User_Des (Address, UserID) values (null, '23'); +insert into User_Des (Address, UserID) values (null, '22'); +insert into User_Des (Address, UserID) values (null, '1'); +insert into User_Des (Address, UserID) values (null, '26'); +insert into User_Des (Address, UserID) values (null, '20'); +insert into User_Des (Address, UserID) values (null, '4'); +insert into User_Des (Address, UserID) values (null, '12'); +insert into User_Des (Address, UserID) values (null, '27'); +insert into User_Des (Address, UserID) values (null, '28'); +insert into User_Des (Address, UserID) values (null, '14'); +insert into User_Des (Address, UserID) values (null, '8'); +insert into User_Des (Address, UserID) values (null, '21'); +insert into User_Des (Address, UserID) values (null, '13'); +insert into User_Des (Address, UserID) values (null, '22'); +insert into User_Des (Address, UserID) values (null, '5'); +insert into User_Des (Address, UserID) values (null, '33'); +insert into User_Des (Address, UserID) values (null, '34'); +insert into User_Des (Address, UserID) values (null, '6'); +insert into User_Des (Address, UserID) values (null, '17'); +insert into User_Des (Address, UserID) values (null, '25'); +insert into User_Des (Address, UserID) values (null, '31'); +insert into User_Des (Address, UserID) values (null, '24'); +insert into User_Des (Address, UserID) values (null, '10'); +insert into User_Des (Address, UserID) values (null, '20'); +insert into User_Des (Address, UserID) values (null, '15'); +insert into User_Des (Address, UserID) values (null, '12'); +insert into User_Des (Address, UserID) values (null, '7'); +insert into User_Des (Address, UserID) values (null, '27'); +insert into User_Des (Address, UserID) values (null, '8'); +insert into User_Des (Address, UserID) values (null, '23'); +insert into User_Des (Address, UserID) values (null, '16'); +insert into User_Des (Address, UserID) values (null, '32'); +insert into User_Des (Address, UserID) values (null, '14'); +insert into User_Des (Address, UserID) values (null, '30'); +insert into User_Des (Address, UserID) values (null, '11'); +insert into User_Des (Address, UserID) values (null, '2'); +insert into User_Des (Address, UserID) values (null, '18'); + +/* MusicFestival */ +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (1, 'Anette Byneth', 'Bluegrass', 49723, 'Rhythmic Vibes Festival Lowell MA 01853', 5, '$$', 'John Legend', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (2, 'Holden Dicken', 'Classical', 1815, 'Melody Meadows Music Fest Boston MA 02112', 1, '$$$', 'Christina Aguilera', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (3, 'Stevana Drust', 'House', 41147, 'Melody Meadows Music Fest Boston MA 02110', 3, '$$', 'Selena Gomez', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (4, 'Missie Langley', 'Techno', 43712, 'Soundwave Summit Salem MA 01970', 5, '$', 'Demi Lovato', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (5, 'Shaughn Yter', 'R&B', 62362, 'Rhythmic Vibes Festival Lowell MA 01851', 4, '$$$$$', 'Enrique Iglesias', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (6, 'Ludovico Briggdale', 'Disco', 68968, 'Soundwave Summit Salem MA 01971', 1, '$', 'Sam Smith', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (7, 'Waldon MacCafferty', 'Punk', 76189, 'Harmony Hills Music Fest Worcester MA 01604', 5, '$$$', 'Enrique Iglesias', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (8, 'Rozalin Epgrave', 'Trap', 14434, 'Rhythmic Vibes Festival Lowell MA 01853', 5, '$$$$$', 'Lady Gaga', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (9, 'Marsha Gornal', 'Reggaeton', 96118, 'Rhythmic Vibes Festival Lowell MA 01852', 4, '$', 'Sia', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (10, 'Arvie Lingard', 'Electronic', 26095, 'Rhythmic Vibes Festival Lowell MA 01854', 2, '$$$$$', 'Sam Smith', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (11, 'Lyon Handke', 'R&B', 17862, 'Soundwave Summit Salem MA 01974', 2, '$$', 'Harry Styles', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (12, 'Sasha Cusack', 'Rock', 94319, 'Harmony Haven Fest Quincy MA 02169', 5, '$', 'Ariana Grande', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (13, 'Linn Mariaud', 'Grunge', 33986, 'Soundwave Summit Salem MA 01972', 3, '$$$$$', 'Christina Aguilera', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (14, 'Emmott Le Bosse', 'Blues', 41131, 'Melody Meadows Music Fest Boston MA 02108', 4, '$$$$', 'Post Malone', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (15, 'Almeta Vallance', 'Metal', 52198, 'Groovefest at Greenfield Park Springfield MA 01107', 1, '$$$$', 'Maroon 5', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (16, 'Alla Hollow', 'Reggae', 42697, 'Groovefest at Greenfield Park Springfield MA 01103', 4, '$', 'Post Malone', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (17, 'Benedict Veivers', 'Pop', 13556, 'Echo Valley Music Festival Cambridge MA 02142', 4, '$$$$$', 'Charlie Puth', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (18, 'Janis Kitchin', 'Alternative', 88039, 'Serenade Summit Somerville MA 02144', 2, '$$$$$', 'John Legend', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (19, 'Celia Maggs', 'Trap', 44670, 'Groovefest at Greenfield Park Springfield MA 01103', 1, '$$$$$', 'Sam Smith', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (20, 'Laure Stoke', 'Flamenco', 43767, 'Groove Garden Festival Newton MA 02458', 3, '$$$$$', 'Miley Cyrus', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (21, 'Ailey Zecchini', 'Indie', 76314, 'Groove Garden Festival Newton MA 02458', 2, '$$', 'Halsey', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (22, 'Vincent Walthall', 'Hip hop', 63041, 'Beatbox Bash Brockton MA 02303', 1, '$$$', 'Beyoncé', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (23, 'Aguie Georgeot', 'Salsa', 23660, 'Rhythmic Vibes Festival Lowell MA 01851', 4, '$$', 'Kelly Clarkson', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (24, 'Georas Swepstone', 'Country', 72687, 'Beatbox Bash Brockton MA 02304', 4, '$$', 'Katy Perry', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (25, 'Raleigh Trevallion', 'Dance', 39930, 'Beatbox Bash Brockton MA 02302', 2, '$', 'Sam Smith', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (26, 'Silvanus Malzard', 'Reggae', 44643, 'Harmony Hills Music Fest Worcester MA 01605', 4, '$$$$$', 'Selena Gomez', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (27, 'Christiane Gambie', 'R&B', 58091, 'Rhythmic Vibes Festival Lowell MA 01851', 5, '$$', 'Ariana Grande', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (28, 'Matilde Dawdary', 'Latin', 91964, 'Harmony Hills Music Fest Worcester MA 01604', 3, '$$$$$', 'Jason Derulo', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (29, 'Ermengarde Caddock', 'Ambient', 75513, 'Echo Valley Music Festival Cambridge MA 02140', 4, '$', 'Usher', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (30, 'Gilles Hoffmann', 'Salsa', 35552, 'Echo Valley Music Festival Cambridge MA 02139', 2, '$$$$', 'Lana Del Rey', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (31, 'Gaye Mattiato', 'Pop', 42475, 'Serenade Summit Somerville MA 02143', 1, '$$', 'Ed Sheeran', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (32, 'Verene MacKenny', 'Salsa', 56747, 'Groove Garden Festival Newton MA 02459', 5, '$', 'Beyoncé', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (33, 'Corrie Druhan', 'Trap', 901, 'Harmony Haven Fest Quincy MA 02171', 3, '$$$$', 'Khalid', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (34, 'Shelba Brennon', 'Alternative', 52895, 'Beatbox Bash Brockton MA 02301', 4, '$', 'BTS', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (35, 'Violette Ferrierio', 'Salsa', 25326, 'Rhythmic Vibes Festival Lowell MA 01852', 3, '$$$$$', 'Bruno Mars', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (36, 'Burr Hugland', 'Disco', 55465, 'Echo Valley Music Festival Cambridge MA 02141', 5, '$$', 'Bruno Mars', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (37, 'Ianthe Samber', 'Bossa nova', 23795, 'Groove Garden Festival Newton MA 02458', 1, '$$$', 'Selena Gomez', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (38, 'Delilah McOwen', 'Alternative', 32692, 'Melody Meadows Music Fest Boston MA 02111', 3, '$', 'Kelly Clarkson', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (39, 'Russ Castagno', 'Punk', 13369, 'Rhythmic Vibes Festival Lowell MA 01854', 2, '$$$$', 'Rihanna', '2'); +insert into MusicFestivals (FestivalID, Name, MusicType, CrowdSize, Location, OverallRating, PriceTag, Artists, ActivityTypeID) values (40, 'Colet Pell', 'Alternative', 96866, 'Beatbox Bash Brockton MA 02303', 1, '$', 'Lady Gaga', '2'); + diff --git a/flask-app/src/User/user.py b/flask-app/src/User/user.py index 480aa867..155062be 100644 --- a/flask-app/src/User/user.py +++ b/flask-app/src/User/user.py @@ -24,7 +24,6 @@ def get_user_info(): @user_blueprint.route('/user/', methods=['GET']) def get_user_by_id(UserID): cursor = db.get_db().cursor() - print("checking to see") cursor.execute('SELECT * FROM User WHERE UserID = %s', (UserID,)) row_headers = [x[0] for x in cursor.description] json_data = [] @@ -83,24 +82,25 @@ def delete_user_likes(UserID): cursor.execute('UPDATE User SET Likes = NULL WHERE UserID = %s', (UserID,)) db.get_db().commit() return 'User likes deleted.', 200 + #post new user @app.route('/users', methods=['POST']) def create_user(): data = request.get_json() try: - name = data['Name'] - age = data['Age'] - occupation = data['Occupation'] - hometown = data['Hometown'] - budget = data['Budget'] - dislikes = data['Dislikes'] - likes = data['Likes'] - gender = data['Gender'] - dietary_restrictions = data['Dietary_restrictions'] - subscription_plan = data['Subscription_plan'] - payment_id = data['Payment_id'] + Name = data['Name'] + Age = data['Age'] + Occupation = data['Occupation'] + Hometown = data['Hometown'] + Budget = data['Budget'] + Dislikes = data['Dislikes'] + Likes = data['Likes'] + Gender = data['Gender'] + DietaryRestrictions = data['DietaryRestrictions'] + SubscriptionPlan = data['SubscriptionPlan'] + PaymentID = data['PaymentId'] Balance = data['Balance'] - payment_method = data['Payment_method'] + PaymentMethod = data['PaymentMethod'] cursor = db.cursor() @@ -109,7 +109,7 @@ def create_user(): VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) ''' - cursor.execute(query, (name, age, occupation, hometown, budget, dislikes, likes, gender, dietary_restrictions, subscription_plan, payment_id, Balance, payment_method)) + cursor.execute(query, (Name, Age, Occupation, Hometown, Budget, Dislikes, Likes, Gender, DietaryRestrictions, SubscriptionPlan, PaymentID, Balance, PaymentMethod)) db.commit() return jsonify({"message": "User created successfully."}), 201 From 62ed0e84701a570a801587a56bd5efe4e08365e6 Mon Sep 17 00:00:00 2001 From: tasnia6666 <123320063+tasnia6666@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:17:49 -0400 Subject: [PATCH 33/33] added user names --- db/sample_data.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/sample_data.sql b/db/sample_data.sql index ee27b62e..966736ff 100644 --- a/db/sample_data.sql +++ b/db/sample_data.sql @@ -14,10 +14,10 @@ insert into Activity (ActivityID) values (7); insert into Activity (ActivityID) values (8); /* User */ -insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (1, 4, 'Timothee Chalamet', 'student', 'male', '321 Maple Dr Riverdale GA', 'funny movies', 'adventure movies', 'none', 1, 200, 'Apple Pay', 203); -insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (2, 26, 'Cherlyn Bernolet', 'unemployed', 'Female', '321 Walnut Ave Springfield MO', 'adventure movies', 'quiet areas', 'vegan', 2, 187, 'Credit Card', 227); -insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (3, 32, 'Stephanus Bonds', 'student', 'Male', '789 Ash Dr Cincinnati OH', 'good study areas', 'good study areas', 'none', 3, 400, 'Debit Card', 222); -insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (4, 47, 'Bennie Bollon', 'baker', 'Male', '321 Oak St Seattle WA', 'loud areas', 'funny movies', 'gluten free', 4, 425, 'Paypal', 80); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (1, 4, 'Timothee Chalamet', 'student', 'Male', '321 Maple Dr Riverdale NY', 'spicy food', 'romance movie', 'none', 1, 200, 'Apple Pay', 203); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (2, 26, 'Lalisa Manoban', 'student', 'Female', '321 Walnut Ave Springfield ME', 'small areas', 'music festivals', 'vegan', 2, 25, 'Credit Card', 100); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (3, 32, 'Amelia Richards', 'student', 'Female', '789 Ash Dr Boston MA', 'loud music', 'quiet areas', 'none', 3, 50, 'Debit Card', 222); +insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (4, 47, 'Chloe Adams', 'student', 'Female', '321 Oak St Huston Texas', 'spicy food', 'italian food', 'gluten free', 4, 150, 'Paypal', 280); insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (5, 44, 'Melitta Stoller', 'fire fighter', 'Genderqueer', '987 Maple St Nashville TN', 'romance movies', 'Thai restaurant', 'vegan', 5, 92, 'Venmo', 247); insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (6, 54, 'Sukey Younglove', 'teacher', 'Female', '987 Cedar Ave Boise ID', 'adventure movies', 'loud areas', 'paleo', 6, 225, 'Debit Card', 50); insert into User (UserID, Age, Name, Occupation, gender, Hometown, Dislikes, Likes, DietaryRestrictions, PaymentID, Balance, PaymentMethod, Budget) values (7, 9, 'Doloritas Gonzales', 'unemployed', 'Female', '654 Poplar St Baltimore MD', 'quiet areas', 'savory food', 'vegetarian', 7, 406, 'Paypal', 28);