Initial commit

This commit is contained in:
2025-11-29 16:59:02 -06:00
commit da4f051282
25 changed files with 1144 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
-- Exercise Categories
INSERT INTO exercise_categories (id, name) VALUES
('550e8400-e29b-41d4-a716-446655440001', 'Strength'),
('550e8400-e29b-41d4-a716-446655440002', 'Cardio'),
('550e8400-e29b-41d4-a716-446655440003', 'Flexibility'),
('550e8400-e29b-41d4-a716-446655440004', 'Olympic Lifting'),
('550e8400-e29b-41d4-a716-446655440005', 'Bodyweight'),
('550e8400-e29b-41d4-a716-446655440006', 'Sports')
ON CONFLICT (name) DO NOTHING;

84
seeds/exercises.sql Normal file
View File

@@ -0,0 +1,84 @@
-- Strength Exercises
INSERT INTO exercises (name, description, category_id) VALUES
-- Chest
('Barbell Bench Press', 'Compound chest exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Dumbbell Bench Press', 'Chest exercise with dumbbells', '550e8400-e29b-41d4-a716-446655440001'),
('Incline Barbell Bench Press', 'Upper chest focus', '550e8400-e29b-41d4-a716-446655440001'),
('Decline Bench Press', 'Lower chest focus', '550e8400-e29b-41d4-a716-446655440001'),
('Chest Fly', 'Isolation chest exercise', '550e8400-e29b-41d4-a716-446655440001'),
-- Back
('Barbell Deadlift', 'Compound posterior chain exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Romanian Deadlift', 'Hamstring and glute focus', '550e8400-e29b-41d4-a716-446655440001'),
('Barbell Row', 'Back thickness builder', '550e8400-e29b-41d4-a716-446655440001'),
('Dumbbell Row', 'Unilateral back exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Lat Pulldown', 'Lat width builder', '550e8400-e29b-41d4-a716-446655440001'),
('Pull-ups', 'Bodyweight back exercise', '550e8400-e29b-41d4-a716-446655440005'),
('Chin-ups', 'Bicep emphasis pull-up variation', '550e8400-e29b-41d4-a716-446655440005'),
-- Legs
('Barbell Back Squat', 'Compound leg exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Front Squat', 'Quad-focused squat variation', '550e8400-e29b-41d4-a716-446655440001'),
('Bulgarian Split Squat', 'Unilateral leg exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Leg Press', 'Machine leg exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Leg Curl', 'Hamstring isolation', '550e8400-e29b-41d4-a716-446655440001'),
('Leg Extension', 'Quad isolation', '550e8400-e29b-41d4-a716-446655440001'),
('Calf Raise', 'Calf exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Walking Lunge', 'Dynamic leg exercise', '550e8400-e29b-41d4-a716-446655440001'),
-- Shoulders
('Overhead Press', 'Compound shoulder exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Dumbbell Shoulder Press', 'Dumbbell shoulder variation', '550e8400-e29b-41d4-a716-446655440001'),
('Lateral Raise', 'Side delt isolation', '550e8400-e29b-41d4-a716-446655440001'),
('Front Raise', 'Front delt isolation', '550e8400-e29b-41d4-a716-446655440001'),
('Face Pull', 'Rear delt and upper back', '550e8400-e29b-41d4-a716-446655440001'),
('Upright Row', 'Shoulder and trap exercise', '550e8400-e29b-41d4-a716-446655440001'),
-- Arms
('Barbell Curl', 'Bicep exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Dumbbell Curl', 'Unilateral bicep exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Hammer Curl', 'Brachialis focus', '550e8400-e29b-41d4-a716-446655440001'),
('Tricep Pushdown', 'Tricep isolation', '550e8400-e29b-41d4-a716-446655440001'),
('Skull Crusher', 'Tricep exercise', '550e8400-e29b-41d4-a716-446655440001'),
('Close-Grip Bench Press', 'Tricep compound movement', '550e8400-e29b-41d4-a716-446655440001'),
('Dips', 'Compound tricep and chest exercise', '550e8400-e29b-41d4-a716-446655440005')
ON CONFLICT DO NOTHING;
-- Olympic Lifting
INSERT INTO exercises (name, description, category_id) VALUES
('Clean and Jerk', 'Olympic lift - ground to overhead', '550e8400-e29b-41d4-a716-446655440004'),
('Snatch', 'Olympic lift - single movement overhead', '550e8400-e29b-41d4-a716-446655440004'),
('Power Clean', 'Explosive pulling movement', '550e8400-e29b-41d4-a716-446655440004'),
('Hang Clean', 'Clean from hang position', '550e8400-e29b-41d4-a716-446655440004')
ON CONFLICT DO NOTHING;
-- Bodyweight
INSERT INTO exercises (name, description, category_id) VALUES
('Push-ups', 'Bodyweight chest exercise', '550e8400-e29b-41d4-a716-446655440005'),
('Diamond Push-ups', 'Tricep-focused push-up variation', '550e8400-e29b-41d4-a716-446655440005'),
('Plank', 'Core stability exercise', '550e8400-e29b-41d4-a716-446655440005'),
('Side Plank', 'Oblique stability', '550e8400-e29b-41d4-a716-446655440005'),
('Hanging Leg Raise', 'Core and hip flexor exercise', '550e8400-e29b-41d4-a716-446655440005'),
('Pistol Squat', 'Single-leg squat', '550e8400-e29b-41d4-a716-446655440005'),
('Burpees', 'Full body conditioning', '550e8400-e29b-41d4-a716-446655440005'),
('Mountain Climbers', 'Core and cardio', '550e8400-e29b-41d4-a716-446655440005')
ON CONFLICT DO NOTHING;
-- Cardio
INSERT INTO exercises (name, description, category_id) VALUES
('Running', 'Outdoor or treadmill running', '550e8400-e29b-41d4-a716-446655440002'),
('Cycling', 'Road or stationary bike', '550e8400-e29b-41d4-a716-446655440002'),
('Rowing', 'Full body cardio on rower', '550e8400-e29b-41d4-a716-446655440002'),
('Swimming', 'Low impact cardio', '550e8400-e29b-41d4-a716-446655440002'),
('Jump Rope', 'High intensity cardio', '550e8400-e29b-41d4-a716-446655440002'),
('Elliptical', 'Low impact machine cardio', '550e8400-e29b-41d4-a716-446655440002'),
('Stair Climber', 'Lower body cardio', '550e8400-e29b-41d4-a716-446655440002')
ON CONFLICT DO NOTHING;
-- Flexibility
INSERT INTO exercises (name, description, category_id) VALUES
('Yoga', 'Flexibility and mindfulness practice', '550e8400-e29b-41d4-a716-446655440003'),
('Static Stretching', 'Hold stretch positions', '550e8400-e29b-41d4-a716-446655440003'),
('Dynamic Stretching', 'Active stretching movements', '550e8400-e29b-41d4-a716-446655440003'),
('Foam Rolling', 'Self-myofascial release', '550e8400-e29b-41d4-a716-446655440003')
ON CONFLICT DO NOTHING;

