|
1 | | --- Students |
2 | | -INSERT INTO student (first_name, last_name, email) |
3 | | -VALUES ('Alice', 'Smith', 'alice1@example.com'), |
4 | | - ('Bob', 'Johnson', 'bob2@example.com'), |
5 | | - ('Carol', 'Lee', 'carol3@example.com'), |
6 | | - ('David', 'Kim', 'david4@example.com'), |
7 | | - ('Eva', 'Brown', 'eva5@example.com'), |
8 | | - ('Frank', 'White', 'frank6@example.com'), |
9 | | - ('Grace', 'Green', 'grace7@example.com'), |
10 | | - ('Henry', 'Black', 'henry8@example.com'), |
11 | | - ('Ivy', 'Young', 'ivy9@example.com'), |
12 | | - ('Jack', 'Hall', 'jack10@example.com'), |
13 | | - ('Kara', 'King', 'kara11@example.com'), |
14 | | - ('Liam', 'Scott', 'liam12@example.com'), |
15 | | - ('Mia', 'Adams', 'mia13@example.com'), |
16 | | - ('Noah', 'Baker', 'noah14@example.com'), |
17 | | - ('Olivia', 'Clark', 'olivia15@example.com'), |
18 | | - ('Paul', 'Davis', 'paul16@example.com'), |
19 | | - ('Quinn', 'Evans', 'quinn17@example.com'), |
20 | | - ('Ruby', 'Foster', 'ruby18@example.com'), |
21 | | - ('Sam', 'Gray', 'sam19@example.com'), |
22 | | - ('Tina', 'Harris', 'tina20@example.com'); |
| 1 | +-- User accounts for students. All passwords are the same: 'password123' hashed |
| 2 | +INSERT INTO user_account (password_hash, email_address, role) |
| 3 | +VALUES ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'alice1@example.com', 'student'), |
| 4 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'bob2@example.com', 'student'), |
| 5 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'carol3@example.com', 'student'), |
| 6 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'david4@example.com', 'student'), |
| 7 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'eva5@example.com', 'student'), |
| 8 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'frank6@example.com', 'student'), |
| 9 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'grace7@example.com', 'student'), |
| 10 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'henry8@example.com', 'student'), |
| 11 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'ivy9@example.com', 'student'), |
| 12 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'jack10@example.com', 'student'), |
| 13 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'kara11@example.com', 'student'), |
| 14 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'liam12@example.com', 'student'), |
| 15 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'mia13@example.com', 'student'), |
| 16 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'noah14@example.com', 'student'), |
| 17 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'olivia15@example.com', 'student'), |
| 18 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'paul16@example.com', 'student'), |
| 19 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'quinn17@example.com', 'student'), |
| 20 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'ruby18@example.com', 'student'), |
| 21 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'sam19@example.com', 'student'), |
| 22 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'tina20@example.com', 'student'), |
| 23 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'alan@example.com', 'instructor'), |
| 24 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'brenda@example.com', 'instructor'), |
| 25 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'charles@example.com', 'instructor'), |
| 26 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'diana@example.com', 'instructor'), |
| 27 | + ('$2a$10$JPQ/pnZqC8efUOi3M9ZqReeNDR7IkA1Ry973r.IK020zHSuP4P.KC', 'edward@example.com', 'instructor'); |
| 28 | + |
| 29 | + |
| 30 | +-- Students (with user_id references) |
| 31 | +INSERT INTO student (student_id, first_name, last_name, enrollment_date) |
| 32 | +VALUES (1, 'Alice', 'Smith', '2023-09-01'), |
| 33 | + (2, 'Bob', 'Johnson', '2023-09-01'), |
| 34 | + (3, 'Carol', 'Lee', '2023-09-01'), |
| 35 | + (4, 'David', 'Kim', '2023-09-01'), |
| 36 | + (5, 'Eva', 'Brown', '2023-09-01'), |
| 37 | + (6, 'Frank', 'White', '2023-09-01'), |
| 38 | + (7, 'Grace', 'Green', '2023-09-01'), |
| 39 | + (8, 'Henry', 'Black', '2023-09-01'), |
| 40 | + (9, 'Ivy', 'Young', '2023-09-01'), |
| 41 | + (10, 'Jack', 'Hall', '2023-09-01'), |
| 42 | + (11, 'Kara', 'King', '2023-09-01'), |
| 43 | + (12, 'Liam', 'Scott', '2023-09-01'), |
| 44 | + (13, 'Mia', 'Adams', '2023-09-01'), |
| 45 | + (14, 'Noah', 'Baker', '2023-09-01'), |
| 46 | + (15, 'Olivia', 'Clark', '2023-09-01'), |
| 47 | + (16, 'Paul', 'Davis', '2023-09-01'), |
| 48 | + (17, 'Quinn', 'Evans', '2023-09-01'), |
| 49 | + (18, 'Ruby', 'Foster', '2023-09-01'), |
| 50 | + (19, 'Sam', 'Gray', '2023-09-01'), |
| 51 | + (20, 'Tina', 'Harris', '2023-09-01'); |
| 52 | + |
23 | 53 |
|
24 | 54 | -- Instructors |
25 | | -INSERT INTO instructor (first_name, last_name, email) |
26 | | -VALUES ('Alan', 'Murray', 'alan@example.com'), |
27 | | - ('Brenda', 'Stone', 'brenda@example.com'), |
28 | | - ('Charles', 'Ford', 'charles@example.com'), |
29 | | - ('Diana', 'Wells', 'diana@example.com'), |
30 | | - ('Edward', 'Lane', 'edward@example.com'); |
| 55 | +INSERT INTO instructor (instructor_id, first_name, last_name, hire_date) |
| 56 | +VALUES (21, 'Alan', 'Murray', '2021-04-01'), |
| 57 | + (22, 'Brenda', 'Stone', '2023-09-01'), |
| 58 | + (23, 'Charles', 'Ford', '2020-01-01'), |
| 59 | + (24, 'Diana', 'Wells', '2019-02-01'), |
| 60 | + (25, 'Edward', 'Lane', '2018-03-01'); |
31 | 61 |
|
32 | 62 | -- Courses |
33 | 63 | INSERT INTO course (name, description, instructor_id, start_date, end_date, max_enrollments) |
34 | | -VALUES ('Introduction to Calculus', 'Fundamental concepts of calculus including limits, derivatives, and integrals.', 1, |
| 64 | +VALUES ('Introduction to Calculus', 'Fundamental concepts of calculus including limits, derivatives, and integrals.', |
| 65 | + 21, |
35 | 66 | '2024-09-01', '2024-12-15', 30), |
36 | | - ('General Physics I', 'Mechanics, motion, energy, and basic physical laws.', 2, '2024-09-01', '2024-12-15', 28), |
37 | | - ('Organic Chemistry', 'Structure, properties, and reactions of organic compounds.', 3, '2024-09-01', |
| 67 | + ('General Physics I', 'Mechanics, motion, energy, and basic physical laws.', 22, '2024-09-01', '2024-12-15', 28), |
| 68 | + ('Organic Chemistry', 'Structure, properties, and reactions of organic compounds.', 23, '2024-09-01', |
38 | 69 | '2024-12-15', 25), |
39 | | - ('Human Biology', 'Overview of human anatomy, physiology, and genetics.', 4, '2024-09-01', '2024-12-15', 32), |
40 | | - ('World History: 1500-Present', 'Major global events and trends from 1500 to the present.', 5, '2024-09-01', |
| 70 | + ('Human Biology', 'Overview of human anatomy, physiology, and genetics.', 24, '2024-09-01', '2024-12-15', 32), |
| 71 | + ('World History: 1500-Present', 'Major global events and trends from 1500 to the present.', 25, '2024-09-01', |
41 | 72 | '2024-12-15', 50), |
42 | | - ('British Literature', 'Study of classic and modern British literary works.', 1, '2024-09-01', '2024-12-15', 22), |
43 | | - ('Fundamentals of Drawing', 'Techniques and principles of drawing for beginners.', 2, '2024-09-01', '2024-12-15', |
| 73 | + ('British Literature', 'Study of classic and modern British literary works.', 21, '2024-09-01', '2024-12-15', |
| 74 | + 22), |
| 75 | + ('Fundamentals of Drawing', 'Techniques and principles of drawing for beginners.', 22, '2024-09-01', |
| 76 | + '2024-12-15', |
44 | 77 | 18), |
45 | | - ('Music Theory and Composition', 'Basics of music theory and introductory composition.', 3, '2024-09-01', |
| 78 | + ('Music Theory and Composition', 'Basics of music theory and introductory composition.', 23, '2024-09-01', |
46 | 79 | '2024-12-15', 20), |
47 | | - ('Introduction to Programming with Java', 'Core Java programming concepts and hands-on projects.', 4, |
| 80 | + ('Introduction to Programming with Java', 'Core Java programming concepts and hands-on projects.', 24, |
48 | 81 | '2024-09-01', '2024-12-15', 35), |
49 | | - ('Principles of Microeconomics', 'Microeconomic theory, market structures, and consumer behavior.', 5, |
| 82 | + ('Principles of Microeconomics', 'Microeconomic theory, market structures, and consumer behavior.', 25, |
50 | 83 | '2024-09-01', '2024-12-15', 18); |
51 | 84 |
|
52 | 85 | -- Enrollments |
|
0 commit comments