95 lines
3.4 KiB
SQL
95 lines
3.4 KiB
SQL
-- Sample data for Meal Prep Planner
|
|
-- Run this to populate the database with example data for testing
|
|
|
|
-- Ingredients
|
|
INSERT INTO ingredients (name, unit) VALUES
|
|
('Chicken Breast', 'grams'),
|
|
('Rice', 'grams'),
|
|
('Broccoli', 'grams'),
|
|
('Olive Oil', 'ml'),
|
|
('Garlic', 'cloves'),
|
|
('Onion', 'pieces'),
|
|
('Tomatoes', 'pieces'),
|
|
('Pasta', 'grams'),
|
|
('Ground Beef', 'grams'),
|
|
('Cheese', 'grams'),
|
|
('Eggs', 'pieces'),
|
|
('Milk', 'ml'),
|
|
('Butter', 'grams'),
|
|
('Lettuce', 'grams'),
|
|
('Cucumber', 'pieces'),
|
|
('Bell Pepper', 'pieces'),
|
|
('Soy Sauce', 'ml'),
|
|
('Salt', 'grams'),
|
|
('Black Pepper', 'grams'),
|
|
('Carrots', 'pieces');
|
|
|
|
-- Meals
|
|
INSERT INTO meals (name, description) VALUES
|
|
('Grilled Chicken with Rice', 'Healthy protein-packed meal with vegetables'),
|
|
('Beef Pasta', 'Classic Italian-style pasta with ground beef'),
|
|
('Chicken Stir Fry', 'Asian-inspired quick meal'),
|
|
('Garden Salad', 'Fresh vegetable salad'),
|
|
('Scrambled Eggs Breakfast', 'Quick and easy breakfast');
|
|
|
|
-- Meal Ingredients for Grilled Chicken with Rice (meal_id: 1)
|
|
INSERT INTO meal_ingredients (meal_id, ingredient_id, quantity) VALUES
|
|
(1, 1, 200), -- Chicken Breast
|
|
(1, 2, 150), -- Rice
|
|
(1, 3, 100), -- Broccoli
|
|
(1, 4, 10), -- Olive Oil
|
|
(1, 5, 2), -- Garlic
|
|
(1, 18, 5), -- Salt
|
|
(1, 19, 2); -- Black Pepper
|
|
|
|
-- Meal Ingredients for Beef Pasta (meal_id: 2)
|
|
INSERT INTO meal_ingredients (meal_id, ingredient_id, quantity) VALUES
|
|
(2, 8, 200), -- Pasta
|
|
(2, 9, 150), -- Ground Beef
|
|
(2, 7, 2), -- Tomatoes
|
|
(2, 6, 1), -- Onion
|
|
(2, 5, 3), -- Garlic
|
|
(2, 4, 15), -- Olive Oil
|
|
(2, 18, 5), -- Salt
|
|
(2, 19, 2); -- Black Pepper
|
|
|
|
-- Meal Ingredients for Chicken Stir Fry (meal_id: 3)
|
|
INSERT INTO meal_ingredients (meal_id, ingredient_id, quantity) VALUES
|
|
(3, 1, 180), -- Chicken Breast
|
|
(3, 16, 1), -- Bell Pepper
|
|
(3, 20, 1), -- Carrots
|
|
(3, 3, 80), -- Broccoli
|
|
(3, 5, 2), -- Garlic
|
|
(3, 17, 30), -- Soy Sauce
|
|
(3, 4, 10); -- Olive Oil
|
|
|
|
-- Meal Ingredients for Garden Salad (meal_id: 4)
|
|
INSERT INTO meal_ingredients (meal_id, ingredient_id, quantity) VALUES
|
|
(4, 14, 100), -- Lettuce
|
|
(4, 15, 1), -- Cucumber
|
|
(4, 7, 2), -- Tomatoes
|
|
(4, 20, 1), -- Carrots
|
|
(4, 4, 20), -- Olive Oil
|
|
(4, 18, 3); -- Salt
|
|
|
|
-- Meal Ingredients for Scrambled Eggs Breakfast (meal_id: 5)
|
|
INSERT INTO meal_ingredients (meal_id, ingredient_id, quantity) VALUES
|
|
(5, 11, 3), -- Eggs
|
|
(5, 12, 50), -- Milk
|
|
(5, 13, 10), -- Butter
|
|
(5, 18, 2), -- Salt
|
|
(5, 19, 1); -- Black Pepper
|
|
|
|
-- Week Plan (next 7 days)
|
|
-- Using relative dates (you may need to adjust these based on current date)
|
|
INSERT INTO week_plan (date, meal_id) VALUES
|
|
(date('now'), 1), -- Today: Grilled Chicken with Rice
|
|
(date('now', '+1 day'), 2), -- Tomorrow: Beef Pasta
|
|
(date('now', '+1 day'), 4), -- Tomorrow: Garden Salad
|
|
(date('now', '+2 days'), 3), -- Day 3: Chicken Stir Fry
|
|
(date('now', '+3 days'), 1), -- Day 4: Grilled Chicken with Rice
|
|
(date('now', '+4 days'), 5), -- Day 5: Scrambled Eggs Breakfast
|
|
(date('now', '+4 days'), 4), -- Day 5: Garden Salad
|
|
(date('now', '+5 days'), 2), -- Day 6: Beef Pasta
|
|
(date('now', '+6 days'), 3); -- Day 7: Chicken Stir Fry
|