7
seeds/users.sql Normal file
View File

@@ -0,0 +1,7 @@
-- Seed Users
INSERT INTO users (id, email, username) VALUES
('650e8400-e29b-41d4-a716-446655440001', 'john.doe@example.com', 'johndoe'),
('650e8400-e29b-41d4-a716-446655440002', 'jane.smith@example.com', 'janesmith'),
('650e8400-e29b-41d4-a716-446655440003', 'mike.wilson@example.com', 'mikewilson'),
('650e8400-e29b-41d4-a716-446655440004', 'sarah.jones@example.com', 'sarahjones')
ON CONFLICT (email) DO NOTHING;

136
seeds/workouts.sql Normal file
View File

@@ -0,0 +1,136 @@
-- Workout 1: John's Push Day
INSERT INTO workouts (id, user_id, name, notes, workout_date) VALUES
('750e8400-e29b-41d4-a716-446655440001', '650e8400-e29b-41d4-a716-446655440001', 'Push Day', 'Felt strong today', '2024-10-01 09:00:00');
-- Workout exercises for Push Day
INSERT INTO workout_exercises (id, workout_id, exercise_id, order_index, notes) VALUES
('850e8400-e29b-41d4-a716-446655440001', '750e8400-e29b-41d4-a716-446655440001',
(SELECT id FROM exercises WHERE name = 'Barbell Bench Press'), 1, 'Felt good on chest'),
('850e8400-e29b-41d4-a716-446655440002', '750e8400-e29b-41d4-a716-446655440001',
(SELECT id FROM exercises WHERE name = 'Overhead Press'), 2, NULL),
('850e8400-e29b-41d4-a716-446655440003', '750e8400-e29b-41d4-a716-446655440001',
(SELECT id FROM exercises WHERE name = 'Tricep Pushdown'), 3, 'Burned out on last set');
-- Sets for Bench Press
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440001', 1, 10, 135.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440001', 2, 8, 185.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440001', 3, 6, 205.0, 'lbs', 8),
('850e8400-e29b-41d4-a716-446655440001', 4, 8, 185.0, 'lbs', 9);
-- Sets for Overhead Press
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440002', 1, 10, 95.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440002', 2, 8, 115.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440002', 3, 6, 125.0, 'lbs', 8);
-- Sets for Tricep Pushdown
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440003', 1, 12, 50.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440003', 2, 10, 60.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440003', 3, 8, 70.0, 'lbs', 9);
-- Workout 2: Jane's Leg Day
INSERT INTO workouts (id, user_id, name, notes, workout_date) VALUES
('750e8400-e29b-41d4-a716-446655440002', '650e8400-e29b-41d4-a716-446655440002', 'Leg Day', 'Tough session but got through it', '2024-10-02 10:30:00');
-- Workout exercises for Leg Day
INSERT INTO workout_exercises (id, workout_id, exercise_id, order_index) VALUES
('850e8400-e29b-41d4-a716-446655440004', '750e8400-e29b-41d4-a716-446655440002',
(SELECT id FROM exercises WHERE name = 'Barbell Back Squat'), 1),
('850e8400-e29b-41d4-a716-446655440005', '750e8400-e29b-41d4-a716-446655440002',
(SELECT id FROM exercises WHERE name = 'Romanian Deadlift'), 2),
('850e8400-e29b-41d4-a716-446655440006', '750e8400-e29b-41d4-a716-446655440002',
(SELECT id FROM exercises WHERE name = 'Walking Lunge'), 3);
-- Sets for Squat
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440004', 1, 8, 135.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440004', 2, 6, 155.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440004', 3, 5, 175.0, 'lbs', 8),
('850e8400-e29b-41d4-a716-446655440004', 4, 6, 155.0, 'lbs', 9);
-- Sets for Romanian Deadlift
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440005', 1, 10, 95.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440005', 2, 10, 115.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440005', 3, 8, 135.0, 'lbs', 8);
-- Sets for Walking Lunge
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440006', 1, 20, 25.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440006', 2, 20, 25.0, 'lbs', 8),
('850e8400-e29b-41d4-a716-446655440006', 3, 16, 30.0, 'lbs', 9);
-- Workout 3: Mike's Cardio Session
INSERT INTO workouts (id, user_id, name, notes, workout_date) VALUES
('750e8400-e29b-41d4-a716-446655440003', '650e8400-e29b-41d4-a716-446655440003', 'Morning Run', 'Beautiful weather', '2024-10-03 06:00:00');
INSERT INTO workout_exercises (id, workout_id, exercise_id, order_index) VALUES
('850e8400-e29b-41d4-a716-446655440007', '750e8400-e29b-41d4-a716-446655440003',
(SELECT id FROM exercises WHERE name = 'Running'), 1);
-- Cardio set with distance and duration
INSERT INTO exercise_sets (workout_exercise_id, set_number, duration_seconds, distance, distance_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440007', 1, 1800, 3.1, 'miles', 6);
-- Workout 4: Sarah's Pull Day
INSERT INTO workouts (id, user_id, name, notes, workout_date) VALUES
('750e8400-e29b-41d4-a716-446655440004', '650e8400-e29b-41d4-a716-446655440004', 'Pull Day', 'New PR on deadlift!', '2024-10-04 14:00:00');
INSERT INTO workout_exercises (id, workout_id, exercise_id, order_index, notes) VALUES
('850e8400-e29b-41d4-a716-446655440008', '750e8400-e29b-41d4-a716-446655440004',
(SELECT id FROM exercises WHERE name = 'Barbell Deadlift'), 1, 'PR on third set!'),
('850e8400-e29b-41d4-a716-446655440009', '750e8400-e29b-41d4-a716-446655440004',
(SELECT id FROM exercises WHERE name = 'Pull-ups'), 2, NULL),
('850e8400-e29b-41d4-a716-446655440010', '750e8400-e29b-41d4-a716-446655440004',
(SELECT id FROM exercises WHERE name = 'Barbell Row'), 3, NULL);
-- Sets for Deadlift
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440008', 1, 5, 185.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440008', 2, 3, 225.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440008', 3, 1, 255.0, 'lbs', 9),
('850e8400-e29b-41d4-a716-446655440008', 4, 5, 205.0, 'lbs', 8);
-- Sets for Pull-ups (bodyweight)
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440009', 1, 10, 7),
('850e8400-e29b-41d4-a716-446655440009', 2, 8, 8),
('850e8400-e29b-41d4-a716-446655440009', 3, 6, 9);
-- Sets for Barbell Row
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440010', 1, 10, 95.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440010', 2, 8, 115.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440010', 3, 8, 115.0, 'lbs', 8);
-- Workout 5: John's Second Workout - Full Body
INSERT INTO workouts (id, user_id, name, notes, workout_date) VALUES
('750e8400-e29b-41d4-a716-446655440005', '650e8400-e29b-41d4-a716-446655440001', 'Full Body', 'Quick session before work', '2024-10-05 07:00:00');
INSERT INTO workout_exercises (id, workout_id, exercise_id, order_index) VALUES
('850e8400-e29b-41d4-a716-446655440011', '750e8400-e29b-41d4-a716-446655440005',
(SELECT id FROM exercises WHERE name = 'Front Squat'), 1),
('850e8400-e29b-41d4-a716-446655440012', '750e8400-e29b-41d4-a716-446655440005',
(SELECT id FROM exercises WHERE name = 'Dumbbell Bench Press'), 2),
('850e8400-e29b-41d4-a716-446655440013', '750e8400-e29b-41d4-a716-446655440005',
(SELECT id FROM exercises WHERE name = 'Lat Pulldown'), 3);
-- Sets for Front Squat
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440011', 1, 8, 95.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440011', 2, 8, 115.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440011', 3, 6, 135.0, 'lbs', 8);
-- Sets for Dumbbell Bench Press
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion, notes) VALUES
('850e8400-e29b-41d4-a716-446655440012', 1, 10, 50.0, 'lbs', 6, 'Per dumbbell'),
('850e8400-e29b-41d4-a716-446655440012', 2, 8, 60.0, 'lbs', 7, 'Per dumbbell'),
('850e8400-e29b-41d4-a716-446655440012', 3, 8, 60.0, 'lbs', 8, 'Per dumbbell');
-- Sets for Lat Pulldown
INSERT INTO exercise_sets (workout_exercise_id, set_number, reps, weight, weight_unit, rate_perceived_exertion) VALUES
('850e8400-e29b-41d4-a716-446655440013', 1, 12, 100.0, 'lbs', 6),
('850e8400-e29b-41d4-a716-446655440013', 2, 10, 120.0, 'lbs', 7),
('850e8400-e29b-41d4-a716-446655440013', 3, 8, 140.0, 'lbs', 8);