From 5a691a5ddf4994962dbc9019e37996b7f5a64e66 Mon Sep 17 00:00:00 2001 From: Harkamal Randhawa Date: Mon, 6 Apr 2026 21:18:30 -0600 Subject: [PATCH] seed stores and suppliers before products on fresh DB --- .../main/resources/dev/expand_pet_product_seed.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/src/main/resources/dev/expand_pet_product_seed.sql b/backend/src/main/resources/dev/expand_pet_product_seed.sql index 296bc7f6..b51c3dec 100644 --- a/backend/src/main/resources/dev/expand_pet_product_seed.sql +++ b/backend/src/main/resources/dev/expand_pet_product_seed.sql @@ -97,6 +97,18 @@ VALUES ('Sprout', 'Hamster', 'Roborovski', 1, 'Available', 26.00), ('Bean', 'Hamster', 'Syrian', 2, 'Available', 28.00); +INSERT IGNORE INTO storeLocation (storeId, storeName, address, phone, email) VALUES +(1, 'Downtown Branch', '123 Main St, Calgary, AB', '403-555-0101', 'downtown@petshop.com'), +(2, 'North Branch', '456 North Ave, Calgary, AB', '403-555-0102', 'north@petshop.com'), +(3, 'West Side Store', '789 West Blvd, Calgary, AB', '403-555-0103', 'westside@petshop.com'); + +INSERT IGNORE INTO supplier (supId, supCompany, supContactFirstName, supContactLastName, supEmail, supPhone) VALUES +(1, 'PetFood Inc', 'Robert', 'King', 'contact@petfood.com', '403-601-1001'), +(2, 'Toy World', 'Jennifer', 'Lee', 'sales@toyworld.com', '403-601-1002'), +(3, 'Pet Supplies Co', 'Kevin', 'White', 'info@petsupplies.com', '403-601-1003'), +(4, 'Animal Care Products', 'Nancy', 'Green', 'orders@animalcare.com', '403-601-1004'), +(5, 'Premium Pet Goods', 'Tom', 'Black', 'support@premiumpet.com', '403-601-1005'); + INSERT IGNORE INTO category (categoryId, categoryName, categoryType) VALUES (1, 'Dog Food', 'Product'), (2, 'Cat Toys', 'Product'),