

--
-- Database: `zeonglob_zap_elmot_sec_abuja`
--




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,
  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 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","JSS1","1","junior","50","0.00"),
("2","JSS2","2","junior","50","0.00"),
("3","JSS3","3","junior","50","0.00"),
("4","SSS1","4","senior","50","0.00"),
("5","SSS2","5","senior","50","0.00"),
("6","SSS3","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=7 DEFAULT CHARSET=latin1;


INSERT INTO class_subclass VALUES
("1","1","0"),
("2","2","0"),
("3","3","0"),
("4","4","0"),
("5","5","0"),
("6","6","0");




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=14 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","1st 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","1st Term"),
("3","3","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","1st Term"),
("4","4","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","1st Term"),
("5","5","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","1st Term"),
("6","6","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","1st Term"),
("7","7","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","1st Term"),
("8","8","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","1st Term"),
("9","9","3","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","1st Term"),
("10","10","3","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","1st Term"),
("11","11","3","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","1st Term"),
("12","12","3","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","1st Term"),
("13","13","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","1st 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=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","2021-04-27","2021-04-28","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 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 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=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","not_generated","skipped","2020/2021","1st Term"),
("4","4","SSS1","not_generated","skipped","2020/2021","1st Term"),
("5","5","SSS2","not_generated","skipped","2020/2021","1st Term"),
("6","6","SSS3","not_generated","skipped","2020/2021","1st Term"),
("7","1","JSS1","generated","not_skipped","2020/2021","1st Term"),
("8","2","JSS2","generated","not_skipped","2020/2021","1st Term"),
("9","3","JSS3","not_generated","skipped","2020/2021","1st Term"),
("10","4","SSS1","not_generated","skipped","2020/2021","1st Term"),
("11","5","SSS2","not_generated","skipped","2020/2021","1st Term"),
("12","6","SSS3","not_generated","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 AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;


INSERT INTO result_class_score VALUES
("1","1","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","1st Term"),
("2","1","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","2nd Term"),
("3","1","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","3rd Term"),
("4","2","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","1st Term"),
("5","2","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","2nd Term"),
("6","2","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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=19 DEFAULT CHARSET=latin1;


INSERT INTO result_class_term VALUES
("1","1","1st Term"),
("2","1","2nd Term"),
("3","1","3rd Term"),
("4","2","1st Term"),
("5","2","2nd Term"),
("6","2","3rd Term"),
("8","3","2nd Term"),
("9","3","3rd Term"),
("11","4","2nd Term"),
("12","4","3rd Term"),
("14","5","2nd Term"),
("15","5","3rd Term"),
("17","6","2nd 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 AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;


INSERT INTO result_main VALUES
("1","1","1","JSS1","junior","0","","1365","0","1700","0","80.29","","3rd","","3rd","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("2","2","1","JSS1","junior","0","","1109","0","1700","0","65.24","","6th","","6th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","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","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("3","3","1","JSS1","junior","0","","1504","0","1700","0","88.47","","1st","","1st","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("4","4","1","JSS1","junior","0","","1181","0","1700","0","69.47","","5th","","5th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","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","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("5","5","1","JSS1","junior","0","","1470","0","1700","0","86.47","","2nd","","2nd","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("6","6","1","JSS1","junior","0","","1100","0","1700","0","64.71","","7th","","7th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("7","7","1","JSS1","junior","0","","1283","0","1700","0","75.47","","4th","","4th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","YOU HAVE RANKED  YOURSELF AMONG THE ACADEMIC GLADIATORS, WELL DONE!  KEEP IT UP. THERE ARE MORE GROUNDS TO CONQUER.","","VERY GOOD PERFORMANCE","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("8","8","2","JSS2","junior","0","","975","0","1700","0","57.35","","2nd","","2nd","","","","2","2","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","WELL DONE! YOU ARE ABOUT TO FLY, WITH MORE HARD WORK YOU CAN SCALE HIGHER WITH FLYING COLOURS.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("9","13","2","JSS2","junior","0","","1021","0","1700","0","60.06","","1st","","1st","","","","2","2","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term");




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=35 DEFAULT CHARSET=latin1;


INSERT INTO result_page VALUES
("1","1","1","0","JSS1","","ENGLISH LANGUAGE","submit","7","0","2020/2021","1st Term"),
("2","2","1","0","JSS1","","MATHEMATICS","submit","7","0","2020/2021","1st Term"),
("3","3","1","0","JSS1","","BASIC SCIENCE","submit","7","0","2020/2021","1st Term"),
("4","4","1","0","JSS1","","BASIC TECHNOLOGY","submit","7","0","2020/2021","1st Term"),
("5","5","1","0","JSS1","","COMPUTER STUDIES","submit","7","0","2020/2021","1st Term"),
("6","6","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","submit","7","0","2020/2021","1st Term"),
("7","7","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","submit","7","0","2020/2021","1st Term"),
("8","8","1","0","JSS1","","SOCIAL STUDIES","submit","7","0","2020/2021","1st Term"),
("9","9","1","0","JSS1","","SECURITY EDUCATION","submit","7","0","2020/2021","1st Term"),
("10","10","1","0","JSS1","","CIVIC EDUCATION","submit","7","0","2020/2021","1st Term"),
("11","11","1","0","JSS1","","AGRICULTURAL SCIENCE","submit","7","0","2020/2021","1st Term"),
("12","12","1","0","JSS1","","HAUSA","submit","7","0","2020/2021","1st Term"),
("13","13","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","submit","7","0","2020/2021","1st Term"),
("14","14","1","0","JSS1","","FRENCH","submit","7","0","2020/2021","1st Term"),
("15","15","1","0","JSS1","","HOME ECONOMICS","submit","7","0","2020/2021","1st Term"),
("16","16","1","0","JSS1","","BUSINESS STUDIES","submit","7","0","2020/2021","1st Term"),
("17","17","1","0","JSS1","","MUSIC","submit","7","0","2020/2021","1st Term"),
("18","7","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","submit","2","0","2020/2021","1st Term"),
("19","3","2","0","JSS2","","BASIC SCIENCE","submit","2","0","2020/2021","1st Term"),
("20","2","2","0","JSS2","","MATHEMATICS","submit","2","0","2020/2021","1st Term"),
("21","12","2","0","JSS2","","HAUSA","submit","2","0","2020/2021","1st Term"),
("22","10","2","0","JSS2","","CIVIC EDUCATION","submit","2","0","2020/2021","1st Term"),
("23","1","2","0","JSS2","","ENGLISH LANGUAGE","submit","2","0","2020/2021","1st Term"),
("24","11","2","0","JSS2","","AGRICULTURAL SCIENCE","submit","2","0","2020/2021","1st Term"),
("25","15","2","0","JSS2","","HOME ECONOMICS","submit","2","0","2020/2021","1st Term"),
("26","8","2","0","JSS2","","SOCIAL STUDIES","submit","2","0","2020/2021","1st Term"),
("27","16","2","0","JSS2","","BUSINESS STUDIES","submit","2","0","2020/2021","1st Term"),
("28","6","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","submit","2","0","2020/2021","1st Term"),
("29","13","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","submit","2","0","2020/2021","1st Term"),
("30","14","2","0","JSS2","","FRENCH","submit","2","0","2020/2021","1st Term"),
("31","17","2","0","JSS2","","MUSIC","submit","2","0","2020/2021","1st Term"),
("32","4","2","0","JSS2","","BASIC TECHNOLOGY","submit","2","0","2020/2021","1st Term"),
("33","9","2","0","JSS2","","SECURITY EDUCATION","submit","2","0","2020/2021","1st Term"),
("34","5","2","0","JSS2","","COMPUTER STUDIES","submit","2","0","2020/2021","1st 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=154 DEFAULT CHARSET=latin1;


INSERT INTO result_subject VALUES
("1","1","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","81","81","81","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("2","2","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","67","67","67","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("3","3","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","87","87","87","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("4","4","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","63","63","63","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("5","5","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","89","89","89","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("6","6","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","64","64","64","0","","","6th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("7","7","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","74","74","74","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("8","3","1","0","JSS1","","MATHEMATICS","2","","","","","","","","89","89","89","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("9","5","1","0","JSS1","","MATHEMATICS","2","","","","","","","","81","81","81","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("10","1","1","0","JSS1","","MATHEMATICS","2","","","","","","","","74","74","74","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("11","7","1","0","JSS1","","MATHEMATICS","2","","","","","","","","64","64","64","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("12","4","1","0","JSS1","","MATHEMATICS","2","","","","","","","","59","59","59","0","","","5th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("13","2","1","0","JSS1","","MATHEMATICS","2","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("14","6","1","0","JSS1","","MATHEMATICS","2","","","","","","","","51","51","51","0","","","7th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("15","3","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("16","5","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","93","93","93","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("17","1","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","84","84","84","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("18","7","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","83","83","83","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("19","4","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","80","80","80","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("20","2","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","64","64","64","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("21","6","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","66","66","66","0","","","6th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("22","3","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","91","91","91","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("23","5","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","93","93","93","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("24","1","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","85","85","85","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("25","7","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","67","67","67","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("26","4","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","72","72","72","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("27","2","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","54","54","54","0","","","7th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("28","6","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("29","3","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","81","81","81","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("30","5","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","79","79","79","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("31","1","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","81","81","81","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("32","7","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","77","77","77","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("33","4","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","83","83","83","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("34","2","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","71","71","71","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("35","6","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","72","72","72","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("36","3","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","88","88","88","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("37","5","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","78","78","78","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("38","1","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","76","76","76","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("39","7","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","84","84","84","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("40","4","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("41","2","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("42","6","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","68","68","68","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("43","3","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","96","96","96","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("44","5","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","98","98","98","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("45","1","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","66","66","66","0","","","6th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("46","7","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","78","78","78","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("47","4","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","83","83","83","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("48","2","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","60","60","60","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("49","6","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","67","67","67","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("50","3","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","73","73","73","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("51","5","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","79","79","79","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("52","1","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","72","72","72","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("53","7","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","73","73","73","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("54","4","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","55","55","55","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("55","2","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","61","61","61","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("56","6","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","55","55","55","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("57","3","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("58","5","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","93","93","93","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("59","1","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","87","87","87","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("60","7","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","84","84","84","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("61","4","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","80","80","80","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("62","2","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","73","73","73","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("63","6","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","74","74","74","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("64","3","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","74","74","74","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("65","5","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","78","78","78","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("66","1","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","78","78","78","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("67","7","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","67","67","67","0","","","4th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("68","4","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("69","2","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","56","56","56","0","","","7th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("70","6","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","57","57","57","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("71","3","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("72","5","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","90","90","90","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("73","1","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","77","77","77","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("74","7","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","83","83","83","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("75","4","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","60","60","60","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("76","2","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("77","6","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","54","54","54","0","","","7th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("78","3","1","0","JSS1","","HAUSA","12","","","","","","","","89","89","89","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("79","5","1","0","JSS1","","HAUSA","12","","","","","","","","90","90","90","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("80","1","1","0","JSS1","","HAUSA","12","","","","","","","","84","84","84","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("81","7","1","0","JSS1","","HAUSA","12","","","","","","","","83","83","83","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("82","4","1","0","JSS1","","HAUSA","12","","","","","","","","72","72","72","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("83","2","1","0","JSS1","","HAUSA","12","","","","","","","","77","77","77","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("84","6","1","0","JSS1","","HAUSA","12","","","","","","","","88","88","88","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("85","3","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("86","5","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","88","88","88","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("87","1","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","93","93","93","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("88","7","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","71","71","71","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("89","4","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","73","73","73","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("90","2","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","85","85","85","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("91","6","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","71","71","71","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("92","3","1","0","JSS1","","FRENCH","14","","","","","","","","79","79","79","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("93","5","1","0","JSS1","","FRENCH","14","","","","","","","","72","72","72","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("94","1","1","0","JSS1","","FRENCH","14","","","","","","","","63","63","63","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("95","7","1","0","JSS1","","FRENCH","14","","","","","","","","60","60","60","0","","","6th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("96","4","1","0","JSS1","","FRENCH","14","","","","","","","","72","72","72","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("97","2","1","0","JSS1","","FRENCH","14","","","","","","","","58","58","58","0","","","7th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("98","6","1","0","JSS1","","FRENCH","14","","","","","","","","63","63","63","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("99","3","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","86","86","86","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("100","5","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","83","83","83","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term");
INSERT INTO result_subject VALUES
("101","1","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","81","81","81","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("102","7","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","63","63","63","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("103","4","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","60","60","60","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("104","2","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("105","6","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("106","3","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","91","91","91","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("107","5","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","87","87","87","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("108","1","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","88","88","88","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("109","7","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","76","76","76","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("110","4","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("111","2","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("112","6","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","47","47","47","0","","","7th","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("113","3","1","0","JSS1","","MUSIC","17","","","","","","","","100","100","100","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("114","5","1","0","JSS1","","MUSIC","17","","","","","","","","99","99","99","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("115","1","1","0","JSS1","","MUSIC","17","","","","","","","","95","95","95","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("116","7","1","0","JSS1","","MUSIC","17","","","","","","","","96","96","96","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("117","4","1","0","JSS1","","MUSIC","17","","","","","","","","95","95","95","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("118","2","1","0","JSS1","","MUSIC","17","","","","","","","","91","91","91","0","","","6th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("119","6","1","0","JSS1","","MUSIC","17","","","","","","","","85","85","85","0","","","7th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("120","8","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","61","61","61","0","","","2nd","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("121","13","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","79","79","79","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("122","8","2","0","JSS2","","BASIC SCIENCE","3","","","","","","","","54","54","54","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("123","13","2","0","JSS2","","BASIC SCIENCE","3","","","","","","","","54","54","54","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("124","8","2","0","JSS2","","MATHEMATICS","2","","","","","","","","43","43","43","0","","","2nd","E8","VERY POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("125","13","2","0","JSS2","","MATHEMATICS","2","","","","","","","","45","45","45","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("126","8","2","0","JSS2","","HAUSA","12","","","","","","","","76","76","76","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("127","13","2","0","JSS2","","HAUSA","12","","","","","","","","77","77","77","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("128","8","2","0","JSS2","","CIVIC EDUCATION","10","","","","","","","","60","60","60","0","","","1st","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("129","13","2","0","JSS2","","CIVIC EDUCATION","10","","","","","","","","59","59","59","0","","","2nd","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("130","8","2","0","JSS2","","ENGLISH LANGUAGE","1","","","","","","","","37","37","37","0","","","2nd","F9","FAIL","ZEON GLOBAL","FAIR, YOU CAN DO BETTER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("131","13","2","0","JSS2","","ENGLISH LANGUAGE","1","","","","","","","","43","43","43","0","","","1st","E8","VERY POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("132","8","2","0","JSS2","","AGRICULTURAL SCIENCE","11","","","","","","","","50","50","50","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("133","13","2","0","JSS2","","AGRICULTURAL SCIENCE","11","","","","","","","","59","59","59","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("134","8","2","0","JSS2","","HOME ECONOMICS","15","","","","","","","","42","42","42","0","","","2nd","E8","VERY POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("135","13","2","0","JSS2","","HOME ECONOMICS","15","","","","","","","","47","47","47","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("136","8","2","0","JSS2","","SOCIAL STUDIES","8","","","","","","","","55","55","55","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("137","13","2","0","JSS2","","SOCIAL STUDIES","8","","","","","","","","45","45","45","0","","","2nd","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("138","8","2","0","JSS2","","BUSINESS STUDIES","16","","","","","","","","51","51","51","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("139","13","2","0","JSS2","","BUSINESS STUDIES","16","","","","","","","","68","68","68","0","","","1st","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("140","8","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","75","75","75","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("141","13","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","74","74","74","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("142","8","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","60","60","60","0","","","1st","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("143","13","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","57","57","57","0","","","2nd","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("144","8","2","0","JSS2","","FRENCH","14","","","","","","","","46","46","46","0","","","2nd","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("145","13","2","0","JSS2","","FRENCH","14","","","","","","","","49","49","49","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("146","8","2","0","JSS2","","MUSIC","17","","","","","","","","80","80","80","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("147","13","2","0","JSS2","","MUSIC","17","","","","","","","","90","90","90","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("148","8","2","0","JSS2","","BASIC TECHNOLOGY","4","","","","","","","","72","72","72","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("149","13","2","0","JSS2","","BASIC TECHNOLOGY","4","","","","","","","","67","67","67","0","","","2nd","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("150","8","2","0","JSS2","","SECURITY EDUCATION","9","","","","","","","","56","56","56","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("151","13","2","0","JSS2","","SECURITY EDUCATION","9","","","","","","","","54","54","54","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("152","8","2","0","JSS2","","COMPUTER STUDIES","5","","","","","","","","57","57","57","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("153","13","2","0","JSS2","","COMPUTER STUDIES","5","","","","","","","","54","54","54","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st 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=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","ELMOT INTERNATIONAL SCHOOL"),
("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","1ST AVENUE, 1(K) CRESCENT, SECTOR F FHA-LUGBE, ABUJA"),
("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 AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;


INSERT INTO staff VALUES
("1","170","1170d1771bf8","T/20/0001","$2y$10$NClaL3qiMzrmjBBi6ORDJOX8IfphSDkr3MyiT8xxJsaE.GPwsrYSa","onglobal","onglobal","GLOBAL","","ZEON","male","academic","both","","","NIL","2021-04-24","2340890009098","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","1st 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=2 DEFAULT CHARSET=latin1;


INSERT INTO staff_salary VALUES
("1","1","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=36 DEFAULT CHARSET=latin1;


INSERT INTO staff_subject VALUES
("1","1","1","1"),
("18","1","1","2"),
("35","1","1","3"),
("10","1","2","1"),
("27","1","2","2"),
("11","1","3","1"),
("28","1","3","2"),
("12","1","4","1"),
("29","1","4","2"),
("13","1","5","1"),
("30","1","5","2"),
("14","1","6","1"),
("31","1","6","2"),
("15","1","7","1"),
("32","1","7","2"),
("16","1","8","1"),
("33","1","8","2"),
("17","1","9","1"),
("34","1","9","2"),
("2","1","10","1"),
("19","1","10","2"),
("3","1","11","1"),
("20","1","11","2"),
("4","1","12","1"),
("21","1","12","2"),
("5","1","13","1"),
("22","1","13","2"),
("6","1","14","1"),
("23","1","14","2"),
("7","1","15","1"),
("24","1","15","2"),
("8","1","16","1"),
("25","1","16","2"),
("9","1","17","1"),
("26","1","17","2");




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=36 DEFAULT CHARSET=latin1;


INSERT INTO staff_subject_subclass VALUES
("1","1","1","1","0"),
("18","1","1","2","0"),
("35","1","1","3","0"),
("10","1","2","1","0"),
("27","1","2","2","0"),
("11","1","3","1","0"),
("28","1","3","2","0"),
("12","1","4","1","0"),
("29","1","4","2","0"),
("13","1","5","1","0"),
("30","1","5","2","0"),
("14","1","6","1","0"),
("31","1","6","2","0"),
("15","1","7","1","0"),
("32","1","7","2","0"),
("16","1","8","1","0"),
("33","1","8","2","0"),
("17","1","9","1","0"),
("34","1","9","2","0"),
("2","1","10","1","0"),
("19","1","10","2","0"),
("3","1","11","1","0"),
("20","1","11","2","0"),
("4","1","12","1","0"),
("21","1","12","2","0"),
("5","1","13","1","0"),
("22","1","13","2","0"),
("6","1","14","1","0"),
("23","1","14","2","0"),
("7","1","15","1","0"),
("24","1","15","2","0"),
("8","1","16","1","0"),
("25","1","16","2","0"),
("9","1","17","1","0"),
("26","1","17","2","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=158 DEFAULT CHARSET=latin1;


INSERT INTO student_subject VALUES
("1","1","1","doing"),
("10","1","2","doing"),
("11","1","3","doing"),
("12","1","4","doing"),
("13","1","5","doing"),
("14","1","6","doing"),
("15","1","7","doing"),
("16","1","8","doing"),
("17","1","9","doing"),
("2","1","10","doing"),
("3","1","11","doing"),
("4","1","12","doing"),
("5","1","13","doing"),
("6","1","14","doing"),
("7","1","15","doing"),
("8","1","16","doing"),
("9","1","17","doing"),
("18","2","1","doing"),
("27","2","2","doing"),
("28","2","3","doing"),
("29","2","4","doing"),
("30","2","5","doing"),
("31","2","6","doing"),
("32","2","7","doing"),
("33","2","8","doing"),
("34","2","9","doing"),
("19","2","10","doing"),
("20","2","11","doing"),
("21","2","12","doing"),
("22","2","13","doing"),
("23","2","14","doing"),
("24","2","15","doing"),
("25","2","16","doing"),
("26","2","17","doing"),
("35","3","1","doing"),
("44","3","2","doing"),
("45","3","3","doing"),
("46","3","4","doing"),
("47","3","5","doing"),
("48","3","6","doing"),
("49","3","7","doing"),
("50","3","8","doing"),
("51","3","9","doing"),
("36","3","10","doing"),
("37","3","11","doing"),
("38","3","12","doing"),
("39","3","13","doing"),
("40","3","14","doing"),
("41","3","15","doing"),
("42","3","16","doing"),
("43","3","17","doing"),
("52","4","1","doing"),
("61","4","2","doing"),
("62","4","3","doing"),
("63","4","4","doing"),
("64","4","5","doing"),
("65","4","6","doing"),
("66","4","7","doing"),
("67","4","8","doing"),
("68","4","9","doing"),
("53","4","10","doing"),
("54","4","11","doing"),
("55","4","12","doing"),
("56","4","13","doing"),
("57","4","14","doing"),
("58","4","15","doing"),
("59","4","16","doing"),
("60","4","17","doing"),
("69","5","1","doing"),
("78","5","2","doing"),
("79","5","3","doing"),
("80","5","4","doing"),
("81","5","5","doing"),
("82","5","6","doing"),
("83","5","7","doing"),
("84","5","8","doing"),
("85","5","9","doing"),
("70","5","10","doing"),
("71","5","11","doing"),
("72","5","12","doing"),
("73","5","13","doing"),
("74","5","14","doing"),
("75","5","15","doing"),
("76","5","16","doing"),
("77","5","17","doing"),
("86","6","1","doing"),
("95","6","2","doing"),
("96","6","3","doing"),
("97","6","4","doing"),
("98","6","5","doing"),
("99","6","6","doing"),
("100","6","7","doing"),
("101","6","8","doing"),
("102","6","9","doing"),
("87","6","10","doing"),
("88","6","11","doing"),
("89","6","12","doing"),
("90","6","13","doing"),
("91","6","14","doing"),
("92","6","15","doing");
INSERT INTO student_subject VALUES
("93","6","16","doing"),
("94","6","17","doing"),
("103","7","1","doing"),
("112","7","2","doing"),
("113","7","3","doing"),
("114","7","4","doing"),
("115","7","5","doing"),
("116","7","6","doing"),
("117","7","7","doing"),
("118","7","8","doing"),
("119","7","9","doing"),
("104","7","10","doing"),
("105","7","11","doing"),
("106","7","12","doing"),
("107","7","13","doing"),
("108","7","14","doing"),
("109","7","15","doing"),
("110","7","16","doing"),
("111","7","17","doing"),
("120","8","1","doing"),
("129","8","2","doing"),
("130","8","3","doing"),
("131","8","4","doing"),
("132","8","5","doing"),
("133","8","6","doing"),
("134","8","7","doing"),
("135","8","8","doing"),
("136","8","9","doing"),
("121","8","10","doing"),
("122","8","11","doing"),
("123","8","12","doing"),
("124","8","13","doing"),
("125","8","14","doing"),
("126","8","15","doing"),
("127","8","16","doing"),
("128","8","17","doing"),
("137","9","1","doing"),
("138","10","1","doing"),
("139","11","1","doing"),
("140","12","1","doing"),
("141","13","1","doing"),
("150","13","2","doing"),
("151","13","3","doing"),
("152","13","4","doing"),
("153","13","5","doing"),
("154","13","6","doing"),
("155","13","7","doing"),
("156","13","8","doing"),
("157","13","9","doing"),
("142","13","10","doing"),
("143","13","11","doing"),
("144","13","12","doing"),
("145","13","13","doing"),
("146","13","14","doing"),
("147","13","15","doing"),
("148","13","16","doing"),
("149","13","17","doing");




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 AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;


INSERT INTO students VALUES
("1","117034e81639","170","30","1","0","0","0","0","","DOLAPO","TEMITAYO","C-ADEBAYO","S/20/0001","$2y$10$p3BuzZECnS3X3532sHYPV.enOrdgh7wWW7X9hAsNs8hdvL8CFJyQ2","yodolapo","yodolapo","","2010-11-15","female","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:33:56"),
("2","2170df7fcb00","170","31","1","0","0","0","0","","WALIU","","F-AWWAL","S/20/0002","$2y$10$Ot6I7lnrVhDy8b7c8iwQi.lizokwR9RSCRwPUk8MVGfE9GijDK8qS","alwaliu","alwaliu","","2012-03-02","male","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:34:35"),
("3","31705fab020c","170","32","1","0","0","0","0","","SHEKWANUGAZA","GIAN","A-GIDEON","S/20/0003","$2y$10$N7cu932DFPHUdM9C0dd.Z.8/XWf.fk/gVTK7PRjyjb0HSSPHlB672","anshekwanugaza","anshekwanugaza","","2010-05-09","male","Islam","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:35:26"),
("4","4170a58d40c8","170","33","1","0","0","0","0","","ATTE","SEYI","E-MOSES","S/20/0004","$2y$10$D7zhKaSuBBFCgQi6TxlR/eF64w2sWkOwZQXZZq5jE7cqUFvORRlCi","esatte","esatte","","2010-10-09","male","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:36:20"),
("5","5170f18dcb39","170","19","1","0","0","0","0","","GODSCHILD","","B-OBI","S/20/0005","$2y$10$eBH5q1uMTeKKYS6b921bKOVlzAiM3kIkh8lLbl34Do4wrkQM2wJBO","bigodschild","bigodschild","","2010-07-17","male","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:36:59"),
("6","617042eeba4d","170","34","1","0","0","0","0","","JIMOH","LAWAL","G-RAHEESUDEEN","S/20/0006","$2y$10$fCsqp95tQ9yPDBTsKZ1GjO0vBKrEk11s6zfviMTvOeogS/vt0lbyS","enjimoh","enjimoh","","2011-01-31","male","Islam","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:37:47"),
("7","7170c82d92b9","170","16","1","0","0","0","0","","MAHABUBULAHI","","D-YUSUF","S/20/0007","$2y$10$jTRbN2nmU4SvMYv.nSmwee7YSffpZ6yhwdB2yCa51zodVWAcXhr3q","ufmahabubulahi","ufmahabubulahi","","2010-06-23","male","Islam","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:38:26"),
("8","817040f92d67","170","36","2","0","0","0","0","","ISMAIL","U","AMIR","S/20/0008","$2y$10$kly6UVdKdKsudlYjAWMSEelkD12nn6Ka.gh9TRDh.Q3vMtk3xb1Ya","irismail","irismail","","2008-03-26","male","Islam","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:51:15"),
("9","9170219cbeb7","170","30","3","0","0","0","0","","OKIKIOLA","IBRAHEEM","A-ADEBAYO","S/20/0009","$2y$10$jA0V/5ObNZVKzQWyKxYZpeE54v83omtSJQgROKQbgUG0SSVYNA//O","yookikiola","yookikiola","","2009-02-15","male","Islam","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:55:57"),
("10","10170cfae7764","170","5","3","0","0","0","0","","EUREKA","M","B-CHUKWUKA","S/20/0010","$2y$10$VTx1hcwRdPyjh4JznBsFoOdnQldYUPhiP49ltlLFC9c8NvkR6.Jc.","kaeureka","kaeureka","","2008-04-22","male","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:57:18"),
("11","1117005a38e1e","170","36","3","0","0","0","0","","USMAN","AMIRA","ISMAIL","S/20/0011","$2y$10$bBy.N4zDJrJNWLt4MCiotO1FsIasg4fYGqjnad1/u.QRcnqPpA/tm","ilusman","ilusman","","2008-03-26","female","Islam","","","","","","","","","PARENT","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:59:24"),
("12","12170988d99ad","170","37","3","0","0","0","0","","JOHN","ZOE","OCHOGWU","S/20/0012","$2y$10$/F0/2xUGsKAenUQhBeK3YuSpLEJRYDnUDI7ErLMD9JtxcW2SPkIdO","wujohn","wujohn","","2008-07-29","male","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 15:00:26"),
("13","131703f552c10","170","0","2","0","0","0","0","","PIUS","","CHARITY","S/20/0013","$2y$10$CGwtPf2l/M3N/cedXhFrlOnS7K6GdNvcDfrkqsv1m8pokfO.TW/RK","typius","typius","","2021-04-24","female","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 15:21:33");




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 AUTO_INCREMENT=36 DEFAULT CHARSET=latin1;


INSERT INTO subject_class VALUES
("1","1","1"),
("2","10","1"),
("3","11","1"),
("4","12","1"),
("5","13","1"),
("6","14","1"),
("7","15","1"),
("8","16","1"),
("9","17","1"),
("10","2","1"),
("11","3","1"),
("12","4","1"),
("13","5","1"),
("14","6","1"),
("15","7","1"),
("16","8","1"),
("17","9","1"),
("18","1","2"),
("19","10","2"),
("20","11","2"),
("21","12","2"),
("22","13","2"),
("23","14","2"),
("24","15","2"),
("25","16","2"),
("26","17","2"),
("27","2","2"),
("28","3","2"),
("29","4","2"),
("30","5","2"),
("31","6","2"),
("32","7","2"),
("33","8","2"),
("34","9","2"),
("35","1","3");




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 AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;


INSERT INTO subjects VALUES
("1","ENGLISH LANGUAGE","ENGLISH LANG.","junior"),
("2","MATHEMATICS","MATHS","junior"),
("3","BASIC SCIENCE","BASIC SCI.","junior"),
("4","BASIC TECHNOLOGY","BASIC TECH.","junior"),
("5","COMPUTER STUDIES","COMPUTER STUD.","junior"),
("6","PHYSICAL AND HEALTH EDUCATION","P.H.E","junior"),
("7","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","C.R.S/I.R.S","junior"),
("8","SOCIAL STUDIES","SOCIAL STUD.","junior"),
("9","SECURITY EDUCATION ","SECURITY EDU.","junior"),
("10","CIVIC EDUCATION ","CIVIC EDU.","junior"),
("11","AGRICULTURAL SCIENCE ","AGRIC SCI.","junior"),
("12","HAUSA","HAUSA","junior"),
("13","CULTURAL AND CREATIVE ARTS","C.C.A","junior"),
("14","FRENCH","FRENCH","junior"),
("15","HOME ECONOMICS","HOME ECONS.","junior"),
("16","BUSINESS STUDIES","BUS. STUDIES","junior"),
("17","MUSIC ","MUSIC","junior");




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_elmot_sec_abuja`
--




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,
  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 AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;


INSERT INTO backup_class VALUES
("1","1","JSS1","1","junior","50","0.00","2020/2021","1st Term"),
("2","2","JSS2","2","junior","50","0.00","2020/2021","1st Term"),
("3","3","JSS3","3","junior","50","0.00","2020/2021","1st Term"),
("4","4","SSS1","4","senior","50","0.00","2020/2021","1st Term"),
("5","5","SSS2","5","senior","50","0.00","2020/2021","1st Term"),
("6","6","SSS3","6","senior","50","0.00","2020/2021","1st Term");




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 AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;


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




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","JSS1","1","junior","50","0.00"),
("2","JSS2","2","junior","50","0.00"),
("3","JSS3","3","junior","50","0.00"),
("4","SSS1","4","senior","50","0.00"),
("5","SSS2","5","senior","50","0.00"),
("6","SSS3","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=7 DEFAULT CHARSET=latin1;


INSERT INTO class_subclass VALUES
("1","1","0"),
("2","2","0"),
("3","3","0"),
("4","4","0"),
("5","5","0"),
("6","6","0");




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=17 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","1st 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","1st Term"),
("3","3","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","1st Term"),
("4","4","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","1st Term"),
("5","5","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","1st Term"),
("6","6","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","1st Term"),
("7","7","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","1st Term"),
("8","8","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","1st Term"),
("9","9","3","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","1st Term"),
("10","10","3","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","1st Term"),
("11","11","3","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","1st Term"),
("12","12","3","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","1st Term"),
("13","13","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","1st Term"),
("14","14","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"),
("15","15","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"),
("16","13","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");




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","13","13","10","3","0","0","0","1","1","0","0","0","0","no","no","no","no","generated","published","2021-04-27","2021-04-28","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","2021-04-27","2021-04-30","not_ready","2020/2021","2nd Term","2021-04-26 12:52:46","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 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 Elmot International School 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><p style=\"text-align: justify;\">JSS1: <strong>A-GIDEON SHEKWANUGAZA GIAN</strong></p>
\n						<p style=\"text-align: justify;\">&nbsp;</p><p style=\"text-align: justify;\">JSS2: <strong>CHARITY PIUS </strong></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-04-26 12:52:34");




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=20 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","skipped","2020/2021","1st Term"),
("4","4","SSS1","generated","skipped","2020/2021","1st Term"),
("5","5","SSS2","generated","skipped","2020/2021","1st Term"),
("6","6","SSS3","generated","skipped","2020/2021","1st Term"),
("7","1","JSS1","generated","not_skipped","2020/2021","1st Term"),
("8","2","JSS2","generated","not_skipped","2020/2021","1st Term"),
("9","3","JSS3","generated","skipped","2020/2021","1st Term"),
("10","4","SSS1","generated","skipped","2020/2021","1st Term"),
("11","5","SSS2","generated","skipped","2020/2021","1st Term"),
("12","6","SSS3","generated","skipped","2020/2021","1st Term"),
("13","1","JSS1","generated","not_skipped","2020/2021","2nd Term"),
("14","2","JSS2","generated","not_skipped","2020/2021","2nd Term"),
("15","3","JSS3","not_generated","skipped","2020/2021","2nd Term"),
("16","4","SSS1","not_generated","skipped","2020/2021","2nd Term"),
("17","5","SSS2","not_generated","skipped","2020/2021","2nd Term"),
("18","6","SSS3","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","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","1st Term"),
("2","1","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","2nd Term"),
("3","1","1","40","0","0","0","0","0","0","0","CA","CA 2","CA 3","CA 4","CA 5","CA 6","Exam","3rd Term"),
("4","2","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","1st Term"),
("5","2","0","0","0","0","0","0","0","100","100","CA","CA 2","CA 3","CA 4","CA 5","CA 6","EXAM","2nd Term"),
("6","2","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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","1","40","0","0","0","0","0","0","0","CA","CA 2","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=19 DEFAULT CHARSET=latin1;


INSERT INTO result_class_term VALUES
("1","1","1st Term"),
("2","1","2nd Term"),
("3","1","3rd Term"),
("4","2","1st Term"),
("5","2","2nd Term"),
("6","2","3rd Term"),
("9","3","3rd Term"),
("12","4","3rd Term"),
("15","5","3rd 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 AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;


INSERT INTO result_main VALUES
("1","1","1","JSS1","junior","0","","1365","0","1700","0","80.29","","3rd","","3rd","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("2","2","1","JSS1","junior","0","","1109","0","1700","0","65.24","","6th","","6th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","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","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("3","3","1","JSS1","junior","0","","1504","0","1700","0","88.47","","1st","","1st","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("4","4","1","JSS1","junior","0","","1181","0","1700","0","69.47","","5th","","5th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","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","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("5","5","1","JSS1","junior","0","","1470","0","1700","0","86.47","","2nd","","2nd","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("6","6","1","JSS1","junior","0","","1100","0","1700","0","64.71","","7th","","7th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("7","7","1","JSS1","junior","0","","1283","0","1700","0","75.47","","4th","","4th","","","","7","7","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","YOU HAVE RANKED  YOURSELF AMONG THE ACADEMIC GLADIATORS, WELL DONE!  KEEP IT UP. THERE ARE MORE GROUNDS TO CONQUER.","","VERY GOOD PERFORMANCE","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("8","8","2","JSS2","junior","0","","975","0","1700","0","57.35","","2nd","","2nd","","","","2","2","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","WELL DONE! YOU ARE ABOUT TO FLY, WITH MORE HARD WORK YOU CAN SCALE HIGHER WITH FLYING COLOURS.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("9","13","2","JSS2","junior","0","","1021","0","1700","0","60.06","","1st","","1st","","","","2","2","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","1st Term"),
("10","1","1","JSS1","junior","0","","1388","0","1700","0","81.65","","4th","","4th","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("11","2","1","JSS1","junior","0","","1183","0","1700","0","69.59","","7th","","7th","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","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","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("12","3","1","JSS1","junior","0","","1455","0","1700","0","85.59","","2nd","","2nd","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("13","4","1","JSS1","junior","0","","1207","0","1700","0","71","","6th","","6th","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","YOU HAVE UNLOCKED THE SUCCESS KEY, KEEP IT UP. THE SKY IS YOUR STARTING POINT.","","VERY GOOD PERFORMANCE","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("14","5","1","JSS1","junior","0","","1467","0","1700","0","86.29","","1st","","1st","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","VERY IMPRESSIVE WORK, WONDERFULLY DONE! YOU HAVE MADE A DIFFERENCE, YOU ARE NOW A REFERENCE POINT.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("15","6","1","JSS1","junior","0","","1161","0","1700","0","68.29","","8th","","8th","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","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","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("16","7","1","JSS1","junior","0","","1368","0","1700","0","80.47","","5th","","5th","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("17","14","1","JSS1","junior","0","","1414","0","1700","0","83.18","","3rd","","3rd","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","OUTSTANDING PERFORMANCE. YOU ARE IN A CLASS OF GOAL GETTERS. WELL DONE! KEEP THE SPIRIT UP.","","EXECELLENT RESULT, KEEP IT UP","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("18","15","1","JSS1","junior","0","","1090","0","1700","0","64.12","","9th","","9th","","","","9","9","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term"),
("19","8","2","JSS2","junior","0","","1037","0","1700","0","61","","1st","","1st","","","","1","1","0","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","5","0","HANDWRITING","NEATNESS","PUNCTUALITY","ATTENTIVENESS","INITIATIVE","RESPECT","OBEDIENCE","ATTITUDE","HONESTY","CREATIVITY","","0","","","0","","50","","2021-04-27","0","0","0","0","0","0","0","100","0","EXAM","CA","CA 2","CA 3","CA 4","CA 5","CA 6","","GREAT EFFORT. YOU DESERVE TO BE CELEBRATED, YOU HAVE SHOWN POTENTIALS FOR SUCCESS. YOU CAN DO BETTER.","","GOOD RESULT, PUT IN MORE EFFORT","","","","images/principal_signatures/f31fff.jpg","","0","2020/2021","2nd Term");




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=69 DEFAULT CHARSET=latin1;


INSERT INTO result_page VALUES
("1","1","1","0","JSS1","","ENGLISH LANGUAGE","submit","7","0","2020/2021","1st Term"),
("2","2","1","0","JSS1","","MATHEMATICS","submit","7","0","2020/2021","1st Term"),
("3","3","1","0","JSS1","","BASIC SCIENCE","submit","7","0","2020/2021","1st Term"),
("4","4","1","0","JSS1","","BASIC TECHNOLOGY","submit","7","0","2020/2021","1st Term"),
("5","5","1","0","JSS1","","COMPUTER STUDIES","submit","7","0","2020/2021","1st Term"),
("6","6","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","submit","7","0","2020/2021","1st Term"),
("7","7","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","submit","7","0","2020/2021","1st Term"),
("8","8","1","0","JSS1","","SOCIAL STUDIES","submit","7","0","2020/2021","1st Term"),
("9","9","1","0","JSS1","","SECURITY EDUCATION","submit","7","0","2020/2021","1st Term"),
("10","10","1","0","JSS1","","CIVIC EDUCATION","submit","7","0","2020/2021","1st Term"),
("11","11","1","0","JSS1","","AGRICULTURAL SCIENCE","submit","7","0","2020/2021","1st Term"),
("12","12","1","0","JSS1","","HAUSA","submit","7","0","2020/2021","1st Term"),
("13","13","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","submit","7","0","2020/2021","1st Term"),
("14","14","1","0","JSS1","","FRENCH","submit","7","0","2020/2021","1st Term"),
("15","15","1","0","JSS1","","HOME ECONOMICS","submit","7","0","2020/2021","1st Term"),
("16","16","1","0","JSS1","","BUSINESS STUDIES","submit","7","0","2020/2021","1st Term"),
("17","17","1","0","JSS1","","MUSIC","submit","7","0","2020/2021","1st Term"),
("18","7","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","submit","2","0","2020/2021","1st Term"),
("19","3","2","0","JSS2","","BASIC SCIENCE","submit","2","0","2020/2021","1st Term"),
("20","2","2","0","JSS2","","MATHEMATICS","submit","2","0","2020/2021","1st Term"),
("21","12","2","0","JSS2","","HAUSA","submit","2","0","2020/2021","1st Term"),
("22","10","2","0","JSS2","","CIVIC EDUCATION","submit","2","0","2020/2021","1st Term"),
("23","1","2","0","JSS2","","ENGLISH LANGUAGE","submit","2","0","2020/2021","1st Term"),
("24","11","2","0","JSS2","","AGRICULTURAL SCIENCE","submit","2","0","2020/2021","1st Term"),
("25","15","2","0","JSS2","","HOME ECONOMICS","submit","2","0","2020/2021","1st Term"),
("26","8","2","0","JSS2","","SOCIAL STUDIES","submit","2","0","2020/2021","1st Term"),
("27","16","2","0","JSS2","","BUSINESS STUDIES","submit","2","0","2020/2021","1st Term"),
("28","6","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","submit","2","0","2020/2021","1st Term"),
("29","13","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","submit","2","0","2020/2021","1st Term"),
("30","14","2","0","JSS2","","FRENCH","submit","2","0","2020/2021","1st Term"),
("31","17","2","0","JSS2","","MUSIC","submit","2","0","2020/2021","1st Term"),
("32","4","2","0","JSS2","","BASIC TECHNOLOGY","submit","2","0","2020/2021","1st Term"),
("33","9","2","0","JSS2","","SECURITY EDUCATION","submit","2","0","2020/2021","1st Term"),
("34","5","2","0","JSS2","","COMPUTER STUDIES","submit","2","0","2020/2021","1st Term"),
("35","1","1","0","JSS1","","ENGLISH LANGUAGE","submit","9","0","2020/2021","2nd Term"),
("36","2","1","0","JSS1","","MATHEMATICS","submit","9","0","2020/2021","2nd Term"),
("37","3","1","0","JSS1","","BASIC SCIENCE","submit","9","0","2020/2021","2nd Term"),
("38","4","1","0","JSS1","","BASIC TECHNOLOGY","submit","9","0","2020/2021","2nd Term"),
("39","5","1","0","JSS1","","COMPUTER STUDIES","submit","9","0","2020/2021","2nd Term"),
("40","6","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","submit","9","0","2020/2021","2nd Term"),
("41","7","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","submit","9","0","2020/2021","2nd Term"),
("42","8","1","0","JSS1","","SOCIAL STUDIES","submit","9","0","2020/2021","2nd Term"),
("43","9","1","0","JSS1","","SECURITY EDUCATION","submit","9","0","2020/2021","2nd Term"),
("44","10","1","0","JSS1","","CIVIC EDUCATION","submit","9","0","2020/2021","2nd Term"),
("45","11","1","0","JSS1","","AGRICULTURAL SCIENCE","submit","9","0","2020/2021","2nd Term"),
("46","12","1","0","JSS1","","HAUSA","submit","9","0","2020/2021","2nd Term"),
("47","13","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","submit","9","0","2020/2021","2nd Term"),
("48","14","1","0","JSS1","","FRENCH","submit","9","0","2020/2021","2nd Term"),
("49","15","1","0","JSS1","","HOME ECONOMICS","submit","9","0","2020/2021","2nd Term"),
("50","16","1","0","JSS1","","BUSINESS STUDIES","submit","9","0","2020/2021","2nd Term"),
("51","17","1","0","JSS1","","MUSIC","submit","9","0","2020/2021","2nd Term"),
("52","1","2","0","JSS2","","ENGLISH LANGUAGE","submit","1","0","2020/2021","2nd Term"),
("53","2","2","0","JSS2","","MATHEMATICS","submit","1","0","2020/2021","2nd Term"),
("54","3","2","0","JSS2","","BASIC SCIENCE","submit","1","0","2020/2021","2nd Term"),
("55","4","2","0","JSS2","","BASIC TECHNOLOGY","submit","1","0","2020/2021","2nd Term"),
("56","11","2","0","JSS2","","AGRICULTURAL SCIENCE","submit","1","0","2020/2021","2nd Term"),
("57","10","2","0","JSS2","","CIVIC EDUCATION","submit","1","0","2020/2021","2nd Term"),
("58","6","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","submit","1","0","2020/2021","2nd Term"),
("59","12","2","0","JSS2","","HAUSA","submit","1","0","2020/2021","2nd Term"),
("60","9","2","0","JSS2","","SECURITY EDUCATION","submit","1","0","2020/2021","2nd Term"),
("61","8","2","0","JSS2","","SOCIAL STUDIES","submit","1","0","2020/2021","2nd Term"),
("62","16","2","0","JSS2","","BUSINESS STUDIES","submit","1","0","2020/2021","2nd Term"),
("63","5","2","0","JSS2","","COMPUTER STUDIES","submit","1","0","2020/2021","2nd Term"),
("64","17","2","0","JSS2","","MUSIC","submit","1","0","2020/2021","2nd Term"),
("65","13","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","submit","1","0","2020/2021","2nd Term"),
("66","7","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","submit","1","0","2020/2021","2nd Term"),
("67","15","2","0","JSS2","","HOME ECONOMICS","submit","1","0","2020/2021","2nd Term"),
("68","14","2","0","JSS2","","FRENCH","submit","1","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=324 DEFAULT CHARSET=latin1;


INSERT INTO result_subject VALUES
("1","1","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","81","81","81","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("2","2","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","67","67","67","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("3","3","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","87","87","87","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("4","4","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","63","63","63","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("5","5","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","89","89","89","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("6","6","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","64","64","64","0","","","6th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("7","7","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","74","74","74","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("8","3","1","0","JSS1","","MATHEMATICS","2","","","","","","","","89","89","89","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("9","5","1","0","JSS1","","MATHEMATICS","2","","","","","","","","81","81","81","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("10","1","1","0","JSS1","","MATHEMATICS","2","","","","","","","","74","74","74","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("11","7","1","0","JSS1","","MATHEMATICS","2","","","","","","","","64","64","64","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("12","4","1","0","JSS1","","MATHEMATICS","2","","","","","","","","59","59","59","0","","","5th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("13","2","1","0","JSS1","","MATHEMATICS","2","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("14","6","1","0","JSS1","","MATHEMATICS","2","","","","","","","","51","51","51","0","","","7th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("15","3","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("16","5","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","93","93","93","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("17","1","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","84","84","84","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("18","7","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","83","83","83","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("19","4","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","80","80","80","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("20","2","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","64","64","64","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("21","6","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","66","66","66","0","","","6th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("22","3","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","91","91","91","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("23","5","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","93","93","93","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("24","1","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","85","85","85","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("25","7","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","67","67","67","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("26","4","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","72","72","72","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("27","2","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","54","54","54","0","","","7th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("28","6","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("29","3","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","81","81","81","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("30","5","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","79","79","79","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("31","1","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","81","81","81","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("32","7","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","77","77","77","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("33","4","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","83","83","83","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("34","2","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","71","71","71","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("35","6","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","72","72","72","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("36","3","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","88","88","88","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("37","5","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","78","78","78","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("38","1","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","76","76","76","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("39","7","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","84","84","84","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("40","4","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("41","2","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("42","6","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","68","68","68","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("43","3","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","96","96","96","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("44","5","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","98","98","98","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("45","1","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","66","66","66","0","","","6th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("46","7","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","78","78","78","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("47","4","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","83","83","83","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("48","2","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","60","60","60","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("49","6","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","67","67","67","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("50","3","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","73","73","73","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("51","5","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","79","79","79","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("52","1","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","72","72","72","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("53","7","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","73","73","73","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("54","4","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","55","55","55","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("55","2","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","61","61","61","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("56","6","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","55","55","55","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("57","3","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("58","5","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","93","93","93","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("59","1","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","87","87","87","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("60","7","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","84","84","84","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("61","4","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","80","80","80","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("62","2","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","73","73","73","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("63","6","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","74","74","74","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("64","3","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","74","74","74","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("65","5","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","78","78","78","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("66","1","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","78","78","78","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("67","7","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","67","67","67","0","","","4th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("68","4","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("69","2","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","56","56","56","0","","","7th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("70","6","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","57","57","57","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("71","3","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("72","5","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","90","90","90","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("73","1","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","77","77","77","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("74","7","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","83","83","83","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("75","4","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","60","60","60","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("76","2","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("77","6","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","54","54","54","0","","","7th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("78","3","1","0","JSS1","","HAUSA","12","","","","","","","","89","89","89","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("79","5","1","0","JSS1","","HAUSA","12","","","","","","","","90","90","90","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("80","1","1","0","JSS1","","HAUSA","12","","","","","","","","84","84","84","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("81","7","1","0","JSS1","","HAUSA","12","","","","","","","","83","83","83","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("82","4","1","0","JSS1","","HAUSA","12","","","","","","","","72","72","72","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("83","2","1","0","JSS1","","HAUSA","12","","","","","","","","77","77","77","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("84","6","1","0","JSS1","","HAUSA","12","","","","","","","","88","88","88","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("85","3","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","95","95","95","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("86","5","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","88","88","88","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("87","1","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","93","93","93","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("88","7","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","71","71","71","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("89","4","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","73","73","73","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("90","2","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","85","85","85","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("91","6","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","71","71","71","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("92","3","1","0","JSS1","","FRENCH","14","","","","","","","","79","79","79","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("93","5","1","0","JSS1","","FRENCH","14","","","","","","","","72","72","72","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("94","1","1","0","JSS1","","FRENCH","14","","","","","","","","63","63","63","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("95","7","1","0","JSS1","","FRENCH","14","","","","","","","","60","60","60","0","","","6th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("96","4","1","0","JSS1","","FRENCH","14","","","","","","","","72","72","72","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("97","2","1","0","JSS1","","FRENCH","14","","","","","","","","58","58","58","0","","","7th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("98","6","1","0","JSS1","","FRENCH","14","","","","","","","","63","63","63","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("99","3","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","86","86","86","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("100","5","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","83","83","83","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term");
INSERT INTO result_subject VALUES
("101","1","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","81","81","81","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("102","7","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","63","63","63","0","","","4th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("103","4","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","60","60","60","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("104","2","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("105","6","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("106","3","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","91","91","91","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("107","5","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","87","87","87","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("108","1","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","88","88","88","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("109","7","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","76","76","76","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("110","4","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","56","56","56","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("111","2","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","62","62","62","0","","","5th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("112","6","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","47","47","47","0","","","7th","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("113","3","1","0","JSS1","","MUSIC","17","","","","","","","","100","100","100","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("114","5","1","0","JSS1","","MUSIC","17","","","","","","","","99","99","99","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("115","1","1","0","JSS1","","MUSIC","17","","","","","","","","95","95","95","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("116","7","1","0","JSS1","","MUSIC","17","","","","","","","","96","96","96","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("117","4","1","0","JSS1","","MUSIC","17","","","","","","","","95","95","95","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("118","2","1","0","JSS1","","MUSIC","17","","","","","","","","91","91","91","0","","","6th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("119","6","1","0","JSS1","","MUSIC","17","","","","","","","","85","85","85","0","","","7th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("120","8","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","61","61","61","0","","","2nd","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("121","13","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","79","79","79","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("122","8","2","0","JSS2","","BASIC SCIENCE","3","","","","","","","","54","54","54","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("123","13","2","0","JSS2","","BASIC SCIENCE","3","","","","","","","","54","54","54","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("124","8","2","0","JSS2","","MATHEMATICS","2","","","","","","","","43","43","43","0","","","2nd","E8","VERY POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("125","13","2","0","JSS2","","MATHEMATICS","2","","","","","","","","45","45","45","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("126","8","2","0","JSS2","","HAUSA","12","","","","","","","","76","76","76","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("127","13","2","0","JSS2","","HAUSA","12","","","","","","","","77","77","77","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("128","8","2","0","JSS2","","CIVIC EDUCATION","10","","","","","","","","60","60","60","0","","","1st","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("129","13","2","0","JSS2","","CIVIC EDUCATION","10","","","","","","","","59","59","59","0","","","2nd","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("130","8","2","0","JSS2","","ENGLISH LANGUAGE","1","","","","","","","","37","37","37","0","","","2nd","F9","FAIL","ZEON GLOBAL","FAIR, YOU CAN DO BETTER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("131","13","2","0","JSS2","","ENGLISH LANGUAGE","1","","","","","","","","43","43","43","0","","","1st","E8","VERY POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("132","8","2","0","JSS2","","AGRICULTURAL SCIENCE","11","","","","","","","","50","50","50","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("133","13","2","0","JSS2","","AGRICULTURAL SCIENCE","11","","","","","","","","59","59","59","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("134","8","2","0","JSS2","","HOME ECONOMICS","15","","","","","","","","42","42","42","0","","","2nd","E8","VERY POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("135","13","2","0","JSS2","","HOME ECONOMICS","15","","","","","","","","47","47","47","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("136","8","2","0","JSS2","","SOCIAL STUDIES","8","","","","","","","","55","55","55","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("137","13","2","0","JSS2","","SOCIAL STUDIES","8","","","","","","","","45","45","45","0","","","2nd","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("138","8","2","0","JSS2","","BUSINESS STUDIES","16","","","","","","","","51","51","51","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("139","13","2","0","JSS2","","BUSINESS STUDIES","16","","","","","","","","68","68","68","0","","","1st","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("140","8","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","75","75","75","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("141","13","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","74","74","74","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("142","8","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","60","60","60","0","","","1st","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("143","13","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","57","57","57","0","","","2nd","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("144","8","2","0","JSS2","","FRENCH","14","","","","","","","","46","46","46","0","","","2nd","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("145","13","2","0","JSS2","","FRENCH","14","","","","","","","","49","49","49","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("146","8","2","0","JSS2","","MUSIC","17","","","","","","","","80","80","80","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("147","13","2","0","JSS2","","MUSIC","17","","","","","","","","90","90","90","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("148","8","2","0","JSS2","","BASIC TECHNOLOGY","4","","","","","","","","72","72","72","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("149","13","2","0","JSS2","","BASIC TECHNOLOGY","4","","","","","","","","67","67","67","0","","","2nd","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("150","8","2","0","JSS2","","SECURITY EDUCATION","9","","","","","","","","56","56","56","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("151","13","2","0","JSS2","","SECURITY EDUCATION","9","","","","","","","","54","54","54","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("152","8","2","0","JSS2","","COMPUTER STUDIES","5","","","","","","","","57","57","57","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("153","13","2","0","JSS2","","COMPUTER STUDIES","5","","","","","","","","54","54","54","0","","","2nd","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","1st Term"),
("154","5","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","88","88","88","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("155","3","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","87","87","87","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("156","14","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","78","78","78","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("157","1","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","76","76","76","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("158","7","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","74","74","74","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("159","4","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","61","61","61","0","","","8th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("160","2","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","67","67","67","0","","","6th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("161","6","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","65","65","65","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("162","15","1","0","JSS1","","ENGLISH LANGUAGE","1","","","","","","","","58","58","58","0","","","9th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("163","5","1","0","JSS1","","MATHEMATICS","2","","","","","","","","85","85","85","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("164","3","1","0","JSS1","","MATHEMATICS","2","","","","","","","","83","83","83","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("165","14","1","0","JSS1","","MATHEMATICS","2","","","","","","","","75","75","75","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("166","1","1","0","JSS1","","MATHEMATICS","2","","","","","","","","84","84","84","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("167","7","1","0","JSS1","","MATHEMATICS","2","","","","","","","","70","70","70","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("168","4","1","0","JSS1","","MATHEMATICS","2","","","","","","","","53","53","53","0","","","7th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("169","2","1","0","JSS1","","MATHEMATICS","2","","","","","","","","63","63","63","0","","","6th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("170","6","1","0","JSS1","","MATHEMATICS","2","","","","","","","","51","51","51","0","","","8th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("171","15","1","0","JSS1","","MATHEMATICS","2","","","","","","","","45","45","45","0","","","9th","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("172","5","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","88","88","88","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("173","3","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","96","96","96","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("174","14","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","87","87","87","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("175","1","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","89","89","89","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("176","7","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","85","85","85","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("177","4","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","77","77","77","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("178","2","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","58","58","58","0","","","8th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("179","6","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","68","68","68","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("180","15","1","0","JSS1","","BASIC SCIENCE","3","","","","","","","","50","50","50","0","","","9th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("181","5","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","94","94","94","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("182","3","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","91","91","91","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("183","14","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","90","90","90","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("184","1","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","88","88","88","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("185","7","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","88","88","88","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("186","4","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","83","83","83","0","","","6th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("187","2","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","69","69","69","0","","","9th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("188","6","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","77","77","77","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("189","15","1","0","JSS1","","BASIC TECHNOLOGY","4","","","","","","","","72","72","72","0","","","8th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("190","5","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","88","88","88","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("191","3","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","86","86","86","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("192","14","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","85","85","85","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("193","1","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","78","78","78","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("194","7","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","83","83","83","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("195","4","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","84","84","84","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("196","2","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","79","79","79","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("197","6","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","72","72","72","0","","","9th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("198","15","1","0","JSS1","","COMPUTER STUDIES","5","","","","","","","","74","74","74","0","","","8th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("199","5","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","94","94","94","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("200","3","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","70","70","70","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term");
INSERT INTO result_subject VALUES
("201","14","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","70","70","70","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("202","1","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","70","70","70","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("203","7","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","72","72","72","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("204","4","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","65","65","65","0","","","8th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("205","2","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","66","66","66","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("206","6","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","74","74","74","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("207","15","1","0","JSS1","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","59","59","59","0","","","9th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("208","5","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","92","92","92","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("209","3","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","97","97","97","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("210","14","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","98","98","98","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("211","1","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","67","67","67","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("212","7","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","78","78","78","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("213","4","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","76","76","76","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("214","2","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","63","63","63","0","","","8th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("215","6","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","63","63","63","0","","","8th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("216","15","1","0","JSS1","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","78","78","78","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("217","5","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","79","79","79","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("218","3","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","76","76","76","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("219","14","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","85","85","85","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("220","1","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","72","72","72","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("221","7","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","73","73","73","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("222","4","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","53","53","53","0","","","9th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("223","2","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","59","59","59","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("224","6","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","54","54","54","0","","","8th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("225","15","1","0","JSS1","","SOCIAL STUDIES","8","","","","","","","","59","59","59","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("226","5","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","87","87","87","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("227","3","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","89","89","89","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("228","14","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","80","80","80","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("229","1","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","77","77","77","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("230","7","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","87","87","87","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("231","4","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","77","77","77","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("232","2","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","63","63","63","0","","","8th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("233","6","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","75","75","75","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("234","15","1","0","JSS1","","SECURITY EDUCATION","9","","","","","","","","58","58","58","0","","","9th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("235","5","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","83","83","83","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("236","3","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","66","66","66","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("237","14","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","73","73","73","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("238","1","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","80","80","80","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("239","7","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","70","70","70","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("240","4","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","55","55","55","0","","","8th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("241","2","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","56","56","56","0","","","7th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("242","6","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","55","55","55","0","","","8th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("243","15","1","0","JSS1","","CIVIC EDUCATION","10","","","","","","","","57","57","57","0","","","6th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("244","5","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","96","96","96","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("245","3","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","96","96","96","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("246","14","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","92","92","92","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("247","1","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","95","95","95","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("248","7","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","95","95","95","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("249","4","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","91","91","91","0","","","6th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("250","2","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","87","87","87","0","","","7th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("251","6","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","78","78","78","0","","","8th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("252","15","1","0","JSS1","","AGRICULTURAL SCIENCE","11","","","","","","","","60","60","60","0","","","9th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("253","5","1","0","JSS1","","HAUSA","12","","","","","","","","68","68","68","0","","","5th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("254","3","1","0","JSS1","","HAUSA","12","","","","","","","","71","71","71","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("255","14","1","0","JSS1","","HAUSA","12","","","","","","","","72","72","72","0","","","1st","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("256","1","1","0","JSS1","","HAUSA","12","","","","","","","","67","67","67","0","","","6th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("257","7","1","0","JSS1","","HAUSA","12","","","","","","","","66","66","66","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("258","4","1","0","JSS1","","HAUSA","12","","","","","","","","64","64","64","0","","","9th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("259","2","1","0","JSS1","","HAUSA","12","","","","","","","","70","70","70","0","","","4th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("260","6","1","0","JSS1","","HAUSA","12","","","","","","","","71","71","71","0","","","2nd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("261","15","1","0","JSS1","","HAUSA","12","","","","","","","","66","66","66","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("262","5","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","97","97","97","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("263","3","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","99","99","99","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("264","14","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","94","94","94","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("265","1","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","92","92","92","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("266","7","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","93","93","93","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("267","4","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","83","83","83","0","","","6th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("268","2","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","79","79","79","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("269","6","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","73","73","73","0","","","9th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("270","15","1","0","JSS1","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","78","78","78","0","","","8th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("271","5","1","0","JSS1","","FRENCH","14","","","","","","","","68","68","68","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("272","3","1","0","JSS1","","FRENCH","14","","","","","","","","78","78","78","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("273","14","1","0","JSS1","","FRENCH","14","","","","","","","","81","81","81","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("274","1","1","0","JSS1","","FRENCH","14","","","","","","","","82","82","82","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("275","7","1","0","JSS1","","FRENCH","14","","","","","","","","78","78","78","0","","","3rd","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("276","4","1","0","JSS1","","FRENCH","14","","","","","","","","68","68","68","0","","","7th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("277","2","1","0","JSS1","","FRENCH","14","","","","","","","","72","72","72","0","","","5th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("278","6","1","0","JSS1","","FRENCH","14","","","","","","","","62","62","62","0","","","9th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("279","15","1","0","JSS1","","FRENCH","14","","","","","","","","71","71","71","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("280","5","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","90","90","90","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("281","3","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","85","85","85","0","","","4th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("282","14","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","83","83","83","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("283","1","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","92","92","92","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("284","7","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","89","89","89","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("285","4","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","65","65","65","0","","","9th","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("286","2","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","75","75","75","0","","","7th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("287","6","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","73","73","73","0","","","8th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("288","15","1","0","JSS1","","HOME ECONOMICS","15","","","","","","","","77","77","77","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("289","5","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","92","92","92","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("290","3","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","85","85","85","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("291","14","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","86","86","86","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("292","1","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","87","87","87","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("293","7","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","86","86","86","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("294","4","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","60","60","60","0","","","7th","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("295","2","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","76","76","76","0","","","6th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("296","6","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","56","56","56","0","","","8th","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("297","15","1","0","JSS1","","BUSINESS STUDIES","16","","","","","","","","53","53","53","0","","","9th","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("298","5","1","0","JSS1","","MUSIC","17","","","","","","","","78","78","78","0","","","8th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("299","3","1","0","JSS1","","MUSIC","17","","","","","","","","100","100","100","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("300","14","1","0","JSS1","","MUSIC","17","","","","","","","","85","85","85","0","","","5th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term");
INSERT INTO result_subject VALUES
("301","1","1","0","JSS1","","MUSIC","17","","","","","","","","92","92","92","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("302","7","1","0","JSS1","","MUSIC","17","","","","","","","","81","81","81","0","","","6th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("303","4","1","0","JSS1","","MUSIC","17","","","","","","","","92","92","92","0","","","3rd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("304","2","1","0","JSS1","","MUSIC","17","","","","","","","","81","81","81","0","","","6th","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("305","6","1","0","JSS1","","MUSIC","17","","","","","","","","94","94","94","0","","","2nd","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("306","15","1","0","JSS1","","MUSIC","17","","","","","","","","75","75","75","0","","","9th","B2","VERY GOOD","ZEON GLOBAL","VERY GOOD, WELL DONE","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("307","8","2","0","JSS2","","ENGLISH LANGUAGE","1","","","","","","","","49","49","49","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("308","8","2","0","JSS2","","MATHEMATICS","2","","","","","","","","63","63","63","0","","","1st","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("309","8","2","0","JSS2","","BASIC SCIENCE","3","","","","","","","","54","54","54","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("310","8","2","0","JSS2","","BASIC TECHNOLOGY","4","","","","","","","","63","63","63","0","","","1st","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("311","8","2","0","JSS2","","AGRICULTURAL SCIENCE","11","","","","","","","","49","49","49","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("312","8","2","0","JSS2","","CIVIC EDUCATION","10","","","","","","","","51","51","51","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("313","8","2","0","JSS2","","PHYSICAL AND HEALTH EDUCATION","6","","","","","","","","91","91","91","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCEPTIONAL WORK. WONDERFULLY DONE.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("314","8","2","0","JSS2","","HAUSA","12","","","","","","","","85","85","85","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("315","8","2","0","JSS2","","SECURITY EDUCATION","9","","","","","","","","63","63","63","0","","","1st","C4","CREDIT","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("316","8","2","0","JSS2","","SOCIAL STUDIES","8","","","","","","","","55","55","55","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("317","8","2","0","JSS2","","BUSINESS STUDIES","16","","","","","","","","47","47","47","0","","","1st","D7","POOR","ZEON GLOBAL","FAIR, TRY HARDER NEXT TIME","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("318","8","2","0","JSS2","","COMPUTER STUDIES","5","","","","","","","","68","68","68","0","","","1st","B3","GOOD","ZEON GLOBAL","SATISFACTORY. YOU CAN DO BETTER.","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("319","8","2","0","JSS2","","MUSIC","17","","","","","","","","82","82","82","0","","","1st","A1","EXCELLENT","ZEON GLOBAL","EXCELLENT PERFORMANCE, KEEP IT UP","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("320","8","2","0","JSS2","","CULTURAL AND CREATIVE ARTS","13","","","","","","","","50","50","50","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("321","8","2","0","JSS2","","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","7","","","","","","","","57","57","57","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("322","8","2","0","JSS2","","HOME ECONOMICS","15","","","","","","","","53","53","53","0","","","1st","C6","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","0","100","5","5","5","5","5","5","5","5","5","5","submit","2020/2021","2nd Term"),
("323","8","2","0","JSS2","","FRENCH","14","","","","","","","","57","57","57","0","","","1st","C5","CREDIT","ZEON GLOBAL","GOOD WORK. WORK HARDER","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=94 DEFAULT CHARSET=latin1;


INSERT INTO settings VALUES
("1","total_sms","100"),
("2","school_name","ELMOT INTERNATIONAL SCHOOL"),
("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","1ST AVENUE, 1(K) CRESCENT, SECTOR F FHA-LUGBE, ABUJA"),
("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 AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;


INSERT INTO staff VALUES
("1","170","1170d1771bf8","T/20/0001","$2y$10$NClaL3qiMzrmjBBi6ORDJOX8IfphSDkr3MyiT8xxJsaE.GPwsrYSa","onglobal","onglobal","GLOBAL","","ZEON","male","academic","both","","","NIL","2021-04-24","2340890009098","","NIGERIA","ABIA","Christianity","","","","","","0","0","","activated","2020/2021","1st 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=2 DEFAULT CHARSET=latin1;


INSERT INTO staff_salary VALUES
("1","1","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=36 DEFAULT CHARSET=latin1;


INSERT INTO staff_subject VALUES
("35","0","1","3"),
("1","1","1","1"),
("18","1","1","2"),
("10","1","2","1"),
("27","1","2","2"),
("11","1","3","1"),
("28","1","3","2"),
("12","1","4","1"),
("29","1","4","2"),
("13","1","5","1"),
("30","1","5","2"),
("14","1","6","1"),
("31","1","6","2"),
("15","1","7","1"),
("32","1","7","2"),
("16","1","8","1"),
("33","1","8","2"),
("17","1","9","1"),
("34","1","9","2"),
("2","1","10","1"),
("19","1","10","2"),
("3","1","11","1"),
("20","1","11","2"),
("4","1","12","1"),
("21","1","12","2"),
("5","1","13","1"),
("22","1","13","2"),
("6","1","14","1"),
("23","1","14","2"),
("7","1","15","1"),
("24","1","15","2"),
("8","1","16","1"),
("25","1","16","2"),
("9","1","17","1"),
("26","1","17","2");




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=36 DEFAULT CHARSET=latin1;


INSERT INTO staff_subject_subclass VALUES
("35","0","1","3","0"),
("1","1","1","1","0"),
("18","1","1","2","0"),
("10","1","2","1","0"),
("27","1","2","2","0"),
("11","1","3","1","0"),
("28","1","3","2","0"),
("12","1","4","1","0"),
("29","1","4","2","0"),
("13","1","5","1","0"),
("30","1","5","2","0"),
("14","1","6","1","0"),
("31","1","6","2","0"),
("15","1","7","1","0"),
("32","1","7","2","0"),
("16","1","8","1","0"),
("33","1","8","2","0"),
("17","1","9","1","0"),
("34","1","9","2","0"),
("2","1","10","1","0"),
("19","1","10","2","0"),
("3","1","11","1","0"),
("20","1","11","2","0"),
("4","1","12","1","0"),
("21","1","12","2","0"),
("5","1","13","1","0"),
("22","1","13","2","0"),
("6","1","14","1","0"),
("23","1","14","2","0"),
("7","1","15","1","0"),
("24","1","15","2","0"),
("8","1","16","1","0"),
("25","1","16","2","0"),
("9","1","17","1","0"),
("26","1","17","2","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=192 DEFAULT CHARSET=latin1;


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




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 AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;


INSERT INTO students VALUES
("1","117034e81639","170","30","1","0","0","0","0","","DOLAPO","TEMITAYO","ADEBAYO","S/20/0001","$2y$10$p3BuzZECnS3X3532sHYPV.enOrdgh7wWW7X9hAsNs8hdvL8CFJyQ2","yodolapo","yodolapo","","2010-11-15","female","Christianity","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:33:56"),
("2","2170df7fcb00","170","31","1","0","0","0","0","","WALIU","","AWWAL","S/20/0002","$2y$10$Ot6I7lnrVhDy8b7c8iwQi.lizokwR9RSCRwPUk8MVGfE9GijDK8qS","alwaliu","alwaliu","","2012-03-02","male","Christianity","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:34:35"),
("3","31705fab020c","170","32","1","0","0","0","0","","SHEKWANUGAZA","GIAN","GIDEON","S/20/0003","$2y$10$N7cu932DFPHUdM9C0dd.Z.8/XWf.fk/gVTK7PRjyjb0HSSPHlB672","anshekwanugaza","anshekwanugaza","","2010-05-09","male","Islam","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:35:26"),
("4","4170a58d40c8","170","33","1","0","0","0","0","","ATTE","SEYI","MOSES","S/20/0004","$2y$10$D7zhKaSuBBFCgQi6TxlR/eF64w2sWkOwZQXZZq5jE7cqUFvORRlCi","esatte","esatte","","2010-10-09","male","Christianity","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:36:20"),
("5","5170f18dcb39","170","19","1","0","0","0","0","","GODSCHILD","","OBI","S/20/0005","$2y$10$eBH5q1uMTeKKYS6b921bKOVlzAiM3kIkh8lLbl34Do4wrkQM2wJBO","bigodschild","bigodschild","","2010-07-17","male","Christianity","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:36:59"),
("6","617042eeba4d","170","34","1","0","0","0","0","","JIMOH","LAWAL","RAHEESUDEEN","S/20/0006","$2y$10$fCsqp95tQ9yPDBTsKZ1GjO0vBKrEk11s6zfviMTvOeogS/vt0lbyS","enjimoh","enjimoh","","2011-01-31","male","Islam","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:37:47"),
("7","7170c82d92b9","170","16","1","0","0","0","0","","MAHABUBULAHI","","YUSUF","S/20/0007","$2y$10$jTRbN2nmU4SvMYv.nSmwee7YSffpZ6yhwdB2yCa51zodVWAcXhr3q","ufmahabubulahi","ufmahabubulahi","","2010-06-23","male","Islam","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:38:26"),
("8","817040f92d67","170","36","2","0","0","0","0","","ISMAIL","U","AMIR","S/20/0008","$2y$10$kly6UVdKdKsudlYjAWMSEelkD12nn6Ka.gh9TRDh.Q3vMtk3xb1Ya","irismail","irismail","","2008-03-26","male","Islam","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:51:15"),
("9","9170219cbeb7","170","30","3","0","0","0","0","","OKIKIOLA","IBRAHEEM","A-ADEBAYO","S/20/0009","$2y$10$jA0V/5ObNZVKzQWyKxYZpeE54v83omtSJQgROKQbgUG0SSVYNA//O","yookikiola","yookikiola","","2009-02-15","male","Islam","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:55:57"),
("10","10170cfae7764","170","5","3","0","0","0","0","","EUREKA","M","B-CHUKWUKA","S/20/0010","$2y$10$VTx1hcwRdPyjh4JznBsFoOdnQldYUPhiP49ltlLFC9c8NvkR6.Jc.","kaeureka","kaeureka","","2008-04-22","male","Christianity","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:57:18"),
("11","1117005a38e1e","170","36","3","0","0","0","0","","USMAN","AMIRA","ISMAIL","S/20/0011","$2y$10$bBy.N4zDJrJNWLt4MCiotO1FsIasg4fYGqjnad1/u.QRcnqPpA/tm","ilusman","ilusman","","2008-03-26","female","Islam","","","","","","","","","PARENT","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 14:59:24"),
("12","12170988d99ad","170","37","3","0","0","0","0","","JOHN","ZOE","OCHOGWU","S/20/0012","$2y$10$/F0/2xUGsKAenUQhBeK3YuSpLEJRYDnUDI7ErLMD9JtxcW2SPkIdO","wujohn","wujohn","","2008-07-29","male","Christianity","","","","","","","","","","","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-24 15:00:26"),
("13","131703f552c10","170","0","2","0","0","0","0","","PIUS","","CHARITY","S/20/0013","$2y$10$CGwtPf2l/M3N/cedXhFrlOnS7K6GdNvcDfrkqsv1m8pokfO.TW/RK","typius","typius","","2021-04-24","female","Christianity","","","","","2020/2021","2nd Term","","","","","new_student","","0","0","0","0","","0","","check_result","deactivated","2021-04-24 15:21:33"),
("14","141706b09216a","170","0","1","0","0","0","0","","ONWUNARI","T","CYNTHIA","S/20/0014","$2y$10$GSqv6O.zZanq25iicxpI9OyOnDjqmsSINFCXk8VdQUWArjxdo4Fnu","iaonwunari","iaonwunari","","2021-04-26","female","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-26 12:57:35"),
("15","1517077b1882e","170","0","1","0","0","0","0","","MARCUS","","GRACE","S/20/0015","$2y$10$b5mgvasdh3FoeOXxx0xlBOY1uODxDFeZ/ft7gKPen3mQzwzPfJ1cu","cemarcus","cemarcus","","2021-04-26","female","Christianity","","","","","","","","","","new_student","new_student","","0","0","0","0","","0","","check_result","activated","2021-04-26 13:00:25");




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 AUTO_INCREMENT=36 DEFAULT CHARSET=latin1;


INSERT INTO subject_class VALUES
("1","1","1"),
("2","10","1"),
("3","11","1"),
("4","12","1"),
("5","13","1"),
("6","14","1"),
("7","15","1"),
("8","16","1"),
("9","17","1"),
("10","2","1"),
("11","3","1"),
("12","4","1"),
("13","5","1"),
("14","6","1"),
("15","7","1"),
("16","8","1"),
("17","9","1"),
("18","1","2"),
("19","10","2"),
("20","11","2"),
("21","12","2"),
("22","13","2"),
("23","14","2"),
("24","15","2"),
("25","16","2"),
("26","17","2"),
("27","2","2"),
("28","3","2"),
("29","4","2"),
("30","5","2"),
("31","6","2"),
("32","7","2"),
("33","8","2"),
("34","9","2"),
("35","1","3");




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 AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;


INSERT INTO subjects VALUES
("1","ENGLISH LANGUAGE","ENGLISH LANG.","junior"),
("2","MATHEMATICS","MATHS","junior"),
("3","BASIC SCIENCE","BASIC SCI.","junior"),
("4","BASIC TECHNOLOGY","BASIC TECH.","junior"),
("5","COMPUTER STUDIES","COMPUTER STUD.","junior"),
("6","PHYSICAL AND HEALTH EDUCATION","P.H.E","junior"),
("7","CHRISTIAN/ISLAMIC RELIGIOUS STUDIES","C.R.S/I.R.S","junior"),
("8","SOCIAL STUDIES","SOCIAL STUD.","junior"),
("9","SECURITY EDUCATION ","SECURITY EDU.","junior"),
("10","CIVIC EDUCATION ","CIVIC EDU.","junior"),
("11","AGRICULTURAL SCIENCE ","AGRIC SCI.","junior"),
("12","HAUSA","HAUSA","junior"),
("13","CULTURAL AND CREATIVE ARTS","C.C.A","junior"),
("14","FRENCH","FRENCH","junior"),
("15","HOME ECONOMICS","HOME ECONS.","junior"),
("16","BUSINESS STUDIES","BUS. STUDIES","junior"),
("17","MUSIC ","MUSIC","junior");




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;






