243 lines
22 KiB
SQL
243 lines
22 KiB
SQL
-- Clean database
|
|
TRUNCATE TABLE "Admin", "Grade", "Class", "Subject", "Teacher", "TeacherSubject", "Lesson", "Parent", "Student", "Exam", "Assignment", "Result", "Attendance", "Event", "Announcement" CASCADE;
|
|
|
|
INSERT INTO "Admin" ("id", "username") VALUES
|
|
('admin1', 'admin1'),
|
|
('admin2', 'admin2');
|
|
|
|
INSERT INTO "Grade" ("id", "level") VALUES
|
|
(1, 1),
|
|
(2, 2),
|
|
(3, 3),
|
|
(4, 4),
|
|
(5, 5),
|
|
(6, 6);
|
|
|
|
INSERT INTO "Teacher" ("id", "username", "name", "surname", "email", "phone", "address", "bloodType", "sex", "birthday") VALUES
|
|
('teacher1', 'teacher1', 'TName1', 'TSurname1', 'teacher1@example.com', '123-456-7891', 'Address1', 'A+', 'FEMALE', '1996-02-27T00:26:35.280Z'),
|
|
('teacher2', 'teacher2', 'TName2', 'TSurname2', 'teacher2@example.com', '123-456-7892', 'Address2', 'A+', 'MALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher3', 'teacher3', 'TName3', 'TSurname3', 'teacher3@example.com', '123-456-7893', 'Address3', 'A+', 'FEMALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher4', 'teacher4', 'TName4', 'TSurname4', 'teacher4@example.com', '123-456-7894', 'Address4', 'A+', 'MALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher5', 'teacher5', 'TName5', 'TSurname5', 'teacher5@example.com', '123-456-7895', 'Address5', 'A+', 'FEMALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher6', 'teacher6', 'TName6', 'TSurname6', 'teacher6@example.com', '123-456-7896', 'Address6', 'A+', 'MALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher7', 'teacher7', 'TName7', 'TSurname7', 'teacher7@example.com', '123-456-7897', 'Address7', 'A+', 'FEMALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher8', 'teacher8', 'TName8', 'TSurname8', 'teacher8@example.com', '123-456-7898', 'Address8', 'A+', 'MALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher9', 'teacher9', 'TName9', 'TSurname9', 'teacher9@example.com', '123-456-7899', 'Address9', 'A+', 'FEMALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher10', 'teacher10', 'TName10', 'TSurname10', 'teacher10@example.com', '123-456-78910', 'Address10', 'A+', 'MALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher11', 'teacher11', 'TName11', 'TSurname11', 'teacher11@example.com', '123-456-78911', 'Address11', 'A+', 'FEMALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher12', 'teacher12', 'TName12', 'TSurname12', 'teacher12@example.com', '123-456-78912', 'Address12', 'A+', 'MALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher13', 'teacher13', 'TName13', 'TSurname13', 'teacher13@example.com', '123-456-78913', 'Address13', 'A+', 'FEMALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher14', 'teacher14', 'TName14', 'TSurname14', 'teacher14@example.com', '123-456-78914', 'Address14', 'A+', 'MALE', '1996-02-27T00:26:35.281Z'),
|
|
('teacher15', 'teacher15', 'TName15', 'TSurname15', 'teacher15@example.com', '123-456-78915', 'Address15', 'A+', 'FEMALE', '1996-02-27T00:26:35.281Z');
|
|
|
|
INSERT INTO "Class" ("id", "name", "gradeId", "capacity", "supervisorId") VALUES
|
|
(1, '1A', 1, 17, 'teacher12'),
|
|
(2, '2A', 2, 15, 'teacher13'),
|
|
(3, '3A', 3, 18, 'teacher14'),
|
|
(4, '4A', 4, 20, 'teacher15'),
|
|
(5, '5A', 5, 20, 'teacher10'),
|
|
(6, '6A', 6, 20, 'teacher11');
|
|
|
|
INSERT INTO "Subject" ("id", "name") VALUES
|
|
(1, 'Mathematics'),
|
|
(2, 'Science'),
|
|
(3, 'English'),
|
|
(4, 'History'),
|
|
(5, 'Geography'),
|
|
(6, 'Physics'),
|
|
(7, 'Chemistry'),
|
|
(8, 'Biology'),
|
|
(9, 'Computer Science'),
|
|
(10, 'Art');
|
|
|
|
INSERT INTO "TeacherSubject" ("subjectId", "teacherId", "isPrimary") VALUES
|
|
(2, 'teacher1', true),
|
|
(3, 'teacher2', true),
|
|
(4, 'teacher3', true),
|
|
(5, 'teacher4', true),
|
|
(6, 'teacher5', true),
|
|
(7, 'teacher6', true),
|
|
(8, 'teacher7', true),
|
|
(9, 'teacher8', true),
|
|
(10, 'teacher9', true),
|
|
(1, 'teacher10', true),
|
|
(2, 'teacher11', true),
|
|
(3, 'teacher12', true),
|
|
(4, 'teacher13', true),
|
|
(5, 'teacher14', true),
|
|
(6, 'teacher15', true);
|
|
|
|
INSERT INTO "Lesson" ("id", "name", "day", "startTime", "endTime", "subjectId", "classId", "teacherId") VALUES
|
|
(1, 'Lesson1', 'TUESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 2, 2, 'teacher2'),
|
|
(2, 'Lesson2', 'MONDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 3, 3, 'teacher3'),
|
|
(3, 'Lesson3', 'TUESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 4, 4, 'teacher4'),
|
|
(4, 'Lesson4', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 5, 5, 'teacher5'),
|
|
(5, 'Lesson5', 'MONDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 6, 6, 'teacher6'),
|
|
(6, 'Lesson6', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 7, 1, 'teacher7'),
|
|
(7, 'Lesson7', 'WEDNESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 8, 2, 'teacher8'),
|
|
(8, 'Lesson8', 'MONDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 9, 3, 'teacher9'),
|
|
(9, 'Lesson9', 'FRIDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 10, 4, 'teacher10'),
|
|
(10, 'Lesson10', 'FRIDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 1, 5, 'teacher11'),
|
|
(11, 'Lesson11', 'TUESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 2, 6, 'teacher12'),
|
|
(12, 'Lesson12', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 3, 1, 'teacher13'),
|
|
(13, 'Lesson13', 'WEDNESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 4, 2, 'teacher14'),
|
|
(14, 'Lesson14', 'TUESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 5, 3, 'teacher15'),
|
|
(15, 'Lesson15', 'TUESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 6, 4, 'teacher1'),
|
|
(16, 'Lesson16', 'MONDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 7, 5, 'teacher2'),
|
|
(17, 'Lesson17', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 8, 6, 'teacher3'),
|
|
(18, 'Lesson18', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 9, 1, 'teacher4'),
|
|
(19, 'Lesson19', 'FRIDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 10, 2, 'teacher5'),
|
|
(20, 'Lesson20', 'MONDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 1, 3, 'teacher6'),
|
|
(21, 'Lesson21', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 2, 4, 'teacher7'),
|
|
(22, 'Lesson22', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 3, 5, 'teacher8'),
|
|
(23, 'Lesson23', 'WEDNESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 4, 6, 'teacher9'),
|
|
(24, 'Lesson24', 'FRIDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 5, 1, 'teacher10'),
|
|
(25, 'Lesson25', 'MONDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 6, 2, 'teacher11'),
|
|
(26, 'Lesson26', 'FRIDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 7, 3, 'teacher12'),
|
|
(27, 'Lesson27', 'WEDNESDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 8, 4, 'teacher13'),
|
|
(28, 'Lesson28', 'FRIDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 9, 5, 'teacher14'),
|
|
(29, 'Lesson29', 'MONDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 10, 6, 'teacher15'),
|
|
(30, 'Lesson30', 'THURSDAY', '2026-02-27T01:26:35.281Z', '2026-02-27T03:26:35.281Z', 1, 1, 'teacher1');
|
|
|
|
INSERT INTO "Parent" ("id", "username", "name", "surname", "email", "phone", "address") VALUES
|
|
('parentId1', 'parentId1', 'PName 1', 'PSurname 1', 'parent1@example.com', '123-456-7891', 'Address1'),
|
|
('parentId2', 'parentId2', 'PName 2', 'PSurname 2', 'parent2@example.com', '123-456-7892', 'Address2'),
|
|
('parentId3', 'parentId3', 'PName 3', 'PSurname 3', 'parent3@example.com', '123-456-7893', 'Address3'),
|
|
('parentId4', 'parentId4', 'PName 4', 'PSurname 4', 'parent4@example.com', '123-456-7894', 'Address4'),
|
|
('parentId5', 'parentId5', 'PName 5', 'PSurname 5', 'parent5@example.com', '123-456-7895', 'Address5'),
|
|
('parentId6', 'parentId6', 'PName 6', 'PSurname 6', 'parent6@example.com', '123-456-7896', 'Address6'),
|
|
('parentId7', 'parentId7', 'PName 7', 'PSurname 7', 'parent7@example.com', '123-456-7897', 'Address7'),
|
|
('parentId8', 'parentId8', 'PName 8', 'PSurname 8', 'parent8@example.com', '123-456-7898', 'Address8'),
|
|
('parentId9', 'parentId9', 'PName 9', 'PSurname 9', 'parent9@example.com', '123-456-7899', 'Address9'),
|
|
('parentId10', 'parentId10', 'PName 10', 'PSurname 10', 'parent10@example.com', '123-456-78910', 'Address10'),
|
|
('parentId11', 'parentId11', 'PName 11', 'PSurname 11', 'parent11@example.com', '123-456-78911', 'Address11'),
|
|
('parentId12', 'parentId12', 'PName 12', 'PSurname 12', 'parent12@example.com', '123-456-78912', 'Address12'),
|
|
('parentId13', 'parentId13', 'PName 13', 'PSurname 13', 'parent13@example.com', '123-456-78913', 'Address13'),
|
|
('parentId14', 'parentId14', 'PName 14', 'PSurname 14', 'parent14@example.com', '123-456-78914', 'Address14'),
|
|
('parentId15', 'parentId15', 'PName 15', 'PSurname 15', 'parent15@example.com', '123-456-78915', 'Address15'),
|
|
('parentId16', 'parentId16', 'PName 16', 'PSurname 16', 'parent16@example.com', '123-456-78916', 'Address16'),
|
|
('parentId17', 'parentId17', 'PName 17', 'PSurname 17', 'parent17@example.com', '123-456-78917', 'Address17'),
|
|
('parentId18', 'parentId18', 'PName 18', 'PSurname 18', 'parent18@example.com', '123-456-78918', 'Address18'),
|
|
('parentId19', 'parentId19', 'PName 19', 'PSurname 19', 'parent19@example.com', '123-456-78919', 'Address19'),
|
|
('parentId20', 'parentId20', 'PName 20', 'PSurname 20', 'parent20@example.com', '123-456-78920', 'Address20'),
|
|
('parentId21', 'parentId21', 'PName 21', 'PSurname 21', 'parent21@example.com', '123-456-78921', 'Address21'),
|
|
('parentId22', 'parentId22', 'PName 22', 'PSurname 22', 'parent22@example.com', '123-456-78922', 'Address22'),
|
|
('parentId23', 'parentId23', 'PName 23', 'PSurname 23', 'parent23@example.com', '123-456-78923', 'Address23'),
|
|
('parentId24', 'parentId24', 'PName 24', 'PSurname 24', 'parent24@example.com', '123-456-78924', 'Address24'),
|
|
('parentId25', 'parentId25', 'PName 25', 'PSurname 25', 'parent25@example.com', '123-456-78925', 'Address25');
|
|
|
|
INSERT INTO "Student" ("id", "username", "name", "surname", "email", "phone", "address", "bloodType", "sex", "parentId", "gradeId", "classId", "birthday") VALUES
|
|
('student1', 'student1', 'SName1', 'SSurname 1', 'student1@example.com', '987-654-3211', 'Address1', 'O-', 'FEMALE', 'parentId1', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student2', 'student2', 'SName2', 'SSurname 2', 'student2@example.com', '987-654-3212', 'Address2', 'O-', 'MALE', 'parentId1', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student3', 'student3', 'SName3', 'SSurname 3', 'student3@example.com', '987-654-3213', 'Address3', 'O-', 'FEMALE', 'parentId2', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student4', 'student4', 'SName4', 'SSurname 4', 'student4@example.com', '987-654-3214', 'Address4', 'O-', 'MALE', 'parentId2', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student5', 'student5', 'SName5', 'SSurname 5', 'student5@example.com', '987-654-3215', 'Address5', 'O-', 'FEMALE', 'parentId3', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student6', 'student6', 'SName6', 'SSurname 6', 'student6@example.com', '987-654-3216', 'Address6', 'O-', 'MALE', 'parentId3', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student7', 'student7', 'SName7', 'SSurname 7', 'student7@example.com', '987-654-3217', 'Address7', 'O-', 'FEMALE', 'parentId4', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student8', 'student8', 'SName8', 'SSurname 8', 'student8@example.com', '987-654-3218', 'Address8', 'O-', 'MALE', 'parentId4', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student9', 'student9', 'SName9', 'SSurname 9', 'student9@example.com', '987-654-3219', 'Address9', 'O-', 'FEMALE', 'parentId5', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student10', 'student10', 'SName10', 'SSurname 10', 'student10@example.com', '987-654-32110', 'Address10', 'O-', 'MALE', 'parentId5', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student11', 'student11', 'SName11', 'SSurname 11', 'student11@example.com', '987-654-32111', 'Address11', 'O-', 'FEMALE', 'parentId6', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student12', 'student12', 'SName12', 'SSurname 12', 'student12@example.com', '987-654-32112', 'Address12', 'O-', 'MALE', 'parentId6', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student13', 'student13', 'SName13', 'SSurname 13', 'student13@example.com', '987-654-32113', 'Address13', 'O-', 'FEMALE', 'parentId7', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student14', 'student14', 'SName14', 'SSurname 14', 'student14@example.com', '987-654-32114', 'Address14', 'O-', 'MALE', 'parentId7', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student15', 'student15', 'SName15', 'SSurname 15', 'student15@example.com', '987-654-32115', 'Address15', 'O-', 'FEMALE', 'parentId8', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student16', 'student16', 'SName16', 'SSurname 16', 'student16@example.com', '987-654-32116', 'Address16', 'O-', 'MALE', 'parentId8', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student17', 'student17', 'SName17', 'SSurname 17', 'student17@example.com', '987-654-32117', 'Address17', 'O-', 'FEMALE', 'parentId9', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student18', 'student18', 'SName18', 'SSurname 18', 'student18@example.com', '987-654-32118', 'Address18', 'O-', 'MALE', 'parentId9', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student19', 'student19', 'SName19', 'SSurname 19', 'student19@example.com', '987-654-32119', 'Address19', 'O-', 'FEMALE', 'parentId10', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student20', 'student20', 'SName20', 'SSurname 20', 'student20@example.com', '987-654-32120', 'Address20', 'O-', 'MALE', 'parentId10', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student21', 'student21', 'SName21', 'SSurname 21', 'student21@example.com', '987-654-32121', 'Address21', 'O-', 'FEMALE', 'parentId11', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student22', 'student22', 'SName22', 'SSurname 22', 'student22@example.com', '987-654-32122', 'Address22', 'O-', 'MALE', 'parentId11', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student23', 'student23', 'SName23', 'SSurname 23', 'student23@example.com', '987-654-32123', 'Address23', 'O-', 'FEMALE', 'parentId12', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student24', 'student24', 'SName24', 'SSurname 24', 'student24@example.com', '987-654-32124', 'Address24', 'O-', 'MALE', 'parentId12', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student25', 'student25', 'SName25', 'SSurname 25', 'student25@example.com', '987-654-32125', 'Address25', 'O-', 'FEMALE', 'parentId13', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student26', 'student26', 'SName26', 'SSurname 26', 'student26@example.com', '987-654-32126', 'Address26', 'O-', 'MALE', 'parentId13', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student27', 'student27', 'SName27', 'SSurname 27', 'student27@example.com', '987-654-32127', 'Address27', 'O-', 'FEMALE', 'parentId14', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student28', 'student28', 'SName28', 'SSurname 28', 'student28@example.com', '987-654-32128', 'Address28', 'O-', 'MALE', 'parentId14', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student29', 'student29', 'SName29', 'SSurname 29', 'student29@example.com', '987-654-32129', 'Address29', 'O-', 'FEMALE', 'parentId15', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student30', 'student30', 'SName30', 'SSurname 30', 'student30@example.com', '987-654-32130', 'Address30', 'O-', 'MALE', 'parentId15', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student31', 'student31', 'SName31', 'SSurname 31', 'student31@example.com', '987-654-32131', 'Address31', 'O-', 'FEMALE', 'parentId16', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student32', 'student32', 'SName32', 'SSurname 32', 'student32@example.com', '987-654-32132', 'Address32', 'O-', 'MALE', 'parentId16', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student33', 'student33', 'SName33', 'SSurname 33', 'student33@example.com', '987-654-32133', 'Address33', 'O-', 'FEMALE', 'parentId17', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student34', 'student34', 'SName34', 'SSurname 34', 'student34@example.com', '987-654-32134', 'Address34', 'O-', 'MALE', 'parentId17', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student35', 'student35', 'SName35', 'SSurname 35', 'student35@example.com', '987-654-32135', 'Address35', 'O-', 'FEMALE', 'parentId18', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student36', 'student36', 'SName36', 'SSurname 36', 'student36@example.com', '987-654-32136', 'Address36', 'O-', 'MALE', 'parentId18', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student37', 'student37', 'SName37', 'SSurname 37', 'student37@example.com', '987-654-32137', 'Address37', 'O-', 'FEMALE', 'parentId19', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student38', 'student38', 'SName38', 'SSurname 38', 'student38@example.com', '987-654-32138', 'Address38', 'O-', 'MALE', 'parentId19', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student39', 'student39', 'SName39', 'SSurname 39', 'student39@example.com', '987-654-32139', 'Address39', 'O-', 'FEMALE', 'parentId20', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student40', 'student40', 'SName40', 'SSurname 40', 'student40@example.com', '987-654-32140', 'Address40', 'O-', 'MALE', 'parentId20', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student41', 'student41', 'SName41', 'SSurname 41', 'student41@example.com', '987-654-32141', 'Address41', 'O-', 'FEMALE', 'parentId21', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student42', 'student42', 'SName42', 'SSurname 42', 'student42@example.com', '987-654-32142', 'Address42', 'O-', 'MALE', 'parentId21', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student43', 'student43', 'SName43', 'SSurname 43', 'student43@example.com', '987-654-32143', 'Address43', 'O-', 'FEMALE', 'parentId22', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student44', 'student44', 'SName44', 'SSurname 44', 'student44@example.com', '987-654-32144', 'Address44', 'O-', 'MALE', 'parentId22', 3, 3, '2016-02-27T00:26:35.281Z'),
|
|
('student45', 'student45', 'SName45', 'SSurname 45', 'student45@example.com', '987-654-32145', 'Address45', 'O-', 'FEMALE', 'parentId23', 4, 4, '2016-02-27T00:26:35.281Z'),
|
|
('student46', 'student46', 'SName46', 'SSurname 46', 'student46@example.com', '987-654-32146', 'Address46', 'O-', 'MALE', 'parentId23', 5, 5, '2016-02-27T00:26:35.281Z'),
|
|
('student47', 'student47', 'SName47', 'SSurname 47', 'student47@example.com', '987-654-32147', 'Address47', 'O-', 'FEMALE', 'parentId24', 6, 6, '2016-02-27T00:26:35.281Z'),
|
|
('student48', 'student48', 'SName48', 'SSurname 48', 'student48@example.com', '987-654-32148', 'Address48', 'O-', 'MALE', 'parentId24', 1, 1, '2016-02-27T00:26:35.281Z'),
|
|
('student49', 'student49', 'SName49', 'SSurname 49', 'student49@example.com', '987-654-32149', 'Address49', 'O-', 'FEMALE', 'parentId25', 2, 2, '2016-02-27T00:26:35.281Z'),
|
|
('student50', 'student50', 'SName50', 'SSurname 50', 'student50@example.com', '987-654-32150', 'Address50', 'O-', 'MALE', 'parentId25', 3, 3, '2016-02-27T00:26:35.281Z');
|
|
|
|
INSERT INTO "Exam" ("id", "title", "startTime", "endTime", "lessonId") VALUES
|
|
(1, 'Exam 1', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 2),
|
|
(2, 'Exam 2', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 3),
|
|
(3, 'Exam 3', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 4),
|
|
(4, 'Exam 4', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 5),
|
|
(5, 'Exam 5', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 6),
|
|
(6, 'Exam 6', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 7),
|
|
(7, 'Exam 7', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 8),
|
|
(8, 'Exam 8', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 9),
|
|
(9, 'Exam 9', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 10),
|
|
(10, 'Exam 10', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 11);
|
|
|
|
INSERT INTO "Assignment" ("id", "title", "startDate", "dueDate", "lessonId") VALUES
|
|
(1, 'Assignment 1', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 2),
|
|
(2, 'Assignment 2', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 3),
|
|
(3, 'Assignment 3', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 4),
|
|
(4, 'Assignment 4', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 5),
|
|
(5, 'Assignment 5', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 6),
|
|
(6, 'Assignment 6', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 7),
|
|
(7, 'Assignment 7', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 8),
|
|
(8, 'Assignment 8', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 9),
|
|
(9, 'Assignment 9', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 10),
|
|
(10, 'Assignment 10', '2026-02-27T01:26:35.281Z', '2026-02-28T00:26:35.281Z', 11);
|
|
|
|
INSERT INTO "Result" ("id", "score", "studentId", "examId", "assignmentId") VALUES
|
|
(1, 90, 'student1', 1, NULL),
|
|
(2, 90, 'student2', 2, NULL),
|
|
(3, 90, 'student3', 3, NULL),
|
|
(4, 90, 'student4', 4, NULL),
|
|
(5, 90, 'student5', 5, NULL),
|
|
(6, 90, 'student6', NULL, 1),
|
|
(7, 90, 'student7', NULL, 2),
|
|
(8, 90, 'student8', NULL, 3),
|
|
(9, 90, 'student9', NULL, 4),
|
|
(10, 90, 'student10', NULL, 5);
|
|
|
|
INSERT INTO "Attendance" ("id", "date", "present", "studentId", "lessonId") VALUES
|
|
(1, '2026-02-27T00:26:35.281Z', TRUE, 'student1', 2),
|
|
(2, '2026-02-27T00:26:35.281Z', TRUE, 'student2', 3),
|
|
(3, '2026-02-27T00:26:35.281Z', TRUE, 'student3', 4),
|
|
(4, '2026-02-27T00:26:35.281Z', TRUE, 'student4', 5),
|
|
(5, '2026-02-27T00:26:35.281Z', TRUE, 'student5', 6),
|
|
(6, '2026-02-27T00:26:35.281Z', TRUE, 'student6', 7),
|
|
(7, '2026-02-27T00:26:35.281Z', TRUE, 'student7', 8),
|
|
(8, '2026-02-27T00:26:35.281Z', TRUE, 'student8', 9),
|
|
(9, '2026-02-27T00:26:35.281Z', TRUE, 'student9', 10),
|
|
(10, '2026-02-27T00:26:35.281Z', TRUE, 'student10', 11);
|
|
|
|
INSERT INTO "Event" ("id", "title", "description", "startTime", "endTime", "classId") VALUES
|
|
(1, 'Event 1', 'Description for Event 1', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 2),
|
|
(2, 'Event 2', 'Description for Event 2', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 3),
|
|
(3, 'Event 3', 'Description for Event 3', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 4),
|
|
(4, 'Event 4', 'Description for Event 4', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 5),
|
|
(5, 'Event 5', 'Description for Event 5', '2026-02-27T01:26:35.281Z', '2026-02-27T02:26:35.281Z', 1);
|
|
|
|
INSERT INTO "Announcement" ("id", "title", "description", "date", "classId") VALUES
|
|
(1, 'Announcement 1', 'Description for Announcement 1', '2026-02-27T00:26:35.281Z', 2),
|
|
(2, 'Announcement 2', 'Description for Announcement 2', '2026-02-27T00:26:35.281Z', 3),
|
|
(3, 'Announcement 3', 'Description for Announcement 3', '2026-02-27T00:26:35.281Z', 4),
|
|
(4, 'Announcement 4', 'Description for Announcement 4', '2026-02-27T00:26:35.281Z', 5),
|
|
(5, 'Announcement 5', 'Description for Announcement 5', '2026-02-27T00:26:35.281Z', 1);
|
|
|