

--
-- Database: `zeonglob_zap_buckingham_sec_aba`
--




CREATE TABLE `about_us` (
  `about_us_id` int(11) NOT NULL AUTO_INCREMENT,
  `map` varchar(300) NOT NULL,
  `about_us_text` text NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`about_us_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `activity` (
  `assignment_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `topic_id` int(11) NOT NULL,
  `table_name` varchar(30) NOT NULL,
  `assignment_title` varchar(200) NOT NULL,
  `assignment_text` text NOT NULL,
  `due_date` datetime NOT NULL,
  `property` varchar(20) NOT NULL,
  `activation` varchar(20) NOT NULL DEFAULT 'active',
  `total_score` decimal(15,2) NOT NULL,
  `assignment_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `answer_text` text NOT NULL,
  `answer_status` varchar(10) NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`assignment_id`),
  KEY `due_date` (`due_date`),
  KEY `topic_id` (`topic_id`),
  KEY `activation` (`activation`),
  KEY `answer_status` (`answer_status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `activity_comment` (
  `activity_comment_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `comment` varchar(500) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`activity_comment_id`),
  KEY `assignment_id` (`assignment_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_class` (
  `admission_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_sessions_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `price` decimal(15,2) NOT NULL,
  PRIMARY KEY (`admission_class_id`),
  KEY `admission_session_id` (`admission_sessions_id`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exam_questions` (
  `admission_exam_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_exam_question_id`),
  KEY `admission_exam_id` (`admission_exam_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exam_student_questions` (
  `admission_exam_student_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_student_id` int(11) NOT NULL,
  `question_options_id` int(11) NOT NULL,
  PRIMARY KEY (`admission_exam_student_question_id`),
  KEY `admission_exam_student_id` (`admission_exam_student_id`),
  KEY `question_options_id` (`question_options_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exam_students` (
  `admission_exam_student_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_id` int(11) NOT NULL,
  `admission_student_id` int(11) NOT NULL,
  `start_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `end_date` datetime NOT NULL,
  `score` decimal(15,2) DEFAULT NULL,
  `revised_score` decimal(15,2) DEFAULT NULL,
  `total_score` decimal(15,2) DEFAULT NULL,
  `score_percentage` decimal(15,2) DEFAULT NULL,
  `revised_score_percentage` decimal(15,2) DEFAULT NULL,
  `approval` tinyint(4) NOT NULL,
  `fullscreen_exits` int(11) NOT NULL,
  `exam_ended_cond` varchar(30) NOT NULL,
  PRIMARY KEY (`admission_exam_student_id`),
  KEY `admission_exam_id` (`admission_exam_id`),
  KEY `student_id` (`admission_student_id`),
  KEY `approval` (`approval`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exam_webcams` (
  `admission_exam_webcam_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_id` int(11) NOT NULL,
  `admission_student_id` int(11) NOT NULL,
  `google_drive_id` varchar(300) NOT NULL,
  `timestamp` varchar(20) NOT NULL,
  PRIMARY KEY (`admission_exam_webcam_id`),
  KEY `admission_exam_id` (`admission_exam_id`,`admission_student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exams` (
  `admission_exam_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_class_id` int(11) NOT NULL,
  `exam_name` varchar(300) NOT NULL,
  `exam_description` text NOT NULL,
  `exam_type` varchar(20) NOT NULL DEFAULT 'multiple_choice',
  `duration` int(11) NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `maximum_attempt` tinyint(4) NOT NULL,
  `minimum_percentage` tinyint(4) NOT NULL,
  `view_answers` tinyint(4) NOT NULL,
  `surveillance` tinyint(4) NOT NULL,
  `activation` varchar(10) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_exam_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_form` (
  `admission_form_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_form` text NOT NULL,
  `upload_instruction` varchar(500) NOT NULL,
  PRIMARY KEY (`admission_form_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;


INSERT INTO admission_form VALUES
("1","[{\"type\":\"text\",\"required\":true,\"label\":\"Last Name\",\"placeholder\":\"ENTER LAST NAME\",\"className\":\"form-control\",\"name\":\"last_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":true,\"label\":\"First Name\",\"placeholder\":\"ENTER FIRST NAME\",\"className\":\"form-control\",\"name\":\"first_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":false,\"label\":\"Other Name\",\"placeholder\":\"ENTER OTHER NAME\",\"className\":\"form-control\",\"name\":\"other_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"select\",\"required\":true,\"label\":\"Gender\",\"className\":\"form-control\",\"name\":\"gender\",\"access\":false,\"values\":[{\"label\":\"MALE\",\"value\":\"male\",\"selected\":true},{\"label\":\"FEMALE\",\"value\":\"female\"}]},{\"type\":\"select\",\"required\":true,\"label\":\"Religion\",\"placeholder\":\"Religion\",\"className\":\"form-control\",\"name\":\"religion\",\"access\":false,\"values\":[{\"label\":\"CHRISTIANITY \",\"value\":\"Christianity\"},{\"label\":\"ISLAM \",\"value\":\"Islam\"}]},{\"type\":\"date\",\"required\":true,\"label\":\"Date of Birth\",\"className\":\"form-control\",\"name\":\"dob\",\"access\":false},{\"type\":\"text\",\"required\":true,\"label\":\"Parent Name\",\"placeholder\":\"ENTER PARENT NAME\",\"className\":\"form-control\",\"name\":\"parent_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":true,\"label\":\"Parent Address\",\"placeholder\":\"ENTER PARENT ADDRESS\",\"className\":\"form-control\",\"name\":\"home_address\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":true,\"label\":\"Parent Occupation\",\"placeholder\":\"ENTER PARENT OCCUPATION\",\"className\":\"form-control\",\"name\":\"occupation\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"autocomplete\",\"required\":true,\"label\":\"Parent State of Origin\",\"className\":\"form-control\",\"name\":\"parent_state_origin\",\"access\":false,\"requireValidOption\":true,\"values\":[{\"label\":\"ABIA\",\"value\":\"ABIA\"},{\"label\":\"ADAMAWA\",\"value\":\"ADAMAWA\"},{\"label\":\"AKWA IBOM\",\"value\":\"AKWA IBOM\"},{\"label\":\"ANAMBRA\",\"value\":\"ANAMBRA\"},{\"label\":\"BAUCHI\",\"value\":\"BAUCHI\"},{\"label\":\"BAYELSA\",\"value\":\"BAYELSA\"},{\"label\":\"BENUE\",\"value\":\"BENUE\"},{\"label\":\"BORNO\",\"value\":\"BORNO\"},{\"label\":\"CROSS RIVER\",\"value\":\"CROSS RIVER\"},{\"label\":\"DELTA\",\"value\":\"DELTA\"},{\"label\":\"EBONYI\",\"value\":\"EBONYI\"},{\"label\":\"EDO\",\"value\":\"EDO\"},{\"label\":\"EKITI\",\"value\":\"EKITI\"},{\"label\":\"ENUGU\",\"value\":\"ENUGU\"},{\"label\":\"FCT\",\"value\":\"FCT\"},{\"label\":\"GOMBE\",\"value\":\"GOMBE\"},{\"label\":\"IMO\",\"value\":\"IMO\"},{\"label\":\"JIGAWA\",\"value\":\"JIGAWA\"},{\"label\":\"KADUNA\",\"value\":\"KADUNA\"},{\"label\":\"KANO\",\"value\":\"KANO\"},{\"label\":\"KATSINA\",\"value\":\"KATSINA\"},{\"label\":\"KEBBI\",\"value\":\"KEBBI\"},{\"label\":\"KOGI\",\"value\":\"KOGI\"},{\"label\":\"KWARA\",\"value\":\"KWARA\"},{\"label\":\"LAGOS\",\"value\":\"LAGOS\"},{\"label\":\"NASARAWA\",\"value\":\"NASARAWA\"},{\"label\":\"NIGER\",\"value\":\"NIGER\"},{\"label\":\"OGUN\",\"value\":\"OGUN\"},{\"label\":\"ONDO\",\"value\":\"ONDO\"},{\"label\":\"OSUN\",\"value\":\"OSUN\"},{\"label\":\"OYO\",\"value\":\"OYO\"},{\"label\":\"PLATEAU\",\"value\":\"PLATEAU\"},{\"label\":\"RIVERS\",\"value\":\"RIVERS\"},{\"label\":\"SOKOTO\",\"value\":\"SOKOTO\"},{\"label\":\"TARABA\",\"value\":\"TARABA\"},{\"label\":\"YOBE\",\"value\":\"YOBE\"},{\"label\":\"ZAMFARA\",\"value\":\"ZAMFARA\"}]},{\"type\":\"select\",\"required\":true,\"label\":\"Parent Religion\",\"placeholder\":\"Religion\",\"className\":\"form-control\",\"name\":\"select-1595660440643\",\"access\":false,\"values\":[{\"label\":\"CHRISTIANITY \",\"value\":\"Christianity\",\"selected\":true},{\"label\":\"ISLAM \",\"value\":\"Islam\"}]}]","");




CREATE TABLE `admission_sessions` (
  `admission_sessions_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_sessions_name` varchar(300) NOT NULL,
  `admission_status` varchar(100) NOT NULL DEFAULT 'active',
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_sessions_id`),
  KEY `admission_status` (`admission_status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `admission_students` (
  `admission_student_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_class_id` int(11) NOT NULL,
  `main_phonenumber` varchar(20) NOT NULL,
  `email` varchar(300) NOT NULL,
  `student_info` text NOT NULL,
  `payment` varchar(10) NOT NULL,
  `application_status` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_uploads` (
  `admission_upload_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_student_id` int(11) NOT NULL,
  `upload_title` varchar(50) NOT NULL,
  `google_drive_id` varchar(100) NOT NULL,
  `google_drive_title` varchar(50) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_upload_id`),
  KEY `admission_student_id` (`admission_student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `album` (
  `album_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `album_cat` varchar(20) NOT NULL,
  `album_name` varchar(100) NOT NULL,
  `album_date` datetime NOT NULL,
  PRIMARY KEY (`album_id`),
  KEY `album_cat` (`album_cat`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `album_images` (
  `album_images_id` int(11) NOT NULL AUTO_INCREMENT,
  `album_id` int(11) NOT NULL,
  `image_name` varchar(20) NOT NULL,
  `image_dir` varchar(300) NOT NULL,
  PRIMARY KEY (`album_images_id`),
  KEY `album_id` (`album_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `app_token` (
  `app_token_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `table_name` varchar(100) NOT NULL,
  `user_key` varchar(100) NOT NULL,
  `browser_token` varchar(100) NOT NULL,
  `db_name` varchar(100) NOT NULL,
  `token` varchar(300) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `last_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`app_token_id`),
  KEY `user_key` (`user_key`,`token`),
  KEY `browser_token` (`browser_token`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `assignments` (
  `assignment_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `assignment_title` varchar(200) NOT NULL,
  `assignment_text` text NOT NULL,
  `assignment_dir` varchar(500) NOT NULL,
  `assignment_date` datetime NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`assignment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `assignments_answer_file` (
  `assignments_answer_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `file_name` varchar(100) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_answer_file_id`),
  KEY `assignment_id` (`assignment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `assignments_files` (
  `assignments_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_file_id`),
  KEY `assignment_id` (`assignment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `assignments_marked_file` (
  `assignments_marked_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignments_submitted_id` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_marked_file_id`),
  KEY `assignments_submitted_id` (`assignments_submitted_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `assignments_submitted` (
  `assignments_submitted_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `typed_assignment` text NOT NULL,
  `uploaded_assignment` varchar(500) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `student_submit_status` varchar(30) NOT NULL,
  `staff_marked_status` varchar(30) NOT NULL,
  `typed_marked` text NOT NULL,
  `student_score` decimal(15,2) DEFAULT NULL,
  `date_marked` datetime NOT NULL,
  PRIMARY KEY (`assignments_submitted_id`),
  KEY `assignment_id` (`assignment_id`),
  KEY `student_id` (`student_id`),
  KEY `staff_id` (`staff_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `assignments_submitted_file` (
  `assignments_submitted_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignments_submitted_id` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_submitted_file_id`),
  KEY `assignments_submitted_id` (`assignments_submitted_id`),
  KEY `date_added` (`date_added`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `attendance_behaviour` (
  `attendance_behaviour_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `student_attendance` int(11) DEFAULT NULL,
  `total_attendance` int(11) NOT NULL,
  `handwriting` int(11) NOT NULL,
  `neatness` int(11) NOT NULL,
  `punctuality` int(11) NOT NULL,
  `attentiveness` int(11) NOT NULL,
  `initiative` int(11) NOT NULL,
  `respect` int(11) NOT NULL,
  `obedience` int(11) NOT NULL,
  `attitude` int(11) NOT NULL,
  `honesty` int(11) NOT NULL,
  `creativity` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`attendance_behaviour_id`),
  KEY `student_id` (`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `autologin` (
  `user_key` varchar(100) NOT NULL,
  `token` char(32) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `browser_token` char(32) NOT NULL,
  `dbname` varchar(300) NOT NULL,
  `data` text,
  `used` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`user_key`,`token`),
  KEY `dbname` (`dbname`(255))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `backup_class` (
  `backup_class_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(10) unsigned NOT NULL,
  `class_name` varchar(10) NOT NULL,
  `class_order` int(10) unsigned NOT NULL,
  `section` varchar(10) NOT NULL,
  `promotional_average` varchar(5) NOT NULL,
  `new_student_fee` decimal(15,2) unsigned NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`backup_class_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `backup_new_fees_class` (
  `backup_new_fees_class_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `new_fees_class_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `term` varchar(20) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`backup_new_fees_class_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `backup_plan` (
  `backup_plan_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `plan_id` int(10) unsigned NOT NULL,
  `plan_name` varchar(100) NOT NULL,
  `amount` decimal(15,2) unsigned NOT NULL,
  `date_added` datetime NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`backup_plan_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `behaviours` (
  `behaviour_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `behaviour_order` int(11) NOT NULL,
  `behaviour_name` varchar(200) NOT NULL,
  PRIMARY KEY (`behaviour_id`),
  KEY `class_id` (`class_id`,`behaviour_order`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class` (
  `class_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_name` varchar(30) NOT NULL,
  `class_order` int(10) unsigned NOT NULL,
  `section` varchar(10) NOT NULL,
  `promotional_average` varchar(5) NOT NULL,
  `new_student_fee` decimal(15,2) unsigned NOT NULL,
  PRIMARY KEY (`class_id`),
  KEY `order` (`class_order`),
  KEY `section` (`section`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_approval` (
  `class_approval_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `old_class_id` int(11) NOT NULL,
  `new_class_id` int(11) NOT NULL,
  `old_status` char(20) NOT NULL,
  `mode` char(20) NOT NULL,
  `date_sent` datetime NOT NULL,
  PRIMARY KEY (`class_approval_id`),
  KEY `old_status` (`old_status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_category` (
  `class_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_category_name` varchar(80) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`class_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_class_category` (
  `class_class_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `class_category_id` int(11) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`class_class_category_id`),
  KEY `class_id` (`class_id`),
  KEY `class_category_id` (`class_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_storages` (
  `class_storage_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_storage_title` varchar(200) NOT NULL,
  `class_storage_dir` varchar(500) NOT NULL,
  `class_storage_date` datetime NOT NULL,
  PRIMARY KEY (`class_storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_subclass` (
  `class_subclass_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(10) unsigned NOT NULL,
  `subclass_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`class_subclass_id`),
  KEY `class_id` (`class_id`),
  KEY `subclass_id` (`subclass_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `contact_us` (
  `contact_us_id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL,
  `role` varchar(200) NOT NULL,
  `phonenumber` varchar(100) NOT NULL,
  `email` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`contact_us_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `current_fees_info` (
  `current_fees_info_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `student_id` int(11) unsigned NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `current_school_fees` decimal(15,2) NOT NULL,
  `past_debt` decimal(15,2) NOT NULL,
  `amount_to_pay` decimal(15,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `discount` decimal(15,2) NOT NULL,
  `surcharge_amount` decimal(15,2) NOT NULL,
  `surcharge_reason` varchar(500) NOT NULL,
  `wave_over` decimal(15,2) NOT NULL,
  `owing` decimal(15,2) NOT NULL,
  `present_owing` decimal(15,2) NOT NULL,
  `class_fee` decimal(15,2) NOT NULL,
  `plan_fee` decimal(15,2) NOT NULL,
  `new_student_fee` decimal(15,2) NOT NULL,
  `room_fee` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`current_fees_info_id`),
  KEY `student_id` (`student_id`),
  KEY `sess_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_library_cat` (
  `e_library_cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_library_cat_name` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`e_library_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `e_library_file` (
  `e_library_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_library_cat_id` int(11) NOT NULL,
  `topic_id` int(11) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `title` varchar(300) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `description` varchar(500) NOT NULL,
  `preview_status` varchar(20) NOT NULL DEFAULT 'preview_download',
  `mode` varchar(20) NOT NULL,
  `activation` varchar(20) NOT NULL DEFAULT 'active',
  `file_dir` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`e_library_file_id`),
  KEY `e_library_cat_id` (`e_library_cat_id`),
  KEY `subclass_id` (`subclass_id`),
  KEY `subject_id` (`subject_id`),
  KEY `class_id` (`class_id`),
  KEY `staff_id` (`staff_id`),
  KEY `topic_id` (`topic_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `e_r_cat` (
  `e_r_cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `e_r_cat_name` varchar(300) NOT NULL,
  `e_r_scratch_card` varchar(4) NOT NULL DEFAULT 'no',
  PRIMARY KEY (`e_r_cat_id`),
  KEY `e_r_scratch_card` (`e_r_scratch_card`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_class_term` (
  `e_r_class_term_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(10) unsigned NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`e_r_class_term_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`,`class_id`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_main` (
  `e_r_main_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `e_r_cat_name` varchar(100) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `section` varchar(10) NOT NULL,
  `total` float NOT NULL,
  `total_obtainable` float NOT NULL,
  `average` varchar(10) NOT NULL,
  `position_class` varchar(20) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `total_student_class` int(11) NOT NULL,
  `total_student_subclass` int(11) NOT NULL,
  `pass_ave` varchar(5) NOT NULL,
  `subcat1_total` float NOT NULL,
  `subcat2_total` float NOT NULL,
  `subcat3_total` float NOT NULL,
  `subcat4_total` float NOT NULL,
  `subcat5_total` float NOT NULL,
  `subcat6_total` float NOT NULL,
  `subcat7_total` float NOT NULL,
  `subcat8_total` float NOT NULL,
  `subcat9_total` float NOT NULL,
  `subcat10_total` float NOT NULL,
  `subcat1_name` varchar(50) NOT NULL,
  `subcat2_name` varchar(50) NOT NULL,
  `subcat3_name` varchar(50) NOT NULL,
  `subcat4_name` varchar(50) NOT NULL,
  `subcat5_name` varchar(50) NOT NULL,
  `subcat6_name` varchar(50) NOT NULL,
  `subcat7_name` varchar(50) NOT NULL,
  `subcat8_name` varchar(50) NOT NULL,
  `subcat9_name` varchar(50) NOT NULL,
  `subcat10_name` varchar(50) NOT NULL,
  `subcat1_short_name` varchar(40) NOT NULL,
  `subcat2_short_name` varchar(40) NOT NULL,
  `subcat3_short_name` varchar(40) NOT NULL,
  `subcat4_short_name` varchar(40) NOT NULL,
  `subcat5_short_name` varchar(40) NOT NULL,
  `subcat6_short_name` varchar(40) NOT NULL,
  `subcat7_short_name` varchar(40) NOT NULL,
  `subcat8_short_name` varchar(40) NOT NULL,
  `subcat9_short_name` varchar(40) NOT NULL,
  `subcat10_short_name` varchar(40) NOT NULL,
  `count_subcat` int(11) NOT NULL,
  `scratch_card_number` varchar(16) NOT NULL,
  `principal_name` varchar(100) NOT NULL,
  `principal_comment` varchar(200) NOT NULL,
  `form_staff_name` varchar(200) NOT NULL,
  `form_staff_comment` varchar(300) NOT NULL,
  `principal_signature` varchar(60) NOT NULL,
  `second_principal_signature` varchar(60) NOT NULL,
  `visited` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`e_r_main_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`,`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_subcat` (
  `e_r_subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(10) unsigned NOT NULL,
  `e_r_subcat_name` varchar(300) NOT NULL,
  `e_r_short_form` varchar(100) NOT NULL,
  `total_score` float NOT NULL,
  PRIMARY KEY (`e_r_subcat_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`),
  KEY `e_r_cat_id_2` (`e_r_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_subject` (
  `e_r_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_name` varchar(300) NOT NULL,
  `subclass_name` varchar(300) NOT NULL,
  `subject_name` varchar(300) NOT NULL,
  `subcat1` float DEFAULT NULL,
  `subcat2` float DEFAULT NULL,
  `subcat3` float DEFAULT NULL,
  `subcat4` float DEFAULT NULL,
  `subcat5` float DEFAULT NULL,
  `subcat6` float DEFAULT NULL,
  `subcat7` float DEFAULT NULL,
  `subcat8` float DEFAULT NULL,
  `subcat9` float DEFAULT NULL,
  `subcat10` float DEFAULT NULL,
  `total` float NOT NULL,
  `total_percent` varchar(10) NOT NULL,
  `position_subclass` varchar(30) NOT NULL,
  `grade` varchar(20) NOT NULL,
  `grade_comment` varchar(300) NOT NULL,
  `staff_name` varchar(300) NOT NULL,
  `staff_comment` varchar(300) NOT NULL,
  `status` varchar(20) NOT NULL,
  `generate_result` varchar(20) NOT NULL DEFAULT 'not_generated',
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`e_r_subject_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`,`student_id`,`class_id`,`subclass_id`,`subject_id`),
  KEY `class_id` (`class_id`,`subclass_id`,`subject_id`,`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `end_term_info` (
  `end_term_id` int(11) NOT NULL AUTO_INCREMENT,
  `new_student_number` int(11) NOT NULL,
  `no_of_students` int(11) NOT NULL,
  `no_of_male_students` int(11) NOT NULL,
  `no_of_female_students` int(11) NOT NULL,
  `no_of_grad_students` int(11) NOT NULL,
  `no_of_deact_students` int(11) NOT NULL,
  `no_of_parents` int(11) NOT NULL,
  `no_of_staff` int(11) NOT NULL,
  `no_of_academic_staff` int(11) NOT NULL,
  `no_of_non_academic_staff` int(11) NOT NULL,
  `no_of_accountant` int(11) NOT NULL,
  `no_of_admin` int(11) NOT NULL,
  `owing` int(11) NOT NULL,
  `annual_only_last_subjects` varchar(5) NOT NULL,
  `third_term_in_annual` varchar(3) NOT NULL DEFAULT 'no',
  `allow_finance` varchar(5) NOT NULL,
  `scratch_card` varchar(5) NOT NULL,
  `generate_result` varchar(20) NOT NULL,
  `publish_result` char(30) NOT NULL,
  `next_term_begins` date NOT NULL,
  `publish_result_deadline` date NOT NULL,
  `report_ready` varchar(15) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_entered` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `account_balanced` varchar(12) NOT NULL,
  PRIMARY KEY (`end_term_id`),
  KEY `sess_term` (`sessions`,`terms`),
  KEY `report_ready` (`report_ready`),
  KEY `date_entered` (`date_entered`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;


INSERT INTO end_term_info VALUES
("18","0","0","0","0","0","0","0","0","0","0","0","0","0","yes","no","yes","no","not_generated","not_published","0000-00-00","0000-00-00","not_ready","2020/2021","1st Term","2018-04-14 13:39:26","unbalanced");




CREATE TABLE `end_term_inventory` (
  `end_term_inventory_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_balanced` varchar(20) NOT NULL DEFAULT 'unbalanced',
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`end_term_inventory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `end_term_ledger` (
  `end_term_ledger_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_balanced` varchar(15) NOT NULL DEFAULT 'unbalanced',
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`end_term_ledger_id`),
  KEY `terms` (`terms`,`sessions`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `end_term_school_fees` (
  `end_term_school_fees_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_balanced` varchar(20) DEFAULT 'unbalanced',
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`end_term_school_fees_id`),
  KEY `sessions` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `event` (
  `event_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `event_title` varchar(300) NOT NULL,
  `event_cat` varchar(20) NOT NULL,
  `event_image` varchar(300) NOT NULL,
  `location` varchar(300) NOT NULL,
  `description` text NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`event_id`),
  KEY `date_created` (`date_created`),
  KEY `event_cat` (`event_cat`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exam_questions` (
  `exam_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_question_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `exam_student_questions` (
  `exam_student_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_student_id` int(11) NOT NULL,
  `question_options_id` int(11) NOT NULL,
  PRIMARY KEY (`exam_student_question_id`),
  KEY `exam_student_id` (`exam_student_id`),
  KEY `question_options_id` (`question_options_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exam_student_theory` (
  `exam_student_theory_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_student_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `question_text` text NOT NULL,
  `corrected_text` text NOT NULL,
  `score` decimal(15,2) DEFAULT NULL,
  `total_score` decimal(15,2) DEFAULT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_student_theory_id`),
  KEY `exam_student_id` (`exam_student_id`),
  KEY `question_id` (`question_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `exam_student_theory_images` (
  `exam_student_theory_images_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_student_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `google_drive_id` varchar(50) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_student_theory_images_id`),
  KEY `exam_student_id` (`exam_student_id`),
  KEY `question_id` (`question_id`),
  KEY `google_drive_id` (`google_drive_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `exam_students` (
  `exam_student_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `start_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `end_date` datetime NOT NULL,
  `score` decimal(15,2) DEFAULT NULL,
  `revised_score` decimal(15,2) DEFAULT NULL,
  `total_score` decimal(15,2) DEFAULT NULL,
  `score_percentage` decimal(15,2) DEFAULT NULL,
  `revised_score_percentage` decimal(15,2) DEFAULT NULL,
  `approval` tinyint(4) NOT NULL,
  `fullscreen_exits` int(11) NOT NULL,
  `exam_ended_cond` varchar(30) NOT NULL,
  PRIMARY KEY (`exam_student_id`),
  KEY `exam_id` (`exam_id`),
  KEY `student_id` (`student_id`),
  KEY `approval` (`approval`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exam_webcams` (
  `exam_webcam_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `google_drive_id` varchar(300) NOT NULL,
  `timestamp` varchar(20) NOT NULL,
  PRIMARY KEY (`exam_webcam_id`),
  KEY `exam_id` (`exam_id`,`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exams` (
  `exam_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `topic_id` int(11) NOT NULL,
  `exam_name` varchar(300) NOT NULL,
  `exam_description` text NOT NULL,
  `exam_pass` varchar(300) NOT NULL,
  `exam_pass_hash` varchar(300) NOT NULL,
  `duration` int(11) NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `maximum_attempt` tinyint(4) NOT NULL,
  `minimum_percentage` tinyint(4) NOT NULL,
  `view_answers` tinyint(4) NOT NULL,
  `surveillance` tinyint(4) NOT NULL,
  `randomize_question` tinyint(4) NOT NULL,
  `exam_type` varchar(20) NOT NULL,
  `activation` varchar(10) NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `executives` (
  `executive_id` int(11) NOT NULL AUTO_INCREMENT,
  `school_id` int(10) unsigned NOT NULL,
  `user_key` varchar(100) DEFAULT NULL,
  `serial_number` varchar(30) NOT NULL,
  `pass` char(255) NOT NULL,
  `new_password` char(255) NOT NULL,
  `email` varchar(200) NOT NULL,
  `status` varchar(30) NOT NULL,
  `phone_number` varchar(20) NOT NULL,
  `forget_token` varchar(200) NOT NULL,
  `login_attempt` int(11) NOT NULL,
  `login_last_time` int(10) unsigned NOT NULL,
  PRIMARY KEY (`executive_id`),
  UNIQUE KEY `user_key` (`user_key`),
  KEY `school_id` (`school_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;


INSERT INTO executives VALUES
("1","0","1b86783ae","O/16/0001","$2y$10$/WPShfudvtky2Lvam61YyuCdOUGnP1SL6eY7ovm0doCDrnTPli/AW","","zeonorganisation@gmail.com","","","","0","1505998587"),
("2","0","2df20249c","B/16/0001","$2y$10$n407Q9ygVsOdUWfe52PHNO6SYlzLRcUq2CQdZdfjF4fnDgt25v8W2","Mynameisbackend","zeonglobal@gmail.com","","","","0","1505995243"),
("3","0","392f989c6","U/16/0001","$2y$10$hXRdO2YNOVyphYSz.pPHEuD4Zw9PhdaG6SNGJHJgQb87QUWV22tV.","","","admin","","","0","1505981376"),
("4","0","4a0978df3","A/16/0001","$2y$10$Gg5mWpO2Pt/lM7sClJy90u7orPh02Z9.ST0B5RSMl9ckFg6ls6a8K","","","account","","","0","1506032093");




CREATE TABLE `facility` (
  `facility_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `facility_cat` varchar(100) NOT NULL,
  `facility_name` varchar(300) NOT NULL,
  `facility_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`facility_id`),
  KEY `facility_cat` (`facility_cat`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `facility_images` (
  `facility_images_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `facility_id` int(10) unsigned NOT NULL,
  `image_name` varchar(300) NOT NULL,
  `image_dir` varchar(500) NOT NULL,
  PRIMARY KEY (`facility_images_id`),
  KEY `facility_id` (`facility_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `fees_discount` (
  `fees_discount_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `reason` varchar(300) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`fees_discount_id`),
  KEY `student_id` (`student_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `form_staff_class_subclass` (
  `form_staff_class_subclass_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  PRIMARY KEY (`form_staff_class_subclass_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `grading` (
  `grading_id` int(11) NOT NULL AUTO_INCREMENT,
  `grade_from` int(11) NOT NULL,
  `grade_to` int(11) NOT NULL,
  `grade` char(20) NOT NULL,
  `remark` char(100) NOT NULL,
  `principal_name` char(200) NOT NULL,
  `principal_comment` text NOT NULL,
  `form_staff_comment` text NOT NULL,
  `subject_comment` text NOT NULL,
  `groups` char(20) NOT NULL,
  PRIMARY KEY (`grading_id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;


INSERT INTO grading VALUES
("1","0","29","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","lower"),
("2","30","34","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","lower"),
("3","35","39","F9","FAIL","","YOU CAN SOAR HIGH LIKE AN EAGLE. PUT MORE EFFORT, IT\'S IN YOU TO SUCCEED.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","lower"),
("4","40","44","E8","VERY POOR","","YOU HAVE THE POTENTIALS FOR GREATNESS IN YOU, BRING IT OUT. YOU WILL DO BETTER NEXT TIME.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","lower"),
("5","45","49","D7","POOR","","YOU HAVE THE POTENTIALS TO FLY, RELEASE MORE OF IT, AND YOU WILL FLY WITH MASTERY.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","lower"),
("6","50","54","C6","CREDIT","","IMPRESSIVE EFFORT, YOU ARE MIDDLE WAY TO SUCCESS, WELL DONE! YOU CAN DO MORE.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","lower"),
("7","55","59","C5","CREDIT","","WELL DONE! YOU ARE ABOUT TO FLY, WITH MORE HARD WORK YOU CAN SCALE HIGHER WITH FLYING COLOURS.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","lower"),
("8","60","64","C4","CREDIT","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","lower"),
("9","65","69","B3","GOOD","","IMPRESSIVE WORK. YOU ARE ON THE PATH TO EXCELLENCE, JUST A LITTLE MORE EFFORT AND YOU ARE ON TOP.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","lower"),
("10","70","74","B2","VERY GOOD","","YOU HAVE UNLOCKED THE SUCCESS KEY, KEEP IT UP. THE SKY IS YOUR STARTING POINT.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","lower"),
("11","75","79","B2","VERY GOOD","","YOU HAVE RANKED  YOURSELF AMONG THE ACADEMIC GLADIATORS, WELL DONE!  KEEP IT UP. THERE ARE MORE GROUNDS TO CONQUER.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","lower"),
("12","80","84","A1","EXCELLENT","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","lower"),
("13","85","89","A1","EXCELLENT","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","lower"),
("14","90","94","A1","EXCELLENT","","YOU HAVE HIT THE MARK OF A CHAMPION, BRILLIANT PERFORMANCE. SOAR TO THE PEAK","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","lower"),
("15","95","100","A1","EXCELLENT","","YOU ARE A GENERAL, YOU HAVE EARNED YOURSELF AN EXCEPTIONAL PLACE. WELL DONE! KEEP ON SOARING","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","lower"),
("16","0","29","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","higher"),
("17","30","34","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","higher"),
("18","35","39","F9","FAIL","","YOU CAN SOAR HIGH LIKE AN EAGLE. PUT MORE EFFORT, IT\'S IN YOU TO SUCCEED.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","higher"),
("19","40","44","E8","VERY POOR","","YOU HAVE THE POTENTIALS FOR GREATNESS IN YOU, BRING IT OUT. YOU WILL DO BETTER NEXT TIME.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","higher"),
("20","45","49","D7","POOR","","YOU HAVE THE POTENTIALS TO FLY, RELEASE MORE OF IT, AND YOU WILL FLY WITH MASTERY.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","higher"),
("21","50","54","C6","CREDIT","","IMPRESSIVE EFFORT, YOU ARE MIDDLE WAY TO SUCCESS, WELL DONE! YOU CAN DO MORE.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","higher"),
("22","55","59","C5","CREDIT","","WELL DONE! YOU ARE ABOUT TO FLY, WITH MORE HARD WORK YOU CAN SCALE HIGHER WITH FLYING COLOURS.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","higher"),
("23","60","64","C4","CREDIT","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","higher"),
("24","65","69","B3","GOOD","","IMPRESSIVE WORK. YOU ARE ON THE PATH TO EXCELLENCE, JUST A LITTLE MORE EFFORT AND YOU ARE ON TOP.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","higher"),
("25","70","74","B2","VERY GOOD","","YOU HAVE UNLOCKED THE SUCCESS KEY, KEEP IT UP. THE SKY IS YOUR STARTING POINT.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","higher"),
("26","75","79","B2","VERY GOOD","","YOU HAVE RANKED  YOURSELF AMONG THE ACADEMIC GLADIATORS, WELL DONE!  KEEP IT UP. THERE ARE MORE GROUNDS TO CONQUER.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","higher"),
("27","80","84","A1","EXCELLENT","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","higher"),
("28","85","89","A1","EXCELLENT","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","higher"),
("29","90","94","A1","EXCELLENT","","YOU HAVE HIT THE MARK OF A CHAMPION, BRILLIANT PERFORMANCE. SOAR TO THE PEAK","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","higher"),
("30","95","100","A1","EXCELLENT","","YOU ARE A GENERAL, YOU HAVE EARNED YOURSELF AN EXCEPTIONAL PLACE. WELL DONE! KEEP ON SOARING","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","higher");




CREATE TABLE `hostel_rooms` (
  `room_id` int(11) NOT NULL AUTO_INCREMENT,
  `hostel_id` int(11) NOT NULL,
  `room_name` varchar(400) NOT NULL,
  `bedspace_prefix` varchar(400) NOT NULL,
  `room_fee` int(11) NOT NULL,
  `room_space` int(11) NOT NULL,
  `available` int(11) NOT NULL,
  PRIMARY KEY (`room_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `hostels` (
  `hostel_id` int(11) NOT NULL AUTO_INCREMENT,
  `hostel_name` varchar(400) NOT NULL,
  `hostel_gender` varchar(20) NOT NULL,
  PRIMARY KEY (`hostel_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `html5_games` (
  `html5_games_id` int(11) NOT NULL AUTO_INCREMENT,
  `html5_games_category_id` int(11) NOT NULL,
  `game_name` varchar(50) NOT NULL,
  `game_image` varchar(150) NOT NULL,
  `game_link` varchar(300) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`html5_games_id`),
  KEY `html5_games_category_id` (`html5_games_category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;


INSERT INTO html5_games VALUES
("1","1","Trivia Quiz","/app/private/images/games/1.jpg","https://html5.gamedistribution.com/66c37511b2d14fe4a2b5ce334c986cae/","2020-04-19 00:56:55"),
("2","1","Quiz Story Animal","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/quiz-story-animal/big_icon.jpg","https://games.softgames.com/games/quiz-story-animal/gamesites/6326/locale/en","2020-04-19 00:56:55"),
("3","1","Words with Owl","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/words-with-owl/big_icon.jpg","https://games.softgames.com/games/words-with-owl/gamesites/6326/locale/en","2020-04-19 00:56:55"),
("4","2","Waffle Game","https://www.h5games.com/imgs/img.GameDistribution.com/c501bf4c7c124cad960a0bfcedf74e49.jpg","https://html5.gamedistribution.com/c501bf4c7c124cad960a0bfcedf74e49/","2020-04-19 00:56:55"),
("5","2","Word Finder","https://www.h5games.com/imgs/img.GameDistribution.com/06f2049a0e14444eace08ead61b295aa.jpg","https://html5.gamedistribution.com/06f2049a0e14444eace08ead61b295aa/","2020-04-19 00:56:55"),
("6","3","Matt Vs Math","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/matt-vs-math/big_icon.jpg","https://games.softgames.com/games/matt-vs-math/gamesites/6326/locale/en","2020-04-19 01:02:09"),
("7","2","Tetra","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/2020-tetra/big_icon.jpg","https://games.softgames.com/games/2020-tetra/gamesites/6326/locale/en","2020-04-19 01:02:09"),
("8","2","4 Images and 1 Word","https://www.h5games.com/imgs/img.GameDistribution.com/2fcdda0631b24da5902b0a837d94f21d.jpg","https://html5.gamedistribution.com/2fcdda0631b24da5902b0a837d94f21d/","2020-04-19 01:02:09"),
("9","3","Number Search","https://cdn.htmlgames.com/NumberSearch/img/icon/icon-196x196.png","https://cdn.htmlgames.com/NumberSearch/index.html","2020-04-19 01:06:56"),
("10","3","Numbers In The City","https://cdn.htmlgames.com/NumbersInTheCity/img/icon/icon-196x196.png","https://cdn.htmlgames.com/NumbersInTheCity/index.html","2020-04-19 01:28:16");




CREATE TABLE `html5_games_category` (
  `html5_games_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(50) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`html5_games_category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;


INSERT INTO html5_games_category VALUES
("1","WORDS TRIVIA","2020-04-19 00:51:16"),
("2","PUZZLE","2020-04-19 00:51:16"),
("3","MATHS TRIVIA","2020-04-19 00:58:15");




CREATE TABLE `inv_cat` (
  `cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_name` varchar(200) NOT NULL,
  PRIMARY KEY (`cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_payment` (
  `inv_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `subcat_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `transaction_id` int(11) NOT NULL,
  `quantity` int(11) DEFAULT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `inv_payment_delete` tinyint(4) NOT NULL DEFAULT '0',
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`inv_payment_id`),
  KEY `subcat_id` (`subcat_id`),
  KEY `student_id` (`student_id`),
  KEY `transaction_id` (`transaction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `inv_stack_payment` (
  `stack_payment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `subcat_id` int(11) NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `sold` int(11) NOT NULL,
  `each_amount` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`stack_payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_stock_cat` (
  `stock_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `accountant_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `no_of_stock` int(11) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`stock_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_stock_subcat` (
  `inv_stock_subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `stock_id` int(11) NOT NULL,
  `cat_id` int(11) NOT NULL,
  `subcat_id` int(11) NOT NULL,
  `no_of_sub` int(11) NOT NULL,
  PRIMARY KEY (`inv_stock_subcat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_subcat` (
  `subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `sub_cat_name` varchar(200) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  PRIMARY KEY (`subcat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_transaction` (
  `trans_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(10) unsigned NOT NULL,
  `subcat_id` int(11) NOT NULL,
  `total_no` int(11) NOT NULL,
  `remaining` int(11) NOT NULL,
  `bought` int(11) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `expected_income` decimal(15,2) NOT NULL,
  `current_income` decimal(15,2) NOT NULL,
  `damaged_items` int(11) NOT NULL,
  `damages` decimal(15,2) NOT NULL,
  `damage_reason` varchar(300) NOT NULL,
  `remove` varchar(10) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`trans_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_category` (
  `ledger_category_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `category_name` varchar(200) NOT NULL,
  `status` varchar(20) NOT NULL,
  PRIMARY KEY (`ledger_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_expense` (
  `ledger_expense_id` int(11) NOT NULL AUTO_INCREMENT,
  `ledger_category_id` int(11) NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `amount_spent` decimal(15,2) NOT NULL,
  `f_explain` varchar(400) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`ledger_expense_id`),
  KEY `ledger_category_id` (`ledger_category_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_income` (
  `ledger_income_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ledger_category_id` int(10) unsigned NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `amount_gotten` decimal(15,2) unsigned NOT NULL,
  `f_explain` varchar(400) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`ledger_income_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `ledger_category_id` (`ledger_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_info` (
  `ledger_info_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ledger_category_id` int(10) unsigned NOT NULL,
  `income` decimal(15,2) NOT NULL,
  `expense` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`ledger_info_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `ledger_category_id` (`ledger_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `lesson_note_template` (
  `lesson_note_template_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `topic` varchar(500) NOT NULL,
  `date` datetime NOT NULL,
  `ages` varchar(500) NOT NULL,
  `no_of_period` varchar(500) NOT NULL,
  `specific_objectives` varchar(500) NOT NULL,
  `instructional_materials` varchar(500) NOT NULL,
  `resource_materials` varchar(500) NOT NULL,
  `teaching_methods` varchar(500) NOT NULL,
  `previous_knowledge` varchar(500) NOT NULL,
  `teachers_intro` varchar(500) NOT NULL,
  `students_intro` varchar(500) NOT NULL,
  `learning_intro` varchar(500) NOT NULL,
  `teachers_step_one` varchar(500) NOT NULL,
  `students_step_one` varchar(500) NOT NULL,
  `learning_step_one` varchar(500) NOT NULL,
  `teachers_step_two` varchar(500) NOT NULL,
  `students_step_two` varchar(500) NOT NULL,
  `learning_step_two` varchar(500) NOT NULL,
  `teachers_step_three` varchar(500) NOT NULL,
  `students_step_three` varchar(500) NOT NULL,
  `learning_step_three` varchar(500) NOT NULL,
  `teachers_step_four` varchar(500) NOT NULL,
  `students_step_four` varchar(500) NOT NULL,
  `learning_step_four` varchar(500) NOT NULL,
  `teachers_classwork` varchar(500) NOT NULL,
  `students_classwork` varchar(500) NOT NULL,
  `learning_classwork` varchar(500) NOT NULL,
  `teachers_assignment` varchar(500) NOT NULL,
  `students_assignment` varchar(500) NOT NULL,
  `learning_assignment` varchar(500) NOT NULL,
  `teachers_conclusion` varchar(500) NOT NULL,
  `students_conclusion` varchar(500) NOT NULL,
  `learning_conclusion` varchar(500) NOT NULL,
  `summary_note` text NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`lesson_note_template_id`),
  KEY `class_id` (`class_id`,`subclass_id`,`subject_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `new_fees_class` (
  `new_fees_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `term` varchar(20) NOT NULL,
  PRIMARY KEY (`new_fees_class_id`),
  KEY `term` (`term`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `news` (
  `news_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `news_title` varchar(300) NOT NULL,
  `news_message` text NOT NULL,
  `news_category` varchar(11) NOT NULL,
  `news_image` varchar(500) NOT NULL,
  `news_date` datetime NOT NULL,
  PRIMARY KEY (`news_id`),
  KEY `news_category` (`news_category`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `news_images` (
  `news_images_id` int(11) NOT NULL AUTO_INCREMENT,
  `news_id` int(11) NOT NULL,
  `image_name` varchar(300) NOT NULL,
  `image_dir` varchar(300) NOT NULL,
  PRIMARY KEY (`news_images_id`),
  KEY `news_id` (`news_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `notify` (
  `notify_id` int(11) NOT NULL AUTO_INCREMENT,
  `notify_collection_id` int(10) unsigned NOT NULL,
  `person_id` int(11) NOT NULL,
  `notify_table_name` varchar(20) NOT NULL,
  `notify_title` varchar(300) NOT NULL,
  `notify_message` text NOT NULL,
  `notify_status` varchar(100) NOT NULL,
  `notify_icon` varchar(100) NOT NULL,
  `notify_color` varchar(20) NOT NULL,
  `notify_date` datetime NOT NULL,
  PRIMARY KEY (`notify_id`),
  KEY `notify_collection_id` (`notify_collection_id`),
  KEY `notify_date` (`notify_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `notify_attachments` (
  `notify_attachment_id` int(11) NOT NULL AUTO_INCREMENT,
  `notify_collection_id` int(11) NOT NULL,
  `attachment_name` varchar(300) NOT NULL,
  `attachment_dir` varchar(300) NOT NULL,
  PRIMARY KEY (`notify_attachment_id`),
  KEY `notify_collection_id` (`notify_collection_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `notify_collection` (
  `notify_collection_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `notify_table_name` varchar(20) NOT NULL,
  `notify_title` varchar(300) NOT NULL,
  `notify_message` text NOT NULL,
  `notify_icon` varchar(100) NOT NULL,
  `notify_color` varchar(20) NOT NULL,
  `notify_date` datetime NOT NULL,
  PRIMARY KEY (`notify_collection_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `order_scratch_card` (
  `order_scratch_card_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `transaction_id` varchar(20) NOT NULL,
  `number_bought` int(10) unsigned NOT NULL,
  `amount` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL,
  `payment_mode` varchar(5) NOT NULL,
  `date_bought` datetime NOT NULL,
  PRIMARY KEY (`order_scratch_card_id`),
  UNIQUE KEY `transaction_id` (`transaction_id`),
  KEY `mode` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `other_fees_cat` (
  `other_fees_cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `other_fees_cat_name` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`other_fees_cat_id`),
  KEY `other_fees_cat_name` (`other_fees_cat_name`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `other_fees_subcat` (
  `other_fees_subcat_id` int(11) NOT NULL AUTO_INCREMENT,
  `other_fees_cat_id` int(11) NOT NULL,
  `other_fees_subcat_name` varchar(200) NOT NULL,
  `other_fees_subcat_amount` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`other_fees_subcat_id`),
  KEY `other_fees_cat_id` (`other_fees_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `other_fees_subcat_payment` (
  `other_fees_subcat_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `transaction_id` varchar(20) NOT NULL,
  `other_fees_subcat_id` int(11) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `other_fees_delete` tinyint(4) NOT NULL DEFAULT '0',
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`other_fees_subcat_payment_id`),
  KEY `student_id` (`student_id`),
  KEY `other_fees_subcat_id` (`other_fees_subcat_id`),
  KEY `sessions` (`sessions`,`terms`),
  KEY `transaction_id` (`transaction_id`),
  KEY `other_fees_delete` (`other_fees_delete`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `parent_student_school` (
  `parent_student_school_id` int(11) NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `school_id` int(11) NOT NULL,
  PRIMARY KEY (`parent_student_school_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `parents` (
  `parent_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_key` varchar(100) DEFAULT NULL,
  `school_id` int(11) NOT NULL,
  `parent_name` varchar(200) NOT NULL,
  `serial_number` varchar(100) NOT NULL,
  `pass` char(255) NOT NULL,
  `first_password` varchar(200) NOT NULL,
  `new_password` varchar(255) NOT NULL,
  `email` varchar(200) NOT NULL,
  `main_phonenumber` bigint(20) NOT NULL,
  `phone_number2` bigint(20) NOT NULL,
  `phone_number3` bigint(20) NOT NULL,
  `occupation` varchar(200) NOT NULL,
  `home_address` text NOT NULL,
  `office_address` text NOT NULL,
  `state_origin` varchar(200) NOT NULL,
  `religion` varchar(200) NOT NULL,
  `local_govt` varchar(200) NOT NULL,
  `country` varchar(200) NOT NULL,
  `sent_serial_pass_sms` char(3) NOT NULL,
  `login_attempt` int(11) NOT NULL,
  `login_last_time` int(11) unsigned NOT NULL,
  `forget_token` varchar(200) NOT NULL,
  `activation` varchar(50) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`parent_id`),
  UNIQUE KEY `user_key` (`user_key`),
  KEY `activation` (`activation`),
  KEY `sent_serial_pass_sms` (`sent_serial_pass_sms`),
  KEY `religion` (`religion`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `plans` (
  `plan_id` int(11) NOT NULL AUTO_INCREMENT,
  `plan_name` varchar(100) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`plan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `print_slip_dates` (
  `print_slip_dates_id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(30) NOT NULL,
  `date_printed` date NOT NULL,
  PRIMARY KEY (`print_slip_dates_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `push_subscriptions` (
  `push_subscriptions_id` int(11) NOT NULL AUTO_INCREMENT,
  `endpoint` varchar(500) NOT NULL,
  `p256dh` varchar(500) NOT NULL,
  `auth` varchar(500) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_id` int(11) NOT NULL,
  `school_id` int(11) NOT NULL,
  `table_name` varchar(100) NOT NULL,
  `user_key` varchar(100) NOT NULL,
  `browser_token` char(32) NOT NULL,
  PRIMARY KEY (`push_subscriptions_id`),
  KEY `user_id` (`user_id`),
  KEY `school_id` (`school_id`),
  KEY `table_name` (`table_name`),
  KEY `user_key` (`user_key`),
  KEY `browser_token` (`browser_token`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `question_bank` (
  `question_bank_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_bank_title` varchar(30) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `question_bank_type` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_bank_id`),
  KEY `class_id` (`class_id`),
  KEY `subject_id` (`subject_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `question_lead` (
  `question_lead_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_bank_id` int(11) NOT NULL,
  `question_lead_title` varchar(300) NOT NULL,
  `question_lead_description` text NOT NULL,
  `question_lead_dir` varchar(500) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `question_lead_embed_dir` varchar(300) NOT NULL,
  `question_lead_thumb_dir` varchar(300) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_lead_id`),
  KEY `question_bank_id` (`question_bank_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `question_options` (
  `question_options_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_id` int(11) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `option_text` varchar(500) NOT NULL,
  `option_dir` varchar(300) NOT NULL,
  `option_embed_dir` varchar(300) NOT NULL,
  `option_thumb_dir` varchar(200) NOT NULL,
  `answer` tinyint(4) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_options_id`),
  KEY `question_id` (`question_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `questions` (
  `question_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_bank_id` int(11) NOT NULL,
  `question_lead_id` int(11) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `correct_answer` int(11) NOT NULL,
  `incorrect_answer` int(11) NOT NULL,
  `question_type` varchar(30) NOT NULL,
  `question_text` text NOT NULL,
  `question_dir` varchar(500) NOT NULL,
  `question_embed_dir` varchar(200) NOT NULL,
  `question_thumb_dir` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_id`),
  KEY `question_bank_id` (`question_bank_id`),
  KEY `question_lead_id` (`question_lead_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `received_students` (
  `received_students_id` int(11) NOT NULL AUTO_INCREMENT,
  `old_student_id` int(11) NOT NULL,
  `new_student_id` int(11) NOT NULL,
  `parent_id` int(11) NOT NULL,
  `student_name` varchar(300) NOT NULL,
  `class_id` int(11) NOT NULL,
  `old_class_name` varchar(100) NOT NULL,
  `new_class_name` varchar(100) NOT NULL,
  `old_serial_number` varchar(30) NOT NULL,
  `new_serial_number` varchar(30) NOT NULL,
  `school_id` int(11) NOT NULL,
  `database_name` varchar(300) NOT NULL,
  `status` varchar(20) NOT NULL,
  `date_created` datetime NOT NULL,
  PRIMARY KEY (`received_students_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result` (
  `remark_result_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_name` varchar(300) NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `terms` varchar(20) NOT NULL,
  `activation` varchar(20) NOT NULL DEFAULT 'activated',
  PRIMARY KEY (`remark_result_id`),
  KEY `class_id` (`class_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_cat` (
  `remark_result_cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_cat_name` varchar(300) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`remark_result_cat_id`),
  KEY `remark_result_id` (`remark_result_id`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_column` (
  `remark_result_column_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_column_name` varchar(300) NOT NULL,
  PRIMARY KEY (`remark_result_column_id`),
  KEY `remark_result_id` (`remark_result_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_mark` (
  `remark_result_mark_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `grade_from` int(11) NOT NULL,
  `grade_to` int(11) NOT NULL,
  `remark_result_mark_name` varchar(300) NOT NULL,
  `remark_result_mark_desc` varchar(500) NOT NULL,
  PRIMARY KEY (`remark_result_mark_id`),
  KEY `remark_result_id` (`remark_result_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_student` (
  `remark_result_student_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `student_id` int(10) unsigned NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `subclass_id` int(10) unsigned NOT NULL,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_cat_id` int(10) unsigned NOT NULL,
  `remark_result_subcat_id` int(10) unsigned NOT NULL,
  `remark_result_column_id` int(10) unsigned NOT NULL,
  `remark_result_mark_id` int(10) unsigned NOT NULL,
  `class_name` varchar(300) NOT NULL,
  `subclass_name` varchar(300) NOT NULL,
  `remark_result_name` varchar(300) NOT NULL,
  `remark_result_cat_name` varchar(300) NOT NULL,
  `remark_result_subcat_name` varchar(300) NOT NULL,
  `remark_result_column_name` varchar(300) NOT NULL,
  `remark_result_mark_name` varchar(300) NOT NULL,
  `remark_result_mark_desc` varchar(500) NOT NULL,
  `score` int(11) DEFAULT NULL,
  `student_attendance` int(11) DEFAULT NULL,
  `total_attendance` int(11) DEFAULT NULL,
  `form_staff_name` varchar(200) NOT NULL,
  `form_staff_comment` text NOT NULL,
  `principal_name` varchar(200) NOT NULL,
  `principal_comment` text NOT NULL,
  `principal_signature` varchar(400) NOT NULL,
  `scratch_card_number` varchar(16) NOT NULL,
  `next_term_begins` date NOT NULL,
  `status` varchar(20) NOT NULL,
  `publish_result` varchar(20) NOT NULL DEFAULT 'not_published',
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`remark_result_student_id`),
  KEY `student_id` (`student_id`,`class_id`,`subclass_id`,`remark_result_id`,`remark_result_cat_id`,`remark_result_subcat_id`,`remark_result_column_id`,`remark_result_mark_id`),
  KEY `status` (`status`),
  KEY `publish_result` (`publish_result`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_subcat` (
  `remark_result_subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_cat_id` int(10) unsigned NOT NULL,
  `remark_result_subcat_name` varchar(300) NOT NULL,
  PRIMARY KEY (`remark_result_subcat_id`),
  KEY `remark_result_id` (`remark_result_id`,`remark_result_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_class` (
  `result_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `class_name` varchar(30) NOT NULL,
  `generate_result` varchar(30) NOT NULL,
  `skip_result` varchar(20) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`result_class_id`),
  KEY `class_id` (`class_id`,`generate_result`,`sessions`,`terms`),
  KEY `skip_result` (`skip_result`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;


INSERT INTO result_class VALUES
("1","1","JSS1","not_generated","not_skipped","2020/2021","1st Term"),
("2","2","JSS2","not_generated","not_skipped","2020/2021","1st Term"),
("3","3","JSS3","not_generated","not_skipped","2020/2021","1st Term"),
("4","4","SSS1","not_generated","not_skipped","2020/2021","1st Term"),
("5","5","SSS2","not_generated","not_skipped","2020/2021","1st Term"),
("6","6","SSS3","not_generated","not_skipped","2020/2021","1st Term");




CREATE TABLE `result_class_score` (
  `result_class_score_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(11) unsigned NOT NULL,
  `no_of_ca` int(11) NOT NULL,
  `ca1_total_score` float NOT NULL,
  `ca2_total_score` float NOT NULL,
  `ca3_total_score` float NOT NULL,
  `ca4_total_score` float NOT NULL,
  `ca5_total_score` float NOT NULL,
  `ca6_total_score` float NOT NULL,
  `exam_total_score` float NOT NULL,
  `total_score` float NOT NULL,
  `ca_name_1` varchar(50) NOT NULL,
  `ca_name_2` varchar(50) NOT NULL,
  `ca_name_3` varchar(50) NOT NULL,
  `ca_name_4` varchar(50) NOT NULL,
  `ca_name_5` varchar(50) NOT NULL,
  `ca_name_6` varchar(50) NOT NULL,
  `exam_name` varchar(50) NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`result_class_score_id`),
  KEY `class_id` (`class_id`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_class_term` (
  `result_class_term` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`result_class_term`),
  KEY `class_id` (`class_id`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_main` (
  `result_main_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `class_name` char(50) NOT NULL,
  `section` varchar(10) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subclass_name` char(50) NOT NULL,
  `total` float NOT NULL,
  `cumulative_total` float NOT NULL,
  `total_obtainable` float NOT NULL,
  `cumu_total_obtainable` float NOT NULL,
  `average` varchar(10) NOT NULL,
  `cumulative_average` varchar(10) NOT NULL,
  `position_class` varchar(20) NOT NULL,
  `cumulative_position_class` varchar(20) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `cumulative_position_subclass` varchar(20) NOT NULL,
  `student_attendance` int(11) DEFAULT NULL,
  `total_attendance` int(11) DEFAULT NULL,
  `total_student_class` int(10) unsigned NOT NULL,
  `total_student_subclass` int(10) unsigned NOT NULL,
  `cumulative_total_student_class` int(10) unsigned NOT NULL,
  `cumulative_total_student_subclass` int(10) unsigned NOT NULL,
  `handwriting` int(11) NOT NULL,
  `cumulative_handwriting` int(11) NOT NULL,
  `neatness` int(11) NOT NULL,
  `cumulative_neatness` int(11) NOT NULL,
  `punctuality` int(11) NOT NULL,
  `cumulative_punctuality` int(11) NOT NULL,
  `attentiveness` int(11) NOT NULL,
  `cumulative_attentiveness` int(11) NOT NULL,
  `initiative` int(11) NOT NULL,
  `cumulative_initiative` int(11) NOT NULL,
  `respect` int(11) NOT NULL,
  `cumulative_respect` int(11) NOT NULL,
  `obedience` int(11) NOT NULL,
  `cumulative_obedience` int(11) NOT NULL,
  `attitude` int(11) NOT NULL,
  `cumulative_attitude` int(11) NOT NULL,
  `honesty` int(11) NOT NULL,
  `cumulative_honesty` int(11) NOT NULL,
  `creativity` int(11) NOT NULL,
  `cumulative_creativity` int(11) NOT NULL,
  `behaviour1_name` varchar(100) NOT NULL,
  `behaviour2_name` varchar(100) NOT NULL,
  `behaviour3_name` varchar(100) NOT NULL,
  `behaviour4_name` varchar(100) NOT NULL,
  `behaviour5_name` varchar(100) NOT NULL,
  `behaviour6_name` varchar(100) NOT NULL,
  `behaviour7_name` varchar(100) NOT NULL,
  `behaviour8_name` varchar(100) NOT NULL,
  `behaviour9_name` varchar(100) NOT NULL,
  `behaviour10_name` varchar(100) NOT NULL,
  `promotion` varchar(50) NOT NULL,
  `promotion_class_id` int(11) NOT NULL,
  `promotion_class_name` varchar(50) NOT NULL,
  `promotion_comment` varchar(500) NOT NULL,
  `promotion_subclass_id` int(11) NOT NULL,
  `promotion_subclass_name` varchar(50) NOT NULL,
  `pass_ave` varchar(5) NOT NULL,
  `scratch_card_number` varchar(16) NOT NULL,
  `next_term_begins` date NOT NULL,
  `ca1_total_score` float NOT NULL,
  `ca2_total_score` float NOT NULL,
  `ca3_total_score` float NOT NULL,
  `ca4_total_score` float NOT NULL,
  `ca5_total_score` float NOT NULL,
  `ca6_total_score` float NOT NULL,
  `ca_total_score` float NOT NULL,
  `exam_total_score` float NOT NULL,
  `no_of_ca` int(11) NOT NULL,
  `exam_name` varchar(50) NOT NULL,
  `ca_name_1` varchar(50) NOT NULL,
  `ca_name_2` varchar(50) NOT NULL,
  `ca_name_3` varchar(50) NOT NULL,
  `ca_name_4` varchar(50) NOT NULL,
  `ca_name_5` varchar(50) NOT NULL,
  `ca_name_6` varchar(50) NOT NULL,
  `principal_name` varchar(100) NOT NULL,
  `principal_comment` text NOT NULL,
  `form_staff_name` varchar(200) NOT NULL,
  `form_staff_comment` text NOT NULL,
  `student_affairs_comment` text NOT NULL,
  `cumulative_principal_comment` text NOT NULL,
  `cumulative_form_staff_comment` text NOT NULL,
  `principal_signature` varchar(150) NOT NULL,
  `second_principal_signature` varchar(60) NOT NULL,
  `visited` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`result_main_id`),
  KEY `student_id` (`student_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `promotion` (`promotion`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_page` (
  `result_page_id` int(11) NOT NULL AUTO_INCREMENT,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `subject_name` varchar(100) NOT NULL,
  `status` char(10) NOT NULL,
  `students` int(11) NOT NULL,
  `t_attendance` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`result_page_id`),
  KEY `status` (`status`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_subject` (
  `result_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `subject_name` varchar(100) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `ca1` float DEFAULT NULL,
  `ca2` float DEFAULT NULL,
  `ca3` float DEFAULT NULL,
  `ca4` float DEFAULT NULL,
  `ca5` float DEFAULT NULL,
  `ca6` float DEFAULT NULL,
  `ca` float DEFAULT NULL,
  `exam` float DEFAULT NULL,
  `sum_total` float DEFAULT NULL,
  `total` float NOT NULL,
  `cumulative_score` float NOT NULL,
  `cumulative_score_percent` float DEFAULT NULL,
  `cumulative_position` char(10) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `grade` varchar(5) NOT NULL,
  `grade_comment` varchar(50) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `staff_comment` varchar(60) NOT NULL,
  `attendance` int(11) DEFAULT NULL,
  `percent_attendance` varchar(10) DEFAULT NULL,
  `handwriting` int(11) DEFAULT NULL,
  `neatness` int(11) DEFAULT NULL,
  `punctuality` int(11) DEFAULT NULL,
  `attentiveness` int(11) DEFAULT NULL,
  `initiative` int(11) DEFAULT NULL,
  `respect` int(11) DEFAULT NULL,
  `obedience` int(11) DEFAULT NULL,
  `attitude` int(11) DEFAULT NULL,
  `honesty` int(11) DEFAULT NULL,
  `creativity` int(11) DEFAULT NULL,
  `status` varchar(10) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`result_subject_id`),
  KEY `sess_term` (`sessions`,`terms`),
  KEY `foreign_keys` (`student_id`,`class_id`,`subclass_id`,`subject_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_subject_group_assign` (
  `result_subject_group_assign_id` int(11) NOT NULL AUTO_INCREMENT,
  `result_subject_group_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  PRIMARY KEY (`result_subject_group_assign_id`),
  KEY `result_subject_group_id` (`result_subject_group_id`,`subject_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_subject_groups` (
  `result_subject_group_id` int(11) NOT NULL AUTO_INCREMENT,
  `result_subject_group_name` varchar(300) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`result_subject_group_id`),
  UNIQUE KEY `result_subject_group_name` (`result_subject_group_name`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `salary_deduct` (
  `salary_deduct_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `reason` varchar(400) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  PRIMARY KEY (`salary_deduct_id`),
  KEY `staff_id` (`staff_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `months` (`months`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `salary_info` (
  `salary_info_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `current_salary` decimal(15,2) NOT NULL,
  `past_debt` decimal(15,2) NOT NULL,
  `amount_to_pay` decimal(15,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `wave_over` decimal(15,2) NOT NULL,
  `current_debt` decimal(15,2) NOT NULL,
  `deduct` decimal(15,2) NOT NULL,
  `appreciation_amount` decimal(15,2) NOT NULL,
  `appreciation_reason` varchar(500) NOT NULL,
  `owing` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  PRIMARY KEY (`salary_info_id`),
  KEY `staff_id` (`staff_id`),
  KEY `sessions` (`sessions`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `salary_payment` (
  `salary_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`salary_payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `school_fees` (
  `school_fees_id` int(11) NOT NULL AUTO_INCREMENT,
  `transaction_id` char(20) NOT NULL,
  `student_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  `school_fees_payment_mode_id` int(11) NOT NULL,
  `payment_mode` varchar(300) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `payment_no` varchar(20) NOT NULL,
  `payment_date` date NOT NULL,
  `fees_status` varchar(20) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`school_fees_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `transaction_id` (`transaction_id`),
  KEY `school_fees_payment_mode_id` (`school_fees_payment_mode_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `school_fees_payment_modes` (
  `school_fees_payment_mode_id` int(11) NOT NULL AUTO_INCREMENT,
  `payment_mode` varchar(300) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`school_fees_payment_mode_id`),
  UNIQUE KEY `payment_mode` (`payment_mode`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `school_storages` (
  `school_storage_id` int(11) NOT NULL AUTO_INCREMENT,
  `school_storage_title` varchar(200) NOT NULL,
  `school_storage_dir` varchar(500) NOT NULL,
  `school_storage_date` datetime NOT NULL,
  PRIMARY KEY (`school_storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `sent_sms` (
  `sent_sms_id` int(11) NOT NULL AUTO_INCREMENT,
  `unit_spent` varchar(300) NOT NULL,
  `message` text NOT NULL,
  `people` text NOT NULL,
  `date_sent` datetime NOT NULL,
  PRIMARY KEY (`sent_sms_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `session_month` (
  `session_month_id` int(11) NOT NULL AUTO_INCREMENT,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  PRIMARY KEY (`session_month_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `session_term` (
  `session_term_id` int(11) NOT NULL AUTO_INCREMENT,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`session_term_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;


INSERT INTO session_term VALUES
("4","2020/2021","1st Term");




CREATE TABLE `sessions` (
  `sid` varchar(40) NOT NULL,
  `expiry` int(10) unsigned NOT NULL,
  `data` text NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`sid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `settings` (
  `settings_id` int(11) NOT NULL AUTO_INCREMENT,
  `setting_name` varchar(300) NOT NULL,
  `setting_value` varchar(300) NOT NULL,
  PRIMARY KEY (`settings_id`),
  KEY `setting_name` (`setting_name`)
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=latin1;


INSERT INTO settings VALUES
("1","total_sms","100"),
("2","school_name","NO NAME"),
("3","school_login_logo","assets/images/logo.png"),
("4","login_attempt","30"),
("5","holiday_project","yes"),
("6","cumulate_test","yes"),
("7","show_test","yes"),
("8","show_waec","yes"),
("9","show_neco","yes"),
("10","lower_ca_score","30"),
("11","lower_exam_score","70"),
("12","school_phonenumber","2340000000000"),
("13","teacher_subclass","yes"),
("14","country","NIGERIA"),
("15","country_code","234"),
("16","phonenumber_length","10"),
("17","full_phonenumber_length","11"),
("18","main_phonenumber_length","13"),
("19","one_sms_amount","3"),
("20","result_cumulative","yes"),
("21","result_school_fees","no"),
("22","school_address","NO ADDRESS"),
("23","principal_finance","no"),
("24","one_card_amount","1000"),
("25","principal_name","SCHOOL HEAD"),
("26","principal_signature","images/principal_signatures/f31fff.jpg"),
("27","third_term_lower","no"),
("28","third_term_higher","no"),
("29","allow_finance","no"),
("30","order_class","no"),
("31","online_school_fees_payment","no"),
("32","sms_sender","NO NAME"),
("33","school_email","school@mail.com"),
("34","school_email_password","DÓ¬øÇÍÕ³J©A#ÏÌÏ"),
("35","school_email_name","School Name"),
("36","scratch_card","no"),
("37","higher_ca_score","30"),
("38","higher_exam_score","70"),
("39","class_approval","no"),
("40","allow_hostel","no"),
("41","result_attendance","no"),
("42","second_principal_signature",""),
("43","lower_no_of_ca","1"),
("44","higher_no_of_ca","1"),
("45","lower_ca1","40"),
("46","lower_ca2","0"),
("47","lower_ca3","0"),
("48","lower_ca4","0"),
("49","lower_ca5","0"),
("50","lower_ca6","0"),
("51","higher_ca1","40"),
("52","higher_ca2","0"),
("53","higher_ca3","0"),
("54","higher_ca4","0"),
("55","higher_ca5","0"),
("56","higher_ca6","0"),
("57","lower_ca_name_1","CA"),
("58","lower_ca_name_2","CA 2"),
("59","lower_ca_name_3","CA 3"),
("60","lower_ca_name_4","CA 4"),
("61","lower_ca_name_5","CA 5"),
("62","lower_ca_name_6","CA 6"),
("63","higher_ca_name_1","CA"),
("64","higher_ca_name_2","CA 2"),
("65","higher_ca_name_3","CA 3"),
("66","higher_ca_name_4","CA 4"),
("67","higher_ca_name_5","CA 5"),
("68","higher_ca_name_6","CA 6"),
("69","lower_exam_name","Exam"),
("70","higher_exam_name","Exam"),
("71","main_school_id","1"),
("72","school_id","1"),
("73","school_storage","yes"),
("74","class_storage","yes"),
("75","class_teacher_comment_setting","yes"),
("76","student_affairs","no"),
("77","admission_number","no"),
("78","admission_format",""),
("79","paystack_subaccount","ACCT_t3w6pmnwzvmv2np"),
("80","currency","&#8358;"),
("81","annual_position_for_last_term","yes"),
("82","annual_only_last_subjects","no"),
("83","parent_finance","yes"),
("84","third_term_in_annual","no"),
("85","admin_class_check_result","yes"),
("86","refresh_token","1//050SH4EtODsccCgYIARAAGAUSNwF-L9Irppe_Bv2rl35Mkj_CsbQEnCFFKltUjnWiPalTUqfLeXyBcZNM05DkpzD5NJ3CFyfFfUM"),
("87","folder_id",""),
("88","google_client_id","150277175744-n19rn2vsuio1lt7ot1cirgvfp3ehjp2l.apps.googleusercontent.com"),
("89","google_client_secret","eTWa1cXmNcG-Ky2h32o7bv4n"),
("90","online_class","no"),
("91","payment_warning","no"),
("92","instalmental_payment","yes"),
("93","classroom_materials","no");




CREATE TABLE `sms_account` (
  `sms_account_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `transaction_id` varchar(20) NOT NULL,
  `unit_bought` int(10) unsigned NOT NULL,
  `amount` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL,
  `mode` varchar(20) NOT NULL,
  `date_bought` datetime NOT NULL,
  PRIMARY KEY (`sms_account_id`),
  UNIQUE KEY `transaction_id` (`transaction_id`),
  KEY `mode` (`mode`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `staff` (
  `staff_id` int(11) NOT NULL AUTO_INCREMENT,
  `school_id` int(10) unsigned NOT NULL,
  `user_key` varchar(100) DEFAULT NULL,
  `serial_number` varchar(200) NOT NULL,
  `pass` varchar(255) NOT NULL,
  `first_password` varchar(200) NOT NULL,
  `new_password` varchar(255) NOT NULL,
  `first_name` varchar(200) NOT NULL,
  `other_name` varchar(200) NOT NULL,
  `last_name` varchar(100) NOT NULL,
  `gender` varchar(10) NOT NULL,
  `status` varchar(50) NOT NULL,
  `groups` varchar(20) NOT NULL,
  `position` varchar(200) NOT NULL,
  `student_affairs` varchar(20) NOT NULL,
  `address` varchar(200) NOT NULL,
  `dob` date NOT NULL,
  `phone_number` bigint(20) unsigned NOT NULL,
  `email` varchar(200) NOT NULL,
  `country` varchar(200) NOT NULL,
  `state_origin` varchar(200) NOT NULL,
  `religion` varchar(50) NOT NULL,
  `disability` varchar(300) NOT NULL,
  `passport` varchar(200) NOT NULL,
  `form` varchar(5) NOT NULL,
  `sent_serial_pass_sms` char(3) NOT NULL,
  `forget_token` varchar(200) NOT NULL,
  `login_attempt` int(11) NOT NULL,
  `login_last_time` int(11) unsigned NOT NULL,
  `skip` varchar(5) NOT NULL,
  `activation` varchar(50) NOT NULL,
  `year_of_employment` varchar(15) NOT NULL,
  `term_of_employment` varchar(15) NOT NULL,
  PRIMARY KEY (`staff_id`),
  UNIQUE KEY `user_key` (`user_key`),
  KEY `activation` (`activation`),
  KEY `serial_number` (`serial_number`),
  KEY `status` (`status`),
  KEY `religion` (`religion`),
  KEY `sent_serial_pass_sms` (`sent_serial_pass_sms`),
  KEY `skip` (`skip`),
  KEY `school_id` (`school_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `staff_salary` (
  `staff_salary_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  PRIMARY KEY (`staff_salary_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `staff_subject` (
  `staff_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  PRIMARY KEY (`staff_subject_id`),
  KEY `staff_subject_class` (`staff_id`,`subject_id`,`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `staff_subject_subclass` (
  `staff_subject_subclass_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  PRIMARY KEY (`staff_subject_subclass_id`),
  UNIQUE KEY `staff_subject_subclass` (`staff_id`,`subject_id`,`class_id`,`subclass_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `student_plan` (
  `student_plan_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  PRIMARY KEY (`student_plan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `student_subject` (
  `student_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `status` varchar(10) NOT NULL,
  PRIMARY KEY (`student_subject_id`),
  KEY `student_subject_status` (`student_id`,`subject_id`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `students` (
  `student_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_key` varchar(100) DEFAULT NULL,
  `school_id` int(10) unsigned NOT NULL,
  `parent_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  `hostel_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `bedspace` int(11) DEFAULT NULL,
  `first_name` varchar(50) NOT NULL,
  `other_name` varchar(50) NOT NULL,
  `last_name` varchar(50) NOT NULL,
  `serial_number` varchar(50) NOT NULL,
  `pass` char(255) NOT NULL,
  `first_password` varchar(200) NOT NULL,
  `new_password` varchar(200) NOT NULL,
  `email` varchar(200) NOT NULL,
  `dob` date NOT NULL,
  `gender` varchar(10) NOT NULL,
  `religion` varchar(50) NOT NULL,
  `reg_no` varchar(20) NOT NULL,
  `adm_no` varchar(60) NOT NULL,
  `graduation_year` varchar(20) NOT NULL,
  `graduation_term` varchar(10) NOT NULL,
  `deactivation_sess` char(20) NOT NULL,
  `deactivation_term` char(10) NOT NULL,
  `disability` varchar(300) NOT NULL,
  `passport` varchar(200) NOT NULL,
  `relationship` varchar(20) NOT NULL,
  `new_student` varchar(20) NOT NULL,
  `new_student_finance` varchar(20) NOT NULL,
  `forget_token` varchar(50) NOT NULL,
  `login_attempt` int(11) NOT NULL,
  `login_last_time` int(11) unsigned NOT NULL,
  `scratch_card_attempt` int(10) unsigned NOT NULL,
  `scratch_card_last_time` int(10) unsigned NOT NULL,
  `transfer` char(20) NOT NULL,
  `transfer_school_id` int(11) NOT NULL,
  `exempt` char(10) NOT NULL,
  `check_result` varchar(20) NOT NULL DEFAULT 'check_result',
  `activation` varchar(20) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`student_id`),
  UNIQUE KEY `serial_number` (`serial_number`),
  UNIQUE KEY `user_key` (`user_key`),
  KEY `activation` (`activation`),
  KEY `parent_id` (`parent_id`),
  KEY `plan_id` (`plan_id`),
  KEY `class_subclass` (`class_id`,`subclass_id`,`activation`),
  KEY `exempt` (`exempt`),
  KEY `check_result` (`check_result`),
  KEY `date_created` (`date_created`),
  KEY `school_id` (`school_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `subclass` (
  `subclass_id` int(11) NOT NULL AUTO_INCREMENT,
  `subclass_name` varchar(30) NOT NULL,
  PRIMARY KEY (`subclass_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `subject_class` (
  `subject_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  PRIMARY KEY (`subject_class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `subjects` (
  `subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `subject_name` varchar(50) NOT NULL,
  `subject_short` varchar(30) NOT NULL,
  `groups` varchar(100) NOT NULL,
  PRIMARY KEY (`subject_id`),
  KEY `groups` (`groups`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `test` (
  `test_id` int(11) NOT NULL AUTO_INCREMENT,
  `test_page_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `subject_name` varchar(100) NOT NULL,
  `student_score` float DEFAULT NULL,
  `status` varchar(10) NOT NULL,
  `sessions` char(20) NOT NULL,
  `terms` char(20) NOT NULL,
  PRIMARY KEY (`test_id`),
  KEY `test_page_id` (`test_page_id`),
  KEY `class_id` (`class_id`),
  KEY `subclass_id` (`subclass_id`),
  KEY `subject_id` (`subject_id`),
  KEY `student_score` (`student_score`),
  KEY `status` (`status`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `test_page` (
  `test_page_id` int(11) NOT NULL AUTO_INCREMENT,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `subject_name` varchar(100) NOT NULL,
  `test_title` varchar(100) NOT NULL,
  `total_score` float NOT NULL,
  `students` int(11) NOT NULL,
  `status` varchar(10) NOT NULL,
  `sessions` char(20) NOT NULL,
  `terms` char(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`test_page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `topic` (
  `topic_id` int(11) NOT NULL AUTO_INCREMENT,
  `topic_name` varchar(200) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `published` varchar(20) NOT NULL DEFAULT 'not_published',
  `discussion_signal` tinyint(4) NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`topic_id`),
  KEY `class_id` (`class_id`),
  KEY `subclass_id` (`subclass_id`),
  KEY `subject_id` (`subject_id`),
  KEY `user_id` (`user_id`),
  KEY `published` (`published`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `topic_discussions` (
  `topic_discussions_id` int(11) NOT NULL AUTO_INCREMENT,
  `topic_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `discussion` varchar(300) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`topic_discussions_id`),
  KEY `user_id` (`user_id`),
  KEY `topic_id` (`topic_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `transfer_current_fees_info` (
  `current_fees_info_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `student_id` int(11) unsigned NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `current_school_fees` decimal(15,2) NOT NULL,
  `past_debt` decimal(15,2) NOT NULL,
  `amount_to_pay` decimal(15,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `discount` decimal(15,2) NOT NULL,
  `surcharge_amount` decimal(15,2) NOT NULL,
  `surcharge_reason` varchar(500) NOT NULL,
  `wave_over` decimal(15,2) NOT NULL,
  `owing` decimal(15,2) NOT NULL,
  `present_owing` decimal(15,2) NOT NULL,
  `class_fee` decimal(15,2) NOT NULL,
  `plan_fee` decimal(15,2) NOT NULL,
  `new_student_fee` decimal(15,2) NOT NULL,
  `room_fee` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`current_fees_info_id`),
  KEY `student_id` (`student_id`),
  KEY `sess_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `transfer_fees_discount` (
  `fees_discount_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `reason` varchar(300) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`fees_discount_id`),
  KEY `student_id` (`student_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `transfer_result_main` (
  `result_main_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `class_name` char(50) NOT NULL,
  `section` varchar(10) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subclass_name` char(50) NOT NULL,
  `total` float NOT NULL,
  `cumulative_total` float NOT NULL,
  `total_obtainable` float NOT NULL,
  `cumu_total_obtainable` float NOT NULL,
  `average` varchar(10) NOT NULL,
  `cumulative_average` varchar(10) NOT NULL,
  `position_class` varchar(20) NOT NULL,
  `cumulative_position_class` varchar(20) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `cumulative_position_subclass` varchar(20) NOT NULL,
  `student_attendance` int(11) DEFAULT NULL,
  `total_attendance` int(11) DEFAULT NULL,
  `total_student_class` int(10) unsigned NOT NULL,
  `total_student_subclass` int(10) unsigned NOT NULL,
  `cumulative_total_student_class` int(10) unsigned NOT NULL,
  `cumulative_total_student_subclass` int(10) unsigned NOT NULL,
  `handwriting` int(11) NOT NULL,
  `cumulative_handwriting` int(11) NOT NULL,
  `neatness` int(11) NOT NULL,
  `cumulative_neatness` int(11) NOT NULL,
  `punctuality` int(11) NOT NULL,
  `cumulative_punctuality` int(11) NOT NULL,
  `attentiveness` int(11) NOT NULL,
  `cumulative_attentiveness` int(11) NOT NULL,
  `initiative` int(11) NOT NULL,
  `cumulative_initiative` int(11) NOT NULL,
  `respect` int(11) NOT NULL,
  `cumulative_respect` int(11) NOT NULL,
  `obedience` int(11) NOT NULL,
  `cumulative_obedience` int(11) NOT NULL,
  `attitude` int(11) NOT NULL,
  `cumulative_attitude` int(11) NOT NULL,
  `honesty` int(11) NOT NULL,
  `cumulative_honesty` int(11) NOT NULL,
  `creativity` int(11) NOT NULL,
  `cumulative_creativity` int(11) NOT NULL,
  `behaviour1_name` varchar(100) NOT NULL,
  `behaviour2_name` varchar(100) NOT NULL,
  `behaviour3_name` varchar(100) NOT NULL,
  `behaviour4_name` varchar(100) NOT NULL,
  `behaviour5_name` varchar(100) NOT NULL,
  `behaviour6_name` varchar(100) NOT NULL,
  `behaviour7_name` varchar(100) NOT NULL,
  `behaviour8_name` varchar(100) NOT NULL,
  `behaviour9_name` varchar(100) NOT NULL,
  `behaviour10_name` varchar(100) NOT NULL,
  `promotion` varchar(50) NOT NULL,
  `promotion_class_id` int(11) NOT NULL,
  `promotion_class_name` varchar(50) NOT NULL,
  `promotion_comment` varchar(500) NOT NULL,
  `promotion_subclass_id` int(11) NOT NULL,
  `promotion_subclass_name` varchar(50) NOT NULL,
  `pass_ave` varchar(5) NOT NULL,
  `scratch_card_number` varchar(16) NOT NULL,
  `next_term_begins` date NOT NULL,
  `ca1_total_score` float NOT NULL,
  `ca2_total_score` float NOT NULL,
  `ca3_total_score` float NOT NULL,
  `ca4_total_score` float NOT NULL,
  `ca5_total_score` float NOT NULL,
  `ca6_total_score` float NOT NULL,
  `ca_total_score` float NOT NULL,
  `exam_total_score` float NOT NULL,
  `no_of_ca` int(11) NOT NULL,
  `exam_name` varchar(50) NOT NULL,
  `ca_name_1` varchar(50) NOT NULL,
  `ca_name_2` varchar(50) NOT NULL,
  `ca_name_3` varchar(50) NOT NULL,
  `ca_name_4` varchar(50) NOT NULL,
  `ca_name_5` varchar(50) NOT NULL,
  `ca_name_6` varchar(50) NOT NULL,
  `principal_name` varchar(100) NOT NULL,
  `principal_comment` text NOT NULL,
  `form_staff_name` varchar(200) NOT NULL,
  `form_staff_comment` text NOT NULL,
  `student_affairs_comment` text NOT NULL,
  `cumulative_principal_comment` text NOT NULL,
  `cumulative_form_staff_comment` text NOT NULL,
  `principal_signature` varchar(150) NOT NULL,
  `second_principal_signature` varchar(60) NOT NULL,
  `visited` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`result_main_id`),
  KEY `student_id` (`student_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `promotion` (`promotion`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `transfer_result_subject` (
  `result_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `subject_name` varchar(100) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `ca1` float DEFAULT NULL,
  `ca2` float DEFAULT NULL,
  `ca3` float DEFAULT NULL,
  `ca4` float DEFAULT NULL,
  `ca5` float DEFAULT NULL,
  `ca6` float DEFAULT NULL,
  `ca` float DEFAULT NULL,
  `exam` float DEFAULT NULL,
  `sum_total` float DEFAULT NULL,
  `total` float NOT NULL,
  `cumulative_score` float NOT NULL,
  `cumulative_score_percent` float DEFAULT NULL,
  `cumulative_position` char(10) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `grade` varchar(5) NOT NULL,
  `grade_comment` varchar(50) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `staff_comment` varchar(60) NOT NULL,
  `attendance` int(11) DEFAULT NULL,
  `percent_attendance` varchar(10) DEFAULT NULL,
  `handwriting` int(11) NOT NULL,
  `neatness` int(11) NOT NULL,
  `punctuality` int(11) NOT NULL,
  `attentiveness` int(11) NOT NULL,
  `initiative` int(11) NOT NULL,
  `respect` int(11) NOT NULL,
  `obedience` int(11) NOT NULL,
  `attitude` int(11) NOT NULL,
  `honesty` int(11) NOT NULL,
  `creativity` int(11) NOT NULL,
  `status` varchar(10) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`result_subject_id`),
  KEY `sess_term` (`sessions`,`terms`),
  KEY `foreign_keys` (`student_id`,`class_id`,`subclass_id`,`subject_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `transfer_salary_info` (
  `salary_info_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `current_salary` decimal(15,2) NOT NULL,
  `past_debt` decimal(15,2) NOT NULL,
  `amount_to_pay` decimal(15,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `wave_over` decimal(15,2) NOT NULL,
  `current_debt` decimal(15,2) NOT NULL,
  `deduct` decimal(15,2) NOT NULL,
  `appreciation_amount` decimal(15,2) NOT NULL,
  `appreciation_reason` varchar(500) NOT NULL,
  `owing` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  PRIMARY KEY (`salary_info_id`),
  KEY `staff_id` (`staff_id`),
  KEY `sessions` (`sessions`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `transfer_salary_payment` (
  `salary_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`salary_payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `transfer_school_fees` (
  `school_fees_id` int(11) NOT NULL AUTO_INCREMENT,
  `transaction_id` char(20) NOT NULL,
  `student_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  `school_fees_payment_mode_id` int(11) NOT NULL,
  `payment_mode` varchar(300) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `payment_no` varchar(20) NOT NULL,
  `fees_status` varchar(20) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`school_fees_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `transaction_id` (`transaction_id`),
  KEY `school_fees_payment_mode_id` (`school_fees_payment_mode_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `transferred_students` (
  `transferred_student_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `parent_id` int(11) NOT NULL,
  `student_name` varchar(300) NOT NULL,
  `class_id` int(11) NOT NULL,
  `old_class_name` varchar(100) NOT NULL,
  `new_class_name` varchar(100) NOT NULL,
  `serial_number` varchar(50) NOT NULL,
  `school_id` int(11) NOT NULL,
  `database_name` varchar(100) NOT NULL,
  `status` varchar(30) NOT NULL,
  `date_transferred` datetime NOT NULL,
  PRIMARY KEY (`transferred_student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `zoom` (
  `zoom_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `class_category_id` int(11) NOT NULL,
  `email` varchar(100) NOT NULL,
  `pass` varchar(50) NOT NULL,
  `api_key` varchar(200) NOT NULL,
  `api_secret` varchar(200) NOT NULL,
  `meeting_id` varchar(20) NOT NULL,
  `meeting_password` varchar(30) NOT NULL,
  `meeting_url_pwd` varchar(400) NOT NULL,
  `host_key` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`zoom_id`),
  KEY `class_id` (`class_id`),
  KEY `class_category_id` (`class_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


--
-- Database: `zeonglob_zap_buckingham_sec_aba`
--




CREATE TABLE `about_us` (
  `about_us_id` int(11) NOT NULL AUTO_INCREMENT,
  `map` varchar(300) NOT NULL,
  `about_us_text` text NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`about_us_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `activity` (
  `assignment_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `topic_id` int(11) NOT NULL,
  `table_name` varchar(30) NOT NULL,
  `assignment_title` varchar(200) NOT NULL,
  `assignment_text` text NOT NULL,
  `due_date` datetime NOT NULL,
  `property` varchar(20) NOT NULL,
  `activation` varchar(20) NOT NULL DEFAULT 'active',
  `total_score` decimal(15,2) NOT NULL,
  `assignment_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `answer_text` text NOT NULL,
  `answer_status` varchar(10) NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`assignment_id`),
  KEY `due_date` (`due_date`),
  KEY `topic_id` (`topic_id`),
  KEY `activation` (`activation`),
  KEY `answer_status` (`answer_status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `activity_comment` (
  `activity_comment_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `comment` varchar(500) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`activity_comment_id`),
  KEY `assignment_id` (`assignment_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_class` (
  `admission_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_sessions_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `price` decimal(15,2) NOT NULL,
  PRIMARY KEY (`admission_class_id`),
  KEY `admission_session_id` (`admission_sessions_id`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;


INSERT INTO admission_class VALUES
("1","1","1","0.00"),
("2","1","2","0.00"),
("3","1","3","0.00"),
("4","1","4","0.00"),
("5","1","5","0.00"),
("6","1","6","0.00");




CREATE TABLE `admission_exam_questions` (
  `admission_exam_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_exam_question_id`),
  KEY `admission_exam_id` (`admission_exam_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exam_student_questions` (
  `admission_exam_student_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_student_id` int(11) NOT NULL,
  `question_options_id` int(11) NOT NULL,
  PRIMARY KEY (`admission_exam_student_question_id`),
  KEY `admission_exam_student_id` (`admission_exam_student_id`),
  KEY `question_options_id` (`question_options_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exam_students` (
  `admission_exam_student_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_id` int(11) NOT NULL,
  `admission_student_id` int(11) NOT NULL,
  `start_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `end_date` datetime NOT NULL,
  `score` decimal(15,2) DEFAULT NULL,
  `revised_score` decimal(15,2) DEFAULT NULL,
  `total_score` decimal(15,2) DEFAULT NULL,
  `score_percentage` decimal(15,2) DEFAULT NULL,
  `revised_score_percentage` decimal(15,2) DEFAULT NULL,
  `approval` tinyint(4) NOT NULL,
  `fullscreen_exits` int(11) NOT NULL,
  `exam_ended_cond` varchar(30) NOT NULL,
  PRIMARY KEY (`admission_exam_student_id`),
  KEY `admission_exam_id` (`admission_exam_id`),
  KEY `student_id` (`admission_student_id`),
  KEY `approval` (`approval`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exam_webcams` (
  `admission_exam_webcam_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_exam_id` int(11) NOT NULL,
  `admission_student_id` int(11) NOT NULL,
  `google_drive_id` varchar(300) NOT NULL,
  `timestamp` varchar(20) NOT NULL,
  PRIMARY KEY (`admission_exam_webcam_id`),
  KEY `admission_exam_id` (`admission_exam_id`,`admission_student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_exams` (
  `admission_exam_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_class_id` int(11) NOT NULL,
  `exam_name` varchar(300) NOT NULL,
  `exam_description` text NOT NULL,
  `exam_type` varchar(20) NOT NULL DEFAULT 'multiple_choice',
  `duration` int(11) NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `maximum_attempt` tinyint(4) NOT NULL,
  `minimum_percentage` tinyint(4) NOT NULL,
  `view_answers` tinyint(4) NOT NULL,
  `surveillance` tinyint(4) NOT NULL,
  `activation` varchar(10) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_exam_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_form` (
  `admission_form_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_form` text NOT NULL,
  `upload_instruction` varchar(500) NOT NULL,
  PRIMARY KEY (`admission_form_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;


INSERT INTO admission_form VALUES
("1","[{\"type\":\"text\",\"required\":true,\"label\":\"Last Name\",\"placeholder\":\"ENTER LAST NAME\",\"className\":\"form-control\",\"name\":\"last_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":true,\"label\":\"First Name\",\"placeholder\":\"ENTER FIRST NAME\",\"className\":\"form-control\",\"name\":\"first_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":false,\"label\":\"Other Name\",\"placeholder\":\"ENTER OTHER NAME\",\"className\":\"form-control\",\"name\":\"other_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"select\",\"required\":true,\"label\":\"Gender\",\"className\":\"form-control\",\"name\":\"gender\",\"access\":false,\"values\":[{\"label\":\"MALE\",\"value\":\"male\",\"selected\":true},{\"label\":\"FEMALE\",\"value\":\"female\"}]},{\"type\":\"select\",\"required\":true,\"label\":\"Religion\",\"placeholder\":\"Religion\",\"className\":\"form-control\",\"name\":\"religion\",\"access\":false,\"values\":[{\"label\":\"CHRISTIANITY \",\"value\":\"Christianity\"},{\"label\":\"ISLAM \",\"value\":\"Islam\"}]},{\"type\":\"date\",\"required\":true,\"label\":\"Date of Birth\",\"className\":\"form-control\",\"name\":\"dob\",\"access\":false},{\"type\":\"text\",\"required\":true,\"label\":\"Parent Name\",\"placeholder\":\"ENTER PARENT NAME\",\"className\":\"form-control\",\"name\":\"parent_name\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":true,\"label\":\"Parent Address\",\"placeholder\":\"ENTER PARENT ADDRESS\",\"className\":\"form-control\",\"name\":\"home_address\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"text\",\"required\":true,\"label\":\"Parent Occupation\",\"placeholder\":\"ENTER PARENT OCCUPATION\",\"className\":\"form-control\",\"name\":\"occupation\",\"access\":false,\"subtype\":\"text\"},{\"type\":\"autocomplete\",\"required\":true,\"label\":\"Parent State of Origin\",\"className\":\"form-control\",\"name\":\"parent_state_origin\",\"access\":false,\"requireValidOption\":true,\"values\":[{\"label\":\"ABIA\",\"value\":\"ABIA\"},{\"label\":\"ADAMAWA\",\"value\":\"ADAMAWA\"},{\"label\":\"AKWA IBOM\",\"value\":\"AKWA IBOM\"},{\"label\":\"ANAMBRA\",\"value\":\"ANAMBRA\"},{\"label\":\"BAUCHI\",\"value\":\"BAUCHI\"},{\"label\":\"BAYELSA\",\"value\":\"BAYELSA\"},{\"label\":\"BENUE\",\"value\":\"BENUE\"},{\"label\":\"BORNO\",\"value\":\"BORNO\"},{\"label\":\"CROSS RIVER\",\"value\":\"CROSS RIVER\"},{\"label\":\"DELTA\",\"value\":\"DELTA\"},{\"label\":\"EBONYI\",\"value\":\"EBONYI\"},{\"label\":\"EDO\",\"value\":\"EDO\"},{\"label\":\"EKITI\",\"value\":\"EKITI\"},{\"label\":\"ENUGU\",\"value\":\"ENUGU\"},{\"label\":\"FCT\",\"value\":\"FCT\"},{\"label\":\"GOMBE\",\"value\":\"GOMBE\"},{\"label\":\"IMO\",\"value\":\"IMO\"},{\"label\":\"JIGAWA\",\"value\":\"JIGAWA\"},{\"label\":\"KADUNA\",\"value\":\"KADUNA\"},{\"label\":\"KANO\",\"value\":\"KANO\"},{\"label\":\"KATSINA\",\"value\":\"KATSINA\"},{\"label\":\"KEBBI\",\"value\":\"KEBBI\"},{\"label\":\"KOGI\",\"value\":\"KOGI\"},{\"label\":\"KWARA\",\"value\":\"KWARA\"},{\"label\":\"LAGOS\",\"value\":\"LAGOS\"},{\"label\":\"NASARAWA\",\"value\":\"NASARAWA\"},{\"label\":\"NIGER\",\"value\":\"NIGER\"},{\"label\":\"OGUN\",\"value\":\"OGUN\"},{\"label\":\"ONDO\",\"value\":\"ONDO\"},{\"label\":\"OSUN\",\"value\":\"OSUN\"},{\"label\":\"OYO\",\"value\":\"OYO\"},{\"label\":\"PLATEAU\",\"value\":\"PLATEAU\"},{\"label\":\"RIVERS\",\"value\":\"RIVERS\"},{\"label\":\"SOKOTO\",\"value\":\"SOKOTO\"},{\"label\":\"TARABA\",\"value\":\"TARABA\"},{\"label\":\"YOBE\",\"value\":\"YOBE\"},{\"label\":\"ZAMFARA\",\"value\":\"ZAMFARA\"}]},{\"type\":\"select\",\"required\":true,\"label\":\"Parent Religion\",\"placeholder\":\"Religion\",\"className\":\"form-control\",\"name\":\"select-1595660440643\",\"access\":false,\"values\":[{\"label\":\"CHRISTIANITY \",\"value\":\"Christianity\",\"selected\":true},{\"label\":\"ISLAM \",\"value\":\"Islam\"}]}]","");




CREATE TABLE `admission_sessions` (
  `admission_sessions_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_sessions_name` varchar(300) NOT NULL,
  `admission_status` varchar(100) NOT NULL DEFAULT 'active',
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_sessions_id`),
  KEY `admission_status` (`admission_status`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;


INSERT INTO admission_sessions VALUES
("1","2021 / 2022","active","2021-06-03 00:12:40");




CREATE TABLE `admission_students` (
  `admission_student_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_class_id` int(11) NOT NULL,
  `main_phonenumber` varchar(20) NOT NULL,
  `email` varchar(300) NOT NULL,
  `student_info` text NOT NULL,
  `payment` varchar(10) NOT NULL,
  `application_status` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `admission_uploads` (
  `admission_upload_id` int(11) NOT NULL AUTO_INCREMENT,
  `admission_student_id` int(11) NOT NULL,
  `upload_title` varchar(50) NOT NULL,
  `google_drive_id` varchar(100) NOT NULL,
  `google_drive_title` varchar(50) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`admission_upload_id`),
  KEY `admission_student_id` (`admission_student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `album` (
  `album_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `album_cat` varchar(20) NOT NULL,
  `album_name` varchar(100) NOT NULL,
  `album_date` datetime NOT NULL,
  PRIMARY KEY (`album_id`),
  KEY `album_cat` (`album_cat`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `album_images` (
  `album_images_id` int(11) NOT NULL AUTO_INCREMENT,
  `album_id` int(11) NOT NULL,
  `image_name` varchar(20) NOT NULL,
  `image_dir` varchar(300) NOT NULL,
  PRIMARY KEY (`album_images_id`),
  KEY `album_id` (`album_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `alumni` (
  `alumni_id` int(11) NOT NULL AUTO_INCREMENT,
  `alumni_class_id` int(11) NOT NULL,
  `last_name` varchar(50) NOT NULL,
  `first_name` varchar(50) NOT NULL,
  `address` varchar(400) NOT NULL,
  `phonenumber` varchar(20) NOT NULL,
  `email` varchar(200) NOT NULL,
  `year_you_left` varchar(20) NOT NULL,
  `set_name` varchar(15) NOT NULL,
  `brief_info` varchar(400) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`alumni_id`),
  KEY `alumni_class_id` (`alumni_class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `alumni_class` (
  `alumni_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_name` varchar(50) NOT NULL,
  `class_group` varchar(10) NOT NULL,
  `class_order` int(11) NOT NULL,
  PRIMARY KEY (`alumni_class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `app_token` (
  `app_token_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `table_name` varchar(100) NOT NULL,
  `user_key` varchar(100) NOT NULL,
  `browser_token` varchar(100) NOT NULL,
  `db_name` varchar(100) NOT NULL,
  `token` varchar(300) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `last_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`app_token_id`),
  KEY `user_key` (`user_key`,`token`),
  KEY `browser_token` (`browser_token`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `assignments` (
  `assignment_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `assignment_title` varchar(200) NOT NULL,
  `assignment_text` text NOT NULL,
  `assignment_dir` varchar(500) NOT NULL,
  `assignment_date` datetime NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`assignment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `assignments_answer_file` (
  `assignments_answer_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `file_name` varchar(100) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_answer_file_id`),
  KEY `assignment_id` (`assignment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `assignments_files` (
  `assignments_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_file_id`),
  KEY `assignment_id` (`assignment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `assignments_marked_file` (
  `assignments_marked_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignments_submitted_id` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_marked_file_id`),
  KEY `assignments_submitted_id` (`assignments_submitted_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `assignments_submitted` (
  `assignments_submitted_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignment_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `typed_assignment` text NOT NULL,
  `uploaded_assignment` varchar(500) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `student_submit_status` varchar(30) NOT NULL,
  `staff_marked_status` varchar(30) NOT NULL,
  `typed_marked` text NOT NULL,
  `student_score` decimal(15,2) DEFAULT NULL,
  `date_marked` datetime NOT NULL,
  PRIMARY KEY (`assignments_submitted_id`),
  KEY `assignment_id` (`assignment_id`),
  KEY `student_id` (`student_id`),
  KEY `staff_id` (`staff_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `assignments_submitted_file` (
  `assignments_submitted_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `assignments_submitted_id` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `file_dir` varchar(300) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`assignments_submitted_file_id`),
  KEY `assignments_submitted_id` (`assignments_submitted_id`),
  KEY `date_added` (`date_added`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `attendance_behaviour` (
  `attendance_behaviour_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `student_attendance` int(11) DEFAULT NULL,
  `total_attendance` int(11) NOT NULL,
  `handwriting` int(11) NOT NULL,
  `neatness` int(11) NOT NULL,
  `punctuality` int(11) NOT NULL,
  `attentiveness` int(11) NOT NULL,
  `initiative` int(11) NOT NULL,
  `respect` int(11) NOT NULL,
  `obedience` int(11) NOT NULL,
  `attitude` int(11) NOT NULL,
  `honesty` int(11) NOT NULL,
  `creativity` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`attendance_behaviour_id`),
  KEY `student_id` (`student_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;


INSERT INTO attendance_behaviour VALUES
("1","2","60","80","0","0","0","0","0","0","0","0","0","0","2020/2021","2nd Term"),
("2","1","","80","0","0","0","0","0","0","0","0","0","0","2020/2021","2nd Term");




CREATE TABLE `autologin` (
  `user_key` varchar(100) NOT NULL,
  `token` char(32) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `browser_token` char(32) NOT NULL,
  `dbname` varchar(300) NOT NULL,
  `data` text,
  `used` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`user_key`,`token`),
  KEY `dbname` (`dbname`(255))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `backup_class` (
  `backup_class_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(10) unsigned NOT NULL,
  `class_name` varchar(10) NOT NULL,
  `class_order` int(10) unsigned NOT NULL,
  `section` varchar(10) NOT NULL,
  `promotional_average` varchar(5) NOT NULL,
  `new_student_fee` decimal(15,2) unsigned NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`backup_class_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `backup_new_fees_class` (
  `backup_new_fees_class_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `new_fees_class_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `term` varchar(20) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`backup_new_fees_class_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `backup_plan` (
  `backup_plan_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `plan_id` int(10) unsigned NOT NULL,
  `plan_name` varchar(100) NOT NULL,
  `amount` decimal(15,2) unsigned NOT NULL,
  `date_added` datetime NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`backup_plan_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `behaviours` (
  `behaviour_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `behaviour_order` int(11) NOT NULL,
  `behaviour_name` varchar(200) NOT NULL,
  PRIMARY KEY (`behaviour_id`),
  KEY `class_id` (`class_id`,`behaviour_order`)
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=latin1;


INSERT INTO behaviours VALUES
("1","1","1","HANDWRITING"),
("2","1","2","NEATNESS"),
("3","1","3","PUNCTUALITY"),
("4","1","4","ATTENTIVENESS"),
("5","1","5","INITIATIVE"),
("6","1","6","RESPECT"),
("7","1","7","OBEDIENCE"),
("8","1","8","ATTITUDE"),
("9","1","9","HONESTY"),
("10","1","10","CREATIVITY"),
("11","2","1","HANDWRITING"),
("12","2","2","NEATNESS"),
("13","2","3","PUNCTUALITY"),
("14","2","4","ATTENTIVENESS"),
("15","2","5","INITIATIVE"),
("16","2","6","RESPECT"),
("17","2","7","OBEDIENCE"),
("18","2","8","ATTITUDE"),
("19","2","9","HONESTY"),
("20","2","10","CREATIVITY"),
("21","3","1","HANDWRITING"),
("22","3","2","NEATNESS"),
("23","3","3","PUNCTUALITY"),
("24","3","4","ATTENTIVENESS"),
("25","3","5","INITIATIVE"),
("26","3","6","RESPECT"),
("27","3","7","OBEDIENCE"),
("28","3","8","ATTITUDE"),
("29","3","9","HONESTY"),
("30","3","10","CREATIVITY"),
("31","4","1","HANDWRITING"),
("32","4","2","NEATNESS"),
("33","4","3","PUNCTUALITY"),
("34","4","4","ATTENTIVENESS"),
("35","4","5","INITIATIVE"),
("36","4","6","RESPECT"),
("37","4","7","OBEDIENCE"),
("38","4","8","ATTITUDE"),
("39","4","9","HONESTY"),
("40","4","10","CREATIVITY"),
("41","5","1","HANDWRITING"),
("42","5","2","NEATNESS"),
("43","5","3","PUNCTUALITY"),
("44","5","4","ATTENTIVENESS"),
("45","5","5","INITIATIVE"),
("46","5","6","RESPECT"),
("47","5","7","OBEDIENCE"),
("48","5","8","ATTITUDE"),
("49","5","9","HONESTY"),
("50","5","10","CREATIVITY"),
("51","6","1","HANDWRITING"),
("52","6","2","NEATNESS"),
("53","6","3","PUNCTUALITY"),
("54","6","4","ATTENTIVENESS"),
("55","6","5","INITIATIVE"),
("56","6","6","RESPECT"),
("57","6","7","OBEDIENCE"),
("58","6","8","ATTITUDE"),
("59","6","9","HONESTY"),
("60","6","10","CREATIVITY");




CREATE TABLE `class` (
  `class_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_name` varchar(30) NOT NULL,
  `class_order` int(10) unsigned NOT NULL,
  `section` varchar(10) NOT NULL,
  `promotional_average` varchar(5) NOT NULL,
  `new_student_fee` decimal(15,2) unsigned NOT NULL,
  PRIMARY KEY (`class_id`),
  KEY `order` (`class_order`),
  KEY `section` (`section`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;


INSERT INTO class VALUES
("1","JSS 1","1","junior","50","0.00"),
("2","JSS 2","2","junior","50","0.00"),
("3","JSS 3","3","junior","50","0.00"),
("4","SSS 1","4","senior","50","0.00"),
("5","SSS 2","5","senior","50","0.00"),
("6","SSS 3","6","senior","50","0.00");




CREATE TABLE `class_approval` (
  `class_approval_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `old_class_id` int(11) NOT NULL,
  `new_class_id` int(11) NOT NULL,
  `old_status` char(20) NOT NULL,
  `mode` char(20) NOT NULL,
  `date_sent` datetime NOT NULL,
  PRIMARY KEY (`class_approval_id`),
  KEY `old_status` (`old_status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_category` (
  `class_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_category_name` varchar(80) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`class_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_class_category` (
  `class_class_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `class_category_id` int(11) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`class_class_category_id`),
  KEY `class_id` (`class_id`),
  KEY `class_category_id` (`class_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_storages` (
  `class_storage_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_storage_title` varchar(200) NOT NULL,
  `class_storage_dir` varchar(500) NOT NULL,
  `class_storage_date` datetime NOT NULL,
  PRIMARY KEY (`class_storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `class_subclass` (
  `class_subclass_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(10) unsigned NOT NULL,
  `subclass_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`class_subclass_id`),
  KEY `class_id` (`class_id`),
  KEY `subclass_id` (`subclass_id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;


INSERT INTO class_subclass VALUES
("3","3","0"),
("6","6","0"),
("7","1","1"),
("8","1","2"),
("9","4","1"),
("10","4","2"),
("11","2","1"),
("12","2","2"),
("15","1","3"),
("16","5","1"),
("17","5","2");




CREATE TABLE `contact_us` (
  `contact_us_id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL,
  `role` varchar(200) NOT NULL,
  `phonenumber` varchar(100) NOT NULL,
  `email` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`contact_us_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `current_fees_info` (
  `current_fees_info_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `student_id` int(11) unsigned NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `current_school_fees` decimal(15,2) NOT NULL,
  `past_debt` decimal(15,2) NOT NULL,
  `amount_to_pay` decimal(15,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `discount` decimal(15,2) NOT NULL,
  `surcharge_amount` decimal(15,2) NOT NULL,
  `surcharge_reason` varchar(500) NOT NULL,
  `wave_over` decimal(15,2) NOT NULL,
  `owing` decimal(15,2) NOT NULL,
  `present_owing` decimal(15,2) NOT NULL,
  `class_fee` decimal(15,2) NOT NULL,
  `plan_fee` decimal(15,2) NOT NULL,
  `new_student_fee` decimal(15,2) NOT NULL,
  `room_fee` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`current_fees_info_id`),
  KEY `student_id` (`student_id`),
  KEY `sess_term` (`sessions`,`terms`)
) ENGINE=InnoDB AUTO_INCREMENT=216 DEFAULT CHARSET=latin1;


INSERT INTO current_fees_info VALUES
("1","1","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("2","2","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("3","3","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("4","4","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("5","5","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("6","6","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("7","7","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("8","8","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("9","9","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("10","10","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("11","11","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("12","12","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("13","13","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("14","14","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("15","15","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("16","16","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("17","17","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("18","18","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("19","19","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("20","20","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("21","21","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("22","22","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("23","23","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("24","24","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("25","25","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("26","26","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("27","27","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("28","28","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("29","29","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("30","30","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("31","31","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("32","32","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("33","33","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("34","34","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("35","35","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("36","36","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("37","37","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("38","38","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("39","39","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("40","40","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("41","41","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("42","42","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("43","43","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("44","44","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("45","45","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("46","46","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("47","47","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("48","48","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("49","49","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("50","50","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("51","51","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("52","52","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("53","53","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("54","54","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("55","55","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("56","56","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("57","57","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("58","58","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("59","59","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("60","60","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("61","61","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("62","62","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("63","63","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("64","64","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("65","65","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("66","66","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("67","67","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("68","68","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("69","69","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("70","70","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("71","71","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("72","72","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("73","73","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("74","74","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("75","75","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("76","76","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("77","77","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("78","78","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("79","79","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("80","80","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("81","81","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("82","82","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("83","83","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("84","84","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("85","85","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("86","86","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("87","87","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("88","88","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("89","89","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("90","90","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("91","91","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("92","92","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("93","93","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("94","94","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("95","95","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("96","96","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("97","97","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("98","98","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("99","99","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("100","100","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term");
INSERT INTO current_fees_info VALUES
("101","101","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("102","102","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("103","103","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("104","104","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("105","105","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("106","106","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("107","107","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("108","108","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("109","109","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("110","110","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("111","111","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("112","112","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("113","113","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("114","114","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("115","115","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("116","116","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("117","117","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("118","118","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("119","119","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("120","120","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("121","121","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("122","122","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("123","123","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("124","124","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("125","125","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("126","126","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("127","127","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("128","128","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("129","129","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("130","130","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("131","131","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("132","132","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("133","133","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("134","134","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("135","135","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("136","136","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("137","137","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("138","138","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("139","139","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("140","140","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("141","141","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("142","142","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("143","143","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("144","144","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("145","145","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("146","146","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("147","147","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("148","148","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("149","149","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("150","150","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("151","151","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("152","152","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("153","153","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("154","154","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("155","155","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("156","156","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("157","157","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("158","158","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("159","159","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("160","160","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("161","161","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("162","162","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("163","163","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("164","164","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("165","165","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("166","166","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("167","167","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("168","168","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("169","169","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("170","170","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("171","171","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("172","172","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("173","173","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("174","174","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("175","175","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("176","176","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("177","177","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("178","178","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("179","179","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("180","180","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("181","181","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("182","182","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("183","183","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("184","184","5","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("185","185","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("186","186","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("187","187","2","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("188","188","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("189","189","4","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("190","190","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("191","191","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("192","192","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("193","193","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("194","194","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("195","195","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("196","196","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("197","197","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("198","198","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("199","199","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("200","200","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term");
INSERT INTO current_fees_info VALUES
("201","201","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("202","202","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("203","203","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("204","204","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("205","205","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("206","206","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("207","207","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("208","208","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("209","209","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("210","210","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("211","211","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("212","212","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("213","213","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("214","214","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term"),
("215","215","1","0.00","0.00","0.00","0.00","0.00","0.00","","0.00","0.00","0.00","0.00","0.00","0.00","0.00","2020/2021","2nd Term");




CREATE TABLE `e_library_cat` (
  `e_library_cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_library_cat_name` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`e_library_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `e_library_file` (
  `e_library_file_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_library_cat_id` int(11) NOT NULL,
  `topic_id` int(11) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `table_name` varchar(20) NOT NULL,
  `title` varchar(300) NOT NULL,
  `google_drive_title` varchar(200) NOT NULL,
  `google_drive_thumbnail_link` varchar(300) NOT NULL,
  `description` varchar(500) NOT NULL,
  `preview_status` varchar(20) NOT NULL DEFAULT 'preview_download',
  `mode` varchar(20) NOT NULL,
  `activation` varchar(20) NOT NULL DEFAULT 'active',
  `file_dir` varchar(300) NOT NULL,
  `google_drive_dir` varchar(300) NOT NULL,
  `google_drive_embed_link` varchar(300) NOT NULL,
  `google_drive_filesize` varchar(30) NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`e_library_file_id`),
  KEY `e_library_cat_id` (`e_library_cat_id`),
  KEY `subclass_id` (`subclass_id`),
  KEY `subject_id` (`subject_id`),
  KEY `class_id` (`class_id`),
  KEY `staff_id` (`staff_id`),
  KEY `topic_id` (`topic_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `e_r_cat` (
  `e_r_cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `e_r_cat_name` varchar(300) NOT NULL,
  `e_r_scratch_card` varchar(4) NOT NULL DEFAULT 'no',
  PRIMARY KEY (`e_r_cat_id`),
  KEY `e_r_scratch_card` (`e_r_scratch_card`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_class_term` (
  `e_r_class_term_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(10) unsigned NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`e_r_class_term_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`,`class_id`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_main` (
  `e_r_main_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `e_r_cat_name` varchar(100) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `section` varchar(10) NOT NULL,
  `total` float NOT NULL,
  `total_obtainable` float NOT NULL,
  `average` varchar(10) NOT NULL,
  `position_class` varchar(20) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `total_student_class` int(11) NOT NULL,
  `total_student_subclass` int(11) NOT NULL,
  `pass_ave` varchar(5) NOT NULL,
  `subcat1_total` float NOT NULL,
  `subcat2_total` float NOT NULL,
  `subcat3_total` float NOT NULL,
  `subcat4_total` float NOT NULL,
  `subcat5_total` float NOT NULL,
  `subcat6_total` float NOT NULL,
  `subcat7_total` float NOT NULL,
  `subcat8_total` float NOT NULL,
  `subcat9_total` float NOT NULL,
  `subcat10_total` float NOT NULL,
  `subcat1_name` varchar(50) NOT NULL,
  `subcat2_name` varchar(50) NOT NULL,
  `subcat3_name` varchar(50) NOT NULL,
  `subcat4_name` varchar(50) NOT NULL,
  `subcat5_name` varchar(50) NOT NULL,
  `subcat6_name` varchar(50) NOT NULL,
  `subcat7_name` varchar(50) NOT NULL,
  `subcat8_name` varchar(50) NOT NULL,
  `subcat9_name` varchar(50) NOT NULL,
  `subcat10_name` varchar(50) NOT NULL,
  `subcat1_short_name` varchar(40) NOT NULL,
  `subcat2_short_name` varchar(40) NOT NULL,
  `subcat3_short_name` varchar(40) NOT NULL,
  `subcat4_short_name` varchar(40) NOT NULL,
  `subcat5_short_name` varchar(40) NOT NULL,
  `subcat6_short_name` varchar(40) NOT NULL,
  `subcat7_short_name` varchar(40) NOT NULL,
  `subcat8_short_name` varchar(40) NOT NULL,
  `subcat9_short_name` varchar(40) NOT NULL,
  `subcat10_short_name` varchar(40) NOT NULL,
  `count_subcat` int(11) NOT NULL,
  `scratch_card_number` varchar(16) NOT NULL,
  `principal_name` varchar(100) NOT NULL,
  `principal_comment` varchar(200) NOT NULL,
  `form_staff_name` varchar(200) NOT NULL,
  `form_staff_comment` varchar(300) NOT NULL,
  `principal_signature` varchar(60) NOT NULL,
  `second_principal_signature` varchar(60) NOT NULL,
  `visited` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`e_r_main_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`,`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_subcat` (
  `e_r_subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(10) unsigned NOT NULL,
  `e_r_subcat_name` varchar(300) NOT NULL,
  `e_r_short_form` varchar(100) NOT NULL,
  `total_score` float NOT NULL,
  PRIMARY KEY (`e_r_subcat_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`),
  KEY `e_r_cat_id_2` (`e_r_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `e_r_subject` (
  `e_r_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_r_cat_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_name` varchar(300) NOT NULL,
  `subclass_name` varchar(300) NOT NULL,
  `subject_name` varchar(300) NOT NULL,
  `subcat1` float DEFAULT NULL,
  `subcat2` float DEFAULT NULL,
  `subcat3` float DEFAULT NULL,
  `subcat4` float DEFAULT NULL,
  `subcat5` float DEFAULT NULL,
  `subcat6` float DEFAULT NULL,
  `subcat7` float DEFAULT NULL,
  `subcat8` float DEFAULT NULL,
  `subcat9` float DEFAULT NULL,
  `subcat10` float DEFAULT NULL,
  `total` float NOT NULL,
  `total_percent` varchar(10) NOT NULL,
  `position_subclass` varchar(30) NOT NULL,
  `grade` varchar(20) NOT NULL,
  `grade_comment` varchar(300) NOT NULL,
  `staff_name` varchar(300) NOT NULL,
  `staff_comment` varchar(300) NOT NULL,
  `status` varchar(20) NOT NULL,
  `generate_result` varchar(20) NOT NULL DEFAULT 'not_generated',
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`e_r_subject_id`),
  KEY `e_r_cat_id` (`e_r_cat_id`,`student_id`,`class_id`,`subclass_id`,`subject_id`),
  KEY `class_id` (`class_id`,`subclass_id`,`subject_id`,`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `end_term_info` (
  `end_term_id` int(11) NOT NULL AUTO_INCREMENT,
  `new_student_number` int(11) NOT NULL,
  `no_of_students` int(11) NOT NULL,
  `no_of_male_students` int(11) NOT NULL,
  `no_of_female_students` int(11) NOT NULL,
  `no_of_grad_students` int(11) NOT NULL,
  `no_of_deact_students` int(11) NOT NULL,
  `no_of_parents` int(11) NOT NULL,
  `no_of_staff` int(11) NOT NULL,
  `no_of_academic_staff` int(11) NOT NULL,
  `no_of_non_academic_staff` int(11) NOT NULL,
  `no_of_accountant` int(11) NOT NULL,
  `no_of_admin` int(11) NOT NULL,
  `owing` int(11) NOT NULL,
  `annual_only_last_subjects` varchar(5) NOT NULL,
  `third_term_in_annual` varchar(3) NOT NULL DEFAULT 'no',
  `allow_finance` varchar(5) NOT NULL,
  `scratch_card` varchar(5) NOT NULL,
  `generate_result` varchar(20) NOT NULL,
  `publish_result` char(30) NOT NULL,
  `next_term_begins` date NOT NULL,
  `publish_result_deadline` date NOT NULL,
  `report_ready` varchar(15) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_entered` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `account_balanced` varchar(12) NOT NULL,
  PRIMARY KEY (`end_term_id`),
  KEY `sess_term` (`sessions`,`terms`),
  KEY `report_ready` (`report_ready`),
  KEY `date_entered` (`date_entered`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;


INSERT INTO end_term_info VALUES
("18","0","0","0","0","0","0","0","0","0","0","0","0","0","no","no","no","no","generated","published","0000-00-00","0000-00-00","ready","2020/2021","1st Term","2018-04-14 13:39:26","unbalanced"),
("19","0","0","0","0","0","0","0","0","0","0","0","0","0","no","no","no","no","not_generated","not_published","0000-00-00","0000-00-00","not_ready","2020/2021","2nd Term","2021-06-03 00:08:43","unbalanced");




CREATE TABLE `end_term_inventory` (
  `end_term_inventory_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_balanced` varchar(20) NOT NULL DEFAULT 'unbalanced',
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`end_term_inventory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `end_term_ledger` (
  `end_term_ledger_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_balanced` varchar(15) NOT NULL DEFAULT 'unbalanced',
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`end_term_ledger_id`),
  KEY `terms` (`terms`,`sessions`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `end_term_school_fees` (
  `end_term_school_fees_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_balanced` varchar(20) DEFAULT 'unbalanced',
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  PRIMARY KEY (`end_term_school_fees_id`),
  KEY `sessions` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `event` (
  `event_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `event_title` varchar(300) NOT NULL,
  `event_cat` varchar(20) NOT NULL,
  `event_image` varchar(300) NOT NULL,
  `location` varchar(300) NOT NULL,
  `description` text NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`event_id`),
  KEY `date_created` (`date_created`),
  KEY `event_cat` (`event_cat`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exam_questions` (
  `exam_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_question_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `exam_student_questions` (
  `exam_student_question_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_student_id` int(11) NOT NULL,
  `question_options_id` int(11) NOT NULL,
  PRIMARY KEY (`exam_student_question_id`),
  KEY `exam_student_id` (`exam_student_id`),
  KEY `question_options_id` (`question_options_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exam_student_theory` (
  `exam_student_theory_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_student_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `question_text` text NOT NULL,
  `corrected_text` text NOT NULL,
  `score` decimal(15,2) DEFAULT NULL,
  `total_score` decimal(15,2) DEFAULT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_student_theory_id`),
  KEY `exam_student_id` (`exam_student_id`),
  KEY `question_id` (`question_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `exam_student_theory_images` (
  `exam_student_theory_images_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_student_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `google_drive_id` varchar(50) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_student_theory_images_id`),
  KEY `exam_student_id` (`exam_student_id`),
  KEY `question_id` (`question_id`),
  KEY `google_drive_id` (`google_drive_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `exam_students` (
  `exam_student_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `start_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `end_date` datetime NOT NULL,
  `score` decimal(15,2) DEFAULT NULL,
  `revised_score` decimal(15,2) DEFAULT NULL,
  `total_score` decimal(15,2) DEFAULT NULL,
  `score_percentage` decimal(15,2) DEFAULT NULL,
  `revised_score_percentage` decimal(15,2) DEFAULT NULL,
  `approval` tinyint(4) NOT NULL,
  `fullscreen_exits` int(11) NOT NULL,
  `exam_ended_cond` varchar(30) NOT NULL,
  PRIMARY KEY (`exam_student_id`),
  KEY `exam_id` (`exam_id`),
  KEY `student_id` (`student_id`),
  KEY `approval` (`approval`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exam_webcams` (
  `exam_webcam_id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `google_drive_id` varchar(300) NOT NULL,
  `timestamp` varchar(20) NOT NULL,
  PRIMARY KEY (`exam_webcam_id`),
  KEY `exam_id` (`exam_id`,`student_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `exams` (
  `exam_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `topic_id` int(11) NOT NULL,
  `exam_name` varchar(300) NOT NULL,
  `exam_description` text NOT NULL,
  `exam_pass` varchar(300) NOT NULL,
  `exam_pass_hash` varchar(300) NOT NULL,
  `duration` int(11) NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `maximum_attempt` tinyint(4) NOT NULL,
  `minimum_percentage` tinyint(4) NOT NULL,
  `view_answers` tinyint(4) NOT NULL,
  `surveillance` tinyint(4) NOT NULL,
  `randomize_question` tinyint(4) NOT NULL,
  `exam_type` varchar(20) NOT NULL,
  `activation` varchar(10) NOT NULL,
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`exam_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `executives` (
  `executive_id` int(11) NOT NULL AUTO_INCREMENT,
  `school_id` int(10) unsigned NOT NULL,
  `user_key` varchar(100) DEFAULT NULL,
  `serial_number` varchar(30) NOT NULL,
  `pass` char(255) NOT NULL,
  `new_password` char(255) NOT NULL,
  `email` varchar(200) NOT NULL,
  `status` varchar(30) NOT NULL,
  `phone_number` varchar(20) NOT NULL,
  `forget_token` varchar(200) NOT NULL,
  `login_attempt` int(11) NOT NULL,
  `login_last_time` int(10) unsigned NOT NULL,
  PRIMARY KEY (`executive_id`),
  UNIQUE KEY `user_key` (`user_key`),
  KEY `school_id` (`school_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;


INSERT INTO executives VALUES
("1","0","1b86783ae","O/16/0001","$2y$10$/WPShfudvtky2Lvam61YyuCdOUGnP1SL6eY7ovm0doCDrnTPli/AW","","zeonorganisation@gmail.com","","","","0","1505998587"),
("2","0","2df20249c","B/16/0001","$2y$10$n407Q9ygVsOdUWfe52PHNO6SYlzLRcUq2CQdZdfjF4fnDgt25v8W2","Mynameisbackend","zeonglobal@gmail.com","","","","0","1505995243"),
("3","0","392f989c6","U/16/0001","$2y$10$hXRdO2YNOVyphYSz.pPHEuD4Zw9PhdaG6SNGJHJgQb87QUWV22tV.","","","admin","","","0","1505981376"),
("4","0","4a0978df3","A/16/0001","$2y$10$Gg5mWpO2Pt/lM7sClJy90u7orPh02Z9.ST0B5RSMl9ckFg6ls6a8K","","","account","","","0","1506032093");




CREATE TABLE `facility` (
  `facility_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `facility_cat` varchar(100) NOT NULL,
  `facility_name` varchar(300) NOT NULL,
  `facility_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`facility_id`),
  KEY `facility_cat` (`facility_cat`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `facility_images` (
  `facility_images_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `facility_id` int(10) unsigned NOT NULL,
  `image_name` varchar(300) NOT NULL,
  `image_dir` varchar(500) NOT NULL,
  PRIMARY KEY (`facility_images_id`),
  KEY `facility_id` (`facility_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `fees_discount` (
  `fees_discount_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `reason` varchar(300) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`fees_discount_id`),
  KEY `student_id` (`student_id`),
  KEY `session_term` (`sessions`,`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `form_staff_class_subclass` (
  `form_staff_class_subclass_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  PRIMARY KEY (`form_staff_class_subclass_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;


INSERT INTO form_staff_class_subclass VALUES
("1","3","1","2");




CREATE TABLE `grading` (
  `grading_id` int(11) NOT NULL AUTO_INCREMENT,
  `grade_from` int(11) NOT NULL,
  `grade_to` int(11) NOT NULL,
  `grade` char(20) NOT NULL,
  `remark` char(100) NOT NULL,
  `principal_name` char(200) NOT NULL,
  `principal_comment` text NOT NULL,
  `form_staff_comment` text NOT NULL,
  `subject_comment` text NOT NULL,
  `groups` char(20) NOT NULL,
  PRIMARY KEY (`grading_id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;


INSERT INTO grading VALUES
("1","0","29","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","lower"),
("2","30","34","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","lower"),
("3","35","39","F9","FAIL","","YOU CAN SOAR HIGH LIKE AN EAGLE. PUT MORE EFFORT, IT\'S IN YOU TO SUCCEED.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","lower"),
("4","40","44","E8","VERY POOR","","YOU HAVE THE POTENTIALS FOR GREATNESS IN YOU, BRING IT OUT. YOU WILL DO BETTER NEXT TIME.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","lower"),
("5","45","49","D7","POOR","","YOU HAVE THE POTENTIALS TO FLY, RELEASE MORE OF IT, AND YOU WILL FLY WITH MASTERY.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","lower"),
("6","50","54","C6","CREDIT","","IMPRESSIVE EFFORT, YOU ARE MIDDLE WAY TO SUCCESS, WELL DONE! YOU CAN DO MORE.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","lower"),
("7","55","59","C5","CREDIT","","WELL DONE! YOU ARE ABOUT TO FLY, WITH MORE HARD WORK YOU CAN SCALE HIGHER WITH FLYING COLOURS.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","lower"),
("8","60","64","C4","CREDIT","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","lower"),
("9","65","69","B3","GOOD","","IMPRESSIVE WORK. YOU ARE ON THE PATH TO EXCELLENCE, JUST A LITTLE MORE EFFORT AND YOU ARE ON TOP.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","lower"),
("10","70","74","B2","VERY GOOD","","YOU HAVE UNLOCKED THE SUCCESS KEY, KEEP IT UP. THE SKY IS YOUR STARTING POINT.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","lower"),
("11","75","79","B2","VERY GOOD","","YOU HAVE RANKED  YOURSELF AMONG THE ACADEMIC GLADIATORS, WELL DONE!  KEEP IT UP. THERE ARE MORE GROUNDS TO CONQUER.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","lower"),
("12","80","84","A1","EXCELLENT","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","lower"),
("13","85","89","A1","EXCELLENT","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","lower"),
("14","90","94","A1","EXCELLENT","","YOU HAVE HIT THE MARK OF A CHAMPION, BRILLIANT PERFORMANCE. SOAR TO THE PEAK","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","lower"),
("15","95","100","A1","EXCELLENT","","YOU ARE A GENERAL, YOU HAVE EARNED YOURSELF AN EXCEPTIONAL PLACE. WELL DONE! KEEP ON SOARING","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","lower"),
("16","0","29","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","higher"),
("17","30","34","F9","FAIL","","YOU CAN BE A STAR! YOU HAVE THE POTENTIALS IN YOU. BRING IT OUT SO YOU CAN SHINE NEXT TIME.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","higher"),
("18","35","39","F9","FAIL","","YOU CAN SOAR HIGH LIKE AN EAGLE. PUT MORE EFFORT, IT\'S IN YOU TO SUCCEED.","WE WILL WORK TOWARDS IMPROVING ON THIS NEXT TERM","FAIR, YOU CAN DO BETTER","higher"),
("19","40","44","E8","VERY POOR","","YOU HAVE THE POTENTIALS FOR GREATNESS IN YOU, BRING IT OUT. YOU WILL DO BETTER NEXT TIME.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","higher"),
("20","45","49","D7","POOR","","YOU HAVE THE POTENTIALS TO FLY, RELEASE MORE OF IT, AND YOU WILL FLY WITH MASTERY.","ALMOST THERE, LETS WORK FOR A BETTER RESULT NEXT TERM","FAIR, TRY HARDER NEXT TIME","higher"),
("21","50","54","C6","CREDIT","","IMPRESSIVE EFFORT, YOU ARE MIDDLE WAY TO SUCCESS, WELL DONE! YOU CAN DO MORE.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","higher"),
("22","55","59","C5","CREDIT","","WELL DONE! YOU ARE ABOUT TO FLY, WITH MORE HARD WORK YOU CAN SCALE HIGHER WITH FLYING COLOURS.","GOOD RESULT, PUT IN MORE EFFORT","GOOD WORK. WORK HARDER","higher"),
("23","60","64","C4","CREDIT","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","higher"),
("24","65","69","B3","GOOD","","IMPRESSIVE WORK. YOU ARE ON THE PATH TO EXCELLENCE, JUST A LITTLE MORE EFFORT AND YOU ARE ON TOP.","GOOD RESULT, PUT IN MORE EFFORT","SATISFACTORY. YOU CAN DO BETTER.","higher"),
("25","70","74","B2","VERY GOOD","","YOU HAVE UNLOCKED THE SUCCESS KEY, KEEP IT UP. THE SKY IS YOUR STARTING POINT.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","higher"),
("26","75","79","B2","VERY GOOD","","YOU HAVE RANKED  YOURSELF AMONG THE ACADEMIC GLADIATORS, WELL DONE!  KEEP IT UP. THERE ARE MORE GROUNDS TO CONQUER.","VERY GOOD PERFORMANCE","VERY GOOD, WELL DONE","higher"),
("27","80","84","A1","EXCELLENT","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","higher"),
("28","85","89","A1","EXCELLENT","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","EXECELLENT RESULT, KEEP IT UP","EXCELLENT PERFORMANCE, KEEP IT UP","higher"),
("29","90","94","A1","EXCELLENT","","YOU HAVE HIT THE MARK OF A CHAMPION, BRILLIANT PERFORMANCE. SOAR TO THE PEAK","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","higher"),
("30","95","100","A1","EXCELLENT","","YOU ARE A GENERAL, YOU HAVE EARNED YOURSELF AN EXCEPTIONAL PLACE. WELL DONE! KEEP ON SOARING","EXECELLENT RESULT, KEEP IT UP","EXCEPTIONAL WORK. WONDERFULLY DONE.","higher");




CREATE TABLE `hostel_rooms` (
  `room_id` int(11) NOT NULL AUTO_INCREMENT,
  `hostel_id` int(11) NOT NULL,
  `room_name` varchar(400) NOT NULL,
  `bedspace_prefix` varchar(400) NOT NULL,
  `room_fee` int(11) NOT NULL,
  `room_space` int(11) NOT NULL,
  `available` int(11) NOT NULL,
  PRIMARY KEY (`room_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `hostels` (
  `hostel_id` int(11) NOT NULL AUTO_INCREMENT,
  `hostel_name` varchar(400) NOT NULL,
  `hostel_gender` varchar(20) NOT NULL,
  PRIMARY KEY (`hostel_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `html5_games` (
  `html5_games_id` int(11) NOT NULL AUTO_INCREMENT,
  `html5_games_category_id` int(11) NOT NULL,
  `game_name` varchar(50) NOT NULL,
  `game_image` varchar(150) NOT NULL,
  `game_link` varchar(300) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`html5_games_id`),
  KEY `html5_games_category_id` (`html5_games_category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;


INSERT INTO html5_games VALUES
("1","1","Trivia Quiz","/app/private/images/games/1.jpg","https://html5.gamedistribution.com/66c37511b2d14fe4a2b5ce334c986cae/","2020-04-19 00:56:55"),
("2","1","Quiz Story Animal","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/quiz-story-animal/big_icon.jpg","https://games.softgames.com/games/quiz-story-animal/gamesites/6326/locale/en","2020-04-19 00:56:55"),
("3","1","Words with Owl","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/words-with-owl/big_icon.jpg","https://games.softgames.com/games/words-with-owl/gamesites/6326/locale/en","2020-04-19 00:56:55"),
("4","2","Waffle Game","https://www.h5games.com/imgs/img.GameDistribution.com/c501bf4c7c124cad960a0bfcedf74e49.jpg","https://html5.gamedistribution.com/c501bf4c7c124cad960a0bfcedf74e49/","2020-04-19 00:56:55"),
("5","2","Word Finder","https://www.h5games.com/imgs/img.GameDistribution.com/06f2049a0e14444eace08ead61b295aa.jpg","https://html5.gamedistribution.com/06f2049a0e14444eace08ead61b295aa/","2020-04-19 00:56:55"),
("6","3","Matt Vs Math","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/matt-vs-math/big_icon.jpg","https://games.softgames.com/games/matt-vs-math/gamesites/6326/locale/en","2020-04-19 01:02:09"),
("7","2","Tetra","https://www.h5games.com/imgs/d1bjj4kazoovdg.cloudfront.net/assets/games/2020-tetra/big_icon.jpg","https://games.softgames.com/games/2020-tetra/gamesites/6326/locale/en","2020-04-19 01:02:09"),
("8","2","4 Images and 1 Word","https://www.h5games.com/imgs/img.GameDistribution.com/2fcdda0631b24da5902b0a837d94f21d.jpg","https://html5.gamedistribution.com/2fcdda0631b24da5902b0a837d94f21d/","2020-04-19 01:02:09"),
("9","3","Number Search","https://cdn.htmlgames.com/NumberSearch/img/icon/icon-196x196.png","https://cdn.htmlgames.com/NumberSearch/index.html","2020-04-19 01:06:56"),
("10","3","Numbers In The City","https://cdn.htmlgames.com/NumbersInTheCity/img/icon/icon-196x196.png","https://cdn.htmlgames.com/NumbersInTheCity/index.html","2020-04-19 01:28:16");




CREATE TABLE `html5_games_category` (
  `html5_games_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(50) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`html5_games_category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;


INSERT INTO html5_games_category VALUES
("1","WORDS TRIVIA","2020-04-19 00:51:16"),
("2","PUZZLE","2020-04-19 00:51:16"),
("3","MATHS TRIVIA","2020-04-19 00:58:15");




CREATE TABLE `inv_cat` (
  `cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_name` varchar(200) NOT NULL,
  PRIMARY KEY (`cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_payment` (
  `inv_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `subcat_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `transaction_id` int(11) NOT NULL,
  `quantity` int(11) DEFAULT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `inv_payment_delete` tinyint(4) NOT NULL DEFAULT '0',
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`inv_payment_id`),
  KEY `subcat_id` (`subcat_id`),
  KEY `student_id` (`student_id`),
  KEY `transaction_id` (`transaction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `inv_stack_payment` (
  `stack_payment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `subcat_id` int(11) NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `sold` int(11) NOT NULL,
  `each_amount` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`stack_payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_stock_cat` (
  `stock_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `accountant_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `no_of_stock` int(11) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`stock_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_stock_subcat` (
  `inv_stock_subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `stock_id` int(11) NOT NULL,
  `cat_id` int(11) NOT NULL,
  `subcat_id` int(11) NOT NULL,
  `no_of_sub` int(11) NOT NULL,
  PRIMARY KEY (`inv_stock_subcat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_subcat` (
  `subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `sub_cat_name` varchar(200) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  PRIMARY KEY (`subcat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `inv_transaction` (
  `trans_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(10) unsigned NOT NULL,
  `subcat_id` int(11) NOT NULL,
  `total_no` int(11) NOT NULL,
  `remaining` int(11) NOT NULL,
  `bought` int(11) NOT NULL,
  `total_amount` decimal(15,2) NOT NULL,
  `expected_income` decimal(15,2) NOT NULL,
  `current_income` decimal(15,2) NOT NULL,
  `damaged_items` int(11) NOT NULL,
  `damages` decimal(15,2) NOT NULL,
  `damage_reason` varchar(300) NOT NULL,
  `remove` varchar(10) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`trans_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_category` (
  `ledger_category_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `category_name` varchar(200) NOT NULL,
  `status` varchar(20) NOT NULL,
  PRIMARY KEY (`ledger_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_expense` (
  `ledger_expense_id` int(11) NOT NULL AUTO_INCREMENT,
  `ledger_category_id` int(11) NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `amount_spent` decimal(15,2) NOT NULL,
  `f_explain` varchar(400) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`ledger_expense_id`),
  KEY `ledger_category_id` (`ledger_category_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_income` (
  `ledger_income_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ledger_category_id` int(10) unsigned NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `amount_gotten` decimal(15,2) unsigned NOT NULL,
  `f_explain` varchar(400) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`ledger_income_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `ledger_category_id` (`ledger_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `ledger_info` (
  `ledger_info_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ledger_category_id` int(10) unsigned NOT NULL,
  `income` decimal(15,2) NOT NULL,
  `expense` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`ledger_info_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `ledger_category_id` (`ledger_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `lesson_note_template` (
  `lesson_note_template_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `topic` varchar(500) NOT NULL,
  `date` datetime NOT NULL,
  `ages` varchar(500) NOT NULL,
  `no_of_period` varchar(500) NOT NULL,
  `specific_objectives` varchar(500) NOT NULL,
  `instructional_materials` varchar(500) NOT NULL,
  `resource_materials` varchar(500) NOT NULL,
  `teaching_methods` varchar(500) NOT NULL,
  `previous_knowledge` varchar(500) NOT NULL,
  `teachers_intro` varchar(500) NOT NULL,
  `students_intro` varchar(500) NOT NULL,
  `learning_intro` varchar(500) NOT NULL,
  `teachers_step_one` varchar(500) NOT NULL,
  `students_step_one` varchar(500) NOT NULL,
  `learning_step_one` varchar(500) NOT NULL,
  `teachers_step_two` varchar(500) NOT NULL,
  `students_step_two` varchar(500) NOT NULL,
  `learning_step_two` varchar(500) NOT NULL,
  `teachers_step_three` varchar(500) NOT NULL,
  `students_step_three` varchar(500) NOT NULL,
  `learning_step_three` varchar(500) NOT NULL,
  `teachers_step_four` varchar(500) NOT NULL,
  `students_step_four` varchar(500) NOT NULL,
  `learning_step_four` varchar(500) NOT NULL,
  `teachers_classwork` varchar(500) NOT NULL,
  `students_classwork` varchar(500) NOT NULL,
  `learning_classwork` varchar(500) NOT NULL,
  `teachers_assignment` varchar(500) NOT NULL,
  `students_assignment` varchar(500) NOT NULL,
  `learning_assignment` varchar(500) NOT NULL,
  `teachers_conclusion` varchar(500) NOT NULL,
  `students_conclusion` varchar(500) NOT NULL,
  `learning_conclusion` varchar(500) NOT NULL,
  `summary_note` text NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`lesson_note_template_id`),
  KEY `class_id` (`class_id`,`subclass_id`,`subject_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `new_fees_class` (
  `new_fees_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `term` varchar(20) NOT NULL,
  PRIMARY KEY (`new_fees_class_id`),
  KEY `term` (`term`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;


INSERT INTO new_fees_class VALUES
("1","1","0.00","1st Term"),
("2","1","0.00","2nd Term"),
("3","1","0.00","3rd Term"),
("4","2","0.00","1st Term"),
("5","2","0.00","2nd Term"),
("6","2","0.00","3rd Term"),
("7","3","0.00","1st Term"),
("8","3","0.00","2nd Term"),
("9","3","0.00","3rd Term"),
("10","4","0.00","1st Term"),
("11","4","0.00","2nd Term"),
("12","4","0.00","3rd Term"),
("13","5","0.00","1st Term"),
("14","5","0.00","2nd Term"),
("15","5","0.00","3rd Term"),
("16","6","0.00","1st Term"),
("17","6","0.00","2nd Term"),
("18","6","0.00","3rd Term");




CREATE TABLE `news` (
  `news_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `news_title` varchar(300) NOT NULL,
  `news_message` text NOT NULL,
  `news_category` varchar(11) NOT NULL,
  `news_image` varchar(500) NOT NULL,
  `news_date` datetime NOT NULL,
  PRIMARY KEY (`news_id`),
  KEY `news_category` (`news_category`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;


INSERT INTO news VALUES
("1","0","0","RESULT FOR 2020/2021 1ST TERM IS READY !!!","<p style=\"text-align: justify;\">All students and parents of No Name should be informed that the result of <strong>2020/2021 1st Term</strong> has been published. Please you are required to complete all fee payment before checking your result.</p>
\n		<p style=\"text-align: justify;\">&nbsp;</p>
\n		<p style=\"text-align: center;\"><strong><span style=\"text-decoration: underline;\">OUTSTANDING STUDENTS</span></strong></p>
\n		<p style=\"text-align: justify;\">From the outcome of the result, these are the best students in their various classes:</p>
\n		<p style=\"text-align: justify;\">&nbsp;</p>
\n		<p style=\"text-align: justify;\">&nbsp;</p>
\n		<p style=\"text-align: justify;\">Signed</p>
\n		<p style=\"text-align: justify;\">Management</p>","secondary","/private/images/default_result.png","2021-06-03 00:08:36");




CREATE TABLE `news_images` (
  `news_images_id` int(11) NOT NULL AUTO_INCREMENT,
  `news_id` int(11) NOT NULL,
  `image_name` varchar(300) NOT NULL,
  `image_dir` varchar(300) NOT NULL,
  PRIMARY KEY (`news_images_id`),
  KEY `news_id` (`news_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `notify` (
  `notify_id` int(11) NOT NULL AUTO_INCREMENT,
  `notify_collection_id` int(10) unsigned NOT NULL,
  `person_id` int(11) NOT NULL,
  `notify_table_name` varchar(20) NOT NULL,
  `notify_title` varchar(300) NOT NULL,
  `notify_message` text NOT NULL,
  `notify_status` varchar(100) NOT NULL,
  `notify_icon` varchar(100) NOT NULL,
  `notify_color` varchar(20) NOT NULL,
  `notify_date` datetime NOT NULL,
  PRIMARY KEY (`notify_id`),
  KEY `notify_collection_id` (`notify_collection_id`),
  KEY `notify_date` (`notify_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `notify_attachments` (
  `notify_attachment_id` int(11) NOT NULL AUTO_INCREMENT,
  `notify_collection_id` int(11) NOT NULL,
  `attachment_name` varchar(300) NOT NULL,
  `attachment_dir` varchar(300) NOT NULL,
  PRIMARY KEY (`notify_attachment_id`),
  KEY `notify_collection_id` (`notify_collection_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `notify_collection` (
  `notify_collection_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `notify_table_name` varchar(20) NOT NULL,
  `notify_title` varchar(300) NOT NULL,
  `notify_message` text NOT NULL,
  `notify_icon` varchar(100) NOT NULL,
  `notify_color` varchar(20) NOT NULL,
  `notify_date` datetime NOT NULL,
  PRIMARY KEY (`notify_collection_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `order_scratch_card` (
  `order_scratch_card_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `transaction_id` varchar(20) NOT NULL,
  `number_bought` int(10) unsigned NOT NULL,
  `amount` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL,
  `payment_mode` varchar(5) NOT NULL,
  `date_bought` datetime NOT NULL,
  PRIMARY KEY (`order_scratch_card_id`),
  UNIQUE KEY `transaction_id` (`transaction_id`),
  KEY `mode` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `other_fees_cat` (
  `other_fees_cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `other_fees_cat_name` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`other_fees_cat_id`),
  KEY `other_fees_cat_name` (`other_fees_cat_name`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `other_fees_subcat` (
  `other_fees_subcat_id` int(11) NOT NULL AUTO_INCREMENT,
  `other_fees_cat_id` int(11) NOT NULL,
  `other_fees_subcat_name` varchar(200) NOT NULL,
  `other_fees_subcat_amount` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`other_fees_subcat_id`),
  KEY `other_fees_cat_id` (`other_fees_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `other_fees_subcat_payment` (
  `other_fees_subcat_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `transaction_id` varchar(20) NOT NULL,
  `other_fees_subcat_id` int(11) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `other_fees_delete` tinyint(4) NOT NULL DEFAULT '0',
  `sessions` varchar(15) NOT NULL,
  `terms` varchar(15) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`other_fees_subcat_payment_id`),
  KEY `student_id` (`student_id`),
  KEY `other_fees_subcat_id` (`other_fees_subcat_id`),
  KEY `sessions` (`sessions`,`terms`),
  KEY `transaction_id` (`transaction_id`),
  KEY `other_fees_delete` (`other_fees_delete`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `parent_student_school` (
  `parent_student_school_id` int(11) NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `school_id` int(11) NOT NULL,
  PRIMARY KEY (`parent_student_school_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `parents` (
  `parent_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_key` varchar(100) DEFAULT NULL,
  `school_id` int(11) NOT NULL,
  `parent_name` varchar(200) NOT NULL,
  `serial_number` varchar(100) NOT NULL,
  `pass` char(255) NOT NULL,
  `first_password` varchar(200) NOT NULL,
  `new_password` varchar(255) NOT NULL,
  `email` varchar(200) NOT NULL,
  `main_phonenumber` bigint(20) NOT NULL,
  `phone_number2` bigint(20) NOT NULL,
  `phone_number3` bigint(20) NOT NULL,
  `occupation` varchar(200) NOT NULL,
  `home_address` text NOT NULL,
  `office_address` text NOT NULL,
  `state_origin` varchar(200) NOT NULL,
  `religion` varchar(200) NOT NULL,
  `local_govt` varchar(200) NOT NULL,
  `country` varchar(200) NOT NULL,
  `sent_serial_pass_sms` char(3) NOT NULL,
  `login_attempt` int(11) NOT NULL,
  `login_last_time` int(11) unsigned NOT NULL,
  `forget_token` varchar(200) NOT NULL,
  `activation` varchar(50) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`parent_id`),
  UNIQUE KEY `user_key` (`user_key`),
  KEY `activation` (`activation`),
  KEY `sent_serial_pass_sms` (`sent_serial_pass_sms`),
  KEY `religion` (`religion`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `plans` (
  `plan_id` int(11) NOT NULL AUTO_INCREMENT,
  `plan_name` varchar(100) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`plan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `print_slip_dates` (
  `print_slip_dates_id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(30) NOT NULL,
  `date_printed` date NOT NULL,
  PRIMARY KEY (`print_slip_dates_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;


INSERT INTO print_slip_dates VALUES
("1","students","2021-07-03"),
("2","students","2021-07-04"),
("3","students","2021-07-04"),
("4","students","2021-07-04"),
("5","students","2021-07-04"),
("6","students","2021-07-04"),
("7","students","2021-07-04"),
("8","students","2021-07-04"),
("9","students","2021-07-04"),
("10","students","2021-07-04");




CREATE TABLE `push_subscriptions` (
  `push_subscriptions_id` int(11) NOT NULL AUTO_INCREMENT,
  `endpoint` varchar(500) NOT NULL,
  `p256dh` varchar(500) NOT NULL,
  `auth` varchar(500) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_id` int(11) NOT NULL,
  `school_id` int(11) NOT NULL,
  `table_name` varchar(100) NOT NULL,
  `user_key` varchar(100) NOT NULL,
  `browser_token` char(32) NOT NULL,
  PRIMARY KEY (`push_subscriptions_id`),
  KEY `user_id` (`user_id`),
  KEY `school_id` (`school_id`),
  KEY `table_name` (`table_name`),
  KEY `user_key` (`user_key`),
  KEY `browser_token` (`browser_token`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `question_bank` (
  `question_bank_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_bank_title` varchar(30) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `question_bank_type` varchar(20) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_bank_id`),
  KEY `class_id` (`class_id`),
  KEY `subject_id` (`subject_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `question_lead` (
  `question_lead_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_bank_id` int(11) NOT NULL,
  `question_lead_title` varchar(300) NOT NULL,
  `question_lead_description` text NOT NULL,
  `question_lead_dir` varchar(500) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `question_lead_embed_dir` varchar(300) NOT NULL,
  `question_lead_thumb_dir` varchar(300) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_lead_id`),
  KEY `question_bank_id` (`question_bank_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `question_options` (
  `question_options_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_id` int(11) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `option_text` varchar(500) NOT NULL,
  `option_dir` varchar(300) NOT NULL,
  `option_embed_dir` varchar(300) NOT NULL,
  `option_thumb_dir` varchar(200) NOT NULL,
  `answer` tinyint(4) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_options_id`),
  KEY `question_id` (`question_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;






CREATE TABLE `questions` (
  `question_id` int(11) NOT NULL AUTO_INCREMENT,
  `question_bank_id` int(11) NOT NULL,
  `question_lead_id` int(11) NOT NULL,
  `google_drive_id` varchar(200) NOT NULL,
  `correct_answer` int(11) NOT NULL,
  `incorrect_answer` int(11) NOT NULL,
  `question_type` varchar(30) NOT NULL,
  `question_text` text NOT NULL,
  `question_dir` varchar(500) NOT NULL,
  `question_embed_dir` varchar(200) NOT NULL,
  `question_thumb_dir` varchar(200) NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`question_id`),
  KEY `question_bank_id` (`question_bank_id`),
  KEY `question_lead_id` (`question_lead_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `received_students` (
  `received_students_id` int(11) NOT NULL AUTO_INCREMENT,
  `old_student_id` int(11) NOT NULL,
  `new_student_id` int(11) NOT NULL,
  `parent_id` int(11) NOT NULL,
  `student_name` varchar(300) NOT NULL,
  `class_id` int(11) NOT NULL,
  `old_class_name` varchar(100) NOT NULL,
  `new_class_name` varchar(100) NOT NULL,
  `old_serial_number` varchar(30) NOT NULL,
  `new_serial_number` varchar(30) NOT NULL,
  `school_id` int(11) NOT NULL,
  `database_name` varchar(300) NOT NULL,
  `status` varchar(20) NOT NULL,
  `date_created` datetime NOT NULL,
  PRIMARY KEY (`received_students_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result` (
  `remark_result_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_name` varchar(300) NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `terms` varchar(20) NOT NULL,
  `activation` varchar(20) NOT NULL DEFAULT 'activated',
  PRIMARY KEY (`remark_result_id`),
  KEY `class_id` (`class_id`),
  KEY `activation` (`activation`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_cat` (
  `remark_result_cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_cat_name` varchar(300) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`remark_result_cat_id`),
  KEY `remark_result_id` (`remark_result_id`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_column` (
  `remark_result_column_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_column_name` varchar(300) NOT NULL,
  PRIMARY KEY (`remark_result_column_id`),
  KEY `remark_result_id` (`remark_result_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_mark` (
  `remark_result_mark_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `grade_from` int(11) NOT NULL,
  `grade_to` int(11) NOT NULL,
  `remark_result_mark_name` varchar(300) NOT NULL,
  `remark_result_mark_desc` varchar(500) NOT NULL,
  PRIMARY KEY (`remark_result_mark_id`),
  KEY `remark_result_id` (`remark_result_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_student` (
  `remark_result_student_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `student_id` int(10) unsigned NOT NULL,
  `class_id` int(10) unsigned NOT NULL,
  `subclass_id` int(10) unsigned NOT NULL,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_cat_id` int(10) unsigned NOT NULL,
  `remark_result_subcat_id` int(10) unsigned NOT NULL,
  `remark_result_column_id` int(10) unsigned NOT NULL,
  `remark_result_mark_id` int(10) unsigned NOT NULL,
  `class_name` varchar(300) NOT NULL,
  `subclass_name` varchar(300) NOT NULL,
  `remark_result_name` varchar(300) NOT NULL,
  `remark_result_cat_name` varchar(300) NOT NULL,
  `remark_result_subcat_name` varchar(300) NOT NULL,
  `remark_result_column_name` varchar(300) NOT NULL,
  `remark_result_mark_name` varchar(300) NOT NULL,
  `remark_result_mark_desc` varchar(500) NOT NULL,
  `score` int(11) DEFAULT NULL,
  `student_attendance` int(11) DEFAULT NULL,
  `total_attendance` int(11) DEFAULT NULL,
  `form_staff_name` varchar(200) NOT NULL,
  `form_staff_comment` text NOT NULL,
  `principal_name` varchar(200) NOT NULL,
  `principal_comment` text NOT NULL,
  `principal_signature` varchar(400) NOT NULL,
  `scratch_card_number` varchar(16) NOT NULL,
  `next_term_begins` date NOT NULL,
  `status` varchar(20) NOT NULL,
  `publish_result` varchar(20) NOT NULL DEFAULT 'not_published',
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`remark_result_student_id`),
  KEY `student_id` (`student_id`,`class_id`,`subclass_id`,`remark_result_id`,`remark_result_cat_id`,`remark_result_subcat_id`,`remark_result_column_id`,`remark_result_mark_id`),
  KEY `status` (`status`),
  KEY `publish_result` (`publish_result`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `remark_result_subcat` (
  `remark_result_subcat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `remark_result_id` int(10) unsigned NOT NULL,
  `remark_result_cat_id` int(10) unsigned NOT NULL,
  `remark_result_subcat_name` varchar(300) NOT NULL,
  PRIMARY KEY (`remark_result_subcat_id`),
  KEY `remark_result_id` (`remark_result_id`,`remark_result_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_class` (
  `result_class_id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `class_name` varchar(30) NOT NULL,
  `generate_result` varchar(30) NOT NULL,
  `skip_result` varchar(20) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`result_class_id`),
  KEY `class_id` (`class_id`,`generate_result`,`sessions`,`terms`),
  KEY `skip_result` (`skip_result`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;


INSERT INTO result_class VALUES
("1","1","JSS1","generated","not_skipped","2020/2021","1st Term"),
("2","2","JSS2","generated","not_skipped","2020/2021","1st Term"),
("3","3","JSS3","generated","not_skipped","2020/2021","1st Term"),
("4","4","SSS1","generated","not_skipped","2020/2021","1st Term"),
("5","5","SSS2","generated","not_skipped","2020/2021","1st Term"),
("6","6","SSS3","generated","not_skipped","2020/2021","1st Term"),
("7","1","JSS 1","not_generated","skipped","2020/2021","2nd Term"),
("8","2","JSS 2","not_generated","skipped","2020/2021","2nd Term"),
("9","3","JSS 3","not_generated","skipped","2020/2021","2nd Term"),
("10","4","SSS 1","not_generated","skipped","2020/2021","2nd Term"),
("11","5","SSS 2","not_generated","skipped","2020/2021","2nd Term"),
("12","6","SSS 3","not_generated","skipped","2020/2021","2nd Term");




CREATE TABLE `result_class_score` (
  `result_class_score_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_id` int(11) unsigned NOT NULL,
  `no_of_ca` int(11) NOT NULL,
  `ca1_total_score` float NOT NULL,
  `ca2_total_score` float NOT NULL,
  `ca3_total_score` float NOT NULL,
  `ca4_total_score` float NOT NULL,
  `ca5_total_score` float NOT NULL,
  `ca6_total_score` float NOT NULL,
  `exam_total_score` float NOT NULL,
  `total_score` float NOT NULL,
  `ca_name_1` varchar(50) NOT NULL,
  `ca_name_2` varchar(50) NOT NULL,
  `ca_name_3` varchar(50) NOT NULL,
  `ca_name_4` varchar(50) NOT NULL,
  `ca_name_5` varchar(50) NOT NULL,
  `ca_name_6` varchar(50) NOT NULL,
  `exam_name` varchar(50) NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`result_class_score_id`),
  KEY `class_id` (`class_id`,`terms`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;


INSERT INTO result_class_score VALUES
("1","1","1","40","0","0","0","0","0","60","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","1st Term"),
("2","1","1","40","0","0","0","0","0","60","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","2nd Term"),
("3","1","2","30","10","0","0","0","0","60","100","TEST","CA","CA 3","CA 4","CA 5","CA 6","EXAM","3rd Term"),
("4","2","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","1st Term"),
("5","2","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","2nd Term"),
("6","2","2","30","10","0","0","0","0","60","100","TEST ","CA","CA 3","CA 4","CA 5","CA 6","EXAM","3rd Term"),
("7","3","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","1st Term"),
("8","3","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","2nd Term"),
("9","3","2","30","10","0","0","0","0","60","100","TEST","CA","CA 3","CA 4","CA 5","CA 6","EXAM","3rd Term"),
("10","4","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","1st Term"),
("11","4","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","2nd Term"),
("12","4","2","30","10","0","0","0","0","60","100","TEST","CA ","CA 3","CA 4","CA 5","CA 6","EXAM","3rd Term"),
("13","5","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","1st Term"),
("14","5","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","2nd Term"),
("15","5","2","30","10","0","0","0","0","60","100","TEST","CA","CA 3","CA 4","CA 5","CA 6","EXAM","3rd Term"),
("16","6","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","1st Term"),
("17","6","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","2nd Term"),
("18","6","2","30","10","0","0","0","0","60","100","TEST","CA ","CA 3","CA 4","CA 5","CA 6","EXAM","3rd Term");




CREATE TABLE `result_class_term` (
  `result_class_term` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`result_class_term`),
  KEY `class_id` (`class_id`,`terms`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;


INSERT INTO result_class_term VALUES
("1","1","1st Term"),
("3","1","3rd Term"),
("4","2","1st Term"),
("19","2","3rd Term"),
("7","3","1st Term"),
("9","3","3rd Term"),
("10","4","1st Term"),
("12","4","3rd Term"),
("13","5","1st Term"),
("15","5","3rd Term"),
("16","6","1st Term"),
("18","6","3rd Term");




CREATE TABLE `result_main` (
  `result_main_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `class_name` char(50) NOT NULL,
  `section` varchar(10) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `subclass_name` char(50) NOT NULL,
  `total` float NOT NULL,
  `cumulative_total` float NOT NULL,
  `total_obtainable` float NOT NULL,
  `cumu_total_obtainable` float NOT NULL,
  `average` varchar(10) NOT NULL,
  `cumulative_average` varchar(10) NOT NULL,
  `position_class` varchar(20) NOT NULL,
  `cumulative_position_class` varchar(20) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `cumulative_position_subclass` varchar(20) NOT NULL,
  `student_attendance` int(11) DEFAULT NULL,
  `total_attendance` int(11) DEFAULT NULL,
  `total_student_class` int(10) unsigned NOT NULL,
  `total_student_subclass` int(10) unsigned NOT NULL,
  `cumulative_total_student_class` int(10) unsigned NOT NULL,
  `cumulative_total_student_subclass` int(10) unsigned NOT NULL,
  `handwriting` int(11) NOT NULL,
  `cumulative_handwriting` int(11) NOT NULL,
  `neatness` int(11) NOT NULL,
  `cumulative_neatness` int(11) NOT NULL,
  `punctuality` int(11) NOT NULL,
  `cumulative_punctuality` int(11) NOT NULL,
  `attentiveness` int(11) NOT NULL,
  `cumulative_attentiveness` int(11) NOT NULL,
  `initiative` int(11) NOT NULL,
  `cumulative_initiative` int(11) NOT NULL,
  `respect` int(11) NOT NULL,
  `cumulative_respect` int(11) NOT NULL,
  `obedience` int(11) NOT NULL,
  `cumulative_obedience` int(11) NOT NULL,
  `attitude` int(11) NOT NULL,
  `cumulative_attitude` int(11) NOT NULL,
  `honesty` int(11) NOT NULL,
  `cumulative_honesty` int(11) NOT NULL,
  `creativity` int(11) NOT NULL,
  `cumulative_creativity` int(11) NOT NULL,
  `behaviour1_name` varchar(100) NOT NULL,
  `behaviour2_name` varchar(100) NOT NULL,
  `behaviour3_name` varchar(100) NOT NULL,
  `behaviour4_name` varchar(100) NOT NULL,
  `behaviour5_name` varchar(100) NOT NULL,
  `behaviour6_name` varchar(100) NOT NULL,
  `behaviour7_name` varchar(100) NOT NULL,
  `behaviour8_name` varchar(100) NOT NULL,
  `behaviour9_name` varchar(100) NOT NULL,
  `behaviour10_name` varchar(100) NOT NULL,
  `promotion` varchar(50) NOT NULL,
  `promotion_class_id` int(11) NOT NULL,
  `promotion_class_name` varchar(50) NOT NULL,
  `promotion_comment` varchar(500) NOT NULL,
  `promotion_subclass_id` int(11) NOT NULL,
  `promotion_subclass_name` varchar(50) NOT NULL,
  `pass_ave` varchar(5) NOT NULL,
  `scratch_card_number` varchar(16) NOT NULL,
  `next_term_begins` date NOT NULL,
  `ca1_total_score` float NOT NULL,
  `ca2_total_score` float NOT NULL,
  `ca3_total_score` float NOT NULL,
  `ca4_total_score` float NOT NULL,
  `ca5_total_score` float NOT NULL,
  `ca6_total_score` float NOT NULL,
  `ca_total_score` float NOT NULL,
  `exam_total_score` float NOT NULL,
  `no_of_ca` int(11) NOT NULL,
  `exam_name` varchar(50) NOT NULL,
  `ca_name_1` varchar(50) NOT NULL,
  `ca_name_2` varchar(50) NOT NULL,
  `ca_name_3` varchar(50) NOT NULL,
  `ca_name_4` varchar(50) NOT NULL,
  `ca_name_5` varchar(50) NOT NULL,
  `ca_name_6` varchar(50) NOT NULL,
  `principal_name` varchar(100) NOT NULL,
  `principal_comment` text NOT NULL,
  `form_staff_name` varchar(200) NOT NULL,
  `form_staff_comment` text NOT NULL,
  `student_affairs_comment` text NOT NULL,
  `cumulative_principal_comment` text NOT NULL,
  `cumulative_form_staff_comment` text NOT NULL,
  `principal_signature` varchar(150) NOT NULL,
  `second_principal_signature` varchar(60) NOT NULL,
  `visited` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`result_main_id`),
  KEY `student_id` (`student_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `promotion` (`promotion`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_page` (
  `result_page_id` int(11) NOT NULL AUTO_INCREMENT,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `subject_name` varchar(100) NOT NULL,
  `status` char(10) NOT NULL,
  `students` int(11) NOT NULL,
  `t_attendance` int(11) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`result_page_id`),
  KEY `status` (`status`),
  KEY `class_id` (`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;


INSERT INTO result_page VALUES
("1","1","1","2","JSS 1","B","ENGLISH LANGUAGE","submit","2","0","2020/2021","2nd Term");




CREATE TABLE `result_subject` (
  `result_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  `class_name` varchar(50) NOT NULL,
  `subclass_name` varchar(50) NOT NULL,
  `subject_name` varchar(100) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `ca1` float DEFAULT NULL,
  `ca2` float DEFAULT NULL,
  `ca3` float DEFAULT NULL,
  `ca4` float DEFAULT NULL,
  `ca5` float DEFAULT NULL,
  `ca6` float DEFAULT NULL,
  `ca` float DEFAULT NULL,
  `exam` float DEFAULT NULL,
  `sum_total` float DEFAULT NULL,
  `total` float NOT NULL,
  `cumulative_score` float NOT NULL,
  `cumulative_score_percent` float DEFAULT NULL,
  `cumulative_position` char(10) NOT NULL,
  `position_subclass` varchar(20) NOT NULL,
  `grade` varchar(5) NOT NULL,
  `grade_comment` varchar(50) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `staff_comment` varchar(60) NOT NULL,
  `attendance` int(11) DEFAULT NULL,
  `percent_attendance` varchar(10) DEFAULT NULL,
  `handwriting` int(11) DEFAULT NULL,
  `neatness` int(11) DEFAULT NULL,
  `punctuality` int(11) DEFAULT NULL,
  `attentiveness` int(11) DEFAULT NULL,
  `initiative` int(11) DEFAULT NULL,
  `respect` int(11) DEFAULT NULL,
  `obedience` int(11) DEFAULT NULL,
  `attitude` int(11) DEFAULT NULL,
  `honesty` int(11) DEFAULT NULL,
  `creativity` int(11) DEFAULT NULL,
  `status` varchar(10) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  PRIMARY KEY (`result_subject_id`),
  KEY `sess_term` (`sessions`,`terms`),
  KEY `foreign_keys` (`student_id`,`class_id`,`subclass_id`,`subject_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;


INSERT INTO result_subject VALUES
("1","2","1","2","JSS 1","B","ENGLISH LANGUAGE","1","30","","","","","","30","60","90","90","0","","","1st","A1","EXCELLENT","NWAGURU PRECIOUS","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("2","1","1","2","JSS 1","B","ENGLISH LANGUAGE","1","30","","","","","","30","50","80","80","0","","","2nd","A1","EXCELLENT","NWAGURU PRECIOUS","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term");




CREATE TABLE `result_subject_group_assign` (
  `result_subject_group_assign_id` int(11) NOT NULL AUTO_INCREMENT,
  `result_subject_group_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  PRIMARY KEY (`result_subject_group_assign_id`),
  KEY `result_subject_group_id` (`result_subject_group_id`,`subject_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `result_subject_groups` (
  `result_subject_group_id` int(11) NOT NULL AUTO_INCREMENT,
  `result_subject_group_name` varchar(300) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`result_subject_group_id`),
  UNIQUE KEY `result_subject_group_name` (`result_subject_group_name`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `salary_deduct` (
  `salary_deduct_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `reason` varchar(400) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  PRIMARY KEY (`salary_deduct_id`),
  KEY `staff_id` (`staff_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `months` (`months`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `salary_info` (
  `salary_info_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `current_salary` decimal(15,2) NOT NULL,
  `past_debt` decimal(15,2) NOT NULL,
  `amount_to_pay` decimal(15,2) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `wave_over` decimal(15,2) NOT NULL,
  `current_debt` decimal(15,2) NOT NULL,
  `deduct` decimal(15,2) NOT NULL,
  `appreciation_amount` decimal(15,2) NOT NULL,
  `appreciation_reason` varchar(500) NOT NULL,
  `owing` decimal(15,2) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  PRIMARY KEY (`salary_info_id`),
  KEY `staff_id` (`staff_id`),
  KEY `sessions` (`sessions`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `salary_payment` (
  `salary_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `accountant_id` int(10) unsigned NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`salary_payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `school_fees` (
  `school_fees_id` int(11) NOT NULL AUTO_INCREMENT,
  `transaction_id` char(20) NOT NULL,
  `student_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  `school_fees_payment_mode_id` int(11) NOT NULL,
  `payment_mode` varchar(300) NOT NULL,
  `staff_name` varchar(200) NOT NULL,
  `amount_paid` decimal(15,2) NOT NULL,
  `payment_no` varchar(20) NOT NULL,
  `payment_date` date NOT NULL,
  `fees_status` varchar(20) NOT NULL,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(10) NOT NULL,
  `date_added` datetime NOT NULL,
  PRIMARY KEY (`school_fees_id`),
  KEY `sessions` (`sessions`),
  KEY `terms` (`terms`),
  KEY `transaction_id` (`transaction_id`),
  KEY `school_fees_payment_mode_id` (`school_fees_payment_mode_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `school_fees_payment_modes` (
  `school_fees_payment_mode_id` int(11) NOT NULL AUTO_INCREMENT,
  `payment_mode` varchar(300) NOT NULL,
  `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`school_fees_payment_mode_id`),
  UNIQUE KEY `payment_mode` (`payment_mode`),
  KEY `date_created` (`date_created`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `school_storages` (
  `school_storage_id` int(11) NOT NULL AUTO_INCREMENT,
  `school_storage_title` varchar(200) NOT NULL,
  `school_storage_dir` varchar(500) NOT NULL,
  `school_storage_date` datetime NOT NULL,
  PRIMARY KEY (`school_storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `sent_sms` (
  `sent_sms_id` int(11) NOT NULL AUTO_INCREMENT,
  `unit_spent` varchar(300) NOT NULL,
  `message` text NOT NULL,
  `people` text NOT NULL,
  `date_sent` datetime NOT NULL,
  PRIMARY KEY (`sent_sms_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `session_month` (
  `session_month_id` int(11) NOT NULL AUTO_INCREMENT,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  `months` varchar(30) NOT NULL,
  PRIMARY KEY (`session_month_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `session_term` (
  `session_term_id` int(11) NOT NULL AUTO_INCREMENT,
  `sessions` varchar(20) NOT NULL,
  `terms` varchar(20) NOT NULL,
  PRIMARY KEY (`session_term_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;


INSERT INTO session_term VALUES
("4","2020/2021","1st Term"),
("5","2020/2021","2nd Term");




CREATE TABLE `sessions` (
  `sid` varchar(40) NOT NULL,
  `expiry` int(10) unsigned NOT NULL,
  `data` text NOT NULL,
  `date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`sid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;






CREATE TABLE `settings` (
  `settings_id` int(11) NOT NULL AUTO_INCREMENT,
  `setting_name` varchar(300) NOT NULL,
  `setting_value` varchar(300) NOT NULL,
  PRIMARY KEY (`settings_id`),
  KEY `setting_name` (`setting_name`)
) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=latin1;


INSERT INTO settings VALUES
("1","total_sms","100"),
("2","school_name","BUCKINGHAM COLLEGE"),
("3","school_login_logo","assets/images/logo.png"),
("4","login_attempt","30"),
("5","holiday_project","yes"),
("6","cumulate_test","yes"),
("7","show_test","yes"),
("8","show_waec","yes"),
("9","show_neco","yes"),
("10","lower_ca_score","30"),
("11","lower_exam_score","70"),
("12","school_phonenumber","2340000000000"),
("13","teacher_subclass","yes"),
("14","country","NIGERIA"),
("15","country_code","234"),
("16","phonenumber_length","10"),
("17","full_phonenumber_length","11"),
("18","main_phonenumber_length","13"),
("19","one_sms_amount","3"),
("20","result_cumulative","yes"),
("21","result_school_fees","no"),
("22","school_address","36 MCC ROAD, ABAYI, ABA, ABIA STATE"),
("23","principal_finance","no"),
("24","one_card_amount","1000"),
("25","principal_name","SCHOOL HEAD"),
("26","principal_signature","images/principal_signatures/f31fff.jpg"),
("27","third_term_lower","no"),
("28","third_term_higher","no"),
("29","allow_finance","no"),
("30","order_class","no"),
("31","online_school_fees_payment","no"),
("32","sms_sender","NO NAME"),
("33","school_email","school@mail.com"),
("34","school_email_password","DÓ¬øÇÍÕ³J©A#ÏÌÏ"),
("35","school_email_name","School Name"),
("36","scratch_card","no"),
("37","higher_ca_score","30"),
("38","higher_exam_score","70"),
("39","class_approval","no"),
("40","allow_hostel","no"),
("41","result_attendance","no"),
("42","second_principal_signature",""),
("43","lower_no_of_ca","1"),
("44","higher_no_of_ca","1"),
("45","lower_ca1","40"),
("46","lower_ca2","0"),
("47","lower_ca3","0"),
("48","lower_ca4","0"),
("49","lower_ca5","0"),
("50","lower_ca6","0"),
("51","higher_ca1","40"),
("52","higher_ca2","0"),
("53","higher_ca3","0"),
("54","higher_ca4","0"),
("55","higher_ca5","0"),
("56","higher_ca6","0"),
("57","lower_ca_name_1","CA"),
("58","lower_ca_name_2","CA 2"),
("59","lower_ca_name_3","CA 3"),
("60","lower_ca_name_4","CA 4"),
("61","lower_ca_name_5","CA 5"),
("62","lower_ca_name_6","CA 6"),
("63","higher_ca_name_1","CA"),
("64","higher_ca_name_2","CA 2"),
("65","higher_ca_name_3","CA 3"),
("66","higher_ca_name_4","CA 4"),
("67","higher_ca_name_5","CA 5"),
("68","higher_ca_name_6","CA 6"),
("69","lower_exam_name","Exam"),
("70","higher_exam_name","Exam"),
("71","main_school_id","1"),
("72","school_id","1"),
("73","school_storage","yes"),
("74","class_storage","yes"),
("75","class_teacher_comment_setting","yes"),
("76","student_affairs","no"),
("77","admission_number","no"),
("78","admission_format",""),
("79","paystack_subaccount","ACCT_t3w6pmnwzvmv2np"),
("80","currency","&#8358;"),
("81","annual_position_for_last_term","yes"),
("82","annual_only_last_subjects","no"),
("83","parent_finance","yes"),
("84","third_term_in_annual","no"),
("85","admin_class_check_result","yes"),
("86","refresh_token","1//050SH4EtODsccCgYIARAAGAUSNwF-L9Irppe_Bv2rl35Mkj_CsbQEnCFFKltUjnWiPalTUqfLeXyBcZNM05DkpzD5NJ3CFyfFfUM"),
("87","folder_id",""),
("88","google_client_id","150277175744-n19rn2vsuio1lt7ot1cirgvfp3ehjp2l.apps.googleusercontent.com"),
("89","google_client_secret","eTWa1cXmNcG-Ky2h32o7bv4n"),
("90","online_class","no"),
("91","payment_warning","no"),
("92","instalmental_payment","yes"),
("93","classroom_materials","no"),
("94","class_activity_name","CLASS ACTIVITY");




CREATE TABLE `sms_account` (
  `sms_account_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `transaction_id` varchar(20) NOT NULL,
  `unit_bought` int(10) unsigned NOT NULL,
  `amount` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL,
  `mode` varchar(20) NOT NULL,
  `date_bought` datetime NOT NULL,
  PRIMARY KEY (`sms_account_id`),
  UNIQUE KEY `transaction_id` (`transaction_id`),
  KEY `mode` (`mode`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `staff` (
  `staff_id` int(11) NOT NULL AUTO_INCREMENT,
  `school_id` int(10) unsigned NOT NULL,
  `user_key` varchar(100) DEFAULT NULL,
  `serial_number` varchar(200) NOT NULL,
  `pass` varchar(255) NOT NULL,
  `first_password` varchar(200) NOT NULL,
  `new_password` varchar(255) NOT NULL,
  `first_name` varchar(200) NOT NULL,
  `other_name` varchar(200) NOT NULL,
  `last_name` varchar(100) NOT NULL,
  `gender` varchar(10) NOT NULL,
  `status` varchar(50) NOT NULL,
  `groups` varchar(20) NOT NULL,
  `position` varchar(200) NOT NULL,
  `student_affairs` varchar(20) NOT NULL,
  `address` varchar(200) NOT NULL,
  `dob` date NOT NULL,
  `phone_number` bigint(20) unsigned NOT NULL,
  `email` varchar(200) NOT NULL,
  `country` varchar(200) NOT NULL,
  `state_origin` varchar(200) NOT NULL,
  `religion` varchar(50) NOT NULL,
  `disability` varchar(300) NOT NULL,
  `passport` varchar(200) NOT NULL,
  `form` varchar(5) NOT NULL,
  `sent_serial_pass_sms` char(3) NOT NULL,
  `forget_token` varchar(200) NOT NULL,
  `login_attempt` int(11) NOT NULL,
  `login_last_time` int(11) unsigned NOT NULL,
  `skip` varchar(5) NOT NULL,
  `activation` varchar(50) NOT NULL,
  `year_of_employment` varchar(15) NOT NULL,
  `term_of_employment` varchar(15) NOT NULL,
  PRIMARY KEY (`staff_id`),
  UNIQUE KEY `user_key` (`user_key`),
  KEY `activation` (`activation`),
  KEY `serial_number` (`serial_number`),
  KEY `status` (`status`),
  KEY `religion` (`religion`),
  KEY `sent_serial_pass_sms` (`sent_serial_pass_sms`),
  KEY `skip` (`skip`),
  KEY `school_id` (`school_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;


INSERT INTO staff VALUES
("1","174","1174cb625ae6","T/20/0001","$2y$10$UxCzzilqg.NA.UZlNVQE3exyG33l9XqZDGQ9/DOQOlvWwt5PoujUq","lejoy","lejoy","JOY","UZOCHUKWU","ADIELE","female","academic","both","","","207 UMUOCHAM ROAD ABA","1990-04-10","2348104987758","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("2","174","2174693e923d","T/20/0002","$2y$10$nB1FiZ8m.b3JKkMqCTPMBenpKX2YMT6b72vk..8FexiTwcxOLh0HS","reconfidence","reconfidence","CONFIDENCE","UGBOEGO","ONYECHINYERE","female","academic","both","","","117 POWER LINE ABA","2004-06-02","2348064161649","","NIGERIA","IMO","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("3","174","3174ffaa640a","T/20/0003","$2y$10$bmFEc4gWN1Wm2X2HU7BNqeUv2pbhTWZLOYSEqjNtkBY5fcsovFRNe","ruprecious","ruprecious","PRECIOUS","CHIWENDU","NWAGURU","female","academic","both","","","7 NATHANIEL DRIVE ABAYI","1981-10-02","2347060755975","","NIGERIA","ABIA","Christianity","","","form","","","0","1623334540","","activated","2020/2021","2nd Term"),
("4","174","4174509d829f","T/20/0004","$2y$10$cUyb8oF/frv8ek/XQ2uQ2eqdayj6WoHNOEL/UGGwxg1oVUaGJey4m","wosamuel","wosamuel","SAMUEL","EBI","NWANKWO","male","academic","both","","","80 OMUMA ROASD ABA","1989-06-26","2348063504923","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("5","174","51746fd45e47","T/20/0005","$2y$10$qXUX9Y71lR80dWyS4loLaOo/P.kHCiSNZfGEUyYjsotv6wenGyXK6","guudo","guudo","UDO","","NWOGU","male","academic","both","","","ABA","2003-06-04","2348038919859","","NIGERIA","IMO","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("6","174","6174f822d733","T/20/0006","$2y$10$EDHEv1o7Re6LoEPeLvYFDeUTFSBzinuBItdUMVAMFcR4aISYTRsUC","wekelechi","wekelechi","KELECHI","MIKE","NDUKWE","male","academic","both","","","258B ABA-OWERRI ROAD ABAYI","1994-03-03","2348032681270","mykekaycee@gmail.com","NIGERIA","IMO","Christianity","","","","","","0","1626792227","","activated","2020/2021","2nd Term"),
("7","174","717447b0c220","T/20/0007","$2y$10$C2DshzcFVa245zw5CQjGHeWBHBVHiYZwWT1xUMx/qB0CFdeE167d.","aychimezie","aychimezie","CHIMEZIE","BRIGHT","SUNDAY","male","academic","both","","","NO 35 MCC ROAD, ABA","1989-12-15","2348144571524","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("8","174","81749440ec36","T/20/0008","$2y$10$RFaUmsmElTuw/q6FHsU56.hfGZ4XY8KfQIu/aBf0xvfm1p6syoa4S","hisunday","hisunday","SUNDAY","OGBUABUO","IBEABUCHI","male","academic","both","","","AREA 2 COFFAGE ROAD WBHE ABA","1989-01-19","2348062192076","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("9","174","9174e9af9c7d","T/20/0009","$2y$10$nqqkCy1wU1YwC3.7VLvfOute9OKJCVuLuJ9KQiuz5xwpetr1we0Fa","ingoodness","ingoodness","GOODNESS","IFEANYI","ALADDIN","female","academic","both","","","157 HOSPITAL ROAD, ABA","1986-05-16","2347030895646","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("10","174","10174ec4857db","T/20/0010","$2y$10$IJgxShhWZV8UCRgXnODy9OPtGkU6RPzp6/ptDP8B9eibeQeWvEYKK","zeifeanyi","zeifeanyi","IFEANYI","VALENTINE","UDEZE","male","academic","both","","","30 MCC ROAD, ABAYI, ABA","1990-02-14","2348069034979","","NIGERIA","IMO","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("11","174","111743cc84429","T/20/0011","$2y$10$o3dT2rfrURyk0rUSV2gfRu599m22V7EXCcz9JqNb3lJylUdoIo7Qm","esnworgu","esnworgu","NWORGU","CHRISTIANA","JAMES","female","academic","both","","","UMUDIGHA VILLAGE","1981-01-07","2348168965299","","NIGERIA","IMO","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("12","174","121743344b367","T/20/0012","$2y$10$/DW/nBFYoN5qxRZ3ukTMV.tSiP2a556hgHyMVt8LUPxadQWz9K8uC","wuonyinyechi","07061239995","ONYINYECHI","LISA","NWACHUKWU","female","academic","both","","","93B CEMETRY ROAD ABA","1996-04-08","2348149501057","lisadonjohana4@gmail.com","NIGERIA","IMO","Christianity","","","","","","0","1624943856","","activated","2020/2021","2nd Term"),
("13","174","13174e924371e","T/20/0013","$2y$10$jMJFkDDNUfy0s2c4MZWOce1.wYPl7jLmCX5S41egcpmL0vW9MYONq","wangozi","wangozi","NGOZI","","CHUWA","female","academic","both","","","NO 5 AZUBUIKE NWALA WBHE","2002-06-04","2348143038807","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term"),
("14","174","1417422536479","T/20/0014","$2y$10$gbKRakJX0EyMVvsCTmnYLevHxJCTAuM41Qg9.o0FnMHXwxOmGc5eG","nuclinton","hendrixboss","CLINTON","ONYEDIKA","KANU","male","admin","both","","","36 MCC ROAD ABA","1990-12-31","2348037080564","","NIGERIA","IMO","Christianity","","","","","","0","1626701607","","activated","2020/2021","2nd Term"),
("15","174","151745f0bc3e4","T/20/0015","$2y$10$rEzB9I7pmswjT/UvnIUJROKzkwo6UOp.voZq9TxcvNEOG21vXZ2Xe","wuchristopher","Nobleman13","CHRISTOPHER","C","NWAOGWUGWU","male","admin","both","","","13B ONYEGE STREET, ABA","1990-05-13","2348068199640","Chrisandchuks@yahoo.com","NIGERIA","ABIA","Christianity","","","","","","0","1626791359","","activated","2020/2021","2nd Term"),
("16","174","16174c1fefba4","T/20/0016","$2y$10$ASmUsN3RxxKow.2R5EzYQ./OLYKCreSx57UhWDqAhbPHSEQC6uW0e","aochibuzor","aochibuzor","CHIBUZOR","GRACE","MGBKAO","male","academic","junior","","","9 NTOMBA STREET","1992-04-05","2348067973992","","NIGERIA","ANAMBRA","Christianity","","","","","","0","0","","activated","2020/2021","2nd Term");




CREATE TABLE `staff_salary` (
  `staff_salary_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  PRIMARY KEY (`staff_salary_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;


INSERT INTO staff_salary VALUES
("1","1","0.00"),
("2","2","0.00"),
("3","3","0.00"),
("4","4","0.00"),
("5","5","0.00"),
("6","6","0.00"),
("7","7","0.00"),
("8","8","0.00"),
("9","9","0.00"),
("10","10","0.00"),
("11","11","0.00"),
("12","12","0.00"),
("13","13","0.00"),
("14","14","0.00"),
("15","15","0.00"),
("16","16","0.00");




CREATE TABLE `staff_subject` (
  `staff_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  PRIMARY KEY (`staff_subject_id`),
  KEY `staff_subject_class` (`staff_id`,`subject_id`,`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=latin1;


INSERT INTO staff_subject VALUES
("16","0","9","1"),
("26","0","9","2"),
("36","0","9","3"),
("69","0","13","6"),
("70","0","14","6"),
("46","0","20","4"),
("61","0","20","5"),
("76","0","20","6"),
("12","1","4","1"),
("22","1","4","2"),
("32","1","4","3"),
("48","1","4","4"),
("63","1","4","5"),
("78","1","4","6"),
("82","2","5","1"),
("83","2","5","2"),
("84","2","5","3"),
("13","2","6","1"),
("23","2","6","2"),
("33","2","6","3"),
("1","3","1","1"),
("2","3","1","2"),
("3","3","1","3"),
("14","3","7","1"),
("24","3","7","2"),
("34","3","7","3"),
("4","4","1","4"),
("5","4","1","5"),
("6","4","1","6"),
("50","4","7","4"),
("65","4","7","5"),
("80","4","7","6"),
("15","5","8","1"),
("25","5","8","2"),
("35","5","8","3"),
("51","5","9","4"),
("66","5","9","5"),
("81","5","9","6"),
("37","6","10","4"),
("52","6","10","5"),
("67","6","10","6"),
("17","6","11","2"),
("27","6","11","3"),
("11","7","3","1"),
("21","7","3","2"),
("31","7","3","3"),
("38","7","12","4"),
("49","8","5","4"),
("39","8","13","4"),
("54","8","13","5"),
("40","8","14","4"),
("55","8","14","5"),
("8","9","15","1"),
("18","9","15","2"),
("28","9","15","3"),
("41","9","15","4"),
("56","9","15","5"),
("71","9","15","6"),
("64","10","5","5"),
("79","10","5","6"),
("42","10","16","4"),
("57","10","16","5"),
("72","10","16","6"),
("43","10","17","4"),
("58","10","17","5"),
("73","10","17","6"),
("44","11","18","4"),
("59","11","18","5"),
("74","11","18","6"),
("9","11","19","1"),
("19","11","19","2"),
("29","11","19","3"),
("7","13","11","1"),
("10","13","20","1"),
("20","13","20","2"),
("30","13","20","3"),
("47","14","3","4"),
("62","14","3","5"),
("77","14","3","6"),
("53","14","12","5"),
("68","14","12","6"),
("45","15","2","4"),
("60","15","2","5"),
("75","15","2","6");




CREATE TABLE `staff_subject_subclass` (
  `staff_subject_subclass_id` int(11) NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `subclass_id` int(11) NOT NULL,
  PRIMARY KEY (`staff_subject_subclass_id`),
  UNIQUE KEY `staff_subject_subclass` (`staff_id`,`subject_id`,`class_id`,`subclass_id`)
) ENGINE=InnoDB AUTO_INCREMENT=241 DEFAULT CHARSET=latin1;


INSERT INTO staff_subject_subclass VALUES
("85","0","9","1","1"),
("97","0","9","1","2"),
("197","0","9","1","3"),
("141","0","9","2","1"),
("153","0","9","2","2"),
("36","0","9","3","0"),
("69","0","13","6","0"),
("70","0","14","6","0"),
("109","0","20","4","1"),
("125","0","20","4","2"),
("209","0","20","5","1"),
("225","0","20","5","2"),
("76","0","20","6","0"),
("86","1","4","1","1"),
("98","1","4","1","2"),
("198","1","4","1","3"),
("142","1","4","2","1"),
("154","1","4","2","2"),
("32","1","4","3","0"),
("110","1","4","4","1"),
("126","1","4","4","2"),
("210","1","4","5","1"),
("226","1","4","5","2"),
("78","1","4","6","0"),
("87","2","5","1","1"),
("99","2","5","1","2"),
("199","2","5","1","3"),
("143","2","5","2","1"),
("155","2","5","2","2"),
("84","2","5","3","0"),
("88","2","6","1","1"),
("100","2","6","1","2"),
("200","2","6","1","3"),
("144","2","6","2","1"),
("156","2","6","2","2"),
("33","2","6","3","0"),
("89","3","1","1","1"),
("101","3","1","1","2"),
("201","3","1","1","3"),
("145","3","1","2","1"),
("157","3","1","2","2"),
("3","3","1","3","0"),
("90","3","7","1","1"),
("102","3","7","1","2"),
("202","3","7","1","3"),
("146","3","7","2","1"),
("158","3","7","2","2"),
("34","3","7","3","0"),
("111","4","1","4","1"),
("127","4","1","4","2"),
("211","4","1","5","1"),
("227","4","1","5","2"),
("6","4","1","6","0"),
("112","4","7","4","1"),
("128","4","7","4","2"),
("212","4","7","5","1"),
("228","4","7","5","2"),
("80","4","7","6","0"),
("91","5","8","1","1"),
("103","5","8","1","2"),
("203","5","8","1","3"),
("147","5","8","2","1"),
("159","5","8","2","2"),
("35","5","8","3","0"),
("113","5","9","4","1"),
("129","5","9","4","2"),
("213","5","9","5","1"),
("229","5","9","5","2"),
("81","5","9","6","0"),
("114","6","10","4","1"),
("130","6","10","4","2"),
("214","6","10","5","1"),
("230","6","10","5","2"),
("67","6","10","6","0"),
("148","6","11","2","1"),
("160","6","11","2","2"),
("27","6","11","3","0"),
("92","7","3","1","1"),
("104","7","3","1","2"),
("204","7","3","1","3"),
("149","7","3","2","1"),
("161","7","3","2","2"),
("31","7","3","3","0"),
("115","7","12","4","1"),
("131","7","12","4","2"),
("116","8","5","4","1"),
("132","8","5","4","2"),
("117","8","13","4","1"),
("133","8","13","4","2"),
("215","8","13","5","1"),
("231","8","13","5","2"),
("118","8","14","4","1"),
("134","8","14","4","2"),
("216","8","14","5","1"),
("232","8","14","5","2"),
("93","9","15","1","1"),
("105","9","15","1","2"),
("205","9","15","1","3"),
("150","9","15","2","1"),
("162","9","15","2","2");
INSERT INTO staff_subject_subclass VALUES
("28","9","15","3","0"),
("119","9","15","4","1"),
("135","9","15","4","2"),
("217","9","15","5","1"),
("233","9","15","5","2"),
("71","9","15","6","0"),
("218","10","5","5","1"),
("234","10","5","5","2"),
("79","10","5","6","0"),
("120","10","16","4","1"),
("136","10","16","4","2"),
("219","10","16","5","1"),
("235","10","16","5","2"),
("72","10","16","6","0"),
("121","10","17","4","1"),
("137","10","17","4","2"),
("220","10","17","5","1"),
("236","10","17","5","2"),
("73","10","17","6","0"),
("122","11","18","4","1"),
("138","11","18","4","2"),
("221","11","18","5","1"),
("237","11","18","5","2"),
("74","11","18","6","0"),
("94","11","19","1","1"),
("106","11","19","1","2"),
("206","11","19","1","3"),
("151","11","19","2","1"),
("163","11","19","2","2"),
("29","11","19","3","0"),
("95","13","11","1","1"),
("107","13","11","1","2"),
("207","13","11","1","3"),
("96","13","20","1","1"),
("108","13","20","1","2"),
("208","13","20","1","3"),
("152","13","20","2","1"),
("164","13","20","2","2"),
("30","13","20","3","0"),
("123","14","3","4","1"),
("139","14","3","4","2"),
("222","14","3","5","1"),
("238","14","3","5","2"),
("77","14","3","6","0"),
("223","14","12","5","1"),
("239","14","12","5","2"),
("68","14","12","6","0"),
("124","15","2","4","1"),
("140","15","2","4","2"),
("224","15","2","5","1"),
("240","15","2","5","2"),
("75","15","2","6","0");




CREATE TABLE `student_plan` (
  `student_plan_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  PRIMARY KEY (`student_plan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;






CREATE TABLE `student_subject` (
  `student_subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `status` varchar(10) NOT NULL,
  PRIMARY KEY (`student_subject_id`),
  KEY `student_subject_status` (`student_id`,`subject_id`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=2929 DEFAULT CHARSET=latin1;


INSERT INTO student_subject VALUES
("1","1","1","doing"),
("6","1","3","doing"),
("7","1","4","doing"),
("12","1","5","doing"),
("8","1","6","doing"),
("9","1","7","doing"),
("10","1","8","doing"),
("11","1","9","doing"),
("2","1","11","doing"),
("3","1","15","doing"),
("4","1","19","doing"),
("5","1","20","doing"),
("13","2","1","doing"),
("18","2","3","doing"),
("19","2","4","doing"),
("24","2","5","doing"),
("20","2","6","doing"),
("21","2","7","doing"),
("22","2","8","doing"),
("23","2","9","doing"),
("14","2","11","doing"),
("15","2","15","doing"),
("16","2","19","doing"),
("17","2","20","doing"),
("25","3","1","doing"),
("34","3","2","doing"),
("36","3","3","doing"),
("37","3","4","doing"),
("38","3","5","doing"),
("39","3","7","doing"),
("40","3","9","doing"),
("26","3","10","doing"),
("27","3","12","doing"),
("28","3","13","doing"),
("29","3","14","doing"),
("30","3","15","doing"),
("31","3","16","doing"),
("32","3","17","doing"),
("33","3","18","doing"),
("35","3","20","doing"),
("41","4","1","doing"),
("50","4","2","doing"),
("52","4","3","doing"),
("53","4","4","doing"),
("54","4","5","doing"),
("55","4","7","doing"),
("56","4","9","doing"),
("42","4","10","doing"),
("43","4","12","doing"),
("44","4","13","doing"),
("45","4","14","doing"),
("46","4","15","doing"),
("47","4","16","doing"),
("48","4","17","doing"),
("49","4","18","doing"),
("51","4","20","doing"),
("57","5","1","doing"),
("66","5","2","doing"),
("68","5","3","doing"),
("69","5","4","doing"),
("70","5","5","doing"),
("71","5","7","doing"),
("72","5","9","doing"),
("58","5","10","doing"),
("59","5","12","doing"),
("60","5","13","doing"),
("61","5","14","doing"),
("62","5","15","doing"),
("63","5","16","doing"),
("64","5","17","doing"),
("65","5","18","doing"),
("67","5","20","doing"),
("73","6","1","doing"),
("82","6","2","doing"),
("84","6","3","doing"),
("85","6","4","doing"),
("86","6","5","doing"),
("87","6","7","doing"),
("88","6","9","doing"),
("74","6","10","doing"),
("75","6","12","doing"),
("76","6","13","doing"),
("77","6","14","doing"),
("78","6","15","doing"),
("79","6","16","doing"),
("80","6","17","doing"),
("81","6","18","doing"),
("83","6","20","doing"),
("89","7","1","doing"),
("98","7","2","doing"),
("100","7","3","doing"),
("101","7","4","doing"),
("102","7","5","doing"),
("103","7","7","doing"),
("104","7","9","doing"),
("90","7","10","doing"),
("91","7","12","doing"),
("92","7","13","doing"),
("93","7","14","doing"),
("94","7","15","doing");
INSERT INTO student_subject VALUES
("95","7","16","doing"),
("96","7","17","doing"),
("97","7","18","doing"),
("99","7","20","doing"),
("105","8","1","doing"),
("114","8","2","doing"),
("116","8","3","doing"),
("117","8","4","doing"),
("118","8","5","doing"),
("119","8","7","doing"),
("120","8","9","doing"),
("106","8","10","doing"),
("107","8","12","doing"),
("108","8","13","doing"),
("109","8","14","doing"),
("110","8","15","doing"),
("111","8","16","doing"),
("112","8","17","doing"),
("113","8","18","doing"),
("115","8","20","doing"),
("121","9","1","doing"),
("130","9","2","doing"),
("132","9","3","doing"),
("133","9","4","doing"),
("134","9","5","doing"),
("135","9","7","doing"),
("136","9","9","doing"),
("122","9","10","doing"),
("123","9","12","doing"),
("124","9","13","doing"),
("125","9","14","doing"),
("126","9","15","doing"),
("127","9","16","doing"),
("128","9","17","doing"),
("129","9","18","doing"),
("131","9","20","doing"),
("137","10","1","doing"),
("146","10","2","doing"),
("148","10","3","doing"),
("149","10","4","doing"),
("150","10","5","doing"),
("151","10","7","doing"),
("152","10","9","doing"),
("138","10","10","doing"),
("139","10","12","doing"),
("140","10","13","doing"),
("141","10","14","doing"),
("142","10","15","doing"),
("143","10","16","doing"),
("144","10","17","doing"),
("145","10","18","doing"),
("147","10","20","doing"),
("153","11","1","doing"),
("162","11","2","doing"),
("164","11","3","doing"),
("165","11","4","doing"),
("166","11","5","doing"),
("167","11","7","doing"),
("168","11","9","doing"),
("154","11","10","doing"),
("155","11","12","doing"),
("156","11","13","doing"),
("157","11","14","doing"),
("158","11","15","doing"),
("159","11","16","doing"),
("160","11","17","doing"),
("161","11","18","doing"),
("163","11","20","doing"),
("169","12","1","doing"),
("178","12","2","doing"),
("180","12","3","doing"),
("181","12","4","doing"),
("182","12","5","doing"),
("183","12","7","doing"),
("184","12","9","doing"),
("170","12","10","doing"),
("171","12","12","doing"),
("172","12","13","doing"),
("173","12","14","doing"),
("174","12","15","doing"),
("175","12","16","doing"),
("176","12","17","doing"),
("177","12","18","doing"),
("179","12","20","doing"),
("185","13","1","doing"),
("194","13","2","doing"),
("196","13","3","doing"),
("197","13","4","doing"),
("198","13","5","doing"),
("199","13","7","doing"),
("200","13","9","doing"),
("186","13","10","doing"),
("187","13","12","doing"),
("188","13","13","doing"),
("189","13","14","doing"),
("190","13","15","doing"),
("191","13","16","doing"),
("192","13","17","doing"),
("193","13","18","doing"),
("195","13","20","doing");
INSERT INTO student_subject VALUES
("201","14","1","doing"),
("210","14","2","doing"),
("212","14","3","doing"),
("213","14","4","doing"),
("214","14","5","doing"),
("215","14","7","doing"),
("216","14","9","doing"),
("202","14","10","doing"),
("203","14","12","doing"),
("204","14","13","doing"),
("205","14","14","doing"),
("206","14","15","doing"),
("207","14","16","doing"),
("208","14","17","doing"),
("209","14","18","doing"),
("211","14","20","doing"),
("217","15","1","doing"),
("226","15","2","doing"),
("228","15","3","doing"),
("229","15","4","doing"),
("230","15","5","doing"),
("231","15","7","doing"),
("232","15","9","doing"),
("218","15","10","doing"),
("219","15","12","doing"),
("220","15","13","doing"),
("221","15","14","doing"),
("222","15","15","doing"),
("223","15","16","doing"),
("224","15","17","doing"),
("225","15","18","doing"),
("227","15","20","doing"),
("233","16","1","doing"),
("242","16","2","doing"),
("244","16","3","doing"),
("245","16","4","doing"),
("246","16","5","doing"),
("247","16","7","doing"),
("248","16","9","doing"),
("234","16","10","doing"),
("235","16","12","doing"),
("236","16","13","doing"),
("237","16","14","doing"),
("238","16","15","doing"),
("239","16","16","doing"),
("240","16","17","doing"),
("241","16","18","doing"),
("243","16","20","doing"),
("249","17","1","doing"),
("258","17","2","doing"),
("260","17","3","doing"),
("261","17","4","doing"),
("262","17","5","doing"),
("263","17","7","doing"),
("264","17","9","doing"),
("250","17","10","doing"),
("251","17","12","doing"),
("252","17","13","doing"),
("253","17","14","doing"),
("254","17","15","doing"),
("255","17","16","doing"),
("256","17","17","doing"),
("257","17","18","doing"),
("259","17","20","doing"),
("265","18","1","doing"),
("274","18","2","doing"),
("276","18","3","doing"),
("277","18","4","doing"),
("278","18","5","doing"),
("279","18","7","doing"),
("280","18","9","doing"),
("266","18","10","doing"),
("267","18","12","doing"),
("268","18","13","doing"),
("269","18","14","doing"),
("270","18","15","doing"),
("271","18","16","doing"),
("272","18","17","doing"),
("273","18","18","doing"),
("275","18","20","doing"),
("281","19","1","doing"),
("290","19","2","doing"),
("292","19","3","doing"),
("293","19","4","doing"),
("294","19","5","doing"),
("295","19","7","doing"),
("296","19","9","doing"),
("282","19","10","doing"),
("283","19","12","doing"),
("284","19","13","doing"),
("285","19","14","doing"),
("286","19","15","doing"),
("287","19","16","doing"),
("288","19","17","doing"),
("289","19","18","doing"),
("291","19","20","doing"),
("297","20","1","doing"),
("306","20","2","doing"),
("308","20","3","doing"),
("309","20","4","doing");
INSERT INTO student_subject VALUES
("310","20","5","doing"),
("311","20","7","doing"),
("312","20","9","doing"),
("298","20","10","doing"),
("299","20","12","doing"),
("300","20","13","doing"),
("301","20","14","doing"),
("302","20","15","doing"),
("303","20","16","doing"),
("304","20","17","doing"),
("305","20","18","doing"),
("307","20","20","doing"),
("313","21","1","doing"),
("318","21","3","doing"),
("319","21","4","doing"),
("324","21","5","doing"),
("320","21","6","doing"),
("321","21","7","doing"),
("322","21","8","doing"),
("323","21","9","doing"),
("314","21","11","doing"),
("315","21","15","doing"),
("316","21","19","doing"),
("317","21","20","doing"),
("325","22","1","doing"),
("330","22","3","doing"),
("331","22","4","doing"),
("336","22","5","doing"),
("332","22","6","doing"),
("333","22","7","doing"),
("334","22","8","doing"),
("335","22","9","doing"),
("326","22","11","doing"),
("327","22","15","doing"),
("328","22","19","doing"),
("329","22","20","doing"),
("337","23","1","doing"),
("342","23","3","doing"),
("343","23","4","doing"),
("348","23","5","doing"),
("344","23","6","doing"),
("345","23","7","doing"),
("346","23","8","doing"),
("347","23","9","doing"),
("338","23","11","doing"),
("339","23","15","doing"),
("340","23","19","doing"),
("341","23","20","doing"),
("349","24","1","doing"),
("354","24","3","doing"),
("355","24","4","doing"),
("360","24","5","doing"),
("356","24","6","doing"),
("357","24","7","doing"),
("358","24","8","doing"),
("359","24","9","doing"),
("350","24","11","doing"),
("351","24","15","doing"),
("352","24","19","doing"),
("353","24","20","doing"),
("361","25","1","doing"),
("366","25","3","doing"),
("367","25","4","doing"),
("372","25","5","doing"),
("368","25","6","doing"),
("369","25","7","doing"),
("370","25","8","doing"),
("371","25","9","doing"),
("362","25","11","doing"),
("363","25","15","doing"),
("364","25","19","doing"),
("365","25","20","doing"),
("373","26","1","doing"),
("378","26","3","doing"),
("379","26","4","doing"),
("384","26","5","doing"),
("380","26","6","doing"),
("381","26","7","doing"),
("382","26","8","doing"),
("383","26","9","doing"),
("374","26","11","doing"),
("375","26","15","doing"),
("376","26","19","doing"),
("377","26","20","doing"),
("385","27","1","doing"),
("390","27","3","doing"),
("391","27","4","doing"),
("396","27","5","doing"),
("392","27","6","doing"),
("393","27","7","doing"),
("394","27","8","doing"),
("395","27","9","doing"),
("386","27","11","doing"),
("387","27","15","doing"),
("388","27","19","doing"),
("389","27","20","doing"),
("397","28","1","doing"),
("402","28","3","doing"),
("403","28","4","doing"),
("408","28","5","doing");
INSERT INTO student_subject VALUES
("404","28","6","doing"),
("405","28","7","doing"),
("406","28","8","doing"),
("407","28","9","doing"),
("398","28","11","doing"),
("399","28","15","doing"),
("400","28","19","doing"),
("401","28","20","doing"),
("409","29","1","doing"),
("414","29","3","doing"),
("415","29","4","doing"),
("420","29","5","doing"),
("416","29","6","doing"),
("417","29","7","doing"),
("418","29","8","doing"),
("419","29","9","doing"),
("410","29","11","doing"),
("411","29","15","doing"),
("412","29","19","doing"),
("413","29","20","doing"),
("421","30","1","doing"),
("426","30","3","doing"),
("427","30","4","doing"),
("432","30","5","doing"),
("428","30","6","doing"),
("429","30","7","doing"),
("430","30","8","doing"),
("431","30","9","doing"),
("422","30","11","doing"),
("423","30","15","doing"),
("424","30","19","doing"),
("425","30","20","doing"),
("433","31","1","doing"),
("438","31","3","doing"),
("439","31","4","doing"),
("444","31","5","doing"),
("440","31","6","doing"),
("441","31","7","doing"),
("442","31","8","doing"),
("443","31","9","doing"),
("434","31","11","doing"),
("435","31","15","doing"),
("436","31","19","doing"),
("437","31","20","doing"),
("445","32","1","doing"),
("450","32","3","doing"),
("451","32","4","doing"),
("456","32","5","doing"),
("452","32","6","doing"),
("453","32","7","doing"),
("454","32","8","doing"),
("455","32","9","doing"),
("446","32","11","doing"),
("447","32","15","doing"),
("448","32","19","doing"),
("449","32","20","doing"),
("457","33","1","doing"),
("462","33","3","doing"),
("463","33","4","doing"),
("468","33","5","doing"),
("464","33","6","doing"),
("465","33","7","doing"),
("466","33","8","doing"),
("467","33","9","doing"),
("458","33","11","doing"),
("459","33","15","doing"),
("460","33","19","doing"),
("461","33","20","doing"),
("469","34","1","doing"),
("474","34","3","doing"),
("475","34","4","doing"),
("480","34","5","doing"),
("476","34","6","doing"),
("477","34","7","doing"),
("478","34","8","doing"),
("479","34","9","doing"),
("470","34","11","doing"),
("471","34","15","doing"),
("472","34","19","doing"),
("473","34","20","doing"),
("481","35","1","doing"),
("486","35","3","doing"),
("487","35","4","doing"),
("492","35","5","doing"),
("488","35","6","doing"),
("489","35","7","doing"),
("490","35","8","doing"),
("491","35","9","doing"),
("482","35","11","doing"),
("483","35","15","doing"),
("484","35","19","doing"),
("485","35","20","doing"),
("493","36","1","doing"),
("498","36","3","doing"),
("499","36","4","doing"),
("504","36","5","doing"),
("500","36","6","doing"),
("501","36","7","doing"),
("502","36","8","doing"),
("503","36","9","doing");
INSERT INTO student_subject VALUES
("494","36","11","doing"),
("495","36","15","doing"),
("496","36","19","doing"),
("497","36","20","doing"),
("505","37","1","doing"),
("510","37","3","doing"),
("511","37","4","doing"),
("516","37","5","doing"),
("512","37","6","doing"),
("513","37","7","doing"),
("514","37","8","doing"),
("515","37","9","doing"),
("506","37","11","doing"),
("507","37","15","doing"),
("508","37","19","doing"),
("509","37","20","doing"),
("517","38","1","doing"),
("522","38","3","doing"),
("523","38","4","doing"),
("528","38","5","doing"),
("524","38","6","doing"),
("525","38","7","doing"),
("526","38","8","doing"),
("527","38","9","doing"),
("518","38","11","doing"),
("519","38","15","doing"),
("520","38","19","doing"),
("521","38","20","doing"),
("529","39","1","doing"),
("534","39","3","doing"),
("535","39","4","doing"),
("540","39","5","doing"),
("536","39","6","doing"),
("537","39","7","doing"),
("538","39","8","doing"),
("539","39","9","doing"),
("530","39","11","doing"),
("531","39","15","doing"),
("532","39","19","doing"),
("533","39","20","doing"),
("541","40","1","doing"),
("546","40","3","doing"),
("547","40","4","doing"),
("552","40","5","doing"),
("548","40","6","doing"),
("549","40","7","doing"),
("550","40","8","doing"),
("551","40","9","doing"),
("542","40","11","doing"),
("543","40","15","doing"),
("544","40","19","doing"),
("545","40","20","doing"),
("553","41","1","doing"),
("558","41","3","doing"),
("559","41","4","doing"),
("564","41","5","doing"),
("560","41","6","doing"),
("561","41","7","doing"),
("562","41","8","doing"),
("563","41","9","doing"),
("554","41","11","doing"),
("555","41","15","doing"),
("556","41","19","doing"),
("557","41","20","doing"),
("565","42","1","doing"),
("570","42","3","doing"),
("571","42","4","doing"),
("576","42","5","doing"),
("572","42","6","doing"),
("573","42","7","doing"),
("574","42","8","doing"),
("575","42","9","doing"),
("566","42","11","doing"),
("567","42","15","doing"),
("568","42","19","doing"),
("569","42","20","doing"),
("577","43","1","doing"),
("582","43","3","doing"),
("583","43","4","doing"),
("588","43","5","doing"),
("584","43","6","doing"),
("585","43","7","doing"),
("586","43","8","doing"),
("587","43","9","doing"),
("578","43","11","doing"),
("579","43","15","doing"),
("580","43","19","doing"),
("581","43","20","doing"),
("589","44","1","doing"),
("594","44","3","doing"),
("595","44","4","doing"),
("600","44","5","doing"),
("596","44","6","doing"),
("597","44","7","doing"),
("598","44","8","doing"),
("599","44","9","doing"),
("590","44","11","doing"),
("591","44","15","doing"),
("592","44","19","doing"),
("593","44","20","doing");
INSERT INTO student_subject VALUES
("601","45","1","doing"),
("606","45","3","doing"),
("607","45","4","doing"),
("612","45","5","doing"),
("608","45","6","doing"),
("609","45","7","doing"),
("610","45","8","doing"),
("611","45","9","doing"),
("602","45","11","doing"),
("603","45","15","doing"),
("604","45","19","doing"),
("605","45","20","doing"),
("613","46","1","doing"),
("618","46","3","doing"),
("619","46","4","doing"),
("624","46","5","doing"),
("620","46","6","doing"),
("621","46","7","doing"),
("622","46","8","doing"),
("623","46","9","doing"),
("614","46","11","doing"),
("615","46","15","doing"),
("616","46","19","doing"),
("617","46","20","doing"),
("625","47","1","doing"),
("630","47","3","doing"),
("631","47","4","doing"),
("636","47","5","doing"),
("632","47","6","doing"),
("633","47","7","doing"),
("634","47","8","doing"),
("635","47","9","doing"),
("626","47","11","doing"),
("627","47","15","doing"),
("628","47","19","doing"),
("629","47","20","doing"),
("637","48","1","doing"),
("642","48","3","doing"),
("643","48","4","doing"),
("648","48","5","doing"),
("644","48","6","doing"),
("645","48","7","doing"),
("646","48","8","doing"),
("647","48","9","doing"),
("638","48","11","doing"),
("639","48","15","doing"),
("640","48","19","doing"),
("641","48","20","doing"),
("649","49","1","doing"),
("654","49","3","doing"),
("655","49","4","doing"),
("660","49","5","doing"),
("656","49","6","doing"),
("657","49","7","doing"),
("658","49","8","doing"),
("659","49","9","doing"),
("650","49","11","doing"),
("651","49","15","doing"),
("652","49","19","doing"),
("653","49","20","doing"),
("661","50","1","doing"),
("666","50","3","doing"),
("667","50","4","doing"),
("672","50","5","doing"),
("668","50","6","doing"),
("669","50","7","doing"),
("670","50","8","doing"),
("671","50","9","doing"),
("662","50","11","doing"),
("663","50","15","doing"),
("664","50","19","doing"),
("665","50","20","doing"),
("673","51","1","doing"),
("678","51","3","doing"),
("679","51","4","doing"),
("684","51","5","doing"),
("680","51","6","doing"),
("681","51","7","doing"),
("682","51","8","doing"),
("683","51","9","doing"),
("674","51","11","doing"),
("675","51","15","doing"),
("676","51","19","doing"),
("677","51","20","doing"),
("685","52","1","doing"),
("690","52","3","doing"),
("691","52","4","doing"),
("696","52","5","doing"),
("692","52","6","doing"),
("693","52","7","doing"),
("694","52","8","doing"),
("695","52","9","doing"),
("686","52","11","doing"),
("687","52","15","doing"),
("688","52","19","doing"),
("689","52","20","doing"),
("697","53","1","doing"),
("702","53","3","doing"),
("703","53","4","doing"),
("708","53","5","doing");
INSERT INTO student_subject VALUES
("704","53","6","doing"),
("705","53","7","doing"),
("706","53","8","doing"),
("707","53","9","doing"),
("698","53","11","doing"),
("699","53","15","doing"),
("700","53","19","doing"),
("701","53","20","doing"),
("709","54","1","doing"),
("714","54","3","doing"),
("715","54","4","doing"),
("720","54","5","doing"),
("716","54","6","doing"),
("717","54","7","doing"),
("718","54","8","doing"),
("719","54","9","doing"),
("710","54","11","doing"),
("711","54","15","doing"),
("712","54","19","doing"),
("713","54","20","doing"),
("721","55","1","doing"),
("726","55","3","doing"),
("727","55","4","doing"),
("732","55","5","doing"),
("728","55","6","doing"),
("729","55","7","doing"),
("730","55","8","doing"),
("731","55","9","doing"),
("722","55","11","doing"),
("723","55","15","doing"),
("724","55","19","doing"),
("725","55","20","doing"),
("733","56","1","doing"),
("738","56","3","doing"),
("739","56","4","doing"),
("744","56","5","doing"),
("740","56","6","doing"),
("741","56","7","doing"),
("742","56","8","doing"),
("743","56","9","doing"),
("734","56","11","doing"),
("735","56","15","doing"),
("736","56","19","doing"),
("737","56","20","doing"),
("745","57","1","doing"),
("750","57","3","doing"),
("751","57","4","doing"),
("756","57","5","doing"),
("752","57","6","doing"),
("753","57","7","doing"),
("754","57","8","doing"),
("755","57","9","doing"),
("746","57","11","doing"),
("747","57","15","doing"),
("748","57","19","doing"),
("749","57","20","doing"),
("757","58","1","doing"),
("762","58","3","doing"),
("763","58","4","doing"),
("768","58","5","doing"),
("764","58","6","doing"),
("765","58","7","doing"),
("766","58","8","doing"),
("767","58","9","doing"),
("758","58","11","doing"),
("759","58","15","doing"),
("760","58","19","doing"),
("761","58","20","doing"),
("769","59","1","doing"),
("774","59","3","doing"),
("775","59","4","doing"),
("780","59","5","doing"),
("776","59","6","doing"),
("777","59","7","doing"),
("778","59","8","doing"),
("779","59","9","doing"),
("770","59","11","doing"),
("771","59","15","doing"),
("772","59","19","doing"),
("773","59","20","doing"),
("781","60","1","doing"),
("786","60","3","doing"),
("787","60","4","doing"),
("792","60","5","doing"),
("788","60","6","doing"),
("789","60","7","doing"),
("790","60","8","doing"),
("791","60","9","doing"),
("782","60","11","doing"),
("783","60","15","doing"),
("784","60","19","doing"),
("785","60","20","doing"),
("793","61","1","doing"),
("798","61","3","doing"),
("799","61","4","doing"),
("804","61","5","doing"),
("800","61","6","doing"),
("801","61","7","doing"),
("802","61","8","doing"),
("803","61","9","doing");
INSERT INTO student_subject VALUES
("794","61","11","doing"),
("795","61","15","doing"),
("796","61","19","doing"),
("797","61","20","doing"),
("805","62","1","doing"),
("810","62","3","doing"),
("811","62","4","doing"),
("816","62","5","doing"),
("812","62","6","doing"),
("813","62","7","doing"),
("814","62","8","doing"),
("815","62","9","doing"),
("806","62","11","doing"),
("807","62","15","doing"),
("808","62","19","doing"),
("809","62","20","doing"),
("817","63","1","doing"),
("826","63","2","doing"),
("828","63","3","doing"),
("829","63","4","doing"),
("830","63","5","doing"),
("831","63","7","doing"),
("832","63","9","doing"),
("818","63","10","doing"),
("819","63","12","doing"),
("820","63","13","doing"),
("821","63","14","doing"),
("822","63","15","doing"),
("823","63","16","doing"),
("824","63","17","doing"),
("825","63","18","doing"),
("827","63","20","doing"),
("833","64","1","doing"),
("842","64","2","doing"),
("844","64","3","doing"),
("845","64","4","doing"),
("846","64","5","doing"),
("847","64","7","doing"),
("848","64","9","doing"),
("834","64","10","doing"),
("835","64","12","doing"),
("836","64","13","doing"),
("837","64","14","doing"),
("838","64","15","doing"),
("839","64","16","doing"),
("840","64","17","doing"),
("841","64","18","doing"),
("843","64","20","doing"),
("849","65","1","doing"),
("858","65","2","doing"),
("860","65","3","doing"),
("861","65","4","doing"),
("862","65","5","doing"),
("863","65","7","doing"),
("864","65","9","doing"),
("850","65","10","doing"),
("851","65","12","doing"),
("852","65","13","doing"),
("853","65","14","doing"),
("854","65","15","doing"),
("855","65","16","doing"),
("856","65","17","doing"),
("857","65","18","doing"),
("859","65","20","doing"),
("865","66","1","doing"),
("874","66","2","doing"),
("876","66","3","doing"),
("877","66","4","doing"),
("878","66","5","doing"),
("879","66","7","doing"),
("880","66","9","doing"),
("866","66","10","doing"),
("867","66","12","doing"),
("868","66","13","doing"),
("869","66","14","doing"),
("870","66","15","doing"),
("871","66","16","doing"),
("872","66","17","doing"),
("873","66","18","doing"),
("875","66","20","doing"),
("881","67","1","doing"),
("890","67","2","doing"),
("892","67","3","doing"),
("893","67","4","doing"),
("894","67","5","doing"),
("895","67","7","doing"),
("896","67","9","doing"),
("882","67","10","doing"),
("883","67","12","doing"),
("884","67","13","doing"),
("885","67","14","doing"),
("886","67","15","doing"),
("887","67","16","doing"),
("888","67","17","doing"),
("889","67","18","doing"),
("891","67","20","doing"),
("897","68","1","doing"),
("906","68","2","doing"),
("908","68","3","doing"),
("909","68","4","doing");
INSERT INTO student_subject VALUES
("910","68","5","doing"),
("911","68","7","doing"),
("912","68","9","doing"),
("898","68","10","doing"),
("899","68","12","doing"),
("900","68","13","doing"),
("901","68","14","doing"),
("902","68","15","doing"),
("903","68","16","doing"),
("904","68","17","doing"),
("905","68","18","doing"),
("907","68","20","doing"),
("913","69","1","doing"),
("922","69","2","doing"),
("924","69","3","doing"),
("925","69","4","doing"),
("926","69","5","doing"),
("927","69","7","doing"),
("928","69","9","doing"),
("914","69","10","doing"),
("915","69","12","doing"),
("916","69","13","doing"),
("917","69","14","doing"),
("918","69","15","doing"),
("919","69","16","doing"),
("920","69","17","doing"),
("921","69","18","doing"),
("923","69","20","doing"),
("929","70","1","doing"),
("938","70","2","doing"),
("940","70","3","doing"),
("941","70","4","doing"),
("942","70","5","doing"),
("943","70","7","doing"),
("944","70","9","doing"),
("930","70","10","doing"),
("931","70","12","doing"),
("932","70","13","doing"),
("933","70","14","doing"),
("934","70","15","doing"),
("935","70","16","doing"),
("936","70","17","doing"),
("937","70","18","doing"),
("939","70","20","doing"),
("945","71","1","doing"),
("954","71","2","doing"),
("956","71","3","doing"),
("957","71","4","doing"),
("958","71","5","doing"),
("959","71","7","doing"),
("960","71","9","doing"),
("946","71","10","doing"),
("947","71","12","doing"),
("948","71","13","doing"),
("949","71","14","doing"),
("950","71","15","doing"),
("951","71","16","doing"),
("952","71","17","doing"),
("953","71","18","doing"),
("955","71","20","doing"),
("961","72","1","doing"),
("970","72","2","doing"),
("972","72","3","doing"),
("973","72","4","doing"),
("974","72","5","doing"),
("975","72","7","doing"),
("976","72","9","doing"),
("962","72","10","doing"),
("963","72","12","doing"),
("964","72","13","doing"),
("965","72","14","doing"),
("966","72","15","doing"),
("967","72","16","doing"),
("968","72","17","doing"),
("969","72","18","doing"),
("971","72","20","doing"),
("977","73","1","doing"),
("986","73","2","doing"),
("988","73","3","doing"),
("989","73","4","doing"),
("990","73","5","doing"),
("991","73","7","doing"),
("992","73","9","doing"),
("978","73","10","doing"),
("979","73","12","doing"),
("980","73","13","doing"),
("981","73","14","doing"),
("982","73","15","doing"),
("983","73","16","doing"),
("984","73","17","doing"),
("985","73","18","doing"),
("987","73","20","doing"),
("993","74","1","doing"),
("1002","74","2","doing"),
("1004","74","3","doing"),
("1005","74","4","doing"),
("1006","74","5","doing"),
("1007","74","7","doing"),
("1008","74","9","doing"),
("994","74","10","doing");
INSERT INTO student_subject VALUES
("995","74","12","doing"),
("996","74","13","doing"),
("997","74","14","doing"),
("998","74","15","doing"),
("999","74","16","doing"),
("1000","74","17","doing"),
("1001","74","18","doing"),
("1003","74","20","doing"),
("1009","75","1","doing"),
("1018","75","2","doing"),
("1020","75","3","doing"),
("1021","75","4","doing"),
("1022","75","5","doing"),
("1023","75","7","doing"),
("1024","75","9","doing"),
("1010","75","10","doing"),
("1011","75","12","doing"),
("1012","75","13","doing"),
("1013","75","14","doing"),
("1014","75","15","doing"),
("1015","75","16","doing"),
("1016","75","17","doing"),
("1017","75","18","doing"),
("1019","75","20","doing"),
("1025","76","1","doing"),
("1034","76","2","doing"),
("1036","76","3","doing"),
("1037","76","4","doing"),
("1038","76","5","doing"),
("1039","76","7","doing"),
("1040","76","9","doing"),
("1026","76","10","doing"),
("1027","76","12","doing"),
("1028","76","13","doing"),
("1029","76","14","doing"),
("1030","76","15","doing"),
("1031","76","16","doing"),
("1032","76","17","doing"),
("1033","76","18","doing"),
("1035","76","20","doing"),
("1041","77","1","doing"),
("1050","77","2","doing"),
("1052","77","3","doing"),
("1053","77","4","doing"),
("1054","77","5","doing"),
("1055","77","7","doing"),
("1056","77","9","doing"),
("1042","77","10","doing"),
("1043","77","12","doing"),
("1044","77","13","doing"),
("1045","77","14","doing"),
("1046","77","15","doing"),
("1047","77","16","doing"),
("1048","77","17","doing"),
("1049","77","18","doing"),
("1051","77","20","doing"),
("1057","78","1","doing"),
("1066","78","2","doing"),
("1068","78","3","doing"),
("1069","78","4","doing"),
("1070","78","5","doing"),
("1071","78","7","doing"),
("1072","78","9","doing"),
("1058","78","10","doing"),
("1059","78","12","doing"),
("1060","78","13","doing"),
("1061","78","14","doing"),
("1062","78","15","doing"),
("1063","78","16","doing"),
("1064","78","17","doing"),
("1065","78","18","doing"),
("1067","78","20","doing"),
("1073","79","1","doing"),
("1082","79","2","doing"),
("1084","79","3","doing"),
("1085","79","4","doing"),
("1086","79","5","doing"),
("1087","79","7","doing"),
("1088","79","9","doing"),
("1074","79","10","doing"),
("1075","79","12","doing"),
("1076","79","13","doing"),
("1077","79","14","doing"),
("1078","79","15","doing"),
("1079","79","16","doing"),
("1080","79","17","doing"),
("1081","79","18","doing"),
("1083","79","20","doing"),
("1089","80","1","doing"),
("1098","80","2","doing"),
("1100","80","3","doing"),
("1101","80","4","doing"),
("1102","80","5","doing"),
("1103","80","7","doing"),
("1104","80","9","doing"),
("1090","80","10","doing"),
("1091","80","12","doing"),
("1092","80","13","doing"),
("1093","80","14","doing"),
("1094","80","15","doing");
INSERT INTO student_subject VALUES
("1095","80","16","doing"),
("1096","80","17","doing"),
("1097","80","18","doing"),
("1099","80","20","doing"),
("1105","81","1","doing"),
("1114","81","2","doing"),
("1116","81","3","doing"),
("1117","81","4","doing"),
("1118","81","5","doing"),
("1119","81","7","doing"),
("1120","81","9","doing"),
("1106","81","10","doing"),
("1107","81","12","doing"),
("1108","81","13","doing"),
("1109","81","14","doing"),
("1110","81","15","doing"),
("1111","81","16","doing"),
("1112","81","17","doing"),
("1113","81","18","doing"),
("1115","81","20","doing"),
("1121","82","1","doing"),
("1130","82","2","doing"),
("1132","82","3","doing"),
("1133","82","4","doing"),
("1134","82","5","doing"),
("1135","82","7","doing"),
("1136","82","9","doing"),
("1122","82","10","doing"),
("1123","82","12","doing"),
("1124","82","13","doing"),
("1125","82","14","doing"),
("1126","82","15","doing"),
("1127","82","16","doing"),
("1128","82","17","doing"),
("1129","82","18","doing"),
("1131","82","20","doing"),
("1137","83","1","doing"),
("1146","83","2","doing"),
("1148","83","3","doing"),
("1149","83","4","doing"),
("1150","83","5","doing"),
("1151","83","7","doing"),
("1152","83","9","doing"),
("1138","83","10","doing"),
("1139","83","12","doing"),
("1140","83","13","doing"),
("1141","83","14","doing"),
("1142","83","15","doing"),
("1143","83","16","doing"),
("1144","83","17","doing"),
("1145","83","18","doing"),
("1147","83","20","doing"),
("1153","84","1","doing"),
("1162","84","2","doing"),
("1164","84","3","doing"),
("1165","84","4","doing"),
("1166","84","5","doing"),
("1167","84","7","doing"),
("1168","84","9","doing"),
("1154","84","10","doing"),
("1155","84","12","doing"),
("1156","84","13","doing"),
("1157","84","14","doing"),
("1158","84","15","doing"),
("1159","84","16","doing"),
("1160","84","17","doing"),
("1161","84","18","doing"),
("1163","84","20","doing"),
("1169","85","1","doing"),
("1178","85","2","doing"),
("1180","85","3","doing"),
("1181","85","4","doing"),
("1182","85","5","doing"),
("1183","85","7","doing"),
("1184","85","9","doing"),
("1170","85","10","doing"),
("1171","85","12","doing"),
("1172","85","13","doing"),
("1173","85","14","doing"),
("1174","85","15","doing"),
("1175","85","16","doing"),
("1176","85","17","doing"),
("1177","85","18","doing"),
("1179","85","20","doing"),
("1185","86","1","doing"),
("1194","86","2","doing"),
("1196","86","3","doing"),
("1197","86","4","doing"),
("1198","86","5","doing"),
("1199","86","7","doing"),
("1200","86","9","doing"),
("1186","86","10","doing"),
("1187","86","12","doing"),
("1188","86","13","doing"),
("1189","86","14","doing"),
("1190","86","15","doing"),
("1191","86","16","doing"),
("1192","86","17","doing"),
("1193","86","18","doing"),
("1195","86","20","doing");
INSERT INTO student_subject VALUES
("1201","87","1","doing"),
("1210","87","2","doing"),
("1212","87","3","doing"),
("1213","87","4","doing"),
("1214","87","5","doing"),
("1215","87","7","doing"),
("1216","87","9","doing"),
("1202","87","10","doing"),
("1203","87","12","doing"),
("1204","87","13","doing"),
("1205","87","14","doing"),
("1206","87","15","doing"),
("1207","87","16","doing"),
("1208","87","17","doing"),
("1209","87","18","doing"),
("1211","87","20","doing"),
("1217","88","1","doing"),
("1226","88","2","doing"),
("1228","88","3","doing"),
("1229","88","4","doing"),
("1230","88","5","doing"),
("1231","88","7","doing"),
("1232","88","9","doing"),
("1218","88","10","doing"),
("1219","88","12","doing"),
("1220","88","13","doing"),
("1221","88","14","doing"),
("1222","88","15","doing"),
("1223","88","16","doing"),
("1224","88","17","doing"),
("1225","88","18","doing"),
("1227","88","20","doing"),
("1233","89","1","doing"),
("1242","89","2","doing"),
("1244","89","3","doing"),
("1245","89","4","doing"),
("1246","89","5","doing"),
("1247","89","7","doing"),
("1248","89","9","doing"),
("1234","89","10","doing"),
("1235","89","12","doing"),
("1236","89","13","doing"),
("1237","89","14","doing"),
("1238","89","15","doing"),
("1239","89","16","doing"),
("1240","89","17","doing"),
("1241","89","18","doing"),
("1243","89","20","doing"),
("1249","90","1","doing"),
("1258","90","2","doing"),
("1260","90","3","doing"),
("1261","90","4","doing"),
("1262","90","5","doing"),
("1263","90","7","doing"),
("1264","90","9","doing"),
("1250","90","10","doing"),
("1251","90","12","doing"),
("1252","90","13","doing"),
("1253","90","14","doing"),
("1254","90","15","doing"),
("1255","90","16","doing"),
("1256","90","17","doing"),
("1257","90","18","doing"),
("1259","90","20","doing"),
("1265","91","1","doing"),
("1274","91","2","doing"),
("1276","91","3","doing"),
("1277","91","4","doing"),
("1278","91","5","doing"),
("1279","91","7","doing"),
("1280","91","9","doing"),
("1266","91","10","doing"),
("1267","91","12","doing"),
("1268","91","13","doing"),
("1269","91","14","doing"),
("1270","91","15","doing"),
("1271","91","16","doing"),
("1272","91","17","doing"),
("1273","91","18","doing"),
("1275","91","20","doing"),
("1281","92","1","doing"),
("1290","92","2","doing"),
("1292","92","3","doing"),
("1293","92","4","doing"),
("1294","92","5","doing"),
("1295","92","7","doing"),
("1296","92","9","doing"),
("1282","92","10","doing"),
("1283","92","12","doing"),
("1284","92","13","doing"),
("1285","92","14","doing"),
("1286","92","15","doing"),
("1287","92","16","doing"),
("1288","92","17","doing"),
("1289","92","18","doing"),
("1291","92","20","doing"),
("1297","93","1","doing"),
("1306","93","2","doing"),
("1308","93","3","doing"),
("1309","93","4","doing");
INSERT INTO student_subject VALUES
("1310","93","5","doing"),
("1311","93","7","doing"),
("1312","93","9","doing"),
("1298","93","10","doing"),
("1299","93","12","doing"),
("1300","93","13","doing"),
("1301","93","14","doing"),
("1302","93","15","doing"),
("1303","93","16","doing"),
("1304","93","17","doing"),
("1305","93","18","doing"),
("1307","93","20","doing"),
("1313","94","1","doing"),
("1322","94","2","doing"),
("1324","94","3","doing"),
("1325","94","4","doing"),
("1326","94","5","doing"),
("1327","94","7","doing"),
("1328","94","9","doing"),
("1314","94","10","doing"),
("1315","94","12","doing"),
("1316","94","13","doing"),
("1317","94","14","doing"),
("1318","94","15","doing"),
("1319","94","16","doing"),
("1320","94","17","doing"),
("1321","94","18","doing"),
("1323","94","20","doing"),
("1329","95","1","doing"),
("1338","95","2","doing"),
("1340","95","3","doing"),
("1341","95","4","doing"),
("1342","95","5","doing"),
("1343","95","7","doing"),
("1344","95","9","doing"),
("1330","95","10","doing"),
("1331","95","12","doing"),
("1332","95","13","doing"),
("1333","95","14","doing"),
("1334","95","15","doing"),
("1335","95","16","doing"),
("1336","95","17","doing"),
("1337","95","18","doing"),
("1339","95","20","doing"),
("1345","96","1","doing"),
("1354","96","2","doing"),
("1356","96","3","doing"),
("1357","96","4","doing"),
("1358","96","5","doing"),
("1359","96","7","doing"),
("1360","96","9","doing"),
("1346","96","10","doing"),
("1347","96","12","doing"),
("1348","96","13","doing"),
("1349","96","14","doing"),
("1350","96","15","doing"),
("1351","96","16","doing"),
("1352","96","17","doing"),
("1353","96","18","doing"),
("1355","96","20","doing"),
("1361","97","1","doing"),
("1370","97","2","doing"),
("1372","97","3","doing"),
("1373","97","4","doing"),
("1374","97","5","doing"),
("1375","97","7","doing"),
("1376","97","9","doing"),
("1362","97","10","doing"),
("1363","97","12","doing"),
("1364","97","13","doing"),
("1365","97","14","doing"),
("1366","97","15","doing"),
("1367","97","16","doing"),
("1368","97","17","doing"),
("1369","97","18","doing"),
("1371","97","20","doing"),
("1377","98","1","doing"),
("1386","98","2","doing"),
("1388","98","3","doing"),
("1389","98","4","doing"),
("1390","98","5","doing"),
("1391","98","7","doing"),
("1392","98","9","doing"),
("1378","98","10","doing"),
("1379","98","12","doing"),
("1380","98","13","doing"),
("1381","98","14","doing"),
("1382","98","15","doing"),
("1383","98","16","doing"),
("1384","98","17","doing"),
("1385","98","18","doing"),
("1387","98","20","doing"),
("1393","99","1","doing"),
("1402","99","2","doing"),
("1404","99","3","doing"),
("1405","99","4","doing"),
("1406","99","5","doing"),
("1407","99","7","doing"),
("1408","99","9","doing"),
("1394","99","10","doing");
INSERT INTO student_subject VALUES
("1395","99","12","doing"),
("1396","99","13","doing"),
("1397","99","14","doing"),
("1398","99","15","doing"),
("1399","99","16","doing"),
("1400","99","17","doing"),
("1401","99","18","doing"),
("1403","99","20","doing"),
("1409","100","1","doing"),
("1414","100","3","doing"),
("1415","100","4","doing"),
("1420","100","5","doing"),
("1416","100","6","doing"),
("1417","100","7","doing"),
("1418","100","8","doing"),
("1419","100","9","doing"),
("1410","100","11","doing"),
("1411","100","15","doing"),
("1412","100","19","doing"),
("1413","100","20","doing"),
("1421","101","1","doing"),
("1426","101","3","doing"),
("1427","101","4","doing"),
("1432","101","5","doing"),
("1428","101","6","doing"),
("1429","101","7","doing"),
("1430","101","8","doing"),
("1431","101","9","doing"),
("1422","101","11","doing"),
("1423","101","15","doing"),
("1424","101","19","doing"),
("1425","101","20","doing"),
("1433","102","1","doing"),
("1438","102","3","doing"),
("1439","102","4","doing"),
("1444","102","5","doing"),
("1440","102","6","doing"),
("1441","102","7","doing"),
("1442","102","8","doing"),
("1443","102","9","doing"),
("1434","102","11","doing"),
("1435","102","15","doing"),
("1436","102","19","doing"),
("1437","102","20","doing"),
("1445","103","1","doing"),
("1450","103","3","doing"),
("1451","103","4","doing"),
("1456","103","5","doing"),
("1452","103","6","doing"),
("1453","103","7","doing"),
("1454","103","8","doing"),
("1455","103","9","doing"),
("1446","103","11","doing"),
("1447","103","15","doing"),
("1448","103","19","doing"),
("1449","103","20","doing"),
("1457","104","1","doing"),
("1462","104","3","doing"),
("1463","104","4","doing"),
("1468","104","5","doing"),
("1464","104","6","doing"),
("1465","104","7","doing"),
("1466","104","8","doing"),
("1467","104","9","doing"),
("1458","104","11","doing"),
("1459","104","15","doing"),
("1460","104","19","doing"),
("1461","104","20","doing"),
("1469","105","1","doing"),
("1474","105","3","doing"),
("1475","105","4","doing"),
("1480","105","5","doing"),
("1476","105","6","doing"),
("1477","105","7","doing"),
("1478","105","8","doing"),
("1479","105","9","doing"),
("1470","105","11","doing"),
("1471","105","15","doing"),
("1472","105","19","doing"),
("1473","105","20","doing"),
("1481","106","1","doing"),
("1486","106","3","doing"),
("1487","106","4","doing"),
("1492","106","5","doing"),
("1488","106","6","doing"),
("1489","106","7","doing"),
("1490","106","8","doing"),
("1491","106","9","doing"),
("1482","106","11","doing"),
("1483","106","15","doing"),
("1484","106","19","doing"),
("1485","106","20","doing"),
("1493","107","1","doing"),
("1498","107","3","doing"),
("1499","107","4","doing"),
("1504","107","5","doing"),
("1500","107","6","doing"),
("1501","107","7","doing"),
("1502","107","8","doing"),
("1503","107","9","doing");
INSERT INTO student_subject VALUES
("1494","107","11","doing"),
("1495","107","15","doing"),
("1496","107","19","doing"),
("1497","107","20","doing"),
("1505","108","1","doing"),
("1510","108","3","doing"),
("1511","108","4","doing"),
("1516","108","5","doing"),
("1512","108","6","doing"),
("1513","108","7","doing"),
("1514","108","8","doing"),
("1515","108","9","doing"),
("1506","108","11","doing"),
("1507","108","15","doing"),
("1508","108","19","doing"),
("1509","108","20","doing"),
("1517","109","1","doing"),
("1522","109","3","doing"),
("1523","109","4","doing"),
("1528","109","5","doing"),
("1524","109","6","doing"),
("1525","109","7","doing"),
("1526","109","8","doing"),
("1527","109","9","doing"),
("1518","109","11","doing"),
("1519","109","15","doing"),
("1520","109","19","doing"),
("1521","109","20","doing"),
("1529","110","1","doing"),
("1534","110","3","doing"),
("1535","110","4","doing"),
("1540","110","5","doing"),
("1536","110","6","doing"),
("1537","110","7","doing"),
("1538","110","8","doing"),
("1539","110","9","doing"),
("1530","110","11","doing"),
("1531","110","15","doing"),
("1532","110","19","doing"),
("1533","110","20","doing"),
("1541","111","1","doing"),
("1546","111","3","doing"),
("1547","111","4","doing"),
("1552","111","5","doing"),
("1548","111","6","doing"),
("1549","111","7","doing"),
("1550","111","8","doing"),
("1551","111","9","doing"),
("1542","111","11","doing"),
("1543","111","15","doing"),
("1544","111","19","doing"),
("1545","111","20","doing"),
("1553","112","1","doing"),
("1558","112","3","doing"),
("1559","112","4","doing"),
("1564","112","5","doing"),
("1560","112","6","doing"),
("1561","112","7","doing"),
("1562","112","8","doing"),
("1563","112","9","doing"),
("1554","112","11","doing"),
("1555","112","15","doing"),
("1556","112","19","doing"),
("1557","112","20","doing"),
("1565","113","1","doing"),
("1570","113","3","doing"),
("1571","113","4","doing"),
("1576","113","5","doing"),
("1572","113","6","doing"),
("1573","113","7","doing"),
("1574","113","8","doing"),
("1575","113","9","doing"),
("1566","113","11","doing"),
("1567","113","15","doing"),
("1568","113","19","doing"),
("1569","113","20","doing"),
("1577","114","1","doing"),
("1582","114","3","doing"),
("1583","114","4","doing"),
("1588","114","5","doing"),
("1584","114","6","doing"),
("1585","114","7","doing"),
("1586","114","8","doing"),
("1587","114","9","doing"),
("1578","114","11","doing"),
("1579","114","15","doing"),
("1580","114","19","doing"),
("1581","114","20","doing"),
("1589","115","1","doing"),
("1594","115","3","doing"),
("1595","115","4","doing"),
("1600","115","5","doing"),
("1596","115","6","doing"),
("1597","115","7","doing"),
("1598","115","8","doing"),
("1599","115","9","doing"),
("1590","115","11","doing"),
("1591","115","15","doing"),
("1592","115","19","doing"),
("1593","115","20","doing");
INSERT INTO student_subject VALUES
("1601","116","1","doing"),
("1606","116","3","doing"),
("1607","116","4","doing"),
("1612","116","5","doing"),
("1608","116","6","doing"),
("1609","116","7","doing"),
("1610","116","8","doing"),
("1611","116","9","doing"),
("1602","116","11","doing"),
("1603","116","15","doing"),
("1604","116","19","doing"),
("1605","116","20","doing"),
("1613","117","1","doing"),
("1618","117","3","doing"),
("1619","117","4","doing"),
("1624","117","5","doing"),
("1620","117","6","doing"),
("1621","117","7","doing"),
("1622","117","8","doing"),
("1623","117","9","doing"),
("1614","117","11","doing"),
("1615","117","15","doing"),
("1616","117","19","doing"),
("1617","117","20","doing"),
("1625","118","1","doing"),
("1630","118","3","doing"),
("1631","118","4","doing"),
("1636","118","5","doing"),
("1632","118","6","doing"),
("1633","118","7","doing"),
("1634","118","8","doing"),
("1635","118","9","doing"),
("1626","118","11","doing"),
("1627","118","15","doing"),
("1628","118","19","doing"),
("1629","118","20","doing"),
("1637","119","1","doing"),
("1642","119","3","doing"),
("1643","119","4","doing"),
("1648","119","5","doing"),
("1644","119","6","doing"),
("1645","119","7","doing"),
("1646","119","8","doing"),
("1647","119","9","doing"),
("1638","119","11","doing"),
("1639","119","15","doing"),
("1640","119","19","doing"),
("1641","119","20","doing"),
("1649","120","1","doing"),
("1654","120","3","doing"),
("1655","120","4","doing"),
("1660","120","5","doing"),
("1656","120","6","doing"),
("1657","120","7","doing"),
("1658","120","8","doing"),
("1659","120","9","doing"),
("1650","120","11","doing"),
("1651","120","15","doing"),
("1652","120","19","doing"),
("1653","120","20","doing"),
("1661","121","1","doing"),
("1666","121","3","doing"),
("1667","121","4","doing"),
("1672","121","5","doing"),
("1668","121","6","doing"),
("1669","121","7","doing"),
("1670","121","8","doing"),
("1671","121","9","doing"),
("1662","121","11","doing"),
("1663","121","15","doing"),
("1664","121","19","doing"),
("1665","121","20","doing"),
("1673","122","1","doing"),
("1678","122","3","doing"),
("1679","122","4","doing"),
("1684","122","5","doing"),
("1680","122","6","doing"),
("1681","122","7","doing"),
("1682","122","8","doing"),
("1683","122","9","doing"),
("1674","122","11","doing"),
("1675","122","15","doing"),
("1676","122","19","doing"),
("1677","122","20","doing"),
("1685","123","1","doing"),
("1690","123","3","doing"),
("1691","123","4","doing"),
("1696","123","5","doing"),
("1692","123","6","doing"),
("1693","123","7","doing"),
("1694","123","8","doing"),
("1695","123","9","doing"),
("1686","123","11","doing"),
("1687","123","15","doing"),
("1688","123","19","doing"),
("1689","123","20","doing"),
("1697","124","1","doing"),
("1702","124","3","doing"),
("1703","124","4","doing"),
("1708","124","5","doing");
INSERT INTO student_subject VALUES
("1704","124","6","doing"),
("1705","124","7","doing"),
("1706","124","8","doing"),
("1707","124","9","doing"),
("1698","124","11","doing"),
("1699","124","15","doing"),
("1700","124","19","doing"),
("1701","124","20","doing"),
("1709","125","1","doing"),
("1714","125","3","doing"),
("1715","125","4","doing"),
("1720","125","5","doing"),
("1716","125","6","doing"),
("1717","125","7","doing"),
("1718","125","8","doing"),
("1719","125","9","doing"),
("1710","125","11","doing"),
("1711","125","15","doing"),
("1712","125","19","doing"),
("1713","125","20","doing"),
("1721","126","1","doing"),
("1726","126","3","doing"),
("1727","126","4","doing"),
("1732","126","5","doing"),
("1728","126","6","doing"),
("1729","126","7","doing"),
("1730","126","8","doing"),
("1731","126","9","doing"),
("1722","126","11","doing"),
("1723","126","15","doing"),
("1724","126","19","doing"),
("1725","126","20","doing"),
("1733","127","1","doing"),
("1738","127","3","doing"),
("1739","127","4","doing"),
("1744","127","5","doing"),
("1740","127","6","doing"),
("1741","127","7","doing"),
("1742","127","8","doing"),
("1743","127","9","doing"),
("1734","127","11","doing"),
("1735","127","15","doing"),
("1736","127","19","doing"),
("1737","127","20","doing"),
("1745","128","1","doing"),
("1750","128","3","doing"),
("1751","128","4","doing"),
("1756","128","5","doing"),
("1752","128","6","doing"),
("1753","128","7","doing"),
("1754","128","8","doing"),
("1755","128","9","doing"),
("1746","128","11","doing"),
("1747","128","15","doing"),
("1748","128","19","doing"),
("1749","128","20","doing"),
("1757","129","1","doing"),
("1762","129","3","doing"),
("1763","129","4","doing"),
("1768","129","5","doing"),
("1764","129","6","doing"),
("1765","129","7","doing"),
("1766","129","8","doing"),
("1767","129","9","doing"),
("1758","129","11","doing"),
("1759","129","15","doing"),
("1760","129","19","doing"),
("1761","129","20","doing"),
("1769","130","1","doing"),
("1774","130","3","doing"),
("1775","130","4","doing"),
("1780","130","5","doing"),
("1776","130","6","doing"),
("1777","130","7","doing"),
("1778","130","8","doing"),
("1779","130","9","doing"),
("1770","130","11","doing"),
("1771","130","15","doing"),
("1772","130","19","doing"),
("1773","130","20","doing"),
("1781","131","1","doing"),
("1786","131","3","doing"),
("1787","131","4","doing"),
("1792","131","5","doing"),
("1788","131","6","doing"),
("1789","131","7","doing"),
("1790","131","8","doing"),
("1791","131","9","doing"),
("1782","131","11","doing"),
("1783","131","15","doing"),
("1784","131","19","doing"),
("1785","131","20","doing"),
("1793","132","1","doing"),
("1798","132","3","doing"),
("1799","132","4","doing"),
("1804","132","5","doing"),
("1800","132","6","doing"),
("1801","132","7","doing"),
("1802","132","8","doing"),
("1803","132","9","doing");
INSERT INTO student_subject VALUES
("1794","132","11","doing"),
("1795","132","15","doing"),
("1796","132","19","doing"),
("1797","132","20","doing"),
("1805","133","1","doing"),
("1810","133","3","doing"),
("1811","133","4","doing"),
("1816","133","5","doing"),
("1812","133","6","doing"),
("1813","133","7","doing"),
("1814","133","8","doing"),
("1815","133","9","doing"),
("1806","133","11","doing"),
("1807","133","15","doing"),
("1808","133","19","doing"),
("1809","133","20","doing"),
("1817","134","1","doing"),
("1822","134","3","doing"),
("1823","134","4","doing"),
("1828","134","5","doing"),
("1824","134","6","doing"),
("1825","134","7","doing"),
("1826","134","8","doing"),
("1827","134","9","doing"),
("1818","134","11","doing"),
("1819","134","15","doing"),
("1820","134","19","doing"),
("1821","134","20","doing"),
("1829","135","1","doing"),
("1834","135","3","doing"),
("1835","135","4","doing"),
("1840","135","5","doing"),
("1836","135","6","doing"),
("1837","135","7","doing"),
("1838","135","8","doing"),
("1839","135","9","doing"),
("1830","135","11","doing"),
("1831","135","15","doing"),
("1832","135","19","doing"),
("1833","135","20","doing"),
("1841","136","1","doing"),
("1846","136","3","doing"),
("1847","136","4","doing"),
("1852","136","5","doing"),
("1848","136","6","doing"),
("1849","136","7","doing"),
("1850","136","8","doing"),
("1851","136","9","doing"),
("1842","136","11","doing"),
("1843","136","15","doing"),
("1844","136","19","doing"),
("1845","136","20","doing"),
("1853","137","1","doing"),
("1858","137","3","doing"),
("1859","137","4","doing"),
("1864","137","5","doing"),
("1860","137","6","doing"),
("1861","137","7","doing"),
("1862","137","8","doing"),
("1863","137","9","doing"),
("1854","137","11","doing"),
("1855","137","15","doing"),
("1856","137","19","doing"),
("1857","137","20","doing"),
("1865","138","1","doing"),
("1870","138","3","doing"),
("1871","138","4","doing"),
("1876","138","5","doing"),
("1872","138","6","doing"),
("1873","138","7","doing"),
("1874","138","8","doing"),
("1875","138","9","doing"),
("1866","138","11","doing"),
("1867","138","15","doing"),
("1868","138","19","doing"),
("1869","138","20","doing"),
("1877","139","1","doing"),
("1882","139","3","doing"),
("1883","139","4","doing"),
("1888","139","5","doing"),
("1884","139","6","doing"),
("1885","139","7","doing"),
("1886","139","8","doing"),
("1887","139","9","doing"),
("1878","139","11","doing"),
("1879","139","15","doing"),
("1880","139","19","doing"),
("1881","139","20","doing"),
("1889","140","1","doing"),
("1894","140","3","doing"),
("1895","140","4","doing"),
("1900","140","5","doing"),
("1896","140","6","doing"),
("1897","140","7","doing"),
("1898","140","8","doing"),
("1899","140","9","doing"),
("1890","140","11","doing"),
("1891","140","15","doing"),
("1892","140","19","doing"),
("1893","140","20","doing");
INSERT INTO student_subject VALUES
("1901","141","1","doing"),
("1906","141","3","doing"),
("1907","141","4","doing"),
("1912","141","5","doing"),
("1908","141","6","doing"),
("1909","141","7","doing"),
("1910","141","8","doing"),
("1911","141","9","doing"),
("1902","141","11","doing"),
("1903","141","15","doing"),
("1904","141","19","doing"),
("1905","141","20","doing"),
("1913","142","1","doing"),
("1918","142","3","doing"),
("1919","142","4","doing"),
("1924","142","5","doing"),
("1920","142","6","doing"),
("1921","142","7","doing"),
("1922","142","8","doing"),
("1923","142","9","doing"),
("1914","142","11","doing"),
("1915","142","15","doing"),
("1916","142","19","doing"),
("1917","142","20","doing"),
("1925","143","1","doing"),
("1930","143","3","doing"),
("1931","143","4","doing"),
("1936","143","5","doing"),
("1932","143","6","doing"),
("1933","143","7","doing"),
("1934","143","8","doing"),
("1935","143","9","doing"),
("1926","143","11","doing"),
("1927","143","15","doing"),
("1928","143","19","doing"),
("1929","143","20","doing"),
("1937","144","1","doing"),
("1942","144","3","doing"),
("1943","144","4","doing"),
("1948","144","5","doing"),
("1944","144","6","doing"),
("1945","144","7","doing"),
("1946","144","8","doing"),
("1947","144","9","doing"),
("1938","144","11","doing"),
("1939","144","15","doing"),
("1940","144","19","doing"),
("1941","144","20","doing"),
("1949","145","1","doing"),
("1954","145","3","doing"),
("1955","145","4","doing"),
("1960","145","5","doing"),
("1956","145","6","doing"),
("1957","145","7","doing"),
("1958","145","8","doing"),
("1959","145","9","doing"),
("1950","145","11","doing"),
("1951","145","15","doing"),
("1952","145","19","doing"),
("1953","145","20","doing"),
("1961","146","1","doing"),
("1966","146","3","doing"),
("1967","146","4","doing"),
("1972","146","5","doing"),
("1968","146","6","doing"),
("1969","146","7","doing"),
("1970","146","8","doing"),
("1971","146","9","doing"),
("1962","146","11","doing"),
("1963","146","15","doing"),
("1964","146","19","doing"),
("1965","146","20","doing"),
("1973","147","1","doing"),
("1978","147","3","doing"),
("1979","147","4","doing"),
("1984","147","5","doing"),
("1980","147","6","doing"),
("1981","147","7","doing"),
("1982","147","8","doing"),
("1983","147","9","doing"),
("1974","147","11","doing"),
("1975","147","15","doing"),
("1976","147","19","doing"),
("1977","147","20","doing"),
("1985","148","1","doing"),
("1990","148","3","doing"),
("1991","148","4","doing"),
("1996","148","5","doing"),
("1992","148","6","doing"),
("1993","148","7","doing"),
("1994","148","8","doing"),
("1995","148","9","doing"),
("1986","148","11","doing"),
("1987","148","15","doing"),
("1988","148","19","doing"),
("1989","148","20","doing"),
("1997","149","1","doing"),
("2002","149","3","doing"),
("2003","149","4","doing"),
("2008","149","5","doing");
INSERT INTO student_subject VALUES
("2004","149","6","doing"),
("2005","149","7","doing"),
("2006","149","8","doing"),
("2007","149","9","doing"),
("1998","149","11","doing"),
("1999","149","15","doing"),
("2000","149","19","doing"),
("2001","149","20","doing"),
("2009","150","1","doing"),
("2014","150","3","doing"),
("2015","150","4","doing"),
("2020","150","5","doing"),
("2016","150","6","doing"),
("2017","150","7","doing"),
("2018","150","8","doing"),
("2019","150","9","doing"),
("2010","150","11","doing"),
("2011","150","15","doing"),
("2012","150","19","doing"),
("2013","150","20","doing"),
("2021","151","1","doing"),
("2026","151","3","doing"),
("2027","151","4","doing"),
("2032","151","5","doing"),
("2028","151","6","doing"),
("2029","151","7","doing"),
("2030","151","8","doing"),
("2031","151","9","doing"),
("2022","151","11","doing"),
("2023","151","15","doing"),
("2024","151","19","doing"),
("2025","151","20","doing"),
("2033","152","1","doing"),
("2038","152","3","doing"),
("2039","152","4","doing"),
("2044","152","5","doing"),
("2040","152","6","doing"),
("2041","152","7","doing"),
("2042","152","8","doing"),
("2043","152","9","doing"),
("2034","152","11","doing"),
("2035","152","15","doing"),
("2036","152","19","doing"),
("2037","152","20","doing"),
("2045","153","1","doing"),
("2050","153","3","doing"),
("2051","153","4","doing"),
("2056","153","5","doing"),
("2052","153","6","doing"),
("2053","153","7","doing"),
("2054","153","8","doing"),
("2055","153","9","doing"),
("2046","153","11","doing"),
("2047","153","15","doing"),
("2048","153","19","doing"),
("2049","153","20","doing"),
("2057","154","1","doing"),
("2062","154","3","doing"),
("2063","154","4","doing"),
("2068","154","5","doing"),
("2064","154","6","doing"),
("2065","154","7","doing"),
("2066","154","8","doing"),
("2067","154","9","doing"),
("2058","154","11","doing"),
("2059","154","15","doing"),
("2060","154","19","doing"),
("2061","154","20","doing"),
("2069","155","1","doing"),
("2078","155","2","doing"),
("2080","155","3","doing"),
("2081","155","4","doing"),
("2082","155","5","doing"),
("2083","155","7","doing"),
("2084","155","9","doing"),
("2070","155","10","doing"),
("2071","155","12","doing"),
("2072","155","13","doing"),
("2073","155","14","doing"),
("2074","155","15","doing"),
("2075","155","16","doing"),
("2076","155","17","doing"),
("2077","155","18","doing"),
("2079","155","20","doing"),
("2085","156","1","doing"),
("2094","156","2","doing"),
("2096","156","3","doing"),
("2097","156","4","doing"),
("2098","156","5","doing"),
("2099","156","7","doing"),
("2100","156","9","doing"),
("2086","156","10","doing"),
("2087","156","12","doing"),
("2088","156","13","doing"),
("2089","156","14","doing"),
("2090","156","15","doing"),
("2091","156","16","doing"),
("2092","156","17","doing"),
("2093","156","18","doing"),
("2095","156","20","doing");
INSERT INTO student_subject VALUES
("2101","157","1","doing"),
("2110","157","2","doing"),
("2112","157","3","doing"),
("2113","157","4","doing"),
("2114","157","5","doing"),
("2115","157","7","doing"),
("2116","157","9","doing"),
("2102","157","10","doing"),
("2103","157","12","doing"),
("2104","157","13","doing"),
("2105","157","14","doing"),
("2106","157","15","doing"),
("2107","157","16","doing"),
("2108","157","17","doing"),
("2109","157","18","doing"),
("2111","157","20","doing"),
("2117","158","1","doing"),
("2126","158","2","doing"),
("2128","158","3","doing"),
("2129","158","4","doing"),
("2130","158","5","doing"),
("2131","158","7","doing"),
("2132","158","9","doing"),
("2118","158","10","doing"),
("2119","158","12","doing"),
("2120","158","13","doing"),
("2121","158","14","doing"),
("2122","158","15","doing"),
("2123","158","16","doing"),
("2124","158","17","doing"),
("2125","158","18","doing"),
("2127","158","20","doing"),
("2133","159","1","doing"),
("2142","159","2","doing"),
("2144","159","3","doing"),
("2145","159","4","doing"),
("2146","159","5","doing"),
("2147","159","7","doing"),
("2148","159","9","doing"),
("2134","159","10","doing"),
("2135","159","12","doing"),
("2136","159","13","doing"),
("2137","159","14","doing"),
("2138","159","15","doing"),
("2139","159","16","doing"),
("2140","159","17","doing"),
("2141","159","18","doing"),
("2143","159","20","doing"),
("2149","160","1","doing"),
("2158","160","2","doing"),
("2160","160","3","doing"),
("2161","160","4","doing"),
("2162","160","5","doing"),
("2163","160","7","doing"),
("2164","160","9","doing"),
("2150","160","10","doing"),
("2151","160","12","doing"),
("2152","160","13","doing"),
("2153","160","14","doing"),
("2154","160","15","doing"),
("2155","160","16","doing"),
("2156","160","17","doing"),
("2157","160","18","doing"),
("2159","160","20","doing"),
("2165","161","1","doing"),
("2174","161","2","doing"),
("2176","161","3","doing"),
("2177","161","4","doing"),
("2178","161","5","doing"),
("2179","161","7","doing"),
("2180","161","9","doing"),
("2166","161","10","doing"),
("2167","161","12","doing"),
("2168","161","13","doing"),
("2169","161","14","doing"),
("2170","161","15","doing"),
("2171","161","16","doing"),
("2172","161","17","doing"),
("2173","161","18","doing"),
("2175","161","20","doing"),
("2181","162","1","doing"),
("2190","162","2","doing"),
("2192","162","3","doing"),
("2193","162","4","doing"),
("2194","162","5","doing"),
("2195","162","7","doing"),
("2196","162","9","doing"),
("2182","162","10","doing"),
("2183","162","12","doing"),
("2184","162","13","doing"),
("2185","162","14","doing"),
("2186","162","15","doing"),
("2187","162","16","doing"),
("2188","162","17","doing"),
("2189","162","18","doing"),
("2191","162","20","doing"),
("2197","163","1","doing"),
("2206","163","2","doing"),
("2208","163","3","doing"),
("2209","163","4","doing");
INSERT INTO student_subject VALUES
("2210","163","5","doing"),
("2211","163","7","doing"),
("2212","163","9","doing"),
("2198","163","10","doing"),
("2199","163","12","doing"),
("2200","163","13","doing"),
("2201","163","14","doing"),
("2202","163","15","doing"),
("2203","163","16","doing"),
("2204","163","17","doing"),
("2205","163","18","doing"),
("2207","163","20","doing"),
("2213","164","1","doing"),
("2222","164","2","doing"),
("2224","164","3","doing"),
("2225","164","4","doing"),
("2226","164","5","doing"),
("2227","164","7","doing"),
("2228","164","9","doing"),
("2214","164","10","doing"),
("2215","164","12","doing"),
("2216","164","13","doing"),
("2217","164","14","doing"),
("2218","164","15","doing"),
("2219","164","16","doing"),
("2220","164","17","doing"),
("2221","164","18","doing"),
("2223","164","20","doing"),
("2229","165","1","doing"),
("2238","165","2","doing"),
("2240","165","3","doing"),
("2241","165","4","doing"),
("2242","165","5","doing"),
("2243","165","7","doing"),
("2244","165","9","doing"),
("2230","165","10","doing"),
("2231","165","12","doing"),
("2232","165","13","doing"),
("2233","165","14","doing"),
("2234","165","15","doing"),
("2235","165","16","doing"),
("2236","165","17","doing"),
("2237","165","18","doing"),
("2239","165","20","doing"),
("2245","166","1","doing"),
("2254","166","2","doing"),
("2256","166","3","doing"),
("2257","166","4","doing"),
("2258","166","5","doing"),
("2259","166","7","doing"),
("2260","166","9","doing"),
("2246","166","10","doing"),
("2247","166","12","doing"),
("2248","166","13","doing"),
("2249","166","14","doing"),
("2250","166","15","doing"),
("2251","166","16","doing"),
("2252","166","17","doing"),
("2253","166","18","doing"),
("2255","166","20","doing"),
("2261","167","1","doing"),
("2270","167","2","doing"),
("2272","167","3","doing"),
("2273","167","4","doing"),
("2274","167","5","doing"),
("2275","167","7","doing"),
("2276","167","9","doing"),
("2262","167","10","doing"),
("2263","167","12","doing"),
("2264","167","13","doing"),
("2265","167","14","doing"),
("2266","167","15","doing"),
("2267","167","16","doing"),
("2268","167","17","doing"),
("2269","167","18","doing"),
("2271","167","20","doing"),
("2277","168","1","doing"),
("2286","168","2","doing"),
("2288","168","3","doing"),
("2289","168","4","doing"),
("2290","168","5","doing"),
("2291","168","7","doing"),
("2292","168","9","doing"),
("2278","168","10","doing"),
("2279","168","12","doing"),
("2280","168","13","doing"),
("2281","168","14","doing"),
("2282","168","15","doing"),
("2283","168","16","doing"),
("2284","168","17","doing"),
("2285","168","18","doing"),
("2287","168","20","doing"),
("2293","169","1","doing"),
("2302","169","2","doing"),
("2304","169","3","doing"),
("2305","169","4","doing"),
("2306","169","5","doing"),
("2307","169","7","doing"),
("2308","169","9","doing"),
("2294","169","10","doing");
INSERT INTO student_subject VALUES
("2295","169","12","doing"),
("2296","169","13","doing"),
("2297","169","14","doing"),
("2298","169","15","doing"),
("2299","169","16","doing"),
("2300","169","17","doing"),
("2301","169","18","doing"),
("2303","169","20","doing"),
("2309","170","1","doing"),
("2318","170","2","doing"),
("2320","170","3","doing"),
("2321","170","4","doing"),
("2322","170","5","doing"),
("2323","170","7","doing"),
("2324","170","9","doing"),
("2310","170","10","doing"),
("2311","170","12","doing"),
("2312","170","13","doing"),
("2313","170","14","doing"),
("2314","170","15","doing"),
("2315","170","16","doing"),
("2316","170","17","doing"),
("2317","170","18","doing"),
("2319","170","20","doing"),
("2325","171","1","doing"),
("2334","171","2","doing"),
("2336","171","3","doing"),
("2337","171","4","doing"),
("2338","171","5","doing"),
("2339","171","7","doing"),
("2340","171","9","doing"),
("2326","171","10","doing"),
("2327","171","12","doing"),
("2328","171","13","doing"),
("2329","171","14","doing"),
("2330","171","15","doing"),
("2331","171","16","doing"),
("2332","171","17","doing"),
("2333","171","18","doing"),
("2335","171","20","doing"),
("2341","172","1","doing"),
("2350","172","2","doing"),
("2352","172","3","doing"),
("2353","172","4","doing"),
("2354","172","5","doing"),
("2355","172","7","doing"),
("2356","172","9","doing"),
("2342","172","10","doing"),
("2343","172","12","doing"),
("2344","172","13","doing"),
("2345","172","14","doing"),
("2346","172","15","doing"),
("2347","172","16","doing"),
("2348","172","17","doing"),
("2349","172","18","doing"),
("2351","172","20","doing"),
("2357","173","1","doing"),
("2366","173","2","doing"),
("2368","173","3","doing"),
("2369","173","4","doing"),
("2370","173","5","doing"),
("2371","173","7","doing"),
("2372","173","9","doing"),
("2358","173","10","doing"),
("2359","173","12","doing"),
("2360","173","13","doing"),
("2361","173","14","doing"),
("2362","173","15","doing"),
("2363","173","16","doing"),
("2364","173","17","doing"),
("2365","173","18","doing"),
("2367","173","20","doing"),
("2373","174","1","doing"),
("2382","174","2","doing"),
("2384","174","3","doing"),
("2385","174","4","doing"),
("2386","174","5","doing"),
("2387","174","7","doing"),
("2388","174","9","doing"),
("2374","174","10","doing"),
("2375","174","12","doing"),
("2376","174","13","doing"),
("2377","174","14","doing"),
("2378","174","15","doing"),
("2379","174","16","doing"),
("2380","174","17","doing"),
("2381","174","18","doing"),
("2383","174","20","doing"),
("2389","175","1","doing"),
("2398","175","2","doing"),
("2400","175","3","doing"),
("2401","175","4","doing"),
("2402","175","5","doing"),
("2403","175","7","doing"),
("2404","175","9","doing"),
("2390","175","10","doing"),
("2391","175","12","doing"),
("2392","175","13","doing"),
("2393","175","14","doing"),
("2394","175","15","doing");
INSERT INTO student_subject VALUES
("2395","175","16","doing"),
("2396","175","17","doing"),
("2397","175","18","doing"),
("2399","175","20","doing"),
("2405","176","1","doing"),
("2414","176","2","doing"),
("2416","176","3","doing"),
("2417","176","4","doing"),
("2418","176","5","doing"),
("2419","176","7","doing"),
("2420","176","9","doing"),
("2406","176","10","doing"),
("2407","176","12","doing"),
("2408","176","13","doing"),
("2409","176","14","doing"),
("2410","176","15","doing"),
("2411","176","16","doing"),
("2412","176","17","doing"),
("2413","176","18","doing"),
("2415","176","20","doing"),
("2421","177","1","doing"),
("2430","177","2","doing"),
("2432","177","3","doing"),
("2433","177","4","doing"),
("2434","177","5","doing"),
("2435","177","7","doing"),
("2436","177","9","doing"),
("2422","177","10","doing"),
("2423","177","12","doing"),
("2424","177","13","doing"),
("2425","177","14","doing"),
("2426","177","15","doing"),
("2427","177","16","doing"),
("2428","177","17","doing"),
("2429","177","18","doing"),
("2431","177","20","doing"),
("2437","178","1","doing"),
("2446","178","2","doing"),
("2448","178","3","doing"),
("2449","178","4","doing"),
("2450","178","5","doing"),
("2451","178","7","doing"),
("2452","178","9","doing"),
("2438","178","10","doing"),
("2439","178","12","doing"),
("2440","178","13","doing"),
("2441","178","14","doing"),
("2442","178","15","doing"),
("2443","178","16","doing"),
("2444","178","17","doing"),
("2445","178","18","doing"),
("2447","178","20","doing"),
("2453","179","1","doing"),
("2462","179","2","doing"),
("2464","179","3","doing"),
("2465","179","4","doing"),
("2466","179","5","doing"),
("2467","179","7","doing"),
("2468","179","9","doing"),
("2454","179","10","doing"),
("2455","179","12","doing"),
("2456","179","13","doing"),
("2457","179","14","doing"),
("2458","179","15","doing"),
("2459","179","16","doing"),
("2460","179","17","doing"),
("2461","179","18","doing"),
("2463","179","20","doing"),
("2469","180","1","doing"),
("2478","180","2","doing"),
("2480","180","3","doing"),
("2481","180","4","doing"),
("2482","180","5","doing"),
("2483","180","7","doing"),
("2484","180","9","doing"),
("2470","180","10","doing"),
("2471","180","12","doing"),
("2472","180","13","doing"),
("2473","180","14","doing"),
("2474","180","15","doing"),
("2475","180","16","doing"),
("2476","180","17","doing"),
("2477","180","18","doing"),
("2479","180","20","doing"),
("2485","181","1","doing"),
("2494","181","2","doing"),
("2496","181","3","doing"),
("2497","181","4","doing"),
("2498","181","5","doing"),
("2499","181","7","doing"),
("2500","181","9","doing"),
("2486","181","10","doing"),
("2487","181","12","doing"),
("2488","181","13","doing"),
("2489","181","14","doing"),
("2490","181","15","doing"),
("2491","181","16","doing"),
("2492","181","17","doing"),
("2493","181","18","doing"),
("2495","181","20","doing");
INSERT INTO student_subject VALUES
("2501","182","1","doing"),
("2510","182","2","doing"),
("2512","182","3","doing"),
("2513","182","4","doing"),
("2514","182","5","doing"),
("2515","182","7","doing"),
("2516","182","9","doing"),
("2502","182","10","doing"),
("2503","182","12","doing"),
("2504","182","13","doing"),
("2505","182","14","doing"),
("2506","182","15","doing"),
("2507","182","16","doing"),
("2508","182","17","doing"),
("2509","182","18","doing"),
("2511","182","20","doing"),
("2517","183","1","doing"),
("2526","183","2","doing"),
("2528","183","3","doing"),
("2529","183","4","doing"),
("2530","183","5","doing"),
("2531","183","7","doing"),
("2532","183","9","doing"),
("2518","183","10","doing"),
("2519","183","12","doing"),
("2520","183","13","doing"),
("2521","183","14","doing"),
("2522","183","15","doing"),
("2523","183","16","doing"),
("2524","183","17","doing"),
("2525","183","18","doing"),
("2527","183","20","doing"),
("2533","184","1","doing"),
("2542","184","2","doing"),
("2544","184","3","doing"),
("2545","184","4","doing"),
("2546","184","5","doing"),
("2547","184","7","doing"),
("2548","184","9","doing"),
("2534","184","10","doing"),
("2535","184","12","doing"),
("2536","184","13","doing"),
("2537","184","14","doing"),
("2538","184","15","doing"),
("2539","184","16","doing"),
("2540","184","17","doing"),
("2541","184","18","doing"),
("2543","184","20","doing"),
("2549","185","1","doing"),
("2554","185","3","doing"),
("2555","185","4","doing"),
("2560","185","5","doing"),
("2556","185","6","doing"),
("2557","185","7","doing"),
("2558","185","8","doing"),
("2559","185","9","doing"),
("2550","185","11","doing"),
("2551","185","15","doing"),
("2552","185","19","doing"),
("2553","185","20","doing"),
("2561","186","1","doing"),
("2566","186","3","doing"),
("2567","186","4","doing"),
("2572","186","5","doing"),
("2568","186","6","doing"),
("2569","186","7","doing"),
("2570","186","8","doing"),
("2571","186","9","doing"),
("2562","186","11","doing"),
("2563","186","15","doing"),
("2564","186","19","doing"),
("2565","186","20","doing"),
("2573","187","1","doing"),
("2578","187","3","doing"),
("2579","187","4","doing"),
("2584","187","5","doing"),
("2580","187","6","doing"),
("2581","187","7","doing"),
("2582","187","8","doing"),
("2583","187","9","doing"),
("2574","187","11","doing"),
("2575","187","15","doing"),
("2576","187","19","doing"),
("2577","187","20","doing"),
("2585","188","1","doing"),
("2594","188","2","doing"),
("2596","188","3","doing"),
("2597","188","4","doing"),
("2598","188","5","doing"),
("2599","188","7","doing"),
("2600","188","9","doing"),
("2586","188","10","doing"),
("2587","188","12","doing"),
("2588","188","13","doing"),
("2589","188","14","doing"),
("2590","188","15","doing"),
("2591","188","16","doing"),
("2592","188","17","doing"),
("2593","188","18","doing"),
("2595","188","20","doing");
INSERT INTO student_subject VALUES
("2601","189","1","doing"),
("2610","189","2","doing"),
("2612","189","3","doing"),
("2613","189","4","doing"),
("2614","189","5","doing"),
("2615","189","7","doing"),
("2616","189","9","doing"),
("2602","189","10","doing"),
("2603","189","12","doing"),
("2604","189","13","doing"),
("2605","189","14","doing"),
("2606","189","15","doing"),
("2607","189","16","doing"),
("2608","189","17","doing"),
("2609","189","18","doing"),
("2611","189","20","doing"),
("2617","190","1","doing"),
("2622","190","3","doing"),
("2623","190","4","doing"),
("2628","190","5","doing"),
("2624","190","6","doing"),
("2625","190","7","doing"),
("2626","190","8","doing"),
("2627","190","9","doing"),
("2618","190","11","doing"),
("2619","190","15","doing"),
("2620","190","19","doing"),
("2621","190","20","doing"),
("2629","191","1","doing"),
("2634","191","3","doing"),
("2635","191","4","doing"),
("2640","191","5","doing"),
("2636","191","6","doing"),
("2637","191","7","doing"),
("2638","191","8","doing"),
("2639","191","9","doing"),
("2630","191","11","doing"),
("2631","191","15","doing"),
("2632","191","19","doing"),
("2633","191","20","doing"),
("2641","192","1","doing"),
("2646","192","3","doing"),
("2647","192","4","doing"),
("2652","192","5","doing"),
("2648","192","6","doing"),
("2649","192","7","doing"),
("2650","192","8","doing"),
("2651","192","9","doing"),
("2642","192","11","doing"),
("2643","192","15","doing"),
("2644","192","19","doing"),
("2645","192","20","doing"),
("2653","193","1","doing"),
("2658","193","3","doing"),
("2659","193","4","doing"),
("2664","193","5","doing"),
("2660","193","6","doing"),
("2661","193","7","doing"),
("2662","193","8","doing"),
("2663","193","9","doing"),
("2654","193","11","doing"),
("2655","193","15","doing"),
("2656","193","19","doing"),
("2657","193","20","doing"),
("2665","194","1","doing"),
("2670","194","3","doing"),
("2671","194","4","doing"),
("2676","194","5","doing"),
("2672","194","6","doing"),
("2673","194","7","doing"),
("2674","194","8","doing"),
("2675","194","9","doing"),
("2666","194","11","doing"),
("2667","194","15","doing"),
("2668","194","19","doing"),
("2669","194","20","doing"),
("2677","195","1","doing"),
("2682","195","3","doing"),
("2683","195","4","doing"),
("2688","195","5","doing"),
("2684","195","6","doing"),
("2685","195","7","doing"),
("2686","195","8","doing"),
("2687","195","9","doing"),
("2678","195","11","doing"),
("2679","195","15","doing"),
("2680","195","19","doing"),
("2681","195","20","doing"),
("2689","196","1","doing"),
("2694","196","3","doing"),
("2695","196","4","doing"),
("2700","196","5","doing"),
("2696","196","6","doing"),
("2697","196","7","doing"),
("2698","196","8","doing"),
("2699","196","9","doing"),
("2690","196","11","doing"),
("2691","196","15","doing"),
("2692","196","19","doing"),
("2693","196","20","doing");
INSERT INTO student_subject VALUES
("2701","197","1","doing"),
("2706","197","3","doing"),
("2707","197","4","doing"),
("2712","197","5","doing"),
("2708","197","6","doing"),
("2709","197","7","doing"),
("2710","197","8","doing"),
("2711","197","9","doing"),
("2702","197","11","doing"),
("2703","197","15","doing"),
("2704","197","19","doing"),
("2705","197","20","doing"),
("2713","198","1","doing"),
("2718","198","3","doing"),
("2719","198","4","doing"),
("2724","198","5","doing"),
("2720","198","6","doing"),
("2721","198","7","doing"),
("2722","198","8","doing"),
("2723","198","9","doing"),
("2714","198","11","doing"),
("2715","198","15","doing"),
("2716","198","19","doing"),
("2717","198","20","doing"),
("2725","199","1","doing"),
("2730","199","3","doing"),
("2731","199","4","doing"),
("2736","199","5","doing"),
("2732","199","6","doing"),
("2733","199","7","doing"),
("2734","199","8","doing"),
("2735","199","9","doing"),
("2726","199","11","doing"),
("2727","199","15","doing"),
("2728","199","19","doing"),
("2729","199","20","doing"),
("2737","200","1","doing"),
("2742","200","3","doing"),
("2743","200","4","doing"),
("2748","200","5","doing"),
("2744","200","6","doing"),
("2745","200","7","doing"),
("2746","200","8","doing"),
("2747","200","9","doing"),
("2738","200","11","doing"),
("2739","200","15","doing"),
("2740","200","19","doing"),
("2741","200","20","doing"),
("2749","201","1","doing"),
("2754","201","3","doing"),
("2755","201","4","doing"),
("2760","201","5","doing"),
("2756","201","6","doing"),
("2757","201","7","doing"),
("2758","201","8","doing"),
("2759","201","9","doing"),
("2750","201","11","doing"),
("2751","201","15","doing"),
("2752","201","19","doing"),
("2753","201","20","doing"),
("2761","202","1","doing"),
("2766","202","3","doing"),
("2767","202","4","doing"),
("2772","202","5","doing"),
("2768","202","6","doing"),
("2769","202","7","doing"),
("2770","202","8","doing"),
("2771","202","9","doing"),
("2762","202","11","doing"),
("2763","202","15","doing"),
("2764","202","19","doing"),
("2765","202","20","doing"),
("2773","203","1","doing"),
("2778","203","3","doing"),
("2779","203","4","doing"),
("2784","203","5","doing"),
("2780","203","6","doing"),
("2781","203","7","doing"),
("2782","203","8","doing"),
("2783","203","9","doing"),
("2774","203","11","doing"),
("2775","203","15","doing"),
("2776","203","19","doing"),
("2777","203","20","doing"),
("2785","204","1","doing"),
("2790","204","3","doing"),
("2791","204","4","doing"),
("2796","204","5","doing"),
("2792","204","6","doing"),
("2793","204","7","doing"),
("2794","204","8","doing"),
("2795","204","9","doing"),
("2786","204","11","doing"),
("2787","204","15","doing"),
("2788","204","19","doing"),
("2789","204","20","doing"),
("2797","205","1","doing"),
("2802","205","3","doing"),
("2803","205","4","doing"),
("2808","205","5","doing");
INSERT INTO student_subject VALUES
("2804","205","6","doing"),
("2805","205","7","doing"),
("2806","205","8","doing"),
("2807","205","9","doing"),
("2798","205","11","doing"),
("2799","205","15","doing"),
("2800","205","19","doing"),
("2801","205","20","doing"),
("2809","206","1","doing"),
("2814","206","3","doing"),
("2815","206","4","doing"),
("2820","206","5","doing"),
("2816","206","6","doing"),
("2817","206","7","doing"),
("2818","206","8","doing"),
("2819","206","9","doing"),
("2810","206","11","doing"),
("2811","206","15","doing"),
("2812","206","19","doing"),
("2813","206","20","doing"),
("2821","207","1","doing"),
("2826","207","3","doing"),
("2827","207","4","doing"),
("2832","207","5","doing"),
("2828","207","6","doing"),
("2829","207","7","doing"),
("2830","207","8","doing"),
("2831","207","9","doing"),
("2822","207","11","doing"),
("2823","207","15","doing"),
("2824","207","19","doing"),
("2825","207","20","doing"),
("2833","208","1","doing"),
("2838","208","3","doing"),
("2839","208","4","doing"),
("2844","208","5","doing"),
("2840","208","6","doing"),
("2841","208","7","doing"),
("2842","208","8","doing"),
("2843","208","9","doing"),
("2834","208","11","doing"),
("2835","208","15","doing"),
("2836","208","19","doing"),
("2837","208","20","doing"),
("2845","209","1","doing"),
("2850","209","3","doing"),
("2851","209","4","doing"),
("2856","209","5","doing"),
("2852","209","6","doing"),
("2853","209","7","doing"),
("2854","209","8","doing"),
("2855","209","9","doing"),
("2846","209","11","doing"),
("2847","209","15","doing"),
("2848","209","19","doing"),
("2849","209","20","doing"),
("2857","210","1","doing"),
("2862","210","3","doing"),
("2863","210","4","doing"),
("2868","210","5","doing"),
("2864","210","6","doing"),
("2865","210","7","doing"),
("2866","210","8","doing"),
("2867","210","9","doing"),
("2858","210","11","doing"),
("2859","210","15","doing"),
("2860","210","19","doing"),
("2861","210","20","doing"),
("2869","211","1","doing"),
("2874","211","3","doing"),
("2875","211","4","doing"),
("2880","211","5","doing"),
("2876","211","6","doing"),
("2877","211","7","doing"),
("2878","211","8","doing"),
("2879","211","9","doing"),
("2870","211","11","doing"),
("2871","211","15","doing"),
("2872","211","19","doing"),
("2873","211","20","doing"),
("2881","212","1","doing"),
("2886","212","3","doing"),
("2887","212","4","doing"),
("2892","212","5","doing"),
("2888","212","6","doing"),
("2889","212","7","doing"),
("2890","212","8","doing"),
("2891","212","9","doing"),
("2882","212","11","doing"),
("2883","212","15","doing"),
("2884","212","19","doing"),
("2885","212","20","doing"),
("2893","213","1","doing"),
("2898","213","3","doing"),
("2899","213","4","doing"),
("2904","213","5","doing"),
("2900","213","6","doing"),
("2901","213","7","doing"),
("2902","213","8","doing"),
("2903","213","9","doing");
INSERT INTO student_subject VALUES
("2894","213","11","doing"),
("2895","213","15","doing"),
("2896","213","19","doing"),
("2897","213","20","doing"),
("2905","214","1","doing"),
("2910","214","3","doing"),
("2911","214","4","doing"),
("2916","214","5","doing"),
("2912","214","6","doing"),
("2913","214","7","doing"),
("2914","214","8","doing"),
("2915","214","9","doing"),
("2906","214","11","doing"),
("2907","214","15","doing"),
("2908","214","19","doing"),
("2909","214","20","doing"),
("2917","215","1","doing"),
("2922","215","3","doing"),
("2923","215","4","doing"),
("2928","215","5","doing"),
("2924","215","6","doing"),
("2925","215","7","doing"),
("2926","215","8","doing"),
("2927","215","9","doing"),
("2918","215","11","doing"),
("2919","215","15","doing"),
("2920","215","19","doing"),
("2921","215","20","doing");




