|
-- Sample data for workout schema (DML with data clearing) |
|
|
|
-- Clear existing data (in reverse dependency order) |
|
DELETE FROM workout.activity; |
|
DELETE FROM workout.set; |
|
DELETE FROM workout.workout; |
|
DELETE FROM workout.exercise; |
|
|
|
-- Insert exercises (10 unique exercises) |
|
INSERT INTO workout.exercise (exercise, label, name, description, alternatives) VALUES |
|
('11111111-1111-1111-1111-111111111111', 'standard-push-ups', 'Standard Push-ups', 'Classic push-up exercise for chest and triceps', '{}'), |
|
('22222222-2222-2222-2222-222222222222', 'pull-ups', 'Pull-ups', 'Upper body pulling exercise', '{"11111111-1111-1111-1111-111111111111"}'), |
|
('33333333-3333-3333-3333-333333333333', 'bodyweight-squats', 'Bodyweight Squats', NULL, '{"44444444-4444-4444-4444-444444444444"}'), |
|
('44444444-4444-4444-4444-444444444444', 'walking-lunges', 'Walking Lunges', 'Forward walking lunges', '{"33333333-3333-3333-3333-333333333333"}'), |
|
('55555555-5555-5555-5555-555555555555', 'plank-hold', 'Plank Hold', 'Core stability exercise', '{}'), |
|
('66666666-6666-6666-6666-666666666666', 'burpees', 'Burpees', 'Full body cardio exercise', '{}'), |
|
('77777777-7777-7777-7777-777777777777', 'romanian-deadlifts', 'Romanian Deadlifts', 'Hamstring and lower back exercise', '{}'), |
|
('88888888-8888-8888-8888-888888888888', 'dumbbell-bench-press', 'Dumbbell Bench Press', NULL, '{"11111111-1111-1111-1111-111111111111"}'), |
|
('99999999-9999-9999-9999-999999999999', 'bent-over-rows', 'Bent-over Rows', 'Back exercise for thickness', '{"22222222-2222-2222-2222-222222222222"}'), |
|
('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa', 'overhead-press', 'Overhead Press', 'Shoulder strength exercise', '{}'); |
|
|
|
-- Insert workouts (3 workouts) |
|
INSERT INTO workout.workout (workout, label, name, description) VALUES |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 'full-body-strength-training', 'Full Body Strength Training', 'Complete full body workout for overall strength'), |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 'upper-body-focus', 'Upper Body Focus', 'Intense upper body session'), |
|
('dddddddd-dddd-dddd-dddd-dddddddddddd', 'leg-day-blast', 'Leg Day Blast', 'Lower body strength and conditioning'); |
|
|
|
-- Insert sets for Workout 1 (Full Body - 3 sets) |
|
INSERT INTO workout.set (workout, set_order, name, description) VALUES |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 1, 'Warm-up Circuit', 'Light exercises to warm up'), |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 2, 'Main Strength', 'Heavy compound movements'), |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 3, 'Finisher', 'High intensity finisher'); |
|
|
|
-- Insert sets for Workout 2 (Upper Body - 2 sets) |
|
INSERT INTO workout.set (workout, set_order, name, description) VALUES |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 1, 'Push Exercises', 'Chest, shoulders, triceps'), |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 2, 'Pull Exercises', 'Back and biceps'); |
|
|
|
-- Insert sets for Workout 3 (Leg Day - 3 sets) |
|
INSERT INTO workout.set (workout, set_order, name, description) VALUES |
|
('dddddddd-dddd-dddd-dddd-dddddddddddd', 1, 'Quad Focus', 'Quadriceps dominant exercises'), |
|
('dddddddd-dddd-dddd-dddd-dddddddddddd', 2, 'Posterior Chain', 'Hamstrings and glutes'), |
|
('dddddddd-dddd-dddd-dddd-dddddddddddd', 3, 'Core Work', 'Core stability and strength'); |
|
|
|
-- Activities for Workout 1, Set 1 (Warm-up - 4 activities with 1 rest) |
|
INSERT INTO workout.activity (workout, set_order, activity_order, exercise, duration, guidance) VALUES |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 1, 1, '66666666-6666-6666-6666-666666666666', 30, 'Keep pace moderate'), |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 1, 2, NULL, 15, NULL), -- Rest |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 1, 3, '11111111-1111-1111-1111-111111111111', 45, 'Full range of motion'), |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 1, 4, '33333333-3333-3333-3333-333333333333', 60, NULL); |
|
|
|
-- Activities for Workout 1, Set 2 (Main Strength - 5 activities with 2 rests) |
|
INSERT INTO workout.activity (workout, set_order, activity_order, exercise, duration, guidance) VALUES |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 2, 1, '77777777-7777-7777-7777-777777777777', 90, 'Keep back neutral'), |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 2, 2, NULL, 60, 'Deep breathing'), -- Rest |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 2, 3, '22222222-2222-2222-2222-222222222222', 75, 'Control the negative'), |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 2, 4, NULL, 60, NULL), -- Rest |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 2, 5, 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa', 80, 'Press overhead fully'); |
|
|
|
-- Activities for Workout 1, Set 3 (Finisher - 3 activities with 1 rest) |
|
INSERT INTO workout.activity (workout, set_order, activity_order, exercise, duration, guidance) VALUES |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 3, 1, '66666666-6666-6666-6666-666666666666', 120, 'Maximum effort'), |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 3, 2, NULL, 30, NULL), -- Rest |
|
('bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb', 3, 3, '55555555-5555-5555-5555-555555555555', 60, 'Hold strong plank position'); |
|
|
|
-- Activities for Workout 2, Set 1 (Push - 5 activities with 2 rests) |
|
INSERT INTO workout.activity (workout, set_order, activity_order, exercise, duration, guidance) VALUES |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 1, 1, '88888888-8888-8888-8888-888888888888', 90, NULL), |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 1, 2, NULL, 45, NULL), -- Rest |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 1, 3, 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa', 75, 'Strict form'), |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 1, 4, NULL, 45, 'Shake out arms'), -- Rest |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 1, 5, '11111111-1111-1111-1111-111111111111', 60, 'Push to failure'); |
|
|
|
-- Activities for Workout 2, Set 2 (Pull - 4 activities with 1 rest) |
|
INSERT INTO workout.activity (workout, set_order, activity_order, exercise, duration, guidance) VALUES |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 2, 1, '22222222-2222-2222-2222-222222222222', 80, 'Full hang at bottom'), |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 2, 2, NULL, 50, NULL), -- Rest |
|
('cccccccc-cccc-cccc-cccc-cccccccccccc', 2, 3, '99 |