uploads
This commit is contained in:
@@ -4,7 +4,6 @@ const pool = mysql.createPool({
|
|||||||
host: "localhost",
|
host: "localhost",
|
||||||
user: "root",
|
user: "root",
|
||||||
database: "Marketplace",
|
database: "Marketplace",
|
||||||
password: "12345678",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// const pool = mysql.createPool(
|
// const pool = mysql.createPool(
|
||||||
|
|||||||
@@ -81,28 +81,27 @@ VALUES
|
|||||||
('Art Supplies'),
|
('Art Supplies'),
|
||||||
('Kitchen Appliances'),
|
('Kitchen Appliances'),
|
||||||
('Gaming'),
|
('Gaming'),
|
||||||
( 'Bicycles'),
|
('Bicycles'),
|
||||||
( 'Computer Accessories'),
|
('Computer Accessories'),
|
||||||
( 'Stationery'),
|
('Stationery'),
|
||||||
( 'Fitness Equipment'),
|
('Fitness Equipment'),
|
||||||
( 'Winter Sports'),
|
('Winter Sports'),
|
||||||
( 'Lab Equipment'),
|
('Lab Equipment'),
|
||||||
( 'Camping Gear'),
|
('Camping Gear'),
|
||||||
( 'School Supplies'),
|
('School Supplies'),
|
||||||
( 'Office Furniture'),
|
('Office Furniture'),
|
||||||
( 'Books (-textbook)'),
|
('Books (-textbook)'),
|
||||||
( 'Math & Science Resources'),
|
('Math & Science Resources'),
|
||||||
( 'Engineering Tools'),
|
('Engineering Tools'),
|
||||||
( 'Backpacks & Bags'),
|
('Backpacks & Bags'),
|
||||||
( 'Audio Equipment'),
|
('Audio Equipment'),
|
||||||
( 'Dorm Essentials'),
|
('Dorm Essentials'),
|
||||||
( 'Smartphones & Tablets'),
|
('Smartphones & Tablets'),
|
||||||
( 'Winter Clothing'),
|
('Winter Clothing'),
|
||||||
( 'Photography Equipment'),
|
('Photography Equipment'),
|
||||||
( 'Event Tickets'),
|
('Event Tickets'),
|
||||||
( 'Software Licenses'),
|
('Software Licenses'),
|
||||||
( 'Transportation (Car Pool)');
|
('Transportation (Car Pool)');
|
||||||
|
|
||||||
|
|
||||||
-- Insert Products
|
-- Insert Products
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
@@ -321,29 +320,29 @@ VALUES
|
|||||||
INSERT INTO
|
INSERT INTO
|
||||||
Image_URL (URL, ProductID)
|
Image_URL (URL, ProductID)
|
||||||
VALUES
|
VALUES
|
||||||
('/Pictures/Dell1.jpg', 1),
|
('/Uploads/Dell1.jpg', 1),
|
||||||
('/Pictures/Dell2.jpg', 1),
|
('/Uploads/Dell2.jpg', 1),
|
||||||
('/Pictures/Dell3.jpg', 1),
|
('/Uploads/Dell3.jpg', 1),
|
||||||
('/Pictures/HP-Laptop1.jpg', 2),
|
('/Uploads/HP-Laptop1.jpg', 2),
|
||||||
('/Pictures/HP-Laptop1.jpg', 2),
|
('/Uploads/HP-Laptop1.jpg', 2),
|
||||||
('/Pictures/Dorm-Desk.jpg', 3),
|
('/Uploads/Dorm-Desk.jpg', 3),
|
||||||
('/Pictures/University-Hoodie.jpg', 4),
|
('/Uploads/University-Hoodie.jpg', 4),
|
||||||
('/Pictures/Basketball.jpg', 5),
|
('/Uploads/Basketball.jpg', 5),
|
||||||
('/Pictures/Acoustic-Guitar.jpg', 6),
|
('/Uploads/Acoustic-Guitar.jpg', 6),
|
||||||
('/Pictures/Physics-Textbook.jpg', 7),
|
('/Uploads/Physics-Textbook.jpg', 7),
|
||||||
('/Pictures/Mini-Fridge.jpg', 8),
|
('/Uploads/Mini-Fridge.jpg', 8),
|
||||||
('/Pictures/Controller.jpg', 9),
|
('/Uploads/Controller.jpg', 9),
|
||||||
('/Pictures/Mountain-Bike.jpg', 10),
|
('/Uploads/Mountain-Bike.jpg', 10),
|
||||||
('/Pictures/Wireless-Mouse.jpg', 11),
|
('/Uploads/Wireless-Mouse.jpg', 11),
|
||||||
('/Pictures/Lab-Coat.jpg', 12),
|
('/Uploads/Lab-Coat.jpg', 12),
|
||||||
('/Pictures/Calculator.jpg', 13),
|
('/Uploads/Calculator.jpg', 13),
|
||||||
('/Pictures/Yoga-Mat.jpg', 14),
|
('/Uploads/Yoga-Mat.jpg', 14),
|
||||||
('/Pictures/Winter-Jacket.jpg', 15),
|
('/Uploads/Winter-Jacket.jpg', 15),
|
||||||
('/Pictures/CS-Textbook.jpg', 16),
|
('/Uploads/CS-Textbook.jpg', 16),
|
||||||
('/Pictures/Desk-Lamp.jpg', 17),
|
('/Uploads/Desk-Lamp.jpg', 17),
|
||||||
('/Pictures/HP-Calculator.jpg', 18),
|
('/Uploads/HP-Calculator.jpg', 18),
|
||||||
('/Pictures/Bluetooth-Speaker.jpg', 19),
|
('/Uploads/Bluetooth-Speaker.jpg', 19),
|
||||||
('/Pictures/Backpack.jpg', 20);
|
('/Uploads/Backpack.jpg', 20);
|
||||||
|
|
||||||
-- Insert Product-Category relationships (products with multiple categories)
|
-- Insert Product-Category relationships (products with multiple categories)
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user