-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `smartschookilifibof`
--

-- --------------------------------------------------------

--
-- Table structure for table `attendence_type`
--

CREATE TABLE `attendence_type` (
  `id` int(11) NOT NULL,
  `type` varchar(50) DEFAULT NULL,
  `key_value` varchar(50) NOT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `attendence_type`
--

INSERT INTO `attendence_type` (`id`, `type`, `key_value`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Present', '<b class=\"text text-success\">P</b>', 'yes', '2016-06-23 18:11:37', '0000-00-00'),
(2, 'Late With Excuse', '<b class=\"text text-warning\">E</b>', 'no', '2018-05-29 08:19:48', '0000-00-00'),
(3, 'Late', '<b class=\"text text-warning\">L</b>', 'yes', '2016-06-23 18:12:28', '0000-00-00'),
(4, 'Absent', '<b class=\"text text-danger\">A</b>', 'yes', '2016-10-11 11:35:40', '0000-00-00'),
(5, 'Holiday', 'H', 'yes', '2016-10-11 11:35:01', '0000-00-00'),
(6, 'Half Day', '<b class=\"text text-warning\">F</b>', 'yes', '2016-06-23 18:12:28', '0000-00-00');

-- --------------------------------------------------------

--
-- Table structure for table `batch`
--

CREATE TABLE `batch` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `books`
--

CREATE TABLE `books` (
  `id` int(11) NOT NULL,
  `book_title` varchar(100) NOT NULL,
  `book_no` varchar(50) NOT NULL,
  `isbn_no` varchar(100) NOT NULL,
  `subject` varchar(100) DEFAULT NULL,
  `rack_no` varchar(100) NOT NULL,
  `publish` varchar(100) DEFAULT NULL,
  `author` varchar(100) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `perunitcost` float(10,2) DEFAULT NULL,
  `postdate` date DEFAULT NULL,
  `description` text DEFAULT NULL,
  `available` varchar(10) DEFAULT 'yes',
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `book_issues`
--

CREATE TABLE `book_issues` (
  `id` int(11) UNSIGNED NOT NULL,
  `book_id` int(11) DEFAULT NULL,
  `duereturn_date` date DEFAULT NULL,
  `return_date` date DEFAULT NULL,
  `issue_date` date DEFAULT NULL,
  `is_returned` int(11) DEFAULT 0,
  `member_id` int(11) DEFAULT NULL,
  `is_active` varchar(10) NOT NULL DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` int(11) NOT NULL,
  `category` varchar(100) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` (`id`, `category`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'General Development', 'no', '2020-02-16 23:09:54', NULL),
(2, 'Special Needs', 'no', '2020-02-16 23:10:13', NULL),
(3, 'Pyhsically Challenged', 'no', '2020-02-16 23:10:33', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `certificates`
--

CREATE TABLE `certificates` (
  `id` int(11) NOT NULL,
  `certificate_name` varchar(100) NOT NULL,
  `certificate_text` text NOT NULL,
  `left_header` varchar(100) NOT NULL,
  `center_header` varchar(100) NOT NULL,
  `right_header` varchar(100) NOT NULL,
  `left_footer` varchar(100) NOT NULL,
  `right_footer` varchar(100) NOT NULL,
  `center_footer` varchar(100) NOT NULL,
  `background_image` varchar(100) NOT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `created_for` tinyint(1) NOT NULL COMMENT '1 = staff, 2 = students',
  `status` tinyint(1) NOT NULL,
  `header_height` int(11) NOT NULL,
  `content_height` int(11) NOT NULL,
  `footer_height` int(11) NOT NULL,
  `content_width` int(11) NOT NULL,
  `enable_student_image` tinyint(1) NOT NULL COMMENT '0=no,1=yes',
  `enable_image_height` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `certificates`
--

INSERT INTO `certificates` (`id`, `certificate_name`, `certificate_text`, `left_header`, `center_header`, `right_header`, `left_footer`, `right_footer`, `center_footer`, `background_image`, `created_at`, `updated_at`, `created_for`, `status`, `header_height`, `content_height`, `footer_height`, `content_width`, `enable_student_image`, `enable_image_height`) VALUES
(1, 'Sample Transfer Certificate', 'This is certify that <b>[name]</b> has born on [dob]  <br> and have following details [present_address] [guardian] [created_at] [admission_no] [roll_no] [class] [section] [gender] [admission_date] [category] [cast] [father_name] [mother_name] [religion] [email] [phone] .<br>We wish best of luck for future endeavors.', 'Reff. No.....1111111.........', 'To Whomever It May Concern', 'Date: _10__/_10__/__2019__', '.................................<br>admin', '.................................<br>principal', '.................................<br>admin', 'sampletc121.png', '2019-12-21 15:14:34', '0000-00-00', 2, 1, 360, 400, 480, 810, 1, 230);

-- --------------------------------------------------------

--
-- Table structure for table `chat_connections`
--

CREATE TABLE `chat_connections` (
  `id` int(11) NOT NULL,
  `chat_user_one` int(11) NOT NULL,
  `chat_user_two` int(11) NOT NULL,
  `ip` varchar(30) DEFAULT NULL,
  `time` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `chat_messages`
--

CREATE TABLE `chat_messages` (
  `id` int(11) NOT NULL,
  `message` text DEFAULT NULL,
  `chat_user_id` int(11) NOT NULL,
  `ip` varchar(30) NOT NULL,
  `time` int(11) NOT NULL,
  `is_first` int(1) DEFAULT 0,
  `is_read` int(1) NOT NULL DEFAULT 0,
  `chat_connection_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `chat_users`
--

CREATE TABLE `chat_users` (
  `id` int(11) NOT NULL,
  `user_type` varchar(20) DEFAULT NULL,
  `staff_id` int(11) DEFAULT NULL,
  `student_id` int(11) DEFAULT NULL,
  `create_staff_id` int(11) DEFAULT NULL,
  `create_student_id` int(11) DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `classes`
--

CREATE TABLE `classes` (
  `id` int(11) NOT NULL,
  `class` varchar(60) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `classes`
--

INSERT INTO `classes` (`id`, `class`, `is_active`, `created_at`, `updated_at`) VALUES
(2, 'PP1', 'no', '2020-02-27 12:02:31', NULL),
(4, 'BABY CLASS', 'no', '2020-02-27 12:02:42', NULL),
(5, 'PP2', 'no', '2020-02-27 12:02:53', NULL),
(6, 'GRADE 1', 'no', '2020-02-27 12:03:01', NULL),
(7, 'GRADE 2', 'no', '2020-02-27 12:03:09', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `class_batches`
--

CREATE TABLE `class_batches` (
  `id` int(11) NOT NULL,
  `class_section_id` int(11) DEFAULT NULL,
  `batch_id` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `class_batch_subjects`
--

CREATE TABLE `class_batch_subjects` (
  `id` int(11) NOT NULL,
  `class_batch_id` int(11) DEFAULT NULL,
  `subject_id` int(11) DEFAULT NULL,
  `is_exam` int(11) DEFAULT 0,
  `credit_hours` int(10) NOT NULL DEFAULT 0,
  `description` text DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `class_sections`
--

CREATE TABLE `class_sections` (
  `id` int(11) NOT NULL,
  `class_id` int(11) DEFAULT NULL,
  `section_id` int(11) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `class_sections`
--

INSERT INTO `class_sections` (`id`, `class_id`, `section_id`, `is_active`, `created_at`, `updated_at`) VALUES
(4, 2, 1, 'no', '2020-02-16 22:38:42', NULL),
(5, 2, 2, 'no', '2020-02-16 22:38:42', NULL),
(6, 2, 3, 'no', '2020-02-16 22:38:42', NULL),
(10, 2, 4, 'no', '2020-02-27 12:02:31', NULL),
(11, 4, 2, 'no', '2020-02-27 12:02:42', NULL),
(12, 4, 4, 'no', '2020-02-27 12:02:42', NULL),
(13, 5, 2, 'no', '2020-02-27 12:02:53', NULL),
(14, 5, 4, 'no', '2020-02-27 12:02:53', NULL),
(15, 6, 2, 'no', '2020-02-27 12:03:01', NULL),
(16, 6, 4, 'no', '2020-02-27 12:03:01', NULL),
(17, 7, 2, 'no', '2020-02-27 12:03:09', NULL),
(18, 7, 4, 'no', '2020-02-27 12:03:09', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `class_teacher`
--

CREATE TABLE `class_teacher` (
  `id` int(11) NOT NULL,
  `class_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `section_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `class_teacher`
--

INSERT INTO `class_teacher` (`id`, `class_id`, `staff_id`, `section_id`) VALUES
(1, 7, 3, 4);

-- --------------------------------------------------------

--
-- Table structure for table `complaint`
--

CREATE TABLE `complaint` (
  `id` int(11) NOT NULL,
  `complaint_type` varchar(15) NOT NULL,
  `source` varchar(15) NOT NULL,
  `name` varchar(100) NOT NULL,
  `contact` varchar(15) NOT NULL,
  `email` varchar(200) NOT NULL,
  `date` date NOT NULL,
  `description` text NOT NULL,
  `action_taken` varchar(200) NOT NULL,
  `assigned` varchar(50) NOT NULL,
  `note` text NOT NULL,
  `image` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `complaint_type`
--

CREATE TABLE `complaint_type` (
  `id` int(11) NOT NULL,
  `complaint_type` varchar(100) NOT NULL,
  `description` mediumtext NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `contents`
--

CREATE TABLE `contents` (
  `id` int(11) NOT NULL,
  `title` varchar(100) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `is_public` varchar(10) DEFAULT 'No',
  `class_id` int(11) DEFAULT NULL,
  `cls_sec_id` int(10) NOT NULL,
  `file` varchar(250) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `content_for`
--

CREATE TABLE `content_for` (
  `id` int(11) NOT NULL,
  `role` varchar(50) DEFAULT NULL,
  `content_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `custom_fields`
--

CREATE TABLE `custom_fields` (
  `id` int(11) NOT NULL,
  `name` varchar(100) CHARACTER SET latin1 DEFAULT NULL,
  `belong_to` varchar(100) CHARACTER SET latin1 DEFAULT NULL,
  `type` varchar(100) CHARACTER SET latin1 DEFAULT NULL,
  `bs_column` int(10) DEFAULT NULL,
  `validation` int(11) DEFAULT 0,
  `field_values` text CHARACTER SET latin1 DEFAULT NULL,
  `show_table` varchar(100) CHARACTER SET latin1 DEFAULT NULL,
  `visible_on_table` int(11) NOT NULL,
  `weight` int(11) DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `custom_field_values`
--

CREATE TABLE `custom_field_values` (
  `id` int(11) NOT NULL,
  `belong_table_id` int(11) DEFAULT NULL,
  `custom_field_id` int(11) DEFAULT NULL,
  `field_value` longtext CHARACTER SET latin1 DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `delete_chat`
--

CREATE TABLE `delete_chat` (
  `id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `receiver_id` int(11) NOT NULL,
  `message` text CHARACTER SET utf8mb4 NOT NULL,
  `sender_type` int(11) NOT NULL COMMENT '1, Staff, 2 student, 3 parent',
  `receiver_type` int(11) NOT NULL COMMENT '1, Staff, 2 student, 3 parent',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '0 delete',
  `seen` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `department`
--

CREATE TABLE `department` (
  `id` int(11) NOT NULL,
  `department_name` varchar(200) NOT NULL,
  `is_active` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `department`
--

INSERT INTO `department` (`id`, `department_name`, `is_active`) VALUES
(1, 'Faculty', 'yes'),
(2, 'Management', 'yes'),
(3, 'Staff', 'yes');

-- --------------------------------------------------------

--
-- Table structure for table `disable_reason`
--

CREATE TABLE `disable_reason` (
  `id` int(11) NOT NULL,
  `reason` varchar(255) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `dispatch_receive`
--

CREATE TABLE `dispatch_receive` (
  `id` int(11) NOT NULL,
  `reference_no` varchar(50) NOT NULL,
  `to_title` varchar(100) NOT NULL,
  `address` varchar(500) NOT NULL,
  `note` varchar(500) NOT NULL,
  `from_title` varchar(200) NOT NULL,
  `date` varchar(20) NOT NULL,
  `image` varchar(100) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `type` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `enquiry`
--

CREATE TABLE `enquiry` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `contact` varchar(20) NOT NULL,
  `address` mediumtext NOT NULL,
  `reference` varchar(20) NOT NULL,
  `date` date NOT NULL,
  `description` varchar(500) NOT NULL,
  `follow_up_date` date NOT NULL,
  `note` mediumtext NOT NULL,
  `source` varchar(50) NOT NULL,
  `email` varchar(50) DEFAULT NULL,
  `assigned` varchar(100) NOT NULL,
  `class` int(11) NOT NULL,
  `no_of_child` varchar(11) DEFAULT NULL,
  `status` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `enquiry_type`
--

CREATE TABLE `enquiry_type` (
  `id` int(11) NOT NULL,
  `enquiry_type` varchar(100) NOT NULL,
  `description` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `events`
--

CREATE TABLE `events` (
  `id` int(11) NOT NULL,
  `event_title` varchar(200) NOT NULL,
  `event_description` varchar(300) NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `event_type` varchar(100) NOT NULL,
  `event_color` varchar(200) NOT NULL,
  `event_for` varchar(100) NOT NULL,
  `role_id` int(11) NOT NULL,
  `is_active` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `exams`
--

CREATE TABLE `exams` (
  `id` int(11) NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  `sesion_id` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `exam_groups`
--

CREATE TABLE `exam_groups` (
  `id` int(11) NOT NULL,
  `name` varchar(250) DEFAULT NULL,
  `exam_type` varchar(250) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `is_active` int(11) DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `exam_group_class_batch_exam_subjects`
--

CREATE TABLE `exam_group_class_batch_exam_subjects` (
  `id` int(11) NOT NULL,
  `exam_group_class_batch_exams_id` int(11) DEFAULT NULL,
  `subject_id` int(10) NOT NULL,
  `date_from` date NOT NULL,
  `time_from` time NOT NULL,
  `duration` varchar(50) NOT NULL,
  `room_no` varchar(100) DEFAULT NULL,
  `max_marks` float(10,2) DEFAULT NULL,
  `min_marks` float(10,2) DEFAULT NULL,
  `credit_hours` float(10,2) DEFAULT 0.00,
  `date_to` datetime DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `class_batch_subject_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `exam_group_exam_connections`
--

CREATE TABLE `exam_group_exam_connections` (
  `id` int(11) NOT NULL,
  `exam_group_id` int(11) DEFAULT NULL,
  `exam_group_class_batch_exams_id` int(11) DEFAULT NULL,
  `exam_weightage` float(10,2) DEFAULT 0.00,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `exam_group_exam_results`
--

CREATE TABLE `exam_group_exam_results` (
  `id` int(11) NOT NULL,
  `exam_group_class_batch_exam_student_id` int(11) NOT NULL,
  `exam_group_class_batch_exam_subject_id` int(11) DEFAULT NULL,
  `attendence` varchar(10) DEFAULT NULL,
  `get_marks` float(10,2) DEFAULT 0.00,
  `note` text DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `exam_group_student_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `exam_results`
--

CREATE TABLE `exam_results` (
  `id` int(11) NOT NULL,
  `attendence` varchar(10) NOT NULL,
  `exam_schedule_id` int(11) DEFAULT NULL,
  `student_id` int(11) DEFAULT NULL,
  `get_marks` float(10,2) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `expenses`
--

CREATE TABLE `expenses` (
  `id` int(11) NOT NULL,
  `exp_head_id` int(11) DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `invoice_no` varchar(200) NOT NULL,
  `date` date DEFAULT NULL,
  `amount` float(10,2) DEFAULT NULL,
  `documents` varchar(255) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'yes',
  `is_deleted` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `expense_head`
--

CREATE TABLE `expense_head` (
  `id` int(11) NOT NULL,
  `exp_category` varchar(50) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'yes',
  `is_deleted` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `expense_head`
--

INSERT INTO `expense_head` (`id`, `exp_category`, `description`, `is_active`, `is_deleted`, `created_at`, `updated_at`) VALUES
(1, 'SALARY', '', 'yes', 'no', '2021-09-10 10:49:19', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `feecategory`
--

CREATE TABLE `feecategory` (
  `id` int(11) NOT NULL,
  `category` varchar(50) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `fees_reminder`
--

CREATE TABLE `fees_reminder` (
  `id` int(11) NOT NULL,
  `reminder_type` varchar(10) DEFAULT NULL,
  `day` int(2) DEFAULT NULL,
  `is_active` int(1) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `fees_reminder`
--

INSERT INTO `fees_reminder` (`id`, `reminder_type`, `day`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'before', 2, 0, '2019-09-03 17:01:23', '2019-09-03 17:01:23'),
(2, 'before', 5, 0, '2019-12-02 10:39:33', '2019-12-02 10:39:33'),
(3, 'after', 2, 0, '2019-09-04 17:15:29', '2019-09-04 17:15:29'),
(4, 'after', 5, 0, '2019-12-02 10:39:33', '2019-12-02 10:39:33');

-- --------------------------------------------------------

--
-- Table structure for table `feetype`
--

CREATE TABLE `feetype` (
  `id` int(11) NOT NULL,
  `is_system` int(1) NOT NULL DEFAULT 0,
  `feecategory_id` int(11) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `code` varchar(100) NOT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `feetype`
--

INSERT INTO `feetype` (`id`, `is_system`, `feecategory_id`, `type`, `code`, `is_active`, `created_at`, `updated_at`, `description`) VALUES
(1, 0, NULL, 'Admission Fee', 'Admn-Fee', 'no', '2020-02-17 00:14:20', NULL, 'Payable Once on Admission'),
(2, 0, NULL, 'Exam Fee', 'Exam-Fees', 'no', '2020-02-17 00:14:53', NULL, ''),
(3, 0, NULL, '1st Installment Fees', '1st-Pay', 'no', '2020-02-17 00:15:19', NULL, ''),
(4, 0, NULL, '2nd Installment Fees', '2nd-Pay', 'no', '2020-02-17 00:15:50', NULL, ''),
(5, 0, NULL, 'Meals', 'Meals', 'no', '2020-02-17 00:16:16', NULL, ''),
(6, 0, NULL, 'Tuition Fees', 'TF', 'no', '2020-02-17 00:16:33', NULL, ''),
(7, 0, NULL, 'Certificate fee', 'cert', 'no', '2020-02-17 00:17:10', NULL, ''),
(8, 0, NULL, 'Bus', 'bus', 'no', '2020-02-17 00:17:37', NULL, ''),
(9, 0, NULL, 'Uniform', 'uniform', 'no', '2020-02-17 00:17:48', NULL, ''),
(10, 0, NULL, 'Book Fund', 'B-K', 'no', '2020-02-17 00:18:04', NULL, ''),
(11, 0, NULL, 'Term 1', '1', 'no', '2020-02-17 00:18:16', NULL, ''),
(12, 0, NULL, 'Term 2', '2', 'no', '2020-02-17 00:18:28', NULL, ''),
(13, 0, NULL, 'Term 3', '3', 'no', '2020-02-17 00:18:38', NULL, '');

-- --------------------------------------------------------

--
-- Table structure for table `fee_groups`
--

CREATE TABLE `fee_groups` (
  `id` int(11) NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  `is_system` int(1) NOT NULL DEFAULT 0,
  `description` text DEFAULT NULL,
  `is_active` varchar(10) NOT NULL DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `fee_groups`
--

INSERT INTO `fee_groups` (`id`, `name`, `is_system`, `description`, `is_active`, `created_at`) VALUES
(1, 'KGI-Admission', 0, '', 'no', '2020-02-17 00:21:58'),
(2, 'KGI-Meals', 0, '', 'no', '2020-02-17 00:22:12'),
(3, 'KGI-Term1', 0, '', 'no', '2020-02-17 00:22:31'),
(4, 'KGI-Term2', 0, '', 'no', '2020-02-17 00:22:48'),
(5, 'KGI-Term3', 0, '', 'no', '2020-02-17 00:23:02'),
(6, 'School Bus RT1', 0, '', 'no', '2020-02-17 00:23:32'),
(7, 'School Bus RT2', 0, '', 'no', '2020-02-17 00:23:49'),
(8, 'School Bus Rt3', 0, '', 'no', '2020-02-17 00:24:06');

-- --------------------------------------------------------

--
-- Table structure for table `fee_receipt_no`
--

CREATE TABLE `fee_receipt_no` (
  `id` int(11) NOT NULL,
  `payment` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `follow_up`
--

CREATE TABLE `follow_up` (
  `id` int(11) NOT NULL,
  `enquiry_id` int(11) NOT NULL,
  `date` date NOT NULL,
  `next_date` date NOT NULL,
  `response` text NOT NULL,
  `note` text NOT NULL,
  `followup_by` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_media_gallery`
--

CREATE TABLE `front_cms_media_gallery` (
  `id` int(11) NOT NULL,
  `image` varchar(300) DEFAULT NULL,
  `thumb_path` varchar(300) DEFAULT NULL,
  `dir_path` varchar(300) DEFAULT NULL,
  `img_name` varchar(300) DEFAULT NULL,
  `thumb_name` varchar(300) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `file_type` varchar(100) NOT NULL,
  `file_size` varchar(100) NOT NULL,
  `vid_url` mediumtext NOT NULL,
  `vid_title` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_menus`
--

CREATE TABLE `front_cms_menus` (
  `id` int(11) NOT NULL,
  `menu` varchar(100) DEFAULT NULL,
  `slug` varchar(200) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `open_new_tab` int(10) NOT NULL DEFAULT 0,
  `ext_url` mediumtext NOT NULL,
  `ext_url_link` mediumtext NOT NULL,
  `publish` int(11) NOT NULL DEFAULT 0,
  `content_type` varchar(10) NOT NULL DEFAULT 'manual',
  `is_active` varchar(10) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `front_cms_menus`
--

INSERT INTO `front_cms_menus` (`id`, `menu`, `slug`, `description`, `open_new_tab`, `ext_url`, `ext_url_link`, `publish`, `content_type`, `is_active`, `created_at`) VALUES
(1, 'Main Menu', 'main-menu', 'Main menu', 0, '', '', 0, 'default', 'no', '2018-04-20 14:54:49'),
(2, 'Bottom Menu', 'bottom-menu', 'Bottom Menu', 0, '', '', 0, 'default', 'no', '2018-04-20 14:54:55');

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_menu_items`
--

CREATE TABLE `front_cms_menu_items` (
  `id` int(11) NOT NULL,
  `menu_id` int(11) NOT NULL,
  `menu` varchar(100) DEFAULT NULL,
  `page_id` int(11) NOT NULL,
  `parent_id` int(11) NOT NULL,
  `ext_url` mediumtext DEFAULT NULL,
  `open_new_tab` int(11) DEFAULT 0,
  `ext_url_link` mediumtext DEFAULT NULL,
  `slug` varchar(200) DEFAULT NULL,
  `weight` int(11) DEFAULT NULL,
  `publish` int(11) NOT NULL DEFAULT 0,
  `description` mediumtext DEFAULT NULL,
  `is_active` varchar(10) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `front_cms_menu_items`
--

INSERT INTO `front_cms_menu_items` (`id`, `menu_id`, `menu`, `page_id`, `parent_id`, `ext_url`, `open_new_tab`, `ext_url_link`, `slug`, `weight`, `publish`, `description`, `is_active`, `created_at`) VALUES
(1, 1, 'Home', 1, 0, NULL, NULL, NULL, 'home', 1, 0, NULL, 'no', '2019-12-02 22:11:50'),
(2, 1, 'Contact Us', 76, 0, NULL, NULL, NULL, 'contact-us', 4, 0, NULL, 'no', '2019-12-02 22:11:52'),
(3, 1, 'Complain', 2, 0, NULL, NULL, NULL, 'complain', 3, 0, NULL, 'no', '2019-12-02 22:11:52'),
(4, 1, 'Admission', 0, 0, '1', NULL, 'http://yourschoolurl.com/online_admission', 'admssion', 2, 0, NULL, 'no', '2019-12-21 15:33:00');

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_pages`
--

CREATE TABLE `front_cms_pages` (
  `id` int(11) NOT NULL,
  `page_type` varchar(10) NOT NULL DEFAULT 'manual',
  `is_homepage` int(1) DEFAULT 0,
  `title` varchar(250) DEFAULT NULL,
  `url` varchar(250) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `slug` varchar(200) DEFAULT NULL,
  `meta_title` mediumtext DEFAULT NULL,
  `meta_description` mediumtext DEFAULT NULL,
  `meta_keyword` mediumtext DEFAULT NULL,
  `feature_image` varchar(200) NOT NULL,
  `description` longtext DEFAULT NULL,
  `publish_date` date NOT NULL,
  `publish` int(10) DEFAULT 0,
  `sidebar` int(10) DEFAULT 0,
  `is_active` varchar(10) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `front_cms_pages`
--

INSERT INTO `front_cms_pages` (`id`, `page_type`, `is_homepage`, `title`, `url`, `type`, `slug`, `meta_title`, `meta_description`, `meta_keyword`, `feature_image`, `description`, `publish_date`, `publish`, `sidebar`, `is_active`, `created_at`) VALUES
(1, 'default', 1, 'Home', 'page/home', 'page', 'home', '', '', '', '', '<p>home page</p>', '0000-00-00', 1, NULL, 'no', '2019-12-02 15:23:47'),
(2, 'default', 0, 'Complain', 'page/complain', 'page', 'complain', 'Complain form', '                                                                                                                                                                                    complain form                                                                                                                                                                                                                                ', 'complain form', '', '<p>[form-builder:complain]</p>', '0000-00-00', 1, NULL, 'no', '2019-11-13 10:16:36'),
(54, 'default', 0, '404 page', 'page/404-page', 'page', '404-page', '', '                                ', '', '', '<html>\r\n<head>\r\n <title></title>\r\n</head>\r\n<body>\r\n<p>404 page found</p>\r\n</body>\r\n</html>', '0000-00-00', 0, NULL, 'no', '2018-05-18 14:46:04'),
(76, 'default', 0, 'Contact us', 'page/contact-us', 'page', 'contact-us', '', '', '', '', '<section class=\"contact\">\r\n<div class=\"container\">\r\n<div class=\"row\">\r\n<h2 class=\"col-md-12 col-sm-12\">Send In Your Query</h2>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<div class=\"col-md-12 col-sm-12\">[form-builder:contact_us]<!--./row--></div>\r\n<!--./col-md-12--></div>\r\n<!--./row--></div>\r\n<!--./container--></section>\r\n\r\n<div class=\"col-md-4 col-sm-4\">\r\n<div class=\"contact-item\"><img src=\"http://192.168.1.81/repos/smartschool/uploads/gallery/media/pin.svg\" />\r\n<h3>Our Location</h3>\r\n\r\n<p>350 Fifth Avenue, 34th floor New York NY 10118-3299 USA</p>\r\n</div>\r\n<!--./contact-item--></div>\r\n<!--./col-md-4-->\r\n\r\n<div class=\"col-md-4 col-sm-4\">\r\n<div class=\"contact-item\"><img src=\"http://192.168.1.81/repos/smartschool/uploads/gallery/media/phone.svg\" />\r\n<h3>CALL US</h3>\r\n\r\n<p>E-mail : info@abcschool.com</p>\r\n\r\n<p>Mobile : +91-9009987654</p>\r\n</div>\r\n<!--./contact-item--></div>\r\n<!--./col-md-4-->\r\n\r\n<div class=\"col-md-4 col-sm-4\">\r\n<div class=\"contact-item\"><img src=\"http://192.168.1.81/repos/smartschool/uploads/gallery/media/clock.svg\" />\r\n<h3>Working Hours</h3>\r\n\r\n<p>Mon-Fri : 9 am to 5 pm</p>\r\n\r\n<p>Sat : 9 am to 3 pm</p>\r\n</div>\r\n<!--./contact-item--></div>\r\n<!--./col-md-4-->\r\n\r\n<div class=\"col-md-12 col-sm-12\">\r\n<div class=\"mapWrapper fullwidth\"><iframe frameborder=\"0\" height=\"500\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"http://maps.google.com/maps?f=q&source=s_q&hl=EN&q=time+square&aq=&sll=40.716558,-73.931122&sspn=0.40438,1.056747&ie=UTF8&rq=1&ev=p&split=1&radius=33.22&hq=time+square&hnear=&ll=37.061753,-95.677185&spn=0.438347,0.769043&z=9&output=embed\" width=\"100%\"></iframe></div>\r\n</div>', '0000-00-00', 0, NULL, 'no', '2019-05-04 15:46:41');

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_page_contents`
--

CREATE TABLE `front_cms_page_contents` (
  `id` int(11) NOT NULL,
  `page_id` int(11) DEFAULT NULL,
  `content_type` varchar(50) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_programs`
--

CREATE TABLE `front_cms_programs` (
  `id` int(11) NOT NULL,
  `type` varchar(50) DEFAULT NULL,
  `slug` varchar(255) DEFAULT NULL,
  `url` mediumtext DEFAULT NULL,
  `title` varchar(200) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `event_start` date DEFAULT NULL,
  `event_end` date DEFAULT NULL,
  `event_venue` mediumtext DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `is_active` varchar(10) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `meta_title` mediumtext NOT NULL,
  `meta_description` mediumtext NOT NULL,
  `meta_keyword` mediumtext NOT NULL,
  `feature_image` mediumtext NOT NULL,
  `publish_date` date NOT NULL,
  `publish` varchar(10) DEFAULT '0',
  `sidebar` int(10) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_program_photos`
--

CREATE TABLE `front_cms_program_photos` (
  `id` int(11) NOT NULL,
  `program_id` int(11) DEFAULT NULL,
  `media_gallery_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `front_cms_settings`
--

CREATE TABLE `front_cms_settings` (
  `id` int(11) NOT NULL,
  `theme` varchar(50) DEFAULT NULL,
  `is_active_rtl` int(10) DEFAULT 0,
  `is_active_front_cms` int(11) DEFAULT 0,
  `is_active_sidebar` int(1) DEFAULT 0,
  `logo` varchar(200) DEFAULT NULL,
  `contact_us_email` varchar(100) DEFAULT NULL,
  `complain_form_email` varchar(100) DEFAULT NULL,
  `sidebar_options` mediumtext NOT NULL,
  `fb_url` varchar(200) NOT NULL,
  `twitter_url` varchar(200) NOT NULL,
  `youtube_url` varchar(200) NOT NULL,
  `google_plus` varchar(200) NOT NULL,
  `instagram_url` varchar(200) NOT NULL,
  `pinterest_url` varchar(200) NOT NULL,
  `linkedin_url` varchar(200) NOT NULL,
  `google_analytics` mediumtext DEFAULT NULL,
  `footer_text` varchar(500) DEFAULT NULL,
  `fav_icon` varchar(250) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `front_cms_settings`
--

INSERT INTO `front_cms_settings` (`id`, `theme`, `is_active_rtl`, `is_active_front_cms`, `is_active_sidebar`, `logo`, `contact_us_email`, `complain_form_email`, `sidebar_options`, `fb_url`, `twitter_url`, `youtube_url`, `google_plus`, `instagram_url`, `pinterest_url`, `linkedin_url`, `google_analytics`, `footer_text`, `fav_icon`, `created_at`) VALUES
(1, 'material_pink', NULL, NULL, NULL, '', '', '', '[\"news\",\"complain\"]', '', '', '', '', '', '', '', '', '', '', '2019-12-07 14:49:31');

-- --------------------------------------------------------

--
-- Table structure for table `general_calls`
--

CREATE TABLE `general_calls` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `contact` varchar(12) NOT NULL,
  `date` date NOT NULL,
  `description` varchar(500) NOT NULL,
  `follow_up_date` date NOT NULL,
  `call_dureation` varchar(50) NOT NULL,
  `note` mediumtext NOT NULL,
  `call_type` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `grades`
--

CREATE TABLE `grades` (
  `id` int(11) NOT NULL,
  `exam_type` varchar(250) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `point` float(10,1) DEFAULT NULL,
  `mark_from` float(10,2) DEFAULT NULL,
  `mark_upto` float(10,2) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `hostel`
--

CREATE TABLE `hostel` (
  `id` int(11) NOT NULL,
  `hostel_name` varchar(100) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `intake` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `hostel_rooms`
--

CREATE TABLE `hostel_rooms` (
  `id` int(11) NOT NULL,
  `hostel_id` int(11) DEFAULT NULL,
  `room_type_id` int(11) DEFAULT NULL,
  `room_no` varchar(200) DEFAULT NULL,
  `no_of_bed` int(11) DEFAULT NULL,
  `cost_per_bed` float(10,2) DEFAULT 0.00,
  `title` varchar(200) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `id_card`
--

CREATE TABLE `id_card` (
  `id` int(11) NOT NULL,
  `title` varchar(100) NOT NULL,
  `school_name` varchar(100) NOT NULL,
  `school_address` varchar(500) NOT NULL,
  `background` varchar(100) NOT NULL,
  `logo` varchar(100) NOT NULL,
  `sign_image` varchar(100) NOT NULL,
  `header_color` varchar(100) NOT NULL,
  `enable_admission_no` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_student_name` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_class` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_fathers_name` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_mothers_name` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_address` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_phone` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_dob` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `enable_blood_group` tinyint(1) NOT NULL COMMENT '0=disable,1=enable',
  `status` tinyint(1) NOT NULL COMMENT '0=disable,1=enable'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `id_card`
--

INSERT INTO `id_card` (`id`, `title`, `school_name`, `school_address`, `background`, `logo`, `sign_image`, `header_color`, `enable_admission_no`, `enable_student_name`, `enable_class`, `enable_fathers_name`, `enable_mothers_name`, `enable_address`, `enable_phone`, `enable_dob`, `enable_blood_group`, `status`) VALUES
(1, 'Sample Student Identity Card', 'Mount Carmel School', '110 Kings Street, CA  Phone: 456542 Email: mount@gmail.com', 'samplebackground12.png', 'samplelogo12.png', 'samplesign12.png', '#595959', 1, 1, 1, 1, 0, 1, 1, 1, 1, 1);

-- --------------------------------------------------------

--
-- Table structure for table `income`
--

CREATE TABLE `income` (
  `id` int(11) NOT NULL,
  `inc_head_id` varchar(11) DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `invoice_no` varchar(200) NOT NULL,
  `date` date DEFAULT NULL,
  `amount` float DEFAULT NULL,
  `note` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'yes',
  `is_deleted` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `documents` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `income_head`
--

CREATE TABLE `income_head` (
  `id` int(255) NOT NULL,
  `income_category` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `is_active` varchar(255) NOT NULL DEFAULT 'yes',
  `is_deleted` varchar(255) NOT NULL DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `income_head`
--

INSERT INTO `income_head` (`id`, `income_category`, `description`, `is_active`, `is_deleted`, `created_at`, `updated_at`) VALUES
(1, 'School Income', 'Income from school fees', 'yes', 'no', '2020-02-28 08:08:52', NULL),
(2, 'Transport Income', 'Income from Transport', 'yes', 'no', '2020-02-28 08:09:07', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `item`
--

CREATE TABLE `item` (
  `id` int(11) NOT NULL,
  `item_category_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `unit` varchar(100) NOT NULL,
  `item_photo` varchar(225) DEFAULT NULL,
  `description` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `item_store_id` int(11) DEFAULT NULL,
  `item_supplier_id` int(11) DEFAULT NULL,
  `quantity` int(100) NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `item_category`
--

CREATE TABLE `item_category` (
  `id` int(255) NOT NULL,
  `item_category` varchar(255) NOT NULL,
  `is_active` varchar(255) NOT NULL DEFAULT 'yes',
  `description` varchar(255) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `item_issue`
--

CREATE TABLE `item_issue` (
  `id` int(11) NOT NULL,
  `issue_type` varchar(15) DEFAULT NULL,
  `issue_to` varchar(100) DEFAULT NULL,
  `issue_by` varchar(100) DEFAULT NULL,
  `issue_date` date DEFAULT NULL,
  `return_date` date DEFAULT NULL,
  `item_category_id` int(11) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `quantity` int(10) NOT NULL,
  `note` text NOT NULL,
  `is_returned` int(2) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `is_active` varchar(10) DEFAULT 'no'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `item_stock`
--

CREATE TABLE `item_stock` (
  `id` int(11) NOT NULL,
  `item_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `symbol` varchar(10) NOT NULL DEFAULT '+',
  `store_id` int(11) DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  `purchase_price` varchar(100) NOT NULL,
  `date` date NOT NULL,
  `attachment` varchar(250) DEFAULT NULL,
  `description` text NOT NULL,
  `is_active` varchar(10) DEFAULT 'yes',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `item_store`
--

CREATE TABLE `item_store` (
  `id` int(255) NOT NULL,
  `item_store` varchar(255) NOT NULL,
  `code` varchar(255) NOT NULL,
  `description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `item_supplier`
--

CREATE TABLE `item_supplier` (
  `id` int(255) NOT NULL,
  `item_supplier` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `contact_person_name` varchar(255) NOT NULL,
  `contact_person_phone` varchar(255) NOT NULL,
  `contact_person_email` varchar(255) NOT NULL,
  `description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `languages`
--

CREATE TABLE `languages` (
  `id` int(11) NOT NULL,
  `language` varchar(50) DEFAULT NULL,
  `short_code` varchar(255) NOT NULL,
  `country_code` varchar(255) NOT NULL,
  `is_deleted` varchar(10) NOT NULL DEFAULT 'yes',
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `languages`
--

INSERT INTO `languages` (`id`, `language`, `short_code`, `country_code`, `is_deleted`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Azerbaijan', 'az', 'az', 'no', 'no', '2019-11-20 11:23:12', '0000-00-00'),
(2, 'Albanian', 'sq', 'al', 'no', 'no', '2019-11-20 11:42:42', '0000-00-00'),
(3, 'Amharic', 'am', 'am', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(4, 'English', 'en', 'us', 'no', 'no', '2019-11-20 11:38:50', '0000-00-00'),
(5, 'Arabic', 'ar', 'sa', 'no', 'no', '2019-11-20 11:47:28', '0000-00-00'),
(7, 'Afrikaans', 'af', 'af', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(8, 'Basque', 'eu', 'es', 'no', 'no', '2019-11-20 11:54:10', '0000-00-00'),
(11, 'Bengali', 'bn', 'in', 'no', 'no', '2019-11-20 11:41:53', '0000-00-00'),
(13, 'Bosnian', 'bs', 'bs', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(14, 'Welsh', 'cy', 'cy', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(15, 'Hungarian', 'hu', 'hu', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(16, 'Vietnamese', 'vi', 'vi', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(17, 'Haitian (Creole)', 'ht', 'ht', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(18, 'Galician', 'gl', 'gl', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(19, 'Dutch', 'nl', 'nl', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(21, 'Greek', 'el', 'gr', 'no', 'no', '2019-11-20 12:12:08', '0000-00-00'),
(22, 'Georgian', 'ka', 'ge', 'no', 'no', '2019-11-20 12:11:40', '0000-00-00'),
(23, 'Gujarati', 'gu', 'in', 'no', 'no', '2019-11-20 11:39:16', '0000-00-00'),
(24, 'Danish', 'da', 'dk', 'no', 'no', '2019-11-20 12:03:25', '0000-00-00'),
(25, 'Hebrew', 'he', 'il', 'no', 'no', '2019-11-20 12:13:50', '0000-00-00'),
(26, 'Yiddish', 'yi', 'il', 'no', 'no', '2019-11-20 12:25:33', '0000-00-00'),
(27, 'Indonesian', 'id', 'id', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(28, 'Irish', 'ga', 'ga', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(29, 'Italian', 'it', 'it', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(30, 'Icelandic', 'is', 'is', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(31, 'Spanish', 'es', 'es', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(33, 'Kannada', 'kn', 'kn', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(34, 'Catalan', 'ca', 'ca', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(36, 'Chinese', 'zh', 'cn', 'no', 'no', '2019-11-20 12:01:48', '0000-00-00'),
(37, 'Korean', 'ko', 'kr', 'no', 'no', '2019-11-20 12:19:09', '0000-00-00'),
(38, 'Xhosa', 'xh', 'ls', 'no', 'no', '2019-11-20 12:24:39', '0000-00-00'),
(39, 'Latin', 'la', 'la', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(40, 'Latvian', 'lv', 'lv', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(41, 'Lithuanian', 'lt', 'lt', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(43, 'Malagasy', 'mg', 'mg', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(44, 'Malay', 'ms', 'ms', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(45, 'Malayalam', 'ml', 'ml', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(46, 'Maltese', 'mt', 'mt', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(47, 'Macedonian', 'mk', 'mk', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(48, 'Maori', 'mi', 'nz', 'no', 'no', '2019-11-20 12:20:27', '0000-00-00'),
(49, 'Marathi', 'mr', 'in', 'no', 'no', '2019-11-20 11:39:51', '0000-00-00'),
(51, 'Mongolian', 'mn', 'mn', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(52, 'German', 'de', 'de', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(53, 'Nepali', 'ne', 'ne', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(54, 'Norwegian', 'no', 'no', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(55, 'Punjabi', 'pa', 'in', 'no', 'no', '2019-11-20 11:40:16', '0000-00-00'),
(57, 'Persian', 'fa', 'ir', 'no', 'no', '2019-11-20 12:21:17', '0000-00-00'),
(59, 'Portuguese', 'pt', 'pt', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(60, 'Romanian', 'ro', 'ro', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(61, 'Russian', 'ru', 'ru', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(62, 'Cebuano', 'ceb', 'ph', 'no', 'no', '2019-11-20 11:59:12', '0000-00-00'),
(64, 'Sinhala', 'si', 'si', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(65, 'Slovakian', 'sk', 'sk', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(66, 'Slovenian', 'sl', 'sl', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(67, 'Swahili', 'sw', 'ke', 'no', 'no', '2019-11-20 12:21:57', '0000-00-00'),
(68, 'Sundanese', 'su', 'sd', 'no', 'no', '2019-12-03 11:06:57', '0000-00-00'),
(70, 'Thai', 'th', 'th', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(71, 'Tagalog', 'tl', 'tl', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(72, 'Tamil', 'ta', 'in', 'no', 'no', '2019-11-20 11:40:53', '0000-00-00'),
(74, 'Telugu', 'te', 'in', 'no', 'no', '2019-11-20 11:41:15', '0000-00-00'),
(75, 'Turkish', 'tr', 'tr', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(77, 'Uzbek', 'uz', 'uz', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(79, 'Urdu', 'ur', 'pk', 'no', 'no', '2019-11-20 12:23:57', '0000-00-00'),
(80, 'Finnish', 'fi', 'fi', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(81, 'French', 'fr', 'fr', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(82, 'Hindi', 'hi', 'in', 'no', 'no', '2019-11-20 11:36:34', '0000-00-00'),
(84, 'Czech', 'cs', 'cz', 'no', 'no', '2019-11-20 12:02:36', '0000-00-00'),
(85, 'Swedish', 'sv', 'sv', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(86, 'Scottish', 'gd', 'gd', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(87, 'Estonian', 'et', 'et', 'no', 'no', '2019-11-20 11:24:23', '0000-00-00'),
(88, 'Esperanto', 'eo', 'br', 'no', 'no', '2019-11-21 04:49:18', '0000-00-00'),
(89, 'Javanese', 'jv', 'id', 'no', 'no', '2019-11-20 12:18:29', '0000-00-00'),
(90, 'Japanese', 'ja', 'jp', 'no', 'no', '2019-11-20 12:14:39', '0000-00-00');

-- --------------------------------------------------------

--
-- Table structure for table `leave_types`
--

CREATE TABLE `leave_types` (
  `id` int(11) NOT NULL,
  `type` varchar(200) NOT NULL,
  `is_active` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `libarary_members`
--

CREATE TABLE `libarary_members` (
  `id` int(11) UNSIGNED NOT NULL,
  `library_card_no` varchar(50) DEFAULT NULL,
  `member_type` varchar(50) DEFAULT NULL,
  `member_id` int(11) DEFAULT NULL,
  `is_active` varchar(10) NOT NULL DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `logs`
--

CREATE TABLE `logs` (
  `id` int(11) NOT NULL,
  `message` text DEFAULT NULL,
  `record_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `action` varchar(50) DEFAULT NULL,
  `ip_address` varchar(50) DEFAULT NULL,
  `platform` varchar(50) DEFAULT NULL,
  `agent` varchar(50) DEFAULT NULL,
  `time` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `logs`
--

INSERT INTO `logs` (`id`, `message`, `record_id`, `user_id`, `action`, `ip_address`, `platform`, `agent`, `time`, `created_at`) VALUES
(1, 'Record updated On settings id 1', 1, 1, 'Update', '::1', 'Windows 7', 'Firefox 72.0', '2020-02-16 17:30:05', NULL),
(2, 'Record updated On settings id 1', 1, 1, 'Update', '::1', 'Windows 7', 'Firefox 72.0', '2020-02-16 17:30:15', NULL),
(3, 'Record updated On settings id 1', 1, 1, 'Update', '::1', 'Windows 7', 'Firefox 72.0', '2020-02-16 17:30:22', NULL),
(4, 'Record updated On settings id 1', 1, 1, 'Update', '::1', 'Windows 7', 'Firefox 72.0', '2020-02-16 17:34:23', NULL),
(5, 'Record updated On settings id 1', 1, 1, 'Update', '::1', 'Windows 7', 'Firefox 72.0', '2020-02-16 17:34:38', NULL),
(6, 'Record updated On settings id 1', 1, 1, 'Update', '::1', 'Windows 7', 'Firefox 72.0', '2020-02-16 17:34:51', NULL),
(7, 'Record updated On staff id 2', 2, 1, 'Update', '197.232.61.210', 'Windows 7', 'Firefox 72.0', '2020-02-16 19:28:02', NULL),
(8, 'Record updated On settings id 1', 1, 1, 'Update', '197.232.61.210', 'Windows 7', 'Firefox 72.0', '2020-02-16 19:47:18', NULL),
(9, 'Record updated On settings id 1', 1, 1, 'Update', '197.232.61.210', 'Windows 7', 'Firefox 72.0', '2020-02-16 19:48:43', NULL),
(10, 'Record updated On settings id 1', 1, 1, 'Update', '197.232.61.210', 'Windows 7', 'Firefox 72.0', '2020-02-16 19:50:35', NULL),
(11, 'Record updated On settings id 1', 1, 1, 'Update', '197.232.61.210', 'Windows 7', 'Firefox 72.0', '2020-02-16 19:52:01', NULL),
(12, 'Record updated On settings id 1', 1, 1, 'Update', '197.232.61.210', 'Windows 7', 'Firefox 72.0', '2020-02-16 19:53:23', NULL),
(13, 'Record updated On permission group id 21', 21, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:21:02', NULL),
(14, 'Record updated On permission group id 23', 23, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:21:22', NULL),
(15, 'Record updated On permission group id 17', 17, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:21:50', NULL),
(16, 'Record updated On permission group id 11', 11, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:22:05', NULL),
(17, 'Record updated On permission group id 26', 26, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:22:26', NULL),
(18, 'Record updated On permission group id 25', 25, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:22:48', NULL),
(19, 'Record updated On permission group id 16', 16, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:23:16', NULL),
(20, 'Record updated On permission group id 12', 12, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:23:49', NULL),
(21, 'Record updated On permission group id 9', 9, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:24:09', NULL),
(22, 'Record updated On permission group id 17', 17, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:24:37', NULL),
(23, 'Record updated On permission group id 27', 27, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:27:41', NULL),
(24, 'Record updated On permission group id 10', 10, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:28:07', NULL),
(25, 'Record updated On permission group id 8', 8, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:28:33', NULL),
(26, 'Record updated On  permission student id 12', 12, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:29:16', NULL),
(27, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:33:34', NULL),
(28, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:38:31', NULL),
(29, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:43:31', NULL),
(30, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:44:05', NULL),
(31, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:47:44', NULL),
(32, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:50:01', NULL),
(33, 'Record updated On notification setting id 3', 3, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:52:04', NULL),
(34, 'Record updated On notification setting id 4', 4, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:53:42', NULL),
(35, 'Record updated On notification setting id 7', 7, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:55:29', NULL),
(36, 'Record updated On notification setting id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:56:07', NULL),
(37, 'Record updated On notification setting id 2', 2, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:56:07', NULL),
(38, 'Record updated On notification setting id 3', 3, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:56:07', NULL),
(39, 'Record updated On notification setting id 4', 4, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:56:07', NULL),
(40, 'Record updated On notification setting id 5', 5, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:56:07', NULL),
(41, 'Record updated On notification setting id 6', 6, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:56:07', NULL),
(42, 'Record updated On notification setting id 7', 7, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 21:56:07', NULL),
(43, 'Record updated On  email config id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:09:33', NULL),
(44, 'Record updated On payment settings id 2', 2, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:13:54', NULL),
(45, 'Record deleted On roles id 4', 4, 1, 'Delete', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:15:03', NULL),
(46, 'Record updated On permission group id 20', 20, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:15:46', NULL),
(47, 'New Record inserted On send notification id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:23:39', NULL),
(48, 'New Record inserted On messages id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:25:06', NULL),
(49, 'New Record inserted On messages id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:26:31', NULL),
(50, 'Record updated On permission group id 17', 17, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:27:56', NULL),
(51, 'Record updated On  permission student id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:28:38', NULL),
(52, 'Record updated On permission group id 13', 13, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:28:57', NULL),
(53, 'Record updated On permission group id 11', 11, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:29:29', NULL),
(54, 'Record updated On  permission student id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:30:18', NULL),
(55, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:34:21', NULL),
(56, 'New Record inserted On sections id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:37:46', NULL),
(57, 'New Record inserted On sections id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:37:54', NULL),
(58, 'New Record inserted On sections id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:38:00', NULL),
(59, 'New Record inserted On subject groups id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:38:30', NULL),
(60, 'New Record inserted On subject groups id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:38:42', NULL),
(61, 'New Record inserted On subject groups id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:38:55', NULL),
(62, 'New Record inserted On subjects id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:50:21', NULL),
(63, 'New Record inserted On subjects id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:50:56', NULL),
(64, 'New Record inserted On subjects id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:51:38', NULL),
(65, 'New Record inserted On subjects id 4', 4, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:52:17', NULL),
(66, 'New Record inserted On subjects id 5', 5, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:53:04', NULL),
(67, 'New Record inserted On subject groups id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:53:41', NULL),
(68, 'New Record inserted On subject groups id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 22:54:14', NULL),
(69, 'New Record inserted On  categories id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:09:54', NULL),
(70, 'New Record inserted On  categories id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:10:13', NULL),
(71, 'New Record inserted On  categories id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:10:33', NULL),
(72, 'New Record inserted On school houses id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:11:11', NULL),
(73, 'New Record inserted On school houses id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:11:20', NULL),
(74, 'New Record inserted On school houses id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:11:31', NULL),
(75, 'Record updated On settings id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:34:35', NULL),
(76, 'New Record inserted On students id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:34:35', NULL),
(77, 'New Record inserted On  student session id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:34:35', NULL),
(78, 'New Record inserted On users id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:34:35', NULL),
(79, 'New Record inserted On users id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:34:35', NULL),
(80, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:34:35', NULL),
(81, 'New Record inserted On students id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:44:03', NULL),
(82, 'New Record inserted On  student session id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:44:03', NULL),
(83, 'New Record inserted On users id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:44:03', NULL),
(84, 'New Record inserted On users id 4', 4, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:44:03', NULL),
(85, 'Record updated On students id 2', 2, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:44:03', NULL),
(86, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:58:03', NULL),
(87, 'Record updated On  student session id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:58:03', NULL),
(88, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-16 23:58:03', NULL),
(89, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:00:28', NULL),
(90, 'Record updated On  student session id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:00:28', NULL),
(91, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:00:28', NULL),
(92, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:00:28', NULL),
(93, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:00:28', NULL),
(94, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:03:28', NULL),
(95, 'Record updated On  student session id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:03:28', NULL),
(96, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:03:28', NULL),
(97, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:03:28', NULL),
(98, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:03:28', NULL),
(99, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:03:28', NULL),
(100, 'New Record inserted On  student attendences id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:03:58', NULL),
(101, 'New Record inserted On  student attendences id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:04:24', NULL),
(102, 'Record updated On staff id 3', 3, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:07:56', NULL),
(103, 'Record updated On staff id 3', 3, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:07:56', NULL),
(104, 'Record updated On staff id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:08:38', NULL),
(105, 'Record updated On staff id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:08:38', NULL),
(106, 'Record updated On staff id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:08:38', NULL),
(107, 'New Record inserted On department id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:09:05', NULL),
(108, 'New Record inserted On department id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:09:12', NULL),
(109, 'New Record inserted On department id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:09:19', NULL),
(110, 'New Record inserted On vehicles id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:10:39', NULL),
(111, 'New Record inserted On vehicles id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:11:15', NULL),
(112, 'New Record inserted On transport route id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:11:36', NULL),
(113, 'New Record inserted On transport route id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:12:02', NULL),
(114, 'New Record inserted On transport route id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:12:16', NULL),
(115, 'New Record inserted On  fee type id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:14:20', NULL),
(116, 'New Record inserted On  fee type id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:14:53', NULL),
(117, 'New Record inserted On  fee type id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:15:19', NULL),
(118, 'New Record inserted On  fee type id 4', 4, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:15:50', NULL),
(119, 'New Record inserted On  fee type id 5', 5, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:16:16', NULL),
(120, 'New Record inserted On  fee type id 6', 6, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:16:33', NULL),
(121, 'New Record inserted On  fee type id 7', 7, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:17:10', NULL),
(122, 'New Record inserted On  fee type id 8', 8, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:17:37', NULL),
(123, 'New Record inserted On  fee type id 9', 9, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:17:48', NULL),
(124, 'New Record inserted On  fee type id 10', 10, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:18:04', NULL),
(125, 'New Record inserted On  fee type id 11', 11, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:18:16', NULL),
(126, 'New Record inserted On  fee type id 12', 12, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:18:28', NULL),
(127, 'New Record inserted On  fee type id 13', 13, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:18:38', NULL),
(128, 'New Record inserted On  fees discounts id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:19:24', NULL),
(129, 'New Record inserted On  fees discounts id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:19:53', NULL),
(130, 'New Record inserted On  fee groups id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:21:58', NULL),
(131, 'New Record inserted On  fee groups id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:22:12', NULL),
(132, 'New Record inserted On  fee groups id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:22:31', NULL),
(133, 'New Record inserted On  fee groups id 4', 4, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:22:48', NULL),
(134, 'New Record inserted On  fee groups id 5', 5, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:23:02', NULL),
(135, 'New Record inserted On  fee groups id 6', 6, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:23:33', NULL),
(136, 'New Record inserted On  fee groups id 7', 7, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:23:49', NULL),
(137, 'New Record inserted On  fee groups id 8', 8, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:24:06', NULL),
(138, 'New Record inserted On vehicle routes id 1', 1, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:24:59', NULL),
(139, 'New Record inserted On vehicle routes id 2', 2, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:25:08', NULL),
(140, 'New Record inserted On vehicle routes id 3', 3, 1, 'Insert', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:25:15', NULL),
(141, 'Record updated On students id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:28:54', NULL),
(142, 'Record updated On  student session id 1', 1, 1, 'Update', '41.90.67.8', 'Windows 7', 'Firefox 72.0', '2020-02-17 00:28:54', NULL),
(143, 'Record updated On staff id 2', 2, 2, 'Update', '41.90.249.62', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-17 07:40:24', NULL),
(144, 'Record updated On staff id 2', 2, 2, 'Update', '41.90.249.62', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-17 07:40:24', NULL),
(145, 'New Record inserted On students id 3', 3, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:38:24', NULL),
(146, 'New Record inserted On  student session id 3', 3, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:38:24', NULL),
(147, 'New Record inserted On users id 5', 5, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:38:24', NULL),
(148, 'New Record inserted On users id 6', 6, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:38:24', NULL),
(149, 'Record updated On students id 3', 3, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:38:24', NULL),
(150, 'Record updated On permission group id 9', 9, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:41:05', NULL),
(151, 'New Record inserted On students id 4', 4, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(152, 'New Record inserted On  student session id 4', 4, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(153, 'New Record inserted On users id 7', 7, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(154, 'New Record inserted On users id 8', 8, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(155, 'Record updated On students id 4', 4, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(156, 'Record updated On students id 4', 4, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(157, 'Record updated On students id 4', 4, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(158, 'Record updated On students id 4', 4, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:22', NULL),
(159, 'Record updated On permission group id 9', 9, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:43:39', NULL),
(160, 'Record updated On permission group id 17', 17, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:44:17', NULL),
(161, 'Record updated On permission group id 17', 17, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:46:10', NULL),
(162, 'Record updated On permission group id 27', 27, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:46:25', NULL),
(163, 'Record updated On permission group id 27', 27, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:47:21', NULL),
(164, 'Record updated On permission group id 23', 23, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:47:31', NULL),
(165, 'Record updated On permission group id 23', 23, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:48:43', NULL),
(166, 'Record updated On permission group id 12', 12, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:48:53', NULL),
(167, 'Record updated On permission group id 12', 12, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:51:21', NULL),
(168, 'Record updated On permission group id 10', 10, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:51:31', NULL),
(169, 'Record updated On permission group id 10', 10, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 07:52:37', NULL),
(170, 'Record updated On permission group id 16', 16, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:06:34', NULL),
(171, 'Record updated On permission group id 16', 16, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:07:56', NULL),
(172, 'Record updated On permission group id 25', 25, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:08:31', NULL),
(173, 'Record updated On permission group id 25', 25, 1, 'Update', '105.230.246.221', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:09:10', NULL),
(174, 'New Record inserted On students id 5', 5, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:13:53', NULL),
(175, 'New Record inserted On  student session id 5', 5, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:13:53', NULL),
(176, 'New Record inserted On users id 9', 9, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:13:53', NULL),
(177, 'New Record inserted On users id 10', 10, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:13:53', NULL),
(178, 'Record updated On students id 5', 5, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:13:54', NULL),
(179, 'New Record inserted On students id 6', 6, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:36', NULL),
(180, 'New Record inserted On  student session id 6', 6, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:36', NULL),
(181, 'New Record inserted On users id 11', 11, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:36', NULL),
(182, 'New Record inserted On users id 12', 12, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:36', NULL),
(183, 'Record updated On students id 6', 6, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:36', NULL),
(184, 'Record updated On students id 6', 6, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:36', NULL),
(185, 'Record updated On students id 6', 6, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:36', NULL),
(186, 'Record updated On students id 6', 6, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 79.0.3945.130', '2020-02-25 08:38:37', NULL),
(187, 'Record deleted On sections id 3', 3, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:01:42', NULL),
(188, 'Record deleted On sections id 1', 1, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:01:46', NULL),
(189, 'Record updated On sections id 2', 2, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:01:55', NULL),
(190, 'New Record inserted On sections id 4', 4, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:02:12', NULL),
(191, 'Record updated On classes id 2', 2, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:02:31', NULL),
(192, 'Record deleted On classes id 1', 1, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:02:36', NULL),
(193, 'New Record inserted On subject groups id 4', 4, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:02:42', NULL),
(194, 'New Record inserted On subject groups id 5', 5, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:02:53', NULL),
(195, 'New Record inserted On subject groups id 6', 6, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:03:01', NULL),
(196, 'New Record inserted On subject groups id 7', 7, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:03:09', NULL),
(197, 'Record deleted On classes id 3', 3, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:03:18', NULL),
(198, 'Record updated On sessions id 14', 14, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:05:28', NULL),
(199, 'Record updated On sessions id 15', 15, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:06:30', NULL),
(200, 'Record updated On sessions id 16', 16, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:06:50', NULL),
(201, 'Record deleted On sessions id 18', 18, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:06:57', NULL),
(202, 'New Record inserted On sessions id 26', 26, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:17', NULL),
(203, 'Record deleted On sessions id 20', 20, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:22', NULL),
(204, 'Record deleted On sessions id 22', 22, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:27', NULL),
(205, 'Record deleted On sessions id 23', 23, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:34', NULL),
(206, 'Record deleted On sessions id 24', 24, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:39', NULL),
(207, 'Record deleted On sessions id 19', 19, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:43', NULL),
(208, 'New Record inserted On sessions id 27', 27, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:52', NULL),
(209, 'Record deleted On sessions id 21', 21, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:07:58', NULL),
(210, 'Record deleted On sessions id 25', 25, 1, 'Delete', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:08:02', NULL),
(211, 'New Record inserted On sessions id 28', 28, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-27 12:08:15', NULL),
(212, 'Record updated On permission group id 8', 8, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:27:06', NULL),
(213, 'Record updated On permission group id 8', 8, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:28:43', NULL),
(214, 'Record updated On permission group id 20', 20, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:28:54', NULL),
(215, 'Record updated On permission group id 20', 20, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:33:39', NULL),
(216, 'Record updated On permission group id 21', 21, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:33:55', NULL),
(217, 'Record updated On permission group id 8', 8, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:34:02', NULL),
(218, 'Record updated On permission group id 8', 8, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:36:27', NULL),
(219, 'Record updated On permission group id 21', 21, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:36:35', NULL),
(220, 'Record updated On permission group id 17', 17, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:36:42', NULL),
(221, 'Record updated On permission group id 17', 17, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:37:53', NULL),
(222, 'Record updated On permission group id 23', 23, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:38:05', NULL),
(223, 'Record updated On permission group id 23', 23, 1, 'Update', '154.79.137.217', 'Android', 'Chrome 80.0.3987.87', '2020-02-27 16:39:00', NULL),
(224, 'New Record inserted On students id 7', 7, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:37:55', NULL),
(225, 'New Record inserted On  student session id 7', 7, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:37:55', NULL),
(226, 'New Record inserted On users id 13', 13, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:37:55', NULL),
(227, 'New Record inserted On users id 14', 14, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:37:55', NULL),
(228, 'Record updated On students id 7', 7, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:37:55', NULL),
(229, 'New Record inserted On students id 8', 8, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(230, 'New Record inserted On  student session id 8', 8, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(231, 'New Record inserted On users id 15', 15, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(232, 'New Record inserted On users id 16', 16, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(233, 'Record updated On students id 8', 8, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(234, 'Record updated On students id 8', 8, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(235, 'Record updated On students id 8', 8, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(236, 'Record updated On students id 8', 8, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(237, 'Record updated On students id 8', 8, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:40:18', NULL),
(238, 'New Record inserted On students id 9', 9, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:46:59', NULL),
(239, 'New Record inserted On  student session id 9', 9, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:46:59', NULL),
(240, 'New Record inserted On users id 17', 17, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:46:59', NULL),
(241, 'New Record inserted On users id 18', 18, 2, 'Insert', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:46:59', NULL),
(242, 'Record updated On students id 9', 9, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:46:59', NULL),
(243, 'Record updated On students id 9', 9, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:46:59', NULL),
(244, 'Record updated On students id 9', 9, 2, 'Update', '41.139.159.11', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 06:46:59', NULL),
(245, 'New Record inserted On  income head   id 1', 1, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 08:08:52', NULL),
(246, 'New Record inserted On  income head   id 2', 2, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 08:09:07', NULL),
(247, 'New Record inserted On  fee groups feetype id 1', 1, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 08:17:03', NULL),
(248, 'New Record inserted On  fee groups feetype id 2', 2, 1, 'Insert', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.122', '2020-02-28 08:17:27', NULL),
(249, 'Record updated On permission group id 17', 17, 1, 'Update', '105.231.92.108', 'Android', 'Chrome 80.0.3987.87', '2020-03-19 07:48:18', NULL),
(250, 'Record updated On permission group id 17', 17, 1, 'Update', '105.231.92.108', 'Android', 'Chrome 80.0.3987.87', '2020-03-19 07:52:07', NULL),
(251, 'Record updated On permission group id 4', 4, 1, 'Update', '105.231.92.108', 'Android', 'Chrome 80.0.3987.87', '2020-03-19 07:52:11', NULL),
(252, 'Record updated On permission group id 8', 8, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:43:41', NULL),
(253, 'Record updated On permission group id 8', 8, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:47:39', NULL),
(254, 'Record updated On permission group id 10', 10, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:47:45', NULL),
(255, 'Record updated On permission group id 9', 9, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:47:51', NULL),
(256, 'Record updated On permission group id 23', 23, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:48:00', NULL),
(257, 'Record updated On permission group id 9', 9, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:51:52', NULL),
(258, 'Record updated On permission group id 10', 10, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:51:59', NULL),
(259, 'Record updated On permission group id 19', 19, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:52:10', NULL),
(260, 'Record updated On permission group id 23', 23, 1, 'Update', '154.157.81.222', 'Android', 'Chrome 80.0.3987.87', '2020-03-27 13:52:16', NULL),
(261, 'Record updated On settings id 1', 1, 1, 'Update', '197.232.61.232', 'Windows 7', 'Chrome 80.0.3987.149', '2020-03-31 22:00:00', NULL),
(262, 'Record updated On staff id 1', 1, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.149', '2020-04-01 05:28:17', NULL),
(263, 'Record updated On staff id 1', 1, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.149', '2020-04-01 05:28:17', NULL),
(264, 'Record updated On staff id 4', 4, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.149', '2020-04-01 05:30:31', NULL),
(265, 'Record updated On staff id 5', 5, 1, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.149', '2020-04-01 06:21:50', NULL),
(266, 'Record updated On staff id 6', 6, 4, 'Update', '41.139.245.198', 'Windows 10', 'Chrome 80.0.3987.149', '2020-04-01 07:02:13', NULL),
(267, 'Record updated On permission group id 17', 17, 4, 'Update', '41.80.238.8', 'Windows 10', 'Chrome 80.0.3987.149', '2020-04-01 09:54:19', NULL),
(268, 'Record updated On permission group id 17', 17, 4, 'Update', '41.80.238.8', 'Windows 10', 'Chrome 80.0.3987.149', '2020-04-01 09:56:16', NULL),
(269, 'New Record inserted On students id 10', 10, 4, 'Insert', '41.90.143.166', 'Windows 10', 'Chrome 83.0.4103.61', '2020-06-02 14:17:05', NULL),
(270, 'New Record inserted On  student session id 10', 10, 4, 'Insert', '41.90.143.166', 'Windows 10', 'Chrome 83.0.4103.61', '2020-06-02 14:17:05', NULL),
(271, 'New Record inserted On users id 19', 19, 4, 'Insert', '41.90.143.166', 'Windows 10', 'Chrome 83.0.4103.61', '2020-06-02 14:17:05', NULL),
(272, 'New Record inserted On users id 20', 20, 4, 'Insert', '41.90.143.166', 'Windows 10', 'Chrome 83.0.4103.61', '2020-06-02 14:17:05', NULL),
(273, 'Record updated On students id 10', 10, 4, 'Update', '41.90.143.166', 'Windows 10', 'Chrome 83.0.4103.61', '2020-06-02 14:17:05', NULL),
(274, 'New Record inserted On  fee groups feetype id 3', 3, 6, 'Insert', '41.90.143.166', 'Windows 10', 'Chrome 83.0.4103.61', '2020-06-02 14:21:59', NULL),
(275, 'Record updated On permission group id 16', 16, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:33:08', NULL),
(276, 'Record updated On permission group id 17', 17, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:33:15', NULL),
(277, 'Record updated On permission group id 19', 19, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:33:22', NULL),
(278, 'Record updated On permission group id 23', 23, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:33:31', NULL),
(279, 'Record updated On permission group id 23', 23, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:39:24', NULL),
(280, 'Record updated On permission group id 19', 19, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:39:30', NULL),
(281, 'Record updated On permission group id 17', 17, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:39:36', NULL),
(282, 'Record updated On permission group id 16', 16, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:39:41', NULL),
(283, 'Record updated On permission group id 10', 10, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:39:55', NULL),
(284, 'Record updated On permission group id 3', 3, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:40:11', NULL),
(285, 'Record updated On permission group id 10', 10, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:41:52', NULL),
(286, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:44:20', NULL),
(287, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:45:35', NULL),
(288, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:45:44', NULL),
(289, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:46:20', NULL),
(290, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:46:42', NULL),
(291, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:47:23', NULL),
(292, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:47:43', NULL),
(293, 'Record updated On settings id 1', 1, 4, 'Update', '41.90.74.63', 'Windows 10', 'Chrome 83.0.4103.106', '2020-06-19 12:48:48', NULL),
(294, 'Record updated On permission group id 23', 23, 4, 'Update', '41.80.234.25', 'Windows 10', 'Chrome 84.0.4147.105', '2020-08-06 14:51:43', NULL),
(295, 'Record updated On permission group id 23', 23, 4, 'Update', '41.80.234.25', 'Windows 10', 'Chrome 84.0.4147.105', '2020-08-06 14:53:02', NULL),
(296, 'Record updated On sessions id 15', 15, 4, 'Update', '41.80.247.130', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-13 12:13:57', NULL),
(297, 'Record updated On settings id 1', 1, 4, 'Update', '41.80.247.130', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-13 12:16:07', NULL),
(298, 'Record updated On permission group id 17', 17, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 08:06:11', NULL),
(299, 'Record updated On permission group id 19', 19, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 08:19:51', NULL),
(300, 'Record updated On permission group id 3', 3, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:15:42', NULL),
(301, 'Record updated On permission group id 4', 4, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:15:50', NULL),
(302, 'Record updated On permission group id 8', 8, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:15:56', NULL),
(303, 'Record updated On permission group id 9', 9, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:02', NULL),
(304, 'Record updated On permission group id 10', 10, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:08', NULL),
(305, 'Record updated On permission group id 12', 12, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:14', NULL),
(306, 'Record updated On permission group id 13', 13, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:20', NULL),
(307, 'Record updated On permission group id 16', 16, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:27', NULL),
(308, 'Record updated On permission group id 27', 27, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:39', NULL),
(309, 'Record updated On permission group id 26', 26, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:46', NULL),
(310, 'Record updated On permission group id 25', 25, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:52', NULL),
(311, 'Record updated On permission group id 23', 23, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:16:59', NULL),
(312, 'Record updated On permission group id 21', 21, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:17:06', NULL),
(313, 'Record updated On permission group id 20', 20, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:17:12', NULL),
(314, 'Record updated On settings id 1', 1, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:38:19', NULL),
(315, 'Record updated On permission group id 3', 3, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:58:59', NULL),
(316, 'Record updated On permission group id 4', 4, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:59:06', NULL),
(317, 'Record updated On permission group id 8', 8, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:59:21', NULL),
(318, 'Record updated On permission group id 9', 9, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:59:30', NULL),
(319, 'Record updated On permission group id 10', 10, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 14:59:41', NULL),
(320, 'Record updated On permission group id 12', 12, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:00', NULL),
(321, 'Record updated On permission group id 13', 13, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:10', NULL),
(322, 'Record updated On permission group id 16', 16, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:18', NULL),
(323, 'Record updated On permission group id 17', 17, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:26', NULL),
(324, 'Record updated On permission group id 27', 27, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:33', NULL),
(325, 'Record updated On permission group id 26', 26, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:39', NULL),
(326, 'Record updated On permission group id 25', 25, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:47', NULL),
(327, 'Record updated On permission group id 23', 23, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:00:54', NULL),
(328, 'Record updated On permission group id 21', 21, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:01:00', NULL),
(329, 'Record updated On permission group id 20', 20, 4, 'Update', '41.80.135.38', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-14 15:01:07', NULL),
(330, 'Record updated On permission group id 17', 17, 4, 'Update', '197.237.128.154', 'Windows 10', 'Chrome 84.0.4147.125', '2020-08-18 09:17:14', NULL),
(331, 'Record updated On permission group id 17', 17, 4, 'Update', '197.232.48.40', 'Windows 10', 'Chrome 86.0.4240.75', '2020-10-15 10:21:06', NULL),
(332, 'Record updated On sessions id 26', 26, 4, 'Update', '41.212.29.226', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-19 13:11:27', NULL),
(333, 'Record updated On settings id 1', 1, 4, 'Update', '41.212.29.226', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 04:32:01', NULL),
(334, 'Record updated On settings id 1', 1, 4, 'Update', '41.212.29.226', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 04:32:46', NULL),
(335, 'Record updated On settings id 1', 1, 4, 'Update', '41.212.29.226', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 04:34:14', NULL),
(336, 'Record updated On permission group id 3', 3, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:10', NULL),
(337, 'Record updated On permission group id 4', 4, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:13', NULL),
(338, 'Record updated On permission group id 4', 4, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:18', NULL),
(339, 'Record updated On permission group id 8', 8, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:25', NULL),
(340, 'Record updated On permission group id 9', 9, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:29', NULL),
(341, 'Record updated On permission group id 9', 9, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:33', NULL),
(342, 'Record updated On permission group id 10', 10, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:40', NULL),
(343, 'Record updated On permission group id 12', 12, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:49', NULL),
(344, 'Record updated On permission group id 13', 13, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:53', NULL),
(345, 'Record updated On permission group id 13', 13, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:13:57', NULL),
(346, 'Record updated On permission group id 16', 16, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:05', NULL),
(347, 'Record updated On permission group id 17', 17, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:12', NULL),
(348, 'Record updated On permission group id 20', 20, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:19', NULL),
(349, 'Record updated On permission group id 21', 21, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:26', NULL),
(350, 'Record updated On permission group id 23', 23, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:33', NULL),
(351, 'Record updated On permission group id 25', 25, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:40', NULL),
(352, 'Record updated On permission group id 26', 26, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:51', NULL),
(353, 'Record updated On permission group id 27', 27, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:14:58', NULL),
(354, 'Record updated On permission group id 3', 3, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:43:10', NULL);
INSERT INTO `logs` (`id`, `message`, `record_id`, `user_id`, `action`, `ip_address`, `platform`, `agent`, `time`, `created_at`) VALUES
(355, 'Record updated On permission group id 3', 3, 4, 'Update', '197.232.97.8', 'Windows 10', 'Chrome 87.0.4280.141', '2021-01-20 08:43:22', NULL),
(356, 'Record updated On permission group id 3', 3, 4, 'Update', '41.90.5.119', 'Windows 10', 'Chrome 90.0.4430.93', '2021-05-08 05:43:29', NULL),
(357, 'Record updated On permission group id 3', 3, 4, 'Update', '41.90.5.119', 'Windows 10', 'Chrome 90.0.4430.93', '2021-05-08 06:07:53', NULL),
(358, 'New Record inserted On students id 10', 10, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(359, 'New Record inserted On  student session id 10', 10, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(360, 'New Record inserted On users id 19', 19, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(361, 'New Record inserted On users id 20', 20, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(362, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(363, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(364, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(365, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(366, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:26:59', NULL),
(367, 'New Record inserted On  fee groups feetype id 3', 3, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:46:15', NULL),
(368, 'New Record inserted On  fee groups feetype id 4', 4, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:46:40', NULL),
(369, 'New Record inserted On  fee groups feetype id 5', 5, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:47:33', NULL),
(370, 'New Record inserted On  fee groups feetype id 6', 6, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:48:26', NULL),
(371, 'New Record inserted On  fee groups feetype id 7', 7, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:49:02', NULL),
(372, 'New Record inserted On  fee groups feetype id 8', 8, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:49:28', NULL),
(373, 'New Record inserted On  fee groups feetype id 9', 9, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:49:49', NULL),
(374, 'New Record inserted On  fee groups feetype id 10', 10, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 09:50:07', NULL),
(375, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:00:00', NULL),
(376, 'Record updated On  student session id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:00:00', NULL),
(377, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:02:08', NULL),
(378, 'Record updated On  student session id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:02:08', NULL),
(379, 'Record updated On students id 10', 10, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:02:08', NULL),
(380, 'New Record inserted On subject groups id 3', 3, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:05:43', NULL),
(381, 'New Record inserted On  subject timetable id 1', 1, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:06:41', NULL),
(382, 'Record updated On sessions id 28', 28, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:33:06', NULL),
(383, 'Record updated On settings id 1', 1, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:33:54', NULL),
(384, 'Record updated On settings id 1', 1, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:38:44', NULL),
(385, 'Record updated On notification setting id 1', 1, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:39:34', NULL),
(386, 'Record updated On notification setting id 2', 2, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:39:34', NULL),
(387, 'Record updated On notification setting id 3', 3, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:39:34', NULL),
(388, 'Record updated On notification setting id 4', 4, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:39:34', NULL),
(389, 'Record updated On notification setting id 5', 5, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:39:34', NULL),
(390, 'Record updated On notification setting id 6', 6, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:39:34', NULL),
(391, 'Record updated On notification setting id 7', 7, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:39:34', NULL),
(392, 'New Record inserted On staff payslip id 1', 1, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:44:13', NULL),
(393, 'Record updated On staff payslip id 1', 1, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:44:44', NULL),
(394, 'New Record inserted On staff payslip id 2', 2, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:47:57', NULL),
(395, 'Record updated On staff payslip id 2', 2, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:48:23', NULL),
(396, 'New Record inserted On  expense head id 1', 1, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:49:19', NULL),
(397, 'New Record inserted On students id 11', 11, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:55:51', NULL),
(398, 'New Record inserted On  student session id 11', 11, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:55:51', NULL),
(399, 'New Record inserted On users id 21', 21, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:55:51', NULL),
(400, 'New Record inserted On users id 22', 22, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:55:51', NULL),
(401, 'Record updated On students id 11', 11, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:55:51', NULL),
(402, 'New Record inserted On  fee groups feetype id 11', 11, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:57:23', NULL),
(403, 'New Record inserted On  fee groups feetype id 12', 12, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 10:58:16', NULL),
(404, 'Record updated On  student session id 11', 11, 4, 'Update', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-10 11:05:39', NULL),
(405, 'New Record inserted On sections id 5', 5, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-12 20:04:34', NULL),
(406, 'New Record inserted On libarary members id 1', 1, 4, 'Insert', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-12 20:16:20', NULL),
(407, 'Record deleted On libarary members id 1', 1, 4, 'Delete', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-12 20:17:28', NULL),
(408, 'Record deleted On book issues id 1', 1, 4, 'Delete', '41.212.107.182', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-12 20:17:28', NULL),
(409, 'New Record inserted On  fee groups feetype id 13', 13, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:35:07', NULL),
(410, 'New Record inserted On students id 12', 12, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(411, 'New Record inserted On  student session id 12', 12, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(412, 'New Record inserted On users id 23', 23, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(413, 'New Record inserted On users id 24', 24, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(414, 'Record updated On students id 12', 12, 4, 'Update', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(415, 'Record updated On students id 12', 12, 4, 'Update', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(416, 'Record updated On students id 12', 12, 4, 'Update', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(417, 'Record updated On students id 12', 12, 4, 'Update', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 10:39:09', NULL),
(418, 'New Record inserted On class teacher id 1', 1, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 11:00:33', NULL),
(419, 'New Record inserted On subject groups id 4', 4, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 11:03:55', NULL),
(420, 'New Record inserted On  subject timetable id 2', 2, 4, 'Insert', '105.163.239.33', 'Windows 10', 'Chrome 93.0.4577.63', '2021-09-13 11:05:15', NULL),
(421, 'New Record inserted On visitors purpose id 1', 1, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:29:25', NULL),
(422, 'New Record inserted On  visitors  id 1', 1, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:30:03', NULL),
(423, 'Record deleted On  visitors  id 1', 1, 4, 'Delete', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:32:01', NULL),
(424, 'Record deleted On visitors purpose id 1', 1, 4, 'Delete', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:32:14', NULL),
(425, 'New Record inserted On  subject timetable id 3', 3, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:38:37', NULL),
(426, 'New Record inserted On  subject timetable id 2', 2, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:38:37', NULL),
(427, 'New Record inserted On  subject timetable id 1', 1, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:38:37', NULL),
(428, 'New Record inserted On  subject timetable id 0', 0, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:38:37', NULL),
(429, 'New Record inserted On  subject timetable id 7', 7, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:42:20', NULL),
(430, 'New Record inserted On  subject timetable id 6', 6, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:42:20', NULL),
(431, 'New Record inserted On  subject timetable id 5', 5, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:42:20', NULL),
(432, 'New Record inserted On  subject timetable id 10', 10, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:43:38', NULL),
(433, 'New Record inserted On  subject timetable id 9', 9, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:43:38', NULL),
(434, 'New Record inserted On  subject timetable id 8', 8, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:43:38', NULL),
(435, 'New Record inserted On  subject timetable id 13', 13, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:44:20', NULL),
(436, 'New Record inserted On  subject timetable id 12', 12, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:44:20', NULL),
(437, 'New Record inserted On  subject timetable id 11', 11, 4, 'Insert', '41.212.107.166', 'Windows 10', 'Chrome 95.0.4638.54', '2021-10-30 09:44:20', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `messages`
--

CREATE TABLE `messages` (
  `id` int(11) NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `message` text DEFAULT NULL,
  `send_mail` varchar(10) DEFAULT '0',
  `send_sms` varchar(10) DEFAULT '0',
  `is_group` varchar(10) DEFAULT '0',
  `is_individual` varchar(10) DEFAULT '0',
  `is_class` int(10) NOT NULL DEFAULT 0,
  `group_list` text DEFAULT NULL,
  `user_list` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `messages`
--

INSERT INTO `messages` (`id`, `title`, `message`, `send_mail`, `send_sms`, `is_group`, `is_individual`, `is_class`, `group_list`, `user_list`, `created_at`, `updated_at`) VALUES
(1, 'BOFA COMMUNITY', '<div class=\"s\">\r\n<div><em>Lorem ipsum</em>, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero&#39;s De Finibus Bonorum et Malorum for use in a type specimen book.</div>\r\n</div>\r\n', '1', '0', '1', '0', 0, '[]', NULL, '2020-02-16 22:25:06', NULL),
(2, 'GREAT SCHOOL SYSTEM', '<div class=\"s\">\r\n<div><strong><em>Lorem ipsum</em>, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero&#39;s De Finibus Bonorum et Malorum for use in a type<span style=\"color:#A52A2A\"> specimen book.</span></strong></div>\r\n</div>\r\n', '1', '0', '0', '1', 0, NULL, '[{\"category\":\"staff\",\"user_id\":\"1\",\"email\":\"albanus@digitaledgekenya.com\",\"guardianEmail\":\"\",\"mobileno\":\"\"}]', '2020-02-16 22:26:31', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `version` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `notification_roles`
--

CREATE TABLE `notification_roles` (
  `id` int(11) NOT NULL,
  `send_notification_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `notification_roles`
--

INSERT INTO `notification_roles` (`id`, `send_notification_id`, `role_id`, `is_active`, `created_at`) VALUES
(1, 1, 1, 0, '2020-02-16 22:23:39'),
(2, 1, 2, 0, '2020-02-16 22:23:39'),
(3, 1, 3, 0, '2020-02-16 22:23:39'),
(4, 1, 6, 0, '2020-02-16 22:23:39'),
(5, 1, 7, 0, '2020-02-16 22:23:39');

-- --------------------------------------------------------

--
-- Table structure for table `notification_setting`
--

CREATE TABLE `notification_setting` (
  `id` int(11) NOT NULL,
  `type` varchar(100) DEFAULT NULL,
  `is_mail` varchar(10) DEFAULT '0',
  `is_sms` varchar(10) DEFAULT '0',
  `template` longtext NOT NULL,
  `variables` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `notification_setting`
--

INSERT INTO `notification_setting` (`id`, `type`, `is_mail`, `is_sms`, `template`, `variables`, `created_at`) VALUES
(1, 'student_admission', '1', '0', 'Dear {{firstname}} {{lastname}} your admission is confirm in Class: {{class}} Section:  {{section}} for Session: {{current_session_name}} for more detail contact System Admin\r\n{{firstname}} {{lastname}} {{class}} {{section}} {{admission_no}} {{roll_no}} {{admission_date}} {{mobileno}} {{email}} {{dob}} {{guardian_name}} {{guardian_relation}} {{guardian_phone}} {{father_name}} {{father_phone}} {{blood_group}} {{mother_name}} {{gender}} {{guardian_email}}', '{{firstname}}  {{lastname}}  {{class}}  {{section}}  {{admission_no}}  {{roll_no}}  {{admission_date}}   {{mobileno}}  {{email}}  {{dob}}  {{guardian_name}}  {{guardian_relation}}  {{guardian_phone}}  {{father_name}}  {{father_phone}}  {{blood_group}}  {{mother_name}}  {{gender}}  {{guardian_email}} {{current_session_name}}', '2019-12-03 08:09:06'),
(2, 'exam_result', '1', '1', 'Dear {{student_name}} - {{exam_roll_no}}, your {{exam}} result has been published.', '{{student_name}} {{exam_name}} {{total_marks}} {{achive_marks}} {{result}}', '2019-12-17 17:00:11'),
(3, 'fee_submission', '1', '1', 'Dear parents, we have received  Fees Amount {{fee_amount}} for  {{firstname}} {{lastname}}  by BOFA ELEMENTARY', ' {{firstname}} {{lastname}} {{class}} {{section}} {{fine_type}} {{fine_percentage}} {{fine_amount}} {{fee_group_name}} {{type}} {{code}} {{email}} {{contact_no}} {{invoice_id}} {{sub_invoice_id}} {{due_date}} {{amount}} {{fee_amount}}', '2020-02-16 21:56:07'),
(4, 'absent_attendence', '1', '0', 'Absent Notice :{{firstname}} {{lastname}}  was absent on date {{date}} from BOFA ELEMENTARY\r\n{{firstname}} {{lastname}} {{mobileno}} {{email}} {{father_name}} {{father_phone}} {{mother_name}} {{mother_phone}} {{guardian_name}} {{guardian_phone}} {{guardian_email}} {{date}} {{current_session_name}}', '{{firstname}} {{lastname}} {{mobileno}} {{email}} {{father_name}} {{father_phone}} {{father_occupation}} {{mother_name}} {{mother_phone}} {{guardian_name}} {{guardian_phone}} {{guardian_occupation}} {{guardian_email}} {{date}} {{current_session_name}}', '2020-02-16 21:53:42'),
(5, 'login_credential', '1', '0', 'Hello {{display_name}} your login details for Url: {{url}} Username: {{username}}  Password: {{password}}', '{{url}} {{display_name}} {{username}} {{password}}', '2019-12-03 08:09:06'),
(6, 'homework', '1', '1', 'New Homework has been created for {{student_name}} at {{homework_date}} for the class {{class}} {{section}} {{subject}}. kindly submit your homework before {{submit_date}} .Thank you', '{{homework_date}} {{submit_date}} {{class}} {{section}} {{subject}} {{student_name}}', '2020-02-16 21:56:07'),
(7, 'fees_reminder', '1', '1', 'Dear parent, please pay fees amount KES.{{due_amount}} of {{fee_type}} before {{due_date}} for {{firstname}} {{lastname}} from BOFA Elementary School (ignore if you already paid)', '{{fee_type}}{{fee_code}}{{due_date}}{{firstname}} {{lastname}}{{school_name}}{{fee_amount}}{{due_amount}}{{deposit_amount}}', '2020-02-16 21:56:07');

-- --------------------------------------------------------

--
-- Table structure for table `onlineexam_attempts`
--

CREATE TABLE `onlineexam_attempts` (
  `id` int(11) NOT NULL,
  `onlineexam_student_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `onlineexam_student_results`
--

CREATE TABLE `onlineexam_student_results` (
  `id` int(11) NOT NULL,
  `onlineexam_student_id` int(11) NOT NULL,
  `onlineexam_question_id` int(11) NOT NULL,
  `select_option` varchar(10) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `payslip_allowance`
--

CREATE TABLE `payslip_allowance` (
  `id` int(11) NOT NULL,
  `payslip_id` int(11) NOT NULL,
  `allowance_type` varchar(200) NOT NULL,
  `amount` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `cal_type` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `permission_category`
--

CREATE TABLE `permission_category` (
  `id` int(11) NOT NULL,
  `perm_group_id` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `short_code` varchar(100) DEFAULT NULL,
  `enable_view` int(11) DEFAULT 0,
  `enable_add` int(11) DEFAULT 0,
  `enable_edit` int(11) DEFAULT 0,
  `enable_delete` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `permission_category`
--

INSERT INTO `permission_category` (`id`, `perm_group_id`, `name`, `short_code`, `enable_view`, `enable_add`, `enable_edit`, `enable_delete`, `created_at`) VALUES
(1, 1, 'Student', 'student', 1, 1, 1, 1, '2019-10-24 11:12:03'),
(2, 1, 'Import Student', 'import_student', 1, 0, 0, 0, '2018-06-22 15:47:19'),
(3, 1, 'Student Categories', 'student_categories', 1, 1, 1, 1, '2018-06-22 15:47:36'),
(4, 1, 'Student Houses', 'student_houses', 1, 1, 1, 1, '2018-06-22 15:47:53'),
(5, 2, 'Collect Fees', 'collect_fees', 1, 1, 0, 1, '2018-06-22 15:51:03'),
(6, 2, 'Fees Carry Forward', 'fees_carry_forward', 1, 0, 0, 0, '2018-06-27 05:48:15'),
(7, 2, 'Fees Master', 'fees_master', 1, 1, 1, 1, '2018-06-27 05:48:57'),
(8, 2, 'Fees Group', 'fees_group', 1, 1, 1, 1, '2018-06-22 15:51:46'),
(9, 3, 'Income', 'income', 1, 1, 1, 1, '2018-06-22 15:53:21'),
(10, 3, 'Income Head', 'income_head', 1, 1, 1, 1, '2018-06-22 15:52:44'),
(11, 3, 'Search Income', 'search_income', 1, 0, 0, 0, '2018-06-22 15:53:00'),
(12, 4, 'Expense', 'expense', 1, 1, 1, 1, '2018-06-22 15:54:06'),
(13, 4, 'Expense Head', 'expense_head', 1, 1, 1, 1, '2018-06-22 15:53:47'),
(14, 4, 'Search Expense', 'search_expense', 1, 0, 0, 0, '2018-06-22 15:54:13'),
(15, 5, 'Student / Period Attendance', 'student_attendance', 1, 1, 1, 0, '2019-11-29 06:49:05'),
(20, 6, 'Marks Grade', 'marks_grade', 1, 1, 1, 1, '2018-06-22 15:55:25'),
(21, 7, 'Class Timetable', 'class_timetable', 1, 0, 1, 0, '2019-11-24 08:35:17'),
(23, 7, 'Subject', 'subject', 1, 1, 1, 1, '2018-06-22 16:02:17'),
(24, 7, 'Class', 'class', 1, 1, 1, 1, '2018-06-22 16:02:35'),
(25, 7, 'Section', 'section', 1, 1, 1, 1, '2018-06-22 16:01:10'),
(26, 7, 'Promote Student', 'promote_student', 1, 0, 0, 0, '2018-06-22 16:02:47'),
(27, 8, 'Upload Content', 'upload_content', 1, 1, 0, 1, '2018-06-22 16:03:19'),
(28, 9, 'Books List', 'books', 1, 1, 1, 1, '2019-11-24 06:07:12'),
(29, 9, 'Issue Return', 'issue_return', 1, 0, 0, 0, '2019-11-24 06:07:18'),
(30, 9, 'Add Staff Member', 'add_staff_member', 1, 0, 0, 0, '2018-07-02 17:07:00'),
(31, 10, 'Issue Item', 'issue_item', 1, 1, 1, 1, '2019-11-29 12:09:27'),
(32, 10, 'Add Item Stock', 'item_stock', 1, 1, 1, 1, '2019-11-24 06:09:17'),
(33, 10, 'Add Item', 'item', 1, 1, 1, 1, '2019-11-24 06:09:39'),
(34, 10, 'Item Store', 'store', 1, 1, 1, 1, '2019-11-24 06:10:41'),
(35, 10, 'Item Supplier', 'supplier', 1, 1, 1, 1, '2019-11-24 06:10:49'),
(37, 11, 'Routes', 'routes', 1, 1, 1, 1, '2018-06-22 16:09:17'),
(38, 11, 'Vehicle', 'vehicle', 1, 1, 1, 1, '2018-06-22 16:09:36'),
(39, 11, 'Assign Vehicle', 'assign_vehicle', 1, 1, 1, 1, '2018-06-27 10:09:20'),
(40, 12, 'Hostel', 'hostel', 1, 1, 1, 1, '2018-06-22 16:10:49'),
(41, 12, 'Room Type', 'room_type', 1, 1, 1, 1, '2018-06-22 16:10:27'),
(42, 12, 'Hostel Rooms', 'hostel_rooms', 1, 1, 1, 1, '2018-06-25 11:53:03'),
(43, 13, 'Notice Board', 'notice_board', 1, 1, 1, 1, '2018-06-22 16:11:17'),
(44, 13, 'Email', 'email', 1, 0, 0, 0, '2019-11-26 10:50:37'),
(46, 13, 'Email / SMS Log', 'email_sms_log', 1, 0, 0, 0, '2018-06-22 16:11:23'),
(53, 15, 'Languages', 'languages', 0, 1, 0, 0, '2018-06-22 16:13:18'),
(54, 15, 'General Setting', 'general_setting', 1, 0, 1, 0, '2018-07-05 14:38:35'),
(55, 15, 'Session Setting', 'session_setting', 1, 1, 1, 1, '2018-06-22 16:14:15'),
(56, 15, 'Notification Setting', 'notification_setting', 1, 0, 1, 0, '2018-07-05 14:38:41'),
(57, 15, 'SMS Setting', 'sms_setting', 1, 0, 1, 0, '2018-07-05 14:38:47'),
(58, 15, 'Email Setting', 'email_setting', 1, 0, 1, 0, '2018-07-05 14:38:51'),
(59, 15, 'Front CMS Setting', 'front_cms_setting', 1, 0, 1, 0, '2018-07-05 14:38:55'),
(60, 15, 'Payment Methods', 'payment_methods', 1, 0, 1, 0, '2018-07-05 14:38:59'),
(61, 16, 'Menus', 'menus', 1, 1, 0, 1, '2018-07-09 09:20:06'),
(62, 16, 'Media Manager', 'media_manager', 1, 1, 0, 1, '2018-07-09 09:20:26'),
(63, 16, 'Banner Images', 'banner_images', 1, 1, 0, 1, '2018-06-22 16:16:02'),
(64, 16, 'Pages', 'pages', 1, 1, 1, 1, '2018-06-22 16:16:21'),
(65, 16, 'Gallery', 'gallery', 1, 1, 1, 1, '2018-06-22 16:17:02'),
(66, 16, 'Event', 'event', 1, 1, 1, 1, '2018-06-22 16:17:20'),
(67, 16, 'News', 'notice', 1, 1, 1, 1, '2018-07-03 14:09:34'),
(68, 2, 'Fees Group Assign', 'fees_group_assign', 1, 0, 0, 0, '2018-06-22 15:50:42'),
(69, 2, 'Fees Type', 'fees_type', 1, 1, 1, 1, '2018-06-22 15:49:34'),
(70, 2, 'Fees Discount', 'fees_discount', 1, 1, 1, 1, '2018-06-22 15:50:10'),
(71, 2, 'Fees Discount Assign', 'fees_discount_assign', 1, 0, 0, 0, '2018-06-22 15:50:17'),
(73, 2, 'Search Fees Payment', 'search_fees_payment', 1, 0, 0, 0, '2018-06-22 15:50:27'),
(74, 2, 'Search Due Fees', 'search_due_fees', 1, 0, 0, 0, '2018-06-22 15:50:35'),
(77, 7, 'Assign Class Teacher', 'assign_class_teacher', 1, 1, 1, 1, '2018-06-22 16:00:52'),
(78, 17, 'Admission Enquiry', 'admission_enquiry', 1, 1, 1, 1, '2018-06-22 16:21:24'),
(79, 17, 'Follow Up Admission Enquiry', 'follow_up_admission_enquiry', 1, 1, 0, 1, '2018-06-22 16:21:39'),
(80, 17, 'Visitor Book', 'visitor_book', 1, 1, 1, 1, '2018-06-22 16:18:58'),
(81, 17, 'Phone Call Log', 'phone_call_log', 1, 1, 1, 1, '2018-06-22 16:20:57'),
(82, 17, 'Postal Dispatch', 'postal_dispatch', 1, 1, 1, 1, '2018-06-22 16:20:21'),
(83, 17, 'Postal Receive', 'postal_receive', 1, 1, 1, 1, '2018-06-22 16:20:04'),
(84, 17, 'Complain', 'complaint', 1, 1, 1, 1, '2018-07-03 14:10:55'),
(85, 17, 'Setup Font Office', 'setup_font_office', 1, 1, 1, 1, '2018-06-22 16:19:24'),
(86, 18, 'Staff', 'staff', 1, 1, 1, 1, '2018-06-22 16:23:31'),
(87, 18, 'Disable Staff', 'disable_staff', 1, 0, 0, 0, '2018-06-22 16:23:12'),
(88, 18, 'Staff Attendance', 'staff_attendance', 1, 1, 1, 0, '2018-06-22 16:23:10'),
(90, 18, 'Staff Payroll', 'staff_payroll', 1, 1, 0, 1, '2018-06-22 16:22:51'),
(93, 19, 'Homework', 'homework', 1, 1, 1, 1, '2018-06-22 16:23:50'),
(94, 19, 'Homework Evaluation', 'homework_evaluation', 1, 1, 0, 0, '2018-06-27 08:37:21'),
(96, 20, 'Student Certificate', 'student_certificate', 1, 1, 1, 1, '2018-07-06 16:11:07'),
(97, 20, 'Generate Certificate', 'generate_certificate', 1, 0, 0, 0, '2018-07-06 16:07:16'),
(98, 20, 'Student ID Card', 'student_id_card', 1, 1, 1, 1, '2018-07-06 16:11:28'),
(99, 20, 'Generate ID Card', 'generate_id_card', 1, 0, 0, 0, '2018-07-06 16:11:49'),
(102, 21, 'Calendar To Do List', 'calendar_to_do_list', 1, 1, 1, 1, '2018-06-22 16:24:41'),
(104, 10, 'Item Category', 'item_category', 1, 1, 1, 1, '2018-06-22 16:04:33'),
(106, 22, 'Quick Session Change', 'quick_session_change', 1, 0, 0, 0, '2018-06-22 16:24:45'),
(107, 1, 'Disable Student', 'disable_student', 1, 0, 0, 0, '2018-06-25 11:51:34'),
(108, 18, ' Approve Leave Request', 'approve_leave_request', 1, 0, 1, 0, '2019-11-29 05:17:51'),
(109, 18, 'Apply Leave', 'apply_leave', 1, 1, 0, 0, '2019-11-29 05:17:46'),
(110, 18, 'Leave Types ', 'leave_types', 1, 1, 1, 1, '2018-07-02 15:47:56'),
(111, 18, 'Department', 'department', 1, 1, 1, 1, '2018-06-26 09:27:07'),
(112, 18, 'Designation', 'designation', 1, 1, 1, 1, '2018-06-26 09:27:07'),
(113, 22, 'Fees Collection And Expense Monthly Chart', 'fees_collection_and_expense_monthly_chart', 1, 0, 0, 0, '2018-07-03 12:38:15'),
(114, 22, 'Fees Collection And Expense Yearly Chart', 'fees_collection_and_expense_yearly_chart', 1, 0, 0, 0, '2018-07-03 12:38:15'),
(115, 22, 'Monthly Fees Collection Widget', 'Monthly fees_collection_widget', 1, 0, 0, 0, '2018-07-03 12:43:35'),
(116, 22, 'Monthly Expense Widget', 'monthly_expense_widget', 1, 0, 0, 0, '2018-07-03 12:43:35'),
(117, 22, 'Student Count Widget', 'student_count_widget', 1, 0, 0, 0, '2018-07-03 12:43:35'),
(118, 22, 'Staff Role Count Widget', 'staff_role_count_widget', 1, 0, 0, 0, '2018-07-03 12:43:35'),
(122, 5, 'Attendance By Date', 'attendance_by_date', 1, 0, 0, 0, '2018-07-03 14:12:29'),
(123, 9, 'Add Student', 'add_student', 1, 0, 0, 0, '2018-07-03 14:12:29'),
(126, 15, 'User Status', 'user_status', 1, 0, 0, 0, '2018-07-03 14:12:29'),
(127, 18, 'Can See Other Users Profile', 'can_see_other_users_profile', 1, 0, 0, 0, '2018-07-03 14:12:29'),
(128, 1, 'Student Timeline', 'student_timeline', 0, 1, 0, 1, '2018-07-05 13:38:52'),
(129, 18, 'Staff Timeline', 'staff_timeline', 0, 1, 0, 1, '2018-07-05 13:38:52'),
(130, 15, 'Backup', 'backup', 1, 1, 0, 1, '2018-07-09 09:47:17'),
(131, 15, 'Restore', 'restore', 1, 0, 0, 0, '2018-07-09 09:47:17'),
(134, 1, 'Disable Reason', 'disable_reason', 1, 1, 1, 1, '2019-11-27 12:09:21'),
(135, 2, 'Fees Reminder', 'fees_reminder', 1, 0, 1, 0, '2019-10-25 06:09:49'),
(136, 5, 'Approve Leave', 'approve_leave', 1, 0, 0, 0, '2019-10-25 06:16:44'),
(137, 6, 'Exam Group', 'exam_group', 1, 1, 1, 1, '2019-10-25 06:32:34'),
(141, 6, 'Design Admit Card', 'design_admit_card', 1, 1, 1, 1, '2019-10-25 06:36:59'),
(142, 6, 'Print Admit Card', 'print_admit_card', 1, 0, 0, 0, '2019-11-24 05:27:51'),
(143, 6, 'Design Marksheet', 'design_marksheet', 1, 1, 1, 1, '2019-10-25 06:40:25'),
(144, 6, 'Print Marksheet', 'print_marksheet', 1, 0, 0, 0, '2019-10-25 06:41:02'),
(145, 7, 'Teachers Timetable', 'teachers_time_table', 1, 0, 0, 0, '2019-11-30 08:22:21'),
(146, 14, 'Student Report', 'student_report', 1, 0, 0, 0, '2019-10-25 06:57:00'),
(147, 14, 'Guardian Report', 'guardian_report', 1, 0, 0, 0, '2019-10-25 07:00:27'),
(148, 14, 'Student History', 'student_history', 1, 0, 0, 0, '2019-10-25 07:09:07'),
(149, 14, 'Student Login Credential Report', 'student_login_credential_report', 1, 0, 0, 0, '2019-10-25 07:09:07'),
(150, 14, 'Class Subject Report', 'class_subject_report', 1, 0, 0, 0, '2019-10-25 07:09:07'),
(151, 14, 'Admission Report', 'admission_report', 1, 0, 0, 0, '2019-10-25 07:09:07'),
(152, 14, 'Sibling Report', 'sibling_report', 1, 0, 0, 0, '2019-10-25 07:09:07'),
(153, 14, 'Homework Evaluation Report', 'homehork_evaluation_report', 1, 0, 0, 0, '2019-11-24 06:34:24'),
(154, 14, 'Student Profile', 'student_profile', 1, 0, 0, 0, '2019-10-25 07:09:07'),
(155, 14, 'Fees Statement', 'fees_statement', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(156, 14, 'Balance Fees Report', 'balance_fees_report', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(157, 14, 'Fees Collection Report', 'fees_collection_report', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(158, 14, 'Online Fees Collection Report', 'online_fees_collection_report', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(159, 14, 'Income Report', 'income_report', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(160, 14, 'Expense Report', 'expense_report', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(161, 14, 'PayRoll Report', 'payroll_report', 1, 0, 0, 0, '2019-10-31 05:53:22'),
(162, 14, 'Income Group Report', 'income_group_report', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(163, 14, 'Expense Group Report', 'expense_group_report', 1, 0, 0, 0, '2019-10-25 07:25:52'),
(164, 14, 'Attendance Report', 'attendance_report', 1, 0, 0, 0, '2019-10-25 07:38:06'),
(165, 14, 'Staff Attendance Report', 'staff_attendance_report', 1, 0, 0, 0, '2019-10-25 07:38:06'),
(174, 14, 'Transport Report', 'transport_report', 1, 0, 0, 0, '2019-10-25 07:43:56'),
(175, 14, 'Hostel Report', 'hostel_report', 1, 0, 0, 0, '2019-11-27 12:21:53'),
(176, 14, 'Audit Trail Report', 'audit_trail_report', 1, 0, 0, 0, '2019-10-25 07:46:39'),
(177, 14, 'User Log', 'user_log', 1, 0, 0, 0, '2019-10-25 07:49:27'),
(178, 14, 'Book Issue Report', 'book_issue_report', 1, 0, 0, 0, '2019-10-25 07:59:04'),
(179, 14, 'Book Due Report', 'book_due_report', 1, 0, 0, 0, '2019-10-25 07:59:04'),
(180, 14, 'Book Inventory Report', 'book_inventory_report', 1, 0, 0, 0, '2019-10-25 07:59:04'),
(181, 14, 'Stock Report', 'stock_report', 1, 0, 0, 0, '2019-10-25 08:01:28'),
(182, 14, 'Add Item Report', 'add_item_report', 1, 0, 0, 0, '2019-10-25 08:01:28'),
(183, 14, 'Issue Item Report', 'issue_item_report', 1, 0, 0, 0, '2019-11-29 09:18:06'),
(185, 23, 'Online Examination', 'online_examination', 1, 1, 1, 1, '2019-11-24 05:24:50'),
(186, 23, 'Question Bank', 'question_bank', 1, 1, 1, 1, '2019-11-24 05:25:18'),
(187, 6, 'Exam Result', 'exam_result', 1, 0, 0, 0, '2019-11-24 05:28:50'),
(188, 7, 'Subject Group', 'subject_group', 1, 1, 1, 1, '2019-11-24 06:04:32'),
(189, 18, 'Teachers Rating', 'teachers_rating', 1, 0, 1, 1, '2019-11-24 08:42:54'),
(190, 22, 'Fees Awaiting Payment Widegts', 'fees_awaiting_payment_widegts', 1, 0, 0, 0, '2019-11-24 06:22:51'),
(191, 22, 'Conveted Leads Widegts', 'conveted_leads_widegts', 1, 0, 0, 0, '2019-11-24 06:28:24'),
(192, 22, 'Fees Overview Widegts', 'fees_overview_widegts', 1, 0, 0, 0, '2019-11-24 06:27:41'),
(193, 22, 'Enquiry Overview Widegts', 'enquiry_overview_widegts', 1, 0, 0, 0, '2019-12-02 10:36:09'),
(194, 22, 'Library Overview Widegts', 'book_overview_widegts', 1, 0, 0, 0, '2019-12-01 06:43:04'),
(195, 22, 'Student Today Attendance Widegts', 'today_attendance_widegts', 1, 0, 0, 0, '2019-12-03 10:27:45'),
(196, 6, 'Marks Import', 'marks_import', 1, 0, 0, 0, '2019-11-24 06:32:11'),
(197, 14, 'Student Attendance Type Report', 'student_attendance_type_report', 1, 0, 0, 0, '2019-11-24 06:36:32'),
(198, 14, 'Exam Marks Report', 'exam_marks_report', 1, 0, 0, 0, '2019-11-24 06:41:15'),
(200, 14, 'Online Exam Wise Report', 'online_exam_wise_report', 1, 0, 0, 0, '2019-11-24 06:48:14'),
(201, 14, 'Online Exams Report', 'online_exams_report', 1, 0, 0, 0, '2019-11-29 08:18:05'),
(202, 14, 'Online Exams Attempt Report', 'online_exams_attempt_report', 1, 0, 0, 0, '2019-11-29 08:16:24'),
(203, 14, 'Online Exams Rank Report', 'online_exams_rank_report', 1, 0, 0, 0, '2019-11-24 06:52:25'),
(204, 14, 'Staff Report', 'staff_report', 1, 0, 0, 0, '2019-11-24 06:55:27'),
(205, 6, 'Exam', 'exam', 1, 1, 1, 1, '2019-11-24 10:25:48'),
(207, 6, 'Exam Publish', 'exam_publish', 1, 0, 0, 0, '2019-11-24 10:45:04'),
(208, 6, 'Link Exam', 'link_exam', 1, 0, 1, 0, '2019-11-24 10:45:04'),
(210, 6, 'Assign / View student', 'exam_assign_view_student', 1, 0, 1, 0, '2019-11-24 10:45:04'),
(211, 6, 'Exam Subject', 'exam_subject', 1, 0, 1, 0, '2019-11-24 10:45:04'),
(212, 6, 'Exam Marks', 'exam_marks', 1, 0, 1, 0, '2019-11-24 10:45:04'),
(213, 15, 'Language Switcher', 'language_switcher', 1, 0, 0, 0, '2019-11-24 10:47:11'),
(214, 23, 'Add Questions in Exam ', 'add_questions_in_exam', 1, 0, 1, 0, '2019-11-28 07:08:57'),
(215, 15, 'Custom Fields', 'custom_fields', 1, 0, 0, 0, '2019-11-29 09:38:35'),
(216, 15, 'System Fields', 'system_fields', 1, 0, 0, 0, '2019-11-25 05:45:01'),
(217, 13, 'SMS', 'sms', 1, 0, 0, 0, '2018-06-22 16:10:54'),
(219, 14, 'Student / Period Attendance Report', 'student_period_attendance_report', 1, 0, 0, 0, '2019-11-29 07:49:31'),
(220, 14, 'Biometric Attendance Log', 'biometric_attendance_log', 1, 0, 0, 0, '2019-11-27 11:29:16'),
(221, 14, 'Book Issue Return Report', 'book_issue_return_report', 1, 0, 0, 0, '2019-11-27 12:00:23'),
(222, 23, 'Assign / View Student', 'online_assign_view_student', 1, 0, 1, 0, '2019-11-28 09:50:22'),
(223, 14, 'Rank Report', 'rank_report', 1, 0, 0, 0, '2019-11-29 08:00:21'),
(224, 25, 'Chat', 'chat', 1, 0, 0, 0, '2019-11-29 09:40:28'),
(226, 22, 'Income Donut Graph', 'income_donut_graph', 1, 0, 0, 0, '2019-11-29 10:30:33'),
(227, 22, 'Expense Donut Graph', 'expense_donut_graph', 1, 0, 0, 0, '2019-11-29 10:31:10'),
(228, 9, 'Import Book', 'import_book', 1, 0, 0, 0, '2019-11-29 11:51:01'),
(229, 22, 'Staff Present Today Widegts', 'staff_present_today_widegts', 1, 0, 0, 0, '2019-11-29 12:18:00'),
(230, 22, 'Student Present Today Widegts', 'student_present_today_widegts', 1, 0, 0, 0, '2019-11-29 12:17:42'),
(231, 26, 'Multi Class Student', 'multi_class_student', 1, 0, 0, 0, '2019-12-02 11:32:58'),
(232, 27, 'Online Admission', 'online_admission', 1, 0, 1, 1, '2019-12-02 11:41:10');

-- --------------------------------------------------------

--
-- Table structure for table `permission_group`
--

CREATE TABLE `permission_group` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `short_code` varchar(100) NOT NULL,
  `is_active` int(11) DEFAULT 0,
  `system` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `permission_group`
--

INSERT INTO `permission_group` (`id`, `name`, `short_code`, `is_active`, `system`, `created_at`) VALUES
(1, 'Student Information', 'student_information', 1, 1, '2019-03-15 15:00:22'),
(2, 'Fees Collection', 'fees_collection', 1, 0, '2019-12-01 14:08:13'),
(3, 'Income', 'income', 1, 0, '2021-05-08 06:07:53'),
(4, 'Expense', 'expense', 1, 0, '2021-01-20 08:13:13'),
(5, 'Student Attendance', 'student_attendance', 1, 0, '2018-07-02 13:18:08'),
(6, 'Examination', 'examination', 1, 0, '2018-07-11 08:19:08'),
(7, 'Academics', 'academics', 1, 1, '2018-07-02 12:55:43'),
(8, 'Download Center', 'download_center', 1, 0, '2021-01-20 08:13:25'),
(9, 'Library', 'library', 1, 0, '2021-01-20 08:13:29'),
(10, 'Inventory', 'inventory', 1, 0, '2021-01-20 08:13:40'),
(11, 'Transport', 'transport', 1, 0, '2020-02-16 22:29:29'),
(12, 'Hostel', 'hostel', 1, 0, '2021-01-20 08:13:49'),
(13, 'Communicate', 'communicate', 1, 0, '2021-01-20 08:13:53'),
(14, 'Reports', 'reports', 1, 1, '2018-06-27 09:10:22'),
(15, 'System Settings', 'system_settings', 1, 1, '2018-06-27 09:10:28'),
(16, 'Front CMS', 'front_cms', 1, 0, '2021-01-20 08:14:05'),
(17, 'Front Office', 'front_office', 1, 0, '2021-01-20 08:14:12'),
(18, 'Human Resource', 'human_resource', 1, 1, '2018-06-27 09:11:02'),
(19, 'Homework', 'homework', 1, 0, '2020-08-14 08:19:51'),
(20, 'Certificate', 'certificate', 1, 0, '2021-01-20 08:14:19'),
(21, 'Calendar To Do List', 'calendar_to_do_list', 1, 0, '2021-01-20 08:14:26'),
(22, 'Dashboard and Widgets', 'dashboard_and_widgets', 1, 1, '2018-06-27 09:11:17'),
(23, 'Online Examination', 'online_examination', 1, 0, '2021-01-20 08:14:33'),
(25, 'Chat', 'chat', 1, 0, '2021-01-20 08:14:40'),
(26, 'Multi Class', 'multi_class', 1, 0, '2021-01-20 08:14:51'),
(27, 'Online Admission', 'online_admission', 1, 0, '2021-01-20 08:14:58');

-- --------------------------------------------------------

--
-- Table structure for table `permission_parent`
--

CREATE TABLE `permission_parent` (
  `id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `short_code` varchar(100) NOT NULL,
  `is_active` int(11) DEFAULT 0,
  `system` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `permission_parent`
--

INSERT INTO `permission_parent` (`id`, `group_id`, `name`, `short_code`, `is_active`, `system`, `created_at`) VALUES
(1, 2, 'Fees', 'fees', 1, 0, '2019-12-01 14:08:13'),
(2, 7, 'Class Timetable', 'class_timetable', 1, 1, '2019-12-01 07:46:35'),
(3, 19, 'Homework', 'homework', 1, 0, '2020-08-14 08:19:51'),
(4, 8, 'Download Center', 'download_center', 1, 0, '2021-01-20 08:13:25'),
(5, 5, 'Attendance', 'attendance', 1, 0, '2019-12-01 07:47:03'),
(7, 6, 'Examinations', 'examinations', 1, 0, '2019-12-01 07:43:17'),
(8, 13, 'Notice Board', 'notice_board', 1, 0, '2021-01-20 08:13:53'),
(11, 9, 'Library', 'library', 1, 0, '2021-01-20 08:13:29'),
(12, 11, 'Transport Routes', 'transport_routes', 1, 0, '2020-02-16 22:29:29'),
(13, 12, 'Hostel Rooms', 'hostel_rooms', 1, 0, '2021-01-20 08:13:49'),
(14, 21, 'Calendar To Do List', 'calendar_to_do_list', 1, 0, '2021-01-20 08:14:26'),
(15, 0, 'Teachers Rating', 'teachers_rating', 1, 0, '2019-12-01 07:47:49');

-- --------------------------------------------------------

--
-- Table structure for table `permission_student`
--

CREATE TABLE `permission_student` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `short_code` varchar(100) NOT NULL,
  `is_active` int(11) DEFAULT 0,
  `system` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `permission_student`
--

INSERT INTO `permission_student` (`id`, `name`, `short_code`, `is_active`, `system`, `group_id`, `created_at`) VALUES
(1, 'Fees', 'fees', 1, 0, 2, '2020-02-16 22:30:18'),
(2, 'Class Timetable', 'class_timetable', 1, 1, 7, '2019-12-01 07:40:07'),
(3, 'Homework', 'homework', 1, 0, 19, '2020-08-14 08:19:51'),
(4, 'Download Center', 'download_center', 1, 0, 8, '2021-01-20 08:13:25'),
(5, 'Attendance', 'attendance', 1, 0, 5, '2019-12-01 07:40:38'),
(7, 'Examinations', 'examinations', 1, 0, 6, '2019-12-06 07:55:30'),
(8, 'Notice Board', 'notice_board', 1, 0, 13, '2021-01-20 08:13:53'),
(11, 'Library', 'library', 1, 0, 9, '2021-01-20 08:13:29'),
(12, 'Transport Routes', 'transport_routes', 1, 0, 11, '2020-02-16 21:29:16'),
(13, 'Hostel Rooms', 'hostel_rooms', 1, 0, 12, '2021-01-20 08:13:49'),
(14, 'Calendar To Do List', 'calendar_to_do_list', 1, 0, 21, '2021-01-20 08:14:26'),
(15, 'Online Examination', 'online_examination', 1, 0, 23, '2021-01-20 08:14:33'),
(16, 'Teachers Rating', 'teachers_rating', 1, 0, 0, '2019-12-01 07:41:31'),
(17, 'Chat', 'chat', 1, 0, 25, '2021-01-20 08:14:40'),
(18, 'Multi Class', 'multi_class', 1, 0, 26, '2021-01-20 08:14:51');

-- --------------------------------------------------------

--
-- Table structure for table `question`
--

CREATE TABLE `question` (
  `id` int(11) NOT NULL,
  `subject_id` int(11) NOT NULL,
  `question` text CHARACTER SET latin1 NOT NULL,
  `type` int(1) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `questions`
--

CREATE TABLE `questions` (
  `id` int(11) NOT NULL,
  `subject_id` int(11) DEFAULT NULL,
  `question` text DEFAULT NULL,
  `opt_a` text DEFAULT NULL,
  `opt_b` text DEFAULT NULL,
  `opt_c` text DEFAULT NULL,
  `opt_d` text DEFAULT NULL,
  `opt_e` text DEFAULT NULL,
  `correct` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `question_answers`
--

CREATE TABLE `question_answers` (
  `id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `option_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `question_options`
--

CREATE TABLE `question_options` (
  `id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `option` text CHARACTER SET latin1 NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `read_notification`
--

CREATE TABLE `read_notification` (
  `id` int(11) NOT NULL,
  `student_id` int(11) DEFAULT NULL,
  `parent_id` int(10) DEFAULT NULL,
  `staff_id` int(11) DEFAULT NULL,
  `notification_id` int(11) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `read_notification`
--

INSERT INTO `read_notification` (`id`, `student_id`, `parent_id`, `staff_id`, `notification_id`, `is_active`, `created_at`, `updated_at`) VALUES
(1, NULL, 0, NULL, 1, 'no', '2021-05-08 07:07:51', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `reference`
--

CREATE TABLE `reference` (
  `id` int(11) NOT NULL,
  `reference` varchar(100) NOT NULL,
  `description` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `slug` varchar(150) DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `is_system` int(1) NOT NULL DEFAULT 0,
  `is_superadmin` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `slug`, `is_active`, `is_system`, `is_superadmin`, `created_at`, `updated_at`) VALUES
(1, 'Admin', NULL, 0, 1, 0, '2018-06-30 15:39:11', '0000-00-00'),
(2, 'Teacher', NULL, 0, 1, 0, '2018-06-30 15:39:14', '0000-00-00'),
(3, 'Accountant', NULL, 0, 1, 0, '2018-06-30 15:39:17', '0000-00-00'),
(6, 'Receptionist', NULL, 0, 1, 0, '2018-07-02 05:39:03', '0000-00-00'),
(7, 'Super Admin', NULL, 0, 1, 1, '2018-07-11 14:11:29', '0000-00-00');

-- --------------------------------------------------------

--
-- Table structure for table `roles_permissions`
--

CREATE TABLE `roles_permissions` (
  `id` int(11) NOT NULL,
  `role_id` int(11) DEFAULT NULL,
  `perm_cat_id` int(11) DEFAULT NULL,
  `can_view` int(11) DEFAULT NULL,
  `can_add` int(11) DEFAULT NULL,
  `can_edit` int(11) DEFAULT NULL,
  `can_delete` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `roles_permissions`
--

INSERT INTO `roles_permissions` (`id`, `role_id`, `perm_cat_id`, `can_view`, `can_add`, `can_edit`, `can_delete`, `created_at`) VALUES
(10, 1, 17, 1, 1, 1, 1, '2018-07-06 15:18:56'),
(11, 1, 78, 1, 1, 1, 1, '2018-07-03 06:19:43'),
(23, 1, 12, 1, 1, 1, 1, '2018-07-06 15:15:38'),
(24, 1, 13, 1, 1, 1, 1, '2018-07-06 15:18:28'),
(26, 1, 15, 1, 1, 1, 0, '2019-11-28 05:17:28'),
(28, 1, 19, 1, 1, 1, 0, '2018-07-02 17:01:10'),
(30, 1, 76, 1, 1, 1, 0, '2018-07-02 17:01:10'),
(31, 1, 21, 1, 0, 1, 0, '2019-11-26 10:21:15'),
(32, 1, 22, 1, 1, 1, 1, '2018-07-02 17:02:05'),
(34, 1, 24, 1, 1, 1, 1, '2019-11-28 12:05:20'),
(43, 1, 32, 1, 1, 1, 1, '2018-07-06 15:52:05'),
(44, 1, 33, 1, 1, 1, 1, '2018-07-06 15:52:29'),
(45, 1, 34, 1, 1, 1, 1, '2018-07-06 15:53:59'),
(46, 1, 35, 1, 1, 1, 1, '2018-07-06 15:54:34'),
(47, 1, 104, 1, 1, 1, 1, '2018-07-06 15:53:08'),
(48, 1, 37, 1, 1, 1, 1, '2018-07-06 15:55:30'),
(49, 1, 38, 1, 1, 1, 1, '2018-07-09 10:45:27'),
(58, 1, 52, 1, 1, 0, 1, '2018-07-09 08:49:43'),
(61, 1, 55, 1, 1, 1, 1, '2018-07-02 14:54:16'),
(67, 1, 61, 1, 1, 0, 1, '2018-07-09 11:29:19'),
(68, 1, 62, 1, 1, 0, 1, '2018-07-09 11:29:19'),
(69, 1, 63, 1, 1, 0, 1, '2018-07-09 09:21:38'),
(70, 1, 64, 1, 1, 1, 1, '2018-07-09 08:32:19'),
(71, 1, 65, 1, 1, 1, 1, '2018-07-09 08:41:21'),
(72, 1, 66, 1, 1, 1, 1, '2018-07-09 08:43:09'),
(73, 1, 67, 1, 1, 1, 1, '2018-07-09 08:44:47'),
(74, 1, 79, 1, 1, 0, 1, '2019-11-30 07:02:51'),
(75, 1, 80, 1, 1, 1, 1, '2018-07-06 15:11:23'),
(76, 1, 81, 1, 1, 1, 1, '2018-07-06 15:11:23'),
(78, 1, 83, 1, 1, 1, 1, '2018-07-06 15:11:23'),
(79, 1, 84, 1, 1, 1, 1, '2018-07-06 15:11:23'),
(80, 1, 85, 1, 1, 1, 1, '2018-07-12 05:46:00'),
(87, 1, 92, 1, 1, 1, 1, '2018-06-26 09:03:43'),
(94, 1, 82, 1, 1, 1, 1, '2018-07-06 15:11:23'),
(120, 1, 39, 1, 1, 1, 1, '2018-07-06 15:56:28'),
(156, 1, 9, 1, 1, 1, 1, '2019-11-28 05:15:46'),
(157, 1, 10, 1, 1, 1, 1, '2019-11-28 05:15:46'),
(159, 1, 40, 1, 1, 1, 1, '2019-11-30 06:19:39'),
(160, 1, 41, 1, 1, 1, 1, '2019-12-02 11:13:41'),
(161, 1, 42, 1, 1, 1, 1, '2019-11-30 06:19:39'),
(169, 1, 27, 1, 1, 0, 1, '2019-11-29 11:45:37'),
(178, 1, 54, 1, 0, 1, 0, '2018-07-05 14:39:22'),
(179, 1, 56, 1, 0, 1, 0, '2019-11-30 06:19:54'),
(180, 1, 57, 1, 0, 1, 0, '2019-11-30 07:02:51'),
(181, 1, 58, 1, 0, 1, 0, '2019-11-30 07:02:51'),
(182, 1, 59, 1, 0, 1, 0, '2019-11-30 07:02:51'),
(183, 1, 60, 1, 0, 1, 0, '2019-11-30 06:29:57'),
(190, 1, 105, 1, 0, 0, 0, '2018-07-02 16:43:25'),
(199, 1, 75, 1, 0, 0, 0, '2018-07-02 16:49:46'),
(201, 1, 14, 1, 0, 0, 0, '2018-07-02 16:52:03'),
(203, 1, 16, 1, 0, 0, 0, '2018-07-02 16:54:21'),
(204, 1, 26, 1, 0, 0, 0, '2018-07-02 17:02:05'),
(206, 1, 29, 1, 0, 0, 0, '2018-07-02 17:13:54'),
(207, 1, 30, 1, 0, 0, 0, '2018-07-02 17:13:54'),
(208, 1, 31, 1, 1, 1, 1, '2019-11-30 07:02:51'),
(215, 1, 50, 1, 0, 0, 0, '2018-07-02 17:34:53'),
(216, 1, 51, 1, 0, 0, 0, '2018-07-02 17:34:53'),
(222, 1, 1, 1, 1, 1, 1, '2019-11-28 04:25:06'),
(227, 1, 91, 1, 0, 0, 0, '2018-07-03 07:19:27'),
(230, 10, 53, 0, 1, 0, 0, '2018-07-03 09:22:55'),
(231, 10, 54, 0, 0, 1, 0, '2018-07-03 09:22:55'),
(232, 10, 55, 1, 1, 1, 1, '2018-07-03 09:28:42'),
(233, 10, 56, 0, 0, 1, 0, '2018-07-03 09:22:55'),
(235, 10, 58, 0, 0, 1, 0, '2018-07-03 09:22:55'),
(236, 10, 59, 0, 0, 1, 0, '2018-07-03 09:22:55'),
(239, 10, 1, 1, 1, 1, 1, '2018-07-03 09:46:43'),
(241, 10, 3, 1, 0, 0, 0, '2018-07-03 09:53:56'),
(242, 10, 2, 1, 0, 0, 0, '2018-07-03 09:54:39'),
(243, 10, 4, 1, 0, 1, 1, '2018-07-03 10:01:24'),
(245, 10, 107, 1, 0, 0, 0, '2018-07-03 10:06:41'),
(246, 10, 5, 1, 1, 0, 1, '2018-07-03 10:08:18'),
(247, 10, 7, 1, 1, 1, 1, '2018-07-03 10:12:07'),
(248, 10, 68, 1, 0, 0, 0, '2018-07-03 10:12:53'),
(249, 10, 69, 1, 1, 1, 1, '2018-07-03 10:19:46'),
(250, 10, 70, 1, 0, 0, 1, '2018-07-03 10:22:40'),
(251, 10, 72, 1, 0, 0, 0, '2018-07-03 10:26:46'),
(252, 10, 73, 1, 0, 0, 0, '2018-07-03 10:26:46'),
(253, 10, 74, 1, 0, 0, 0, '2018-07-03 10:28:34'),
(254, 10, 75, 1, 0, 0, 0, '2018-07-03 10:28:34'),
(255, 10, 9, 1, 1, 1, 1, '2018-07-03 10:32:22'),
(256, 10, 10, 1, 1, 1, 1, '2018-07-03 10:33:09'),
(257, 10, 11, 1, 0, 0, 0, '2018-07-03 10:33:09'),
(258, 10, 12, 1, 1, 1, 1, '2018-07-03 10:38:40'),
(259, 10, 13, 1, 1, 1, 1, '2018-07-03 10:38:40'),
(260, 10, 14, 1, 0, 0, 0, '2018-07-03 10:38:53'),
(261, 10, 15, 1, 1, 1, 0, '2018-07-03 10:41:28'),
(262, 10, 16, 1, 0, 0, 0, '2018-07-03 10:42:12'),
(263, 10, 17, 1, 1, 1, 1, '2018-07-03 10:44:30'),
(264, 10, 19, 1, 1, 1, 0, '2018-07-03 10:45:45'),
(265, 10, 20, 1, 1, 1, 1, '2018-07-03 10:48:51'),
(266, 10, 76, 1, 0, 0, 0, '2018-07-03 10:51:21'),
(267, 10, 21, 1, 1, 1, 0, '2018-07-03 10:52:45'),
(268, 10, 22, 1, 1, 1, 1, '2018-07-03 10:55:00'),
(269, 10, 23, 1, 1, 1, 1, '2018-07-03 10:57:16'),
(270, 10, 24, 1, 1, 1, 1, '2018-07-03 10:57:49'),
(271, 10, 25, 1, 1, 1, 1, '2018-07-03 10:57:49'),
(272, 10, 26, 1, 0, 0, 0, '2018-07-03 10:58:25'),
(273, 10, 77, 1, 1, 1, 1, '2018-07-03 10:59:57'),
(274, 10, 27, 1, 1, 0, 1, '2018-07-03 11:00:36'),
(275, 10, 28, 1, 1, 1, 1, '2018-07-03 11:03:09'),
(276, 10, 29, 1, 0, 0, 0, '2018-07-03 11:04:03'),
(277, 10, 30, 1, 0, 0, 0, '2018-07-03 11:04:03'),
(278, 10, 31, 1, 0, 0, 0, '2018-07-03 11:04:03'),
(279, 10, 32, 1, 1, 1, 1, '2018-07-03 11:05:42'),
(280, 10, 33, 1, 1, 1, 1, '2018-07-03 11:06:32'),
(281, 10, 34, 1, 1, 1, 1, '2018-07-03 11:08:03'),
(282, 10, 35, 1, 1, 1, 1, '2018-07-03 11:08:41'),
(283, 10, 104, 1, 1, 1, 1, '2018-07-03 11:10:43'),
(284, 10, 37, 1, 1, 1, 1, '2018-07-03 11:12:42'),
(285, 10, 38, 1, 1, 1, 1, '2018-07-03 11:13:56'),
(286, 10, 39, 1, 1, 1, 1, '2018-07-03 11:15:39'),
(287, 10, 40, 1, 1, 1, 1, '2018-07-03 11:17:22'),
(288, 10, 41, 1, 1, 1, 1, '2018-07-03 11:18:54'),
(289, 10, 42, 1, 1, 1, 1, '2018-07-03 11:19:31'),
(290, 10, 43, 1, 1, 1, 1, '2018-07-03 11:21:15'),
(291, 10, 44, 1, 0, 0, 0, '2018-07-03 11:22:06'),
(292, 10, 46, 1, 0, 0, 0, '2018-07-03 11:22:06'),
(293, 10, 50, 1, 0, 0, 0, '2018-07-03 11:22:59'),
(294, 10, 51, 1, 0, 0, 0, '2018-07-03 11:22:59'),
(295, 10, 60, 0, 0, 1, 0, '2018-07-03 11:25:05'),
(296, 10, 61, 1, 1, 1, 1, '2018-07-03 11:26:52'),
(297, 10, 62, 1, 1, 1, 1, '2018-07-03 11:28:53'),
(298, 10, 63, 1, 1, 0, 0, '2018-07-03 11:29:37'),
(299, 10, 64, 1, 1, 1, 1, '2018-07-03 11:30:27'),
(300, 10, 65, 1, 1, 1, 1, '2018-07-03 11:32:51'),
(301, 10, 66, 1, 1, 1, 1, '2018-07-03 11:32:51'),
(302, 10, 67, 1, 0, 0, 0, '2018-07-03 11:32:51'),
(303, 10, 78, 1, 1, 1, 1, '2018-07-04 09:40:04'),
(307, 1, 126, 1, 0, 0, 0, '2018-07-03 14:56:13'),
(310, 1, 119, 1, 0, 0, 0, '2018-07-03 15:45:00'),
(311, 1, 120, 1, 0, 0, 0, '2018-07-03 15:45:00'),
(315, 1, 123, 1, 0, 0, 0, '2018-07-03 15:57:03'),
(317, 1, 124, 1, 0, 0, 0, '2018-07-03 15:59:14'),
(320, 1, 47, 1, 0, 0, 0, '2018-07-03 16:31:12'),
(321, 1, 121, 1, 0, 0, 0, '2018-07-03 16:31:12'),
(369, 1, 102, 1, 1, 1, 1, '2019-12-02 10:32:15'),
(372, 10, 79, 1, 1, 0, 0, '2018-07-04 09:40:04'),
(373, 10, 80, 1, 1, 1, 1, '2018-07-04 09:53:09'),
(374, 10, 81, 1, 1, 1, 1, '2018-07-04 09:53:50'),
(375, 10, 82, 1, 1, 1, 1, '2018-07-04 09:56:54'),
(376, 10, 83, 1, 1, 1, 1, '2018-07-04 09:57:55'),
(377, 10, 84, 1, 1, 1, 1, '2018-07-04 10:00:26'),
(378, 10, 85, 1, 1, 1, 1, '2018-07-04 10:02:54'),
(379, 10, 86, 1, 1, 1, 1, '2018-07-04 10:16:18'),
(380, 10, 87, 1, 0, 0, 0, '2018-07-04 10:19:49'),
(381, 10, 88, 1, 1, 1, 0, '2018-07-04 10:21:20'),
(382, 10, 89, 1, 0, 0, 0, '2018-07-04 10:21:51'),
(383, 10, 90, 1, 1, 0, 1, '2018-07-04 10:25:01'),
(384, 10, 91, 1, 0, 0, 0, '2018-07-04 10:25:01'),
(385, 10, 108, 1, 1, 1, 1, '2018-07-04 10:27:46'),
(386, 10, 109, 1, 1, 1, 1, '2018-07-04 10:28:26'),
(387, 10, 110, 1, 1, 1, 1, '2018-07-04 10:32:43'),
(388, 10, 111, 1, 1, 1, 1, '2018-07-04 10:33:21'),
(389, 10, 112, 1, 1, 1, 1, '2018-07-04 10:35:06'),
(390, 10, 127, 1, 0, 0, 0, '2018-07-04 10:35:06'),
(391, 10, 93, 1, 1, 1, 1, '2018-07-04 10:37:14'),
(392, 10, 94, 1, 1, 0, 0, '2018-07-04 10:38:02'),
(394, 10, 95, 1, 0, 0, 0, '2018-07-04 10:38:44'),
(395, 10, 102, 1, 1, 1, 1, '2018-07-04 10:41:02'),
(396, 10, 106, 1, 0, 0, 0, '2018-07-04 10:41:39'),
(397, 10, 113, 1, 0, 0, 0, '2018-07-04 10:42:37'),
(398, 10, 114, 1, 0, 0, 0, '2018-07-04 10:42:37'),
(399, 10, 115, 1, 0, 0, 0, '2018-07-04 10:48:45'),
(400, 10, 116, 1, 0, 0, 0, '2018-07-04 10:48:45'),
(401, 10, 117, 1, 0, 0, 0, '2018-07-04 10:49:43'),
(402, 10, 118, 1, 0, 0, 0, '2018-07-04 10:49:43'),
(434, 1, 125, 1, 0, 0, 0, '2018-07-06 15:29:26'),
(435, 1, 96, 1, 1, 1, 1, '2018-07-09 06:33:54'),
(445, 1, 48, 1, 0, 0, 0, '2018-07-06 17:19:35'),
(446, 1, 49, 1, 0, 0, 0, '2018-07-06 17:19:35'),
(461, 1, 97, 1, 0, 0, 0, '2018-07-09 06:30:16'),
(462, 1, 95, 1, 0, 0, 0, '2018-07-09 06:48:41'),
(464, 1, 86, 1, 1, 1, 1, '2019-11-28 12:09:19'),
(474, 1, 130, 1, 1, 0, 1, '2018-07-09 16:26:36'),
(476, 1, 131, 1, 0, 0, 0, '2018-07-09 10:23:32'),
(479, 2, 47, 1, 0, 0, 0, '2018-07-10 12:17:12'),
(480, 2, 105, 1, 0, 0, 0, '2018-07-10 12:17:12'),
(482, 2, 119, 1, 0, 0, 0, '2018-07-10 12:17:12'),
(483, 2, 120, 1, 0, 0, 0, '2018-07-10 12:17:12'),
(486, 2, 16, 1, 0, 0, 0, '2018-07-10 12:17:12'),
(493, 2, 22, 1, 0, 0, 0, '2018-07-12 05:50:27'),
(504, 2, 95, 1, 0, 0, 0, '2018-07-10 12:17:12'),
(513, 3, 72, 1, 0, 0, 0, '2018-07-10 12:37:30'),
(517, 3, 75, 1, 0, 0, 0, '2018-07-10 12:40:38'),
(527, 3, 89, 1, 0, 0, 0, '2018-07-10 12:48:44'),
(529, 3, 91, 1, 0, 0, 0, '2018-07-10 12:48:44'),
(549, 3, 124, 1, 0, 0, 0, '2018-07-10 12:52:17'),
(557, 6, 82, 1, 1, 1, 1, '2019-12-01 07:18:28'),
(558, 6, 83, 1, 1, 1, 1, '2019-12-01 07:19:08'),
(559, 6, 84, 1, 1, 1, 1, '2019-12-01 07:19:59'),
(575, 6, 44, 1, 0, 0, 0, '2018-07-10 13:05:33'),
(576, 6, 46, 1, 0, 0, 0, '2018-07-10 13:05:33'),
(578, 6, 102, 1, 1, 1, 1, '2019-12-01 07:22:27'),
(594, 3, 125, 1, 0, 0, 0, '2018-07-10 13:28:12'),
(595, 3, 48, 1, 0, 0, 0, '2018-07-10 13:28:12'),
(596, 3, 49, 1, 0, 0, 0, '2018-07-10 13:28:12'),
(617, 2, 17, 1, 1, 1, 1, '2018-07-11 12:25:14'),
(618, 2, 19, 1, 1, 1, 0, '2018-07-11 12:25:14'),
(620, 2, 76, 1, 1, 1, 0, '2018-07-11 12:25:14'),
(622, 2, 121, 1, 0, 0, 0, '2018-07-11 12:26:27'),
(625, 1, 28, 1, 1, 1, 1, '2019-11-29 11:49:18'),
(628, 6, 22, 1, 0, 0, 0, '2018-07-12 05:53:47'),
(634, 4, 102, 1, 1, 1, 1, '2019-12-01 06:33:00'),
(662, 1, 138, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(663, 1, 139, 1, 1, 1, 1, '2019-11-01 07:58:24'),
(664, 1, 140, 1, 1, 1, 1, '2019-11-01 07:58:24'),
(669, 1, 145, 1, 0, 0, 0, '2019-11-26 10:21:15'),
(677, 1, 153, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(690, 1, 166, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(691, 1, 167, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(692, 1, 168, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(693, 1, 170, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(694, 1, 172, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(695, 1, 173, 1, 0, 0, 0, '2019-11-01 07:58:24'),
(720, 1, 216, 1, 0, 0, 0, '2019-11-26 10:54:12'),
(728, 1, 185, 1, 1, 1, 1, '2019-11-28 08:20:33'),
(729, 1, 186, 1, 1, 1, 1, '2019-11-28 08:19:07'),
(730, 1, 214, 1, 0, 1, 0, '2019-11-28 07:17:53'),
(732, 1, 198, 1, 0, 0, 0, '2019-11-26 10:54:30'),
(733, 1, 199, 1, 0, 0, 0, '2019-11-26 10:54:30'),
(734, 1, 200, 1, 0, 0, 0, '2019-11-26 10:54:30'),
(735, 1, 201, 1, 0, 0, 0, '2019-11-26 10:54:30'),
(736, 1, 202, 1, 0, 0, 0, '2019-11-26 10:54:30'),
(737, 1, 203, 1, 0, 0, 0, '2019-11-26 10:54:30'),
(739, 1, 218, 1, 0, 0, 0, '2019-11-27 12:06:31'),
(743, 1, 218, 1, 0, 0, 0, '2019-11-27 12:06:32'),
(747, 1, 2, 1, 0, 0, 0, '2019-11-28 04:26:08'),
(748, 1, 3, 1, 1, 1, 1, '2019-11-28 04:26:32'),
(749, 1, 4, 1, 1, 1, 1, '2019-11-28 04:26:48'),
(751, 1, 128, 0, 1, 0, 1, '2019-11-28 04:27:01'),
(752, 1, 132, 1, 0, 1, 1, '2019-11-28 04:32:23'),
(754, 1, 134, 1, 1, 1, 1, '2019-11-28 04:48:21'),
(755, 1, 5, 1, 1, 0, 1, '2019-11-28 05:05:07'),
(756, 1, 6, 1, 0, 0, 0, '2019-11-28 05:05:25'),
(757, 1, 7, 1, 1, 1, 1, '2019-11-28 05:06:35'),
(758, 1, 8, 1, 1, 1, 1, '2019-11-28 05:07:27'),
(760, 1, 68, 1, 0, 0, 0, '2019-11-28 05:08:06'),
(761, 1, 69, 1, 1, 1, 1, '2019-11-28 05:09:06'),
(762, 1, 70, 1, 1, 1, 1, '2019-11-28 05:09:41'),
(763, 1, 71, 1, 0, 0, 0, '2019-11-28 05:09:59'),
(764, 1, 72, 1, 0, 0, 0, '2019-11-28 05:10:11'),
(765, 1, 73, 1, 0, 0, 0, '2019-11-28 05:13:15'),
(766, 1, 74, 1, 0, 0, 0, '2019-11-28 05:13:55'),
(768, 1, 11, 1, 0, 0, 0, '2019-11-28 05:15:46'),
(769, 1, 122, 1, 0, 0, 0, '2019-11-28 05:22:43'),
(771, 1, 136, 1, 0, 0, 0, '2019-11-28 05:25:36'),
(772, 1, 20, 1, 1, 1, 1, '2019-11-28 09:36:44'),
(773, 1, 137, 1, 1, 1, 1, '2019-11-28 06:16:14'),
(774, 1, 141, 1, 1, 1, 1, '2019-11-28 06:29:42'),
(775, 1, 142, 1, 0, 0, 0, '2019-11-28 05:26:12'),
(776, 1, 143, 1, 1, 1, 1, '2019-11-28 06:29:42'),
(777, 1, 144, 1, 0, 0, 0, '2019-11-28 05:26:12'),
(778, 1, 187, 1, 0, 0, 0, '2019-11-28 05:26:12'),
(779, 1, 196, 1, 0, 0, 0, '2019-11-28 05:26:12'),
(781, 1, 207, 1, 0, 0, 0, '2019-11-28 05:26:12'),
(782, 1, 208, 1, 0, 1, 0, '2019-11-28 05:40:22'),
(783, 1, 210, 1, 0, 1, 0, '2019-11-28 06:04:40'),
(784, 1, 211, 1, 0, 1, 0, '2019-11-28 06:08:23'),
(785, 1, 212, 1, 0, 1, 0, '2019-11-28 06:12:15'),
(786, 1, 205, 1, 1, 1, 1, '2019-11-28 06:12:15'),
(787, 1, 222, 1, 0, 1, 0, '2019-11-28 07:06:36'),
(788, 1, 77, 1, 1, 1, 1, '2019-11-28 11:52:10'),
(789, 1, 188, 1, 1, 1, 1, '2019-11-28 11:56:16'),
(790, 1, 23, 1, 1, 1, 1, '2019-11-28 12:04:20'),
(791, 1, 25, 1, 1, 1, 1, '2019-11-28 12:06:20'),
(792, 1, 127, 1, 0, 0, 0, '2019-11-28 12:11:25'),
(794, 1, 88, 1, 1, 1, 0, '2019-11-28 12:13:04'),
(795, 1, 90, 1, 1, 0, 1, '2019-11-28 12:16:22'),
(796, 1, 108, 1, 0, 1, 0, '2019-11-29 05:19:01'),
(797, 1, 109, 1, 1, 0, 0, '2019-11-29 05:08:11'),
(798, 1, 110, 1, 1, 1, 1, '2019-11-29 05:19:29'),
(799, 1, 111, 1, 1, 1, 1, '2019-11-29 05:19:57'),
(800, 1, 112, 1, 1, 1, 1, '2019-11-29 05:19:57'),
(801, 1, 129, 0, 1, 0, 1, '2019-11-29 05:19:57'),
(802, 1, 189, 1, 0, 1, 1, '2019-11-29 05:29:22'),
(806, 2, 133, 1, 0, 1, 0, '2019-11-29 06:04:35'),
(807, 2, 134, 1, 1, 1, 1, '2019-11-29 06:03:18'),
(810, 2, 1, 1, 1, 1, 1, '2019-11-30 08:24:16'),
(813, 1, 133, 1, 0, 1, 0, '2019-11-29 06:09:57'),
(817, 1, 93, 1, 1, 1, 1, '2019-11-29 06:26:14'),
(825, 1, 87, 1, 0, 0, 0, '2019-11-29 06:26:14'),
(829, 1, 94, 1, 1, 0, 0, '2019-11-29 06:27:57'),
(836, 1, 146, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(837, 1, 147, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(838, 1, 148, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(839, 1, 149, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(840, 1, 150, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(841, 1, 151, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(842, 1, 152, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(843, 1, 154, 1, 0, 0, 0, '2019-11-29 06:43:28'),
(862, 1, 155, 1, 0, 0, 0, '2019-11-29 07:37:30'),
(863, 1, 156, 1, 0, 0, 0, '2019-11-29 07:37:52'),
(864, 1, 157, 1, 0, 0, 0, '2019-11-29 07:38:05'),
(874, 1, 158, 1, 0, 0, 0, '2019-11-29 07:44:03'),
(875, 1, 159, 1, 0, 0, 0, '2019-11-29 07:44:31'),
(876, 1, 160, 1, 0, 0, 0, '2019-11-29 07:44:44'),
(878, 1, 162, 1, 0, 0, 0, '2019-11-29 07:45:58'),
(879, 1, 163, 1, 0, 0, 0, '2019-11-29 07:46:19'),
(882, 1, 164, 1, 0, 0, 0, '2019-11-29 07:55:17'),
(884, 1, 165, 1, 0, 0, 0, '2019-11-29 07:55:30'),
(886, 1, 197, 1, 0, 0, 0, '2019-11-29 07:55:48'),
(887, 1, 219, 1, 0, 0, 0, '2019-11-29 07:56:05'),
(889, 1, 220, 1, 0, 0, 0, '2019-11-29 07:56:22'),
(932, 1, 204, 1, 0, 0, 0, '2019-11-29 09:13:27'),
(933, 1, 221, 1, 0, 0, 0, '2019-11-29 09:15:04'),
(934, 1, 178, 1, 0, 0, 0, '2019-11-29 09:15:16'),
(935, 1, 179, 1, 0, 0, 0, '2019-11-29 09:15:33'),
(936, 1, 161, 1, 0, 0, 0, '2019-11-29 09:15:48'),
(937, 1, 180, 1, 0, 0, 0, '2019-11-29 09:15:48'),
(938, 1, 181, 1, 0, 0, 0, '2019-11-29 09:19:33'),
(939, 1, 182, 1, 0, 0, 0, '2019-11-29 09:19:45'),
(940, 1, 183, 1, 0, 0, 0, '2019-11-29 09:19:56'),
(941, 1, 174, 1, 0, 0, 0, '2019-11-29 09:20:53'),
(943, 1, 176, 1, 0, 0, 0, '2019-11-29 09:22:10'),
(944, 1, 177, 1, 0, 0, 0, '2019-11-29 09:22:22'),
(945, 1, 53, 0, 1, 0, 0, '2019-11-29 09:24:52'),
(946, 1, 215, 1, 0, 0, 0, '2019-11-29 09:31:37'),
(947, 1, 213, 1, 0, 0, 0, '2019-11-29 09:37:45'),
(974, 1, 224, 1, 0, 0, 0, '2019-11-29 10:02:52'),
(979, 1, 225, 1, 0, 0, 0, '2019-11-29 10:15:30'),
(982, 2, 225, 1, 0, 0, 0, '2019-11-29 10:17:19'),
(1026, 1, 135, 1, 0, 1, 0, '2019-11-29 11:32:12'),
(1031, 1, 228, 1, 0, 0, 0, '2019-11-29 11:51:16'),
(1083, 1, 175, 1, 0, 0, 0, '2019-11-30 06:07:24'),
(1086, 1, 43, 1, 1, 1, 1, '2019-11-30 06:19:39'),
(1087, 1, 44, 1, 0, 0, 0, '2019-11-30 06:19:39'),
(1088, 1, 46, 1, 0, 0, 0, '2019-11-30 06:19:39'),
(1089, 1, 217, 1, 0, 0, 0, '2019-11-30 06:19:39'),
(1090, 1, 98, 1, 1, 1, 1, '2019-11-30 07:02:51'),
(1091, 1, 99, 1, 0, 0, 0, '2019-11-30 07:00:18'),
(1092, 1, 223, 1, 0, 0, 0, '2019-11-30 07:02:51'),
(1103, 2, 205, 1, 1, 1, 1, '2019-11-30 07:26:04'),
(1105, 2, 23, 1, 0, 0, 0, '2019-11-30 07:26:04'),
(1106, 2, 24, 1, 0, 0, 0, '2019-11-30 07:26:04'),
(1107, 2, 25, 1, 0, 0, 0, '2019-11-30 07:26:04'),
(1108, 2, 77, 1, 0, 0, 0, '2019-11-30 07:26:04'),
(1119, 2, 117, 1, 0, 0, 0, '2019-11-30 07:26:04'),
(1123, 3, 8, 1, 1, 1, 1, '2019-11-30 12:16:18'),
(1125, 3, 69, 1, 1, 1, 1, '2019-11-30 12:30:49'),
(1126, 3, 70, 1, 1, 1, 1, '2019-11-30 12:34:46'),
(1130, 3, 9, 1, 1, 1, 1, '2019-11-30 12:44:54'),
(1131, 3, 10, 1, 1, 1, 1, '2019-11-30 12:46:02'),
(1134, 3, 35, 1, 1, 1, 1, '2019-11-30 12:55:04'),
(1135, 3, 104, 1, 1, 1, 1, '2019-11-30 12:55:53'),
(1140, 3, 41, 1, 1, 1, 1, '2019-11-30 13:07:13'),
(1141, 3, 42, 1, 1, 1, 1, '2019-11-30 13:07:46'),
(1142, 3, 43, 1, 1, 1, 1, '2019-11-30 13:12:06'),
(1151, 3, 87, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1152, 3, 88, 1, 1, 1, 0, '2019-11-30 07:53:13'),
(1153, 3, 90, 1, 1, 0, 1, '2019-11-30 07:53:13'),
(1154, 3, 108, 1, 0, 1, 0, '2019-11-30 07:53:13'),
(1155, 3, 109, 1, 1, 0, 0, '2019-11-30 07:53:13'),
(1156, 3, 110, 1, 1, 1, 1, '2019-11-30 07:53:13'),
(1157, 3, 111, 1, 1, 1, 1, '2019-11-30 07:53:13'),
(1158, 3, 112, 1, 1, 1, 1, '2019-11-30 07:53:13'),
(1159, 3, 127, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1160, 3, 129, 0, 1, 0, 1, '2019-11-30 07:53:13'),
(1161, 3, 102, 1, 1, 1, 1, '2019-11-30 07:53:13'),
(1162, 3, 106, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1163, 3, 113, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1164, 3, 114, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1165, 3, 115, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1166, 3, 116, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1167, 3, 117, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1168, 3, 118, 1, 0, 0, 0, '2019-11-30 07:53:13'),
(1171, 2, 142, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1172, 2, 144, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1179, 2, 212, 1, 0, 1, 0, '2019-11-30 08:06:17'),
(1183, 2, 148, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1184, 2, 149, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1185, 2, 150, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1186, 2, 151, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1187, 2, 152, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1188, 2, 153, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1189, 2, 154, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1190, 2, 197, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1191, 2, 198, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1192, 2, 199, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1193, 2, 200, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1194, 2, 201, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1195, 2, 202, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1196, 2, 203, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1197, 2, 219, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1198, 2, 223, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1199, 2, 213, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1201, 2, 230, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1204, 2, 214, 1, 0, 1, 0, '2019-11-30 08:06:17'),
(1206, 2, 224, 1, 0, 0, 0, '2019-11-30 08:06:17'),
(1208, 2, 2, 1, 0, 0, 0, '2019-11-30 08:25:45'),
(1210, 2, 143, 1, 1, 1, 1, '2019-11-30 08:27:28'),
(1211, 2, 145, 1, 0, 0, 0, '2019-11-30 08:27:28'),
(1214, 2, 3, 1, 1, 1, 1, '2019-11-30 08:33:18'),
(1216, 2, 4, 1, 1, 1, 1, '2019-11-30 09:02:56'),
(1217, 2, 107, 1, 0, 0, 0, '2019-11-30 09:03:33'),
(1218, 2, 128, 0, 1, 0, 1, '2019-11-30 09:07:44'),
(1220, 3, 135, 1, 0, 1, 0, '2019-11-30 12:38:56'),
(1231, 3, 190, 1, 0, 0, 0, '2019-11-30 09:14:02'),
(1232, 3, 192, 1, 0, 0, 0, '2019-11-30 09:14:02'),
(1233, 3, 226, 1, 0, 0, 0, '2019-11-30 09:14:02'),
(1234, 3, 227, 1, 0, 0, 0, '2019-11-30 09:14:02'),
(1235, 3, 224, 1, 0, 0, 0, '2019-11-30 09:14:02'),
(1236, 2, 15, 1, 1, 1, 0, '2019-11-30 09:24:25'),
(1239, 2, 122, 1, 0, 0, 0, '2019-11-30 09:27:48'),
(1240, 2, 136, 1, 0, 0, 0, '2019-11-30 09:27:48'),
(1242, 6, 217, 1, 0, 0, 0, '2019-11-30 09:30:13'),
(1243, 6, 224, 1, 0, 0, 0, '2019-11-30 09:30:13'),
(1245, 2, 20, 1, 1, 1, 1, '2019-11-30 09:31:28'),
(1246, 2, 137, 1, 1, 1, 1, '2019-11-30 09:32:40'),
(1248, 2, 141, 1, 1, 1, 1, '2019-11-30 09:34:04'),
(1250, 2, 187, 1, 0, 0, 0, '2019-11-30 09:41:19'),
(1252, 2, 207, 1, 0, 0, 0, '2019-11-30 09:51:21'),
(1253, 2, 208, 1, 0, 1, 0, '2019-11-30 09:52:00'),
(1255, 2, 210, 1, 0, 1, 0, '2019-11-30 09:52:58'),
(1256, 2, 211, 1, 0, 1, 0, '2019-11-30 09:54:03'),
(1257, 2, 21, 1, 0, 0, 0, '2019-11-30 10:02:59'),
(1259, 2, 188, 1, 0, 0, 0, '2019-11-30 10:04:35'),
(1260, 2, 27, 1, 0, 0, 0, '2019-11-30 10:06:13'),
(1262, 2, 43, 1, 1, 1, 1, '2019-11-30 10:09:42'),
(1263, 2, 44, 1, 0, 0, 0, '2019-11-30 10:11:43'),
(1264, 2, 46, 1, 0, 0, 0, '2019-11-30 10:11:43'),
(1265, 2, 217, 1, 0, 0, 0, '2019-11-30 10:11:43'),
(1266, 2, 146, 1, 0, 0, 0, '2019-11-30 10:16:35'),
(1267, 2, 147, 1, 0, 0, 0, '2019-11-30 10:17:37'),
(1269, 2, 164, 1, 0, 0, 0, '2019-11-30 10:21:04'),
(1270, 2, 86, 1, 0, 0, 0, '2019-11-30 10:32:14'),
(1271, 2, 109, 1, 1, 0, 0, '2019-11-30 10:33:37'),
(1272, 2, 93, 1, 1, 1, 1, '2019-11-30 10:37:25'),
(1273, 2, 94, 1, 1, 0, 0, '2019-11-30 10:37:42'),
(1275, 2, 102, 1, 1, 1, 1, '2019-11-30 10:41:22'),
(1277, 2, 196, 1, 0, 0, 0, '2019-11-30 10:45:01'),
(1278, 2, 195, 1, 0, 0, 0, '2019-11-30 10:49:08'),
(1279, 2, 185, 1, 1, 1, 1, '2019-11-30 10:51:44'),
(1280, 2, 186, 1, 1, 1, 1, '2019-11-30 10:52:43'),
(1281, 2, 222, 1, 0, 1, 0, '2019-11-30 10:54:30'),
(1283, 3, 5, 1, 1, 0, 1, '2019-11-30 12:13:04'),
(1284, 3, 6, 1, 0, 0, 0, '2019-11-30 12:13:29'),
(1285, 3, 7, 1, 1, 1, 1, '2019-11-30 12:14:39'),
(1286, 3, 68, 1, 0, 0, 0, '2019-11-30 12:16:58'),
(1287, 3, 71, 1, 0, 0, 0, '2019-11-30 12:35:41'),
(1288, 3, 73, 1, 0, 0, 0, '2019-11-30 12:35:59'),
(1289, 3, 74, 1, 0, 0, 0, '2019-11-30 12:36:08'),
(1290, 3, 11, 1, 0, 0, 0, '2019-11-30 12:46:37'),
(1291, 3, 12, 1, 1, 1, 1, '2019-11-30 12:49:29'),
(1292, 3, 13, 1, 1, 1, 1, '2019-11-30 12:52:27'),
(1294, 3, 14, 1, 0, 0, 0, '2019-11-30 12:52:55'),
(1295, 3, 31, 1, 1, 1, 1, '2019-12-02 12:00:37'),
(1297, 3, 37, 1, 1, 1, 1, '2019-11-30 12:58:09'),
(1298, 3, 38, 1, 1, 1, 1, '2019-11-30 12:59:02'),
(1299, 3, 39, 1, 1, 1, 1, '2019-11-30 13:00:07'),
(1300, 3, 40, 1, 1, 1, 1, '2019-11-30 13:02:43'),
(1301, 3, 44, 1, 0, 0, 0, '2019-11-30 13:14:09'),
(1302, 3, 46, 1, 0, 0, 0, '2019-11-30 13:14:09'),
(1303, 3, 217, 1, 0, 0, 0, '2019-11-30 13:14:09'),
(1304, 3, 155, 1, 0, 0, 0, '2019-11-30 13:14:32'),
(1305, 3, 156, 1, 0, 0, 0, '2019-11-30 13:15:18'),
(1306, 3, 157, 1, 0, 0, 0, '2019-11-30 13:15:42'),
(1307, 3, 158, 1, 0, 0, 0, '2019-11-30 13:16:07'),
(1308, 3, 159, 1, 0, 0, 0, '2019-11-30 13:16:21'),
(1309, 3, 160, 1, 0, 0, 0, '2019-11-30 13:16:33'),
(1313, 3, 161, 1, 0, 0, 0, '2019-11-30 13:18:26'),
(1314, 3, 162, 1, 0, 0, 0, '2019-11-30 13:18:48'),
(1315, 3, 163, 1, 0, 0, 0, '2019-11-30 13:18:48'),
(1316, 3, 164, 1, 0, 0, 0, '2019-11-30 13:19:47'),
(1317, 3, 165, 1, 0, 0, 0, '2019-11-30 13:19:47'),
(1318, 3, 174, 1, 0, 0, 0, '2019-11-30 13:19:47'),
(1319, 3, 175, 1, 0, 0, 0, '2019-11-30 13:19:59'),
(1320, 3, 181, 1, 0, 0, 0, '2019-11-30 13:20:08'),
(1321, 3, 86, 1, 1, 1, 1, '2019-11-30 13:24:08'),
(1322, 4, 28, 1, 1, 1, 1, '2019-12-01 06:22:39'),
(1324, 4, 29, 1, 0, 0, 0, '2019-12-01 06:23:46'),
(1325, 4, 30, 1, 0, 0, 0, '2019-12-01 06:23:59'),
(1326, 4, 123, 1, 0, 0, 0, '2019-12-01 06:24:26'),
(1327, 4, 228, 1, 0, 0, 0, '2019-12-01 06:24:39'),
(1328, 4, 43, 1, 1, 1, 1, '2019-12-01 06:28:05'),
(1332, 4, 44, 1, 0, 0, 0, '2019-12-01 06:29:16'),
(1333, 4, 46, 1, 0, 0, 0, '2019-12-01 06:29:16'),
(1334, 4, 217, 1, 0, 0, 0, '2019-12-01 06:29:16'),
(1335, 4, 178, 1, 0, 0, 0, '2019-12-01 06:29:59'),
(1336, 4, 179, 1, 0, 0, 0, '2019-12-01 06:30:11'),
(1337, 4, 180, 1, 0, 0, 0, '2019-12-01 06:30:29'),
(1338, 4, 221, 1, 0, 0, 0, '2019-12-01 06:30:46'),
(1339, 4, 86, 1, 0, 0, 0, '2019-12-01 06:31:02'),
(1341, 4, 106, 1, 0, 0, 0, '2019-12-01 06:35:21'),
(1342, 1, 107, 1, 0, 0, 0, '2019-12-01 06:36:44'),
(1343, 4, 117, 1, 0, 0, 0, '2019-12-01 06:40:20'),
(1344, 4, 194, 1, 0, 0, 0, '2019-12-01 06:41:35'),
(1348, 4, 230, 1, 0, 0, 0, '2019-12-01 06:49:15'),
(1350, 6, 1, 1, 0, 0, 0, '2019-12-01 07:05:32'),
(1351, 6, 21, 1, 0, 0, 0, '2019-12-01 07:06:29'),
(1352, 6, 23, 1, 0, 0, 0, '2019-12-01 07:06:45'),
(1353, 6, 24, 1, 0, 0, 0, '2019-12-01 07:07:05'),
(1354, 6, 25, 1, 0, 0, 0, '2019-12-01 07:07:34'),
(1355, 6, 77, 1, 0, 0, 0, '2019-12-01 07:08:08'),
(1356, 6, 188, 1, 0, 0, 0, '2019-12-01 07:08:45'),
(1357, 6, 43, 1, 1, 1, 1, '2019-12-01 07:10:44'),
(1358, 6, 78, 1, 1, 1, 1, '2019-12-01 07:13:04'),
(1360, 6, 79, 1, 1, 0, 1, '2019-12-01 07:14:39'),
(1361, 6, 80, 1, 1, 1, 1, '2019-12-01 07:15:08'),
(1362, 6, 81, 1, 1, 1, 1, '2019-12-01 07:17:50'),
(1363, 6, 85, 1, 1, 1, 1, '2019-12-01 07:20:43'),
(1364, 6, 86, 1, 0, 0, 0, '2019-12-01 07:21:10'),
(1365, 6, 106, 1, 0, 0, 0, '2019-12-01 07:22:55'),
(1366, 6, 117, 1, 0, 0, 0, '2019-12-01 07:23:08'),
(1394, 1, 106, 1, 0, 0, 0, '2019-12-02 10:50:33'),
(1395, 1, 113, 1, 0, 0, 0, '2019-12-02 10:50:59'),
(1396, 1, 114, 1, 0, 0, 0, '2019-12-02 10:51:34'),
(1397, 1, 115, 1, 0, 0, 0, '2019-12-02 10:51:34'),
(1398, 1, 116, 1, 0, 0, 0, '2019-12-02 10:51:54'),
(1399, 1, 117, 1, 0, 0, 0, '2019-12-02 10:52:04'),
(1400, 1, 118, 1, 0, 0, 0, '2019-12-02 10:52:20'),
(1402, 1, 191, 1, 0, 0, 0, '2019-12-02 10:53:34'),
(1403, 1, 192, 1, 0, 0, 0, '2019-12-02 10:53:47'),
(1404, 1, 193, 1, 0, 0, 0, '2019-12-02 10:53:58'),
(1405, 1, 194, 1, 0, 0, 0, '2019-12-02 10:54:11'),
(1406, 1, 195, 1, 0, 0, 0, '2019-12-02 10:54:20'),
(1408, 1, 227, 1, 0, 0, 0, '2019-12-02 10:55:47'),
(1410, 1, 226, 1, 0, 0, 0, '2019-12-02 11:01:41'),
(1411, 1, 229, 1, 0, 0, 0, '2019-12-02 11:02:57'),
(1412, 1, 230, 1, 0, 0, 0, '2019-12-02 11:02:57'),
(1413, 1, 190, 1, 0, 0, 0, '2019-12-02 11:13:41'),
(1414, 2, 174, 1, 0, 0, 0, '2019-12-02 11:24:37'),
(1415, 2, 175, 1, 0, 0, 0, '2019-12-02 11:24:37'),
(1418, 2, 232, 1, 0, 1, 1, '2019-12-02 11:41:27'),
(1419, 2, 231, 1, 0, 0, 0, '2019-12-02 11:42:28'),
(1420, 1, 231, 1, 0, 0, 0, '2019-12-02 11:49:32'),
(1421, 1, 232, 1, 0, 1, 1, '2019-12-02 11:49:32'),
(1422, 3, 32, 1, 1, 1, 1, '2019-12-02 12:00:37'),
(1423, 3, 33, 1, 1, 1, 1, '2019-12-02 12:00:37'),
(1424, 3, 34, 1, 1, 1, 1, '2019-12-02 12:00:37'),
(1425, 3, 182, 1, 0, 0, 0, '2019-12-02 12:00:37'),
(1426, 3, 183, 1, 0, 0, 0, '2019-12-02 12:00:37'),
(1427, 3, 189, 1, 0, 1, 1, '2019-12-02 12:00:37'),
(1428, 3, 229, 1, 0, 0, 0, '2019-12-02 12:00:37'),
(1429, 3, 230, 1, 0, 0, 0, '2019-12-02 12:00:37'),
(1430, 4, 213, 1, 0, 0, 0, '2019-12-02 12:02:14'),
(1432, 4, 224, 1, 0, 0, 0, '2019-12-02 12:02:14'),
(1433, 4, 195, 1, 0, 0, 0, '2019-12-03 10:27:53'),
(1434, 4, 229, 1, 0, 0, 0, '2019-12-03 10:28:19'),
(1436, 6, 213, 1, 0, 0, 0, '2019-12-03 10:40:11'),
(1437, 6, 191, 1, 0, 0, 0, '2019-12-03 10:40:11'),
(1438, 6, 193, 1, 0, 0, 0, '2019-12-03 10:40:11'),
(1439, 6, 230, 1, 0, 0, 0, '2019-12-03 10:40:11');

-- --------------------------------------------------------

--
-- Table structure for table `room_types`
--

CREATE TABLE `room_types` (
  `id` int(11) NOT NULL,
  `room_type` varchar(200) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `school_houses`
--

CREATE TABLE `school_houses` (
  `id` int(11) NOT NULL,
  `house_name` varchar(200) NOT NULL,
  `description` varchar(400) NOT NULL,
  `is_active` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `school_houses`
--

INSERT INTO `school_houses` (`id`, `house_name`, `description`, `is_active`) VALUES
(1, 'Red', '', 'yes'),
(2, 'BLUE', '', 'yes'),
(3, 'Green', '', 'yes');

-- --------------------------------------------------------

--
-- Table structure for table `sections`
--

CREATE TABLE `sections` (
  `id` int(11) NOT NULL,
  `section` varchar(60) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sections`
--

INSERT INTO `sections` (`id`, `section`, `is_active`, `created_at`, `updated_at`) VALUES
(2, 'RED', 'no', '2020-02-27 12:01:55', NULL),
(4, 'BLUE', 'no', '2020-02-27 12:02:12', NULL),
(5, 'GREEN', 'no', '2021-09-12 20:04:34', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `send_notification`
--

CREATE TABLE `send_notification` (
  `id` int(11) NOT NULL,
  `title` varchar(50) DEFAULT NULL,
  `publish_date` date DEFAULT NULL,
  `date` date DEFAULT NULL,
  `message` text DEFAULT NULL,
  `visible_student` varchar(10) NOT NULL DEFAULT 'no',
  `visible_staff` varchar(10) NOT NULL DEFAULT 'no',
  `visible_parent` varchar(10) NOT NULL DEFAULT 'no',
  `created_by` varchar(60) DEFAULT NULL,
  `created_id` int(11) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `send_notification`
--

INSERT INTO `send_notification` (`id`, `title`, `publish_date`, `date`, `message`, `visible_student`, `visible_staff`, `visible_parent`, `created_by`, `created_id`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Welcome to The New School System', '2020-02-17', '2020-02-17', '<p>Dear BOFA Elementary Family</p><p>We are excited and priviledged to launch our new School Management System. We look forward to having a great time in using the system which will make our interractions faster, cheaper, convenient and secure for all the users.</p><p>You will receive your secure login messages inviting each one of you to login in to the system and further details as we move forward.</p><p>Feel free to visit the school if you need more clarification or call the administrator at this number: \r\n(+254) 710 789 573\r\n\r\n<br></p>', 'Yes', 'Yes', 'Yes', 'Super Admin', 1, 'no', '2020-02-16 22:23:39', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` int(11) NOT NULL,
  `session` varchar(60) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sessions`
--

INSERT INTO `sessions` (`id`, `session`, `is_active`, `created_at`, `updated_at`) VALUES
(7, '2016-17', 'no', '2017-04-20 06:42:19', '0000-00-00'),
(11, '2017-18', 'no', '2017-04-20 06:41:37', '0000-00-00'),
(13, '2018-19', 'no', '2016-08-24 19:26:44', '0000-00-00'),
(14, 'Jan 2020 - April 2020', 'no', '2020-02-27 12:05:28', '0000-00-00'),
(15, 'May 2020 - August 2020', 'no', '2020-02-27 12:06:30', '0000-00-00'),
(16, 'Sept 2020 - Oct 2020', 'no', '2020-02-27 12:06:50', '0000-00-00'),
(26, 'Jan 2021 - April 2021', 'no', '2020-02-27 12:07:17', NULL),
(27, 'May 2021 - August 2021', 'no', '2020-02-27 12:07:52', NULL),
(28, 'Sept 2021 - Oct 2021', 'no', '2020-02-27 12:08:15', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `source`
--

CREATE TABLE `source` (
  `id` int(11) NOT NULL,
  `source` varchar(100) NOT NULL,
  `description` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `staff_attendance`
--

CREATE TABLE `staff_attendance` (
  `id` int(11) NOT NULL,
  `date` date NOT NULL,
  `staff_id` int(11) NOT NULL,
  `staff_attendance_type_id` int(11) NOT NULL,
  `remark` varchar(200) NOT NULL,
  `is_active` int(11) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `staff_attendance_type`
--

CREATE TABLE `staff_attendance_type` (
  `id` int(11) NOT NULL,
  `type` varchar(200) NOT NULL,
  `key_value` varchar(200) NOT NULL,
  `is_active` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `staff_attendance_type`
--

INSERT INTO `staff_attendance_type` (`id`, `type`, `key_value`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Present', '<b class=\"text text-success\">P</b>', 'yes', '0000-00-00 00:00:00', '0000-00-00'),
(2, 'Late', '<b class=\"text text-warning\">L</b>', 'yes', '0000-00-00 00:00:00', '0000-00-00'),
(3, 'Absent', '<b class=\"text text-danger\">A</b>', 'yes', '0000-00-00 00:00:00', '0000-00-00'),
(4, 'Half Day', '<b class=\"text text-warning\">F</b>', 'yes', '2018-05-07 01:56:16', '0000-00-00'),
(5, 'Holiday', 'H', 'yes', '0000-00-00 00:00:00', '0000-00-00');

-- --------------------------------------------------------

--
-- Table structure for table `staff_designation`
--

CREATE TABLE `staff_designation` (
  `id` int(11) NOT NULL,
  `designation` varchar(200) NOT NULL,
  `is_active` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `staff_leave_details`
--

CREATE TABLE `staff_leave_details` (
  `id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `leave_type_id` int(11) NOT NULL,
  `alloted_leave` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `staff_leave_request`
--

CREATE TABLE `staff_leave_request` (
  `id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `leave_type_id` int(11) NOT NULL,
  `leave_from` date NOT NULL,
  `leave_to` date NOT NULL,
  `leave_days` int(11) NOT NULL,
  `employee_remark` varchar(200) NOT NULL,
  `admin_remark` varchar(200) NOT NULL,
  `status` varchar(100) NOT NULL,
  `applied_by` varchar(200) NOT NULL,
  `document_file` varchar(200) NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `staff_payroll`
--

CREATE TABLE `staff_payroll` (
  `id` int(11) NOT NULL,
  `basic_salary` int(11) NOT NULL,
  `pay_scale` varchar(200) NOT NULL,
  `grade` varchar(50) NOT NULL,
  `is_active` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `staff_payslip`
--

CREATE TABLE `staff_payslip` (
  `id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `basic` int(11) NOT NULL,
  `total_allowance` int(11) NOT NULL,
  `total_deduction` int(11) NOT NULL,
  `leave_deduction` int(11) NOT NULL,
  `tax` varchar(200) NOT NULL,
  `net_salary` int(11) NOT NULL,
  `status` varchar(100) NOT NULL,
  `month` varchar(200) NOT NULL,
  `year` varchar(200) NOT NULL,
  `payment_mode` varchar(200) NOT NULL,
  `payment_date` date NOT NULL,
  `remark` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `staff_payslip`
--

INSERT INTO `staff_payslip` (`id`, `staff_id`, `basic`, `total_allowance`, `total_deduction`, `leave_deduction`, `tax`, `net_salary`, `status`, `month`, `year`, `payment_mode`, `payment_date`, `remark`) VALUES
(1, 3, 60000, 2000, 9000, 0, '0', 53000, 'paid', 'August', '2021', 'cash', '2021-09-10', ''),
(2, 3, 60000, 5000, 900, 0, '16', 64084, 'paid', 'September', '2021', 'cheque', '2021-09-10', '');

-- --------------------------------------------------------

--
-- Table structure for table `staff_rating`
--

CREATE TABLE `staff_rating` (
  `id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `comment` text CHARACTER SET latin1 NOT NULL,
  `rate` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `role` varchar(255) CHARACTER SET latin1 NOT NULL,
  `status` int(11) NOT NULL COMMENT '0 decline, 1 Approve',
  `entrydt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `staff_roles`
--

CREATE TABLE `staff_roles` (
  `id` int(11) NOT NULL,
  `role_id` int(11) DEFAULT NULL,
  `staff_id` int(11) DEFAULT NULL,
  `is_active` int(11) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `staff_roles`
--

INSERT INTO `staff_roles` (`id`, `role_id`, `staff_id`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 7, 1, 0, '2020-02-16 17:24:39', NULL),
(2, 1, 2, 0, '2020-02-16 19:28:02', NULL),
(3, 2, 3, 0, '2020-02-17 00:07:56', NULL),
(4, 7, 4, 0, '2020-04-01 05:30:31', NULL),
(5, 2, 5, 0, '2020-04-01 06:21:50', NULL),
(6, 3, 6, 0, '2020-04-01 07:02:13', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `staff_timeline`
--

CREATE TABLE `staff_timeline` (
  `id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `title` varchar(200) NOT NULL,
  `timeline_date` date NOT NULL,
  `description` varchar(300) NOT NULL,
  `document` varchar(200) NOT NULL,
  `status` varchar(200) NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `student_doc`
--

CREATE TABLE `student_doc` (
  `id` int(11) NOT NULL,
  `student_id` int(11) DEFAULT NULL,
  `title` varchar(200) DEFAULT NULL,
  `doc` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `student_fees_deposite`
--

CREATE TABLE `student_fees_deposite` (
  `id` int(11) NOT NULL,
  `student_fees_master_id` int(11) DEFAULT NULL,
  `fee_groups_feetype_id` int(11) DEFAULT NULL,
  `amount_detail` text DEFAULT NULL,
  `is_active` varchar(10) NOT NULL DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `student_fees_deposite`
--

INSERT INTO `student_fees_deposite` (`id`, `student_fees_master_id`, `fee_groups_feetype_id`, `amount_detail`, `is_active`, `created_at`) VALUES
(1, 1, 3, '{\"1\":{\"amount\":\"5000.00\",\"date\":\"2021-09-10\",\"description\":\"Thanks for paying. Collected By: Accountant1\",\"amount_discount\":0,\"amount_fine\":0,\"payment_mode\":\"Cash\",\"received_by\":\"6\",\"inv_no\":1}}', 'no', '2021-09-10 10:28:09'),
(2, 2, 4, '{\"1\":{\"amount\":\"15000.00\",\"date\":\"2021-09-10\",\"description\":\"Thanks for paying. Collected By: Accountant1\",\"amount_discount\":0,\"amount_fine\":0,\"payment_mode\":\"Cash\",\"received_by\":\"6\",\"inv_no\":1}}', 'no', '2021-09-10 10:28:09'),
(3, 3, 5, '{\"1\":{\"amount\":\"80000.00\",\"date\":\"2021-09-10\",\"description\":\"Thanks for paying. Collected By: Accountant1\",\"amount_discount\":0,\"amount_fine\":0,\"payment_mode\":\"Cash\",\"received_by\":\"6\",\"inv_no\":1}}', 'no', '2021-09-10 10:28:09'),
(4, 5, 9, '{\"1\":{\"amount\":\"10000.00\",\"date\":\"2021-09-10\",\"description\":\"Thanks for paying. Collected By: Accountant1\",\"amount_discount\":0,\"amount_fine\":0,\"payment_mode\":\"Cash\",\"received_by\":\"6\",\"inv_no\":1}}', 'no', '2021-09-10 10:28:09'),
(5, 7, 12, '{\"1\":{\"amount\":\"60000.00\",\"date\":\"2021-09-12\",\"description\":\" Collected By: Dennis Sakwa\",\"amount_discount\":0,\"amount_fine\":0,\"payment_mode\":\"Cash\",\"received_by\":\"4\",\"inv_no\":1}}', 'no', '2021-09-12 19:44:45'),
(6, 8, 11, '{\"1\":{\"amount\":\"5000.00\",\"date\":\"2021-09-13\",\"description\":\" Collected By: Dennis Sakwa\",\"amount_discount\":0,\"amount_fine\":0,\"payment_mode\":\"Cash\",\"received_by\":\"4\",\"inv_no\":1}}', 'no', '2021-09-13 10:47:06'),
(7, 9, 12, '{\"1\":{\"amount\":\"60000.00\",\"date\":\"2021-09-13\",\"description\":\" Collected By: Dennis Sakwa\",\"amount_discount\":0,\"amount_fine\":0,\"payment_mode\":\"Cash\",\"received_by\":\"4\",\"inv_no\":1}}', 'no', '2021-09-13 10:47:06');

-- --------------------------------------------------------

--
-- Table structure for table `student_sibling`
--

CREATE TABLE `student_sibling` (
  `id` int(11) NOT NULL,
  `student_id` int(11) DEFAULT NULL,
  `sibling_student_id` int(11) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `student_timeline`
--

CREATE TABLE `student_timeline` (
  `id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `title` varchar(200) NOT NULL,
  `timeline_date` date NOT NULL,
  `description` varchar(200) NOT NULL,
  `document` varchar(200) NOT NULL,
  `status` varchar(200) NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `subjects`
--

CREATE TABLE `subjects` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `subjects`
--

INSERT INTO `subjects` (`id`, `name`, `code`, `type`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Elementary Math', 'ELM', 'theory', 'no', '2020-02-16 22:50:21', NULL),
(2, 'Elementary Science', 'ELS', 'theory', 'no', '2020-02-16 22:50:56', NULL),
(3, 'Language Arts', 'LNG', 'theory', 'no', '2020-02-16 22:51:38', NULL),
(4, 'Physical Science', 'PHS', 'practical', 'no', '2020-02-16 22:52:17', NULL),
(5, 'Environmental Science', 'ENV', 'theory', 'no', '2020-02-16 22:53:04', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `submit_assignment`
--

CREATE TABLE `submit_assignment` (
  `id` int(11) NOT NULL,
  `homework_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `message` text NOT NULL,
  `docs` varchar(225) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `template_admitcards`
--

CREATE TABLE `template_admitcards` (
  `id` int(11) NOT NULL,
  `template` varchar(250) DEFAULT NULL,
  `heading` text DEFAULT NULL,
  `title` text DEFAULT NULL,
  `left_logo` varchar(200) DEFAULT NULL,
  `right_logo` varchar(200) DEFAULT NULL,
  `exam_name` varchar(200) DEFAULT NULL,
  `school_name` varchar(200) DEFAULT NULL,
  `exam_center` varchar(200) DEFAULT NULL,
  `sign` varchar(200) DEFAULT NULL,
  `background_img` varchar(200) DEFAULT NULL,
  `is_name` int(1) NOT NULL DEFAULT 1,
  `is_father_name` int(1) NOT NULL DEFAULT 1,
  `is_mother_name` int(1) NOT NULL DEFAULT 1,
  `is_dob` int(1) NOT NULL DEFAULT 1,
  `is_admission_no` int(1) NOT NULL DEFAULT 1,
  `is_roll_no` int(1) NOT NULL DEFAULT 1,
  `is_address` int(1) NOT NULL DEFAULT 1,
  `is_gender` int(1) NOT NULL DEFAULT 1,
  `is_photo` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `template_admitcards`
--

INSERT INTO `template_admitcards` (`id`, `template`, `heading`, `title`, `left_logo`, `right_logo`, `exam_name`, `school_name`, `exam_center`, `sign`, `background_img`, `is_name`, `is_father_name`, `is_mother_name`, `is_dob`, `is_admission_no`, `is_roll_no`, `is_address`, `is_gender`, `is_photo`, `created_at`, `updated_at`) VALUES
(20, 'Sample Admit Card', 'BOARD OF SECONDARY EDUCATION, MADHYA PRADESH, BHOPAL', 'HIGHER SECONDARY SCHOOL CERTIFICATE EXAMINATION (10+2) 2014', 'ab12c4b65f53ee621dcf84370a7c5be4.png', '0910482bf79df5fd103e8383d61b387a.png', 'Test', 'Mount Carmel School', 'test dmit card2', 'aa9c7087e68c5af1d2c04946de1d3bd3.png', '782a71f53ea6bca213012d49e9d46d98.jpg', 0, 0, 0, 0, 0, 0, 0, 0, 0, '2019-12-21 08:54:10', '2019-12-12');

-- --------------------------------------------------------

--
-- Table structure for table `template_marksheets`
--

CREATE TABLE `template_marksheets` (
  `id` int(11) NOT NULL,
  `template` varchar(200) DEFAULT NULL,
  `heading` text DEFAULT NULL,
  `title` text DEFAULT NULL,
  `left_logo` varchar(200) DEFAULT NULL,
  `right_logo` varchar(200) DEFAULT NULL,
  `exam_name` varchar(200) DEFAULT NULL,
  `school_name` varchar(200) DEFAULT NULL,
  `exam_center` varchar(200) DEFAULT NULL,
  `left_sign` varchar(200) DEFAULT NULL,
  `middle_sign` varchar(200) DEFAULT NULL,
  `right_sign` varchar(200) DEFAULT NULL,
  `exam_session` int(1) DEFAULT 1,
  `is_name` int(1) DEFAULT 1,
  `is_father_name` int(1) DEFAULT 1,
  `is_mother_name` int(1) DEFAULT 1,
  `is_dob` int(1) DEFAULT 1,
  `is_admission_no` int(1) DEFAULT 1,
  `is_roll_no` int(1) DEFAULT 1,
  `is_photo` int(11) DEFAULT 1,
  `is_division` int(1) NOT NULL DEFAULT 1,
  `is_customfield` int(1) NOT NULL,
  `background_img` varchar(200) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL,
  `date` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `template_marksheets`
--

INSERT INTO `template_marksheets` (`id`, `template`, `heading`, `title`, `left_logo`, `right_logo`, `exam_name`, `school_name`, `exam_center`, `left_sign`, `middle_sign`, `right_sign`, `exam_session`, `is_name`, `is_father_name`, `is_mother_name`, `is_dob`, `is_admission_no`, `is_roll_no`, `is_photo`, `is_division`, `is_customfield`, `background_img`, `created_at`, `updated_at`, `date`) VALUES
(4, 'Sample Marksheet', 'BOARD OF SECONDARY EDUCATION, MADHYA PRADESH, BHOPAL', 'BOARD OF SECONDARY EDUCATION, MADHYA PRADESH, BHOPAL', 'f314cec3f688771ccaeddbcee6e52f7c.png', 'e824b2df53266266be2dbfd2001168b8.png', 'HIGHER SECONDARY SCHOOL CERTIFICATE EXAMINATION', 'Your School Name', 'GOVT GIRLS H S SCHOOL', '331e0690e50f8c6b7a219a0a2b9667f7.png', '351f513d79ee5c0f642c2d36514a1ff4.png', 'fb79d2c0d163357d1706b78550a05e2c.png', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '', '2019-12-21 09:07:15', '2019-12-09', '10-10-2019');

-- --------------------------------------------------------

--
-- Table structure for table `timetables`
--

CREATE TABLE `timetables` (
  `id` int(11) NOT NULL,
  `teacher_subject_id` int(20) DEFAULT NULL,
  `day_name` varchar(50) DEFAULT NULL,
  `start_time` varchar(50) DEFAULT NULL,
  `end_time` varchar(50) DEFAULT NULL,
  `room_no` varchar(50) DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `transport_route`
--

CREATE TABLE `transport_route` (
  `id` int(11) NOT NULL,
  `route_title` varchar(100) DEFAULT NULL,
  `no_of_vehicle` int(11) DEFAULT NULL,
  `fare` float(10,2) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `is_active` varchar(255) DEFAULT 'no',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `transport_route`
--

INSERT INTO `transport_route` (`id`, `route_title`, `no_of_vehicle`, `fare`, `note`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Kilifi Township', NULL, 4500.00, NULL, 'no', '2020-02-17 00:11:36', NULL),
(2, 'Kibaoni', NULL, 5600.00, NULL, 'no', '2020-02-17 00:12:02', NULL),
(3, 'Makongeni', NULL, 6600.00, NULL, 'no', '2020-02-17 00:12:16', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `userlog`
--

CREATE TABLE `userlog` (
  `id` int(11) NOT NULL,
  `user` varchar(100) DEFAULT NULL,
  `role` varchar(100) DEFAULT NULL,
  `ipaddress` varchar(100) DEFAULT NULL,
  `user_agent` varchar(500) DEFAULT NULL,
  `login_datetime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `userlog`
--

INSERT INTO `userlog` (`id`, `user`, `role`, `ipaddress`, `user_agent`, `login_datetime`) VALUES
(1, 'albanus@digitaledgekenya.com', 'Super Admin', '::1', 'Firefox 72.0, Windows 7', '2020-02-16 17:26:40'),
(2, 'albanus@digitaledgekenya.com', 'Super Admin', '197.232.61.210', 'Firefox 72.0, Windows 7', '2020-02-16 19:21:50'),
(3, 'albanus@digitaledgekenya.com', 'Super Admin', '41.90.67.8', 'Firefox 72.0, Windows 7', '2020-02-16 19:41:14'),
(4, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 79.0.3945.130, Windows 10', '2020-02-17 05:53:14'),
(5, 'fadya@bofaelementary.com', 'Admin', '154.79.220.59', 'Safari 604.1, iOS', '2020-02-17 06:17:04'),
(6, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 79.0.3945.130, Windows 10', '2020-02-17 06:19:07'),
(7, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 79.0.3945.130, Windows 10', '2020-02-17 06:34:31'),
(8, 'fadya@bofaelementary.com', 'Admin', '41.90.249.62', 'Chrome 79.0.3945.130, Windows 10', '2020-02-17 07:37:09'),
(9, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 79.0.3945.130, Windows 10', '2020-02-17 14:12:50'),
(10, 'fadya@bofaelementary.com', 'Admin', '41.80.237.168', 'Firefox 72.0, Windows 7', '2020-02-17 20:05:38'),
(11, 'fadya@bofaelementary.com', 'Admin', '197.248.53.250', 'Chrome 79.0.3945.130, Windows 10', '2020-02-24 08:49:10'),
(12, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 79.0.3945.130, Windows 10', '2020-02-25 06:03:42'),
(13, 'fadya@bofaelementary.com', 'Admin', '41.139.159.11', 'Chrome 79.0.3945.130, Windows 10', '2020-02-25 06:28:11'),
(14, 'albanus@digitaledgekenya.com', 'Super Admin', '105.230.246.221', 'Chrome 79.0.3945.130, Windows 10', '2020-02-25 07:15:55'),
(15, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 79.0.3945.130, Windows 10', '2020-02-25 07:34:52'),
(16, 'albanus@digitaledgekenya.com', 'Super Admin', '105.230.246.221', 'Chrome 79.0.3945.130, Windows 10', '2020-02-25 08:04:01'),
(17, 'fadya@bofaelementary.com', 'Admin', '41.139.159.11', 'Chrome 79.0.3945.130, Windows 10', '2020-02-25 11:37:24'),
(18, 'fadya@bofaelementary.com', 'Admin', '154.156.206.0', 'Safari 604.1, iOS', '2020-02-26 07:47:35'),
(19, 'fadya@bofaelementary.com', 'Admin', '41.139.159.11', 'Chrome 79.0.3945.130, Windows 10', '2020-02-26 08:12:14'),
(20, 'albanus@digitaledgekenya.com', 'Super Admin', '154.156.45.241', 'Chrome 80.0.3987.87, Android', '2020-02-26 15:34:15'),
(21, 'fadya@bofaelementary.com', 'Admin', '41.139.159.11', 'Chrome 79.0.3945.130, Windows 10', '2020-02-27 11:24:53'),
(22, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 80.0.3987.122, Windows 10', '2020-02-27 11:58:32'),
(23, 'albanus@digitaledgekenya.com', 'Super Admin', '41.80.132.69', 'Firefox 73.0, Windows 7', '2020-02-27 12:43:07'),
(24, 'albanus@digitaledgekenya.com', 'Super Admin', '154.79.137.217', 'Chrome 80.0.3987.87, Android', '2020-02-27 16:26:24'),
(25, 'fadya@bofaelementary.com', 'Admin', '41.139.159.11', 'Chrome 80.0.3987.122, Windows 10', '2020-02-28 06:17:51'),
(26, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 80.0.3987.122, Windows 10', '2020-02-28 08:06:01'),
(27, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 80.0.3987.122, Windows 10', '2020-02-28 12:05:59'),
(28, 'albanus@digitaledgekenya.com', 'Super Admin', '41.90.5.95', 'Chrome 80.0.3987.119, Android', '2020-03-02 11:28:08'),
(29, 'fadya@bofaelementary.com', 'Admin', '41.139.159.11', 'Chrome 80.0.3987.122, Windows 10', '2020-03-03 06:11:10'),
(30, 'albanus@digitaledgekenya.com', 'Super Admin', '197.232.48.40', 'Chrome 80.0.3987.132, Windows 7', '2020-03-10 06:46:46'),
(31, 'albanus@digitaledgekenya.com', 'Super Admin', '102.5.236.102', 'Chrome 80.0.3987.87, Android', '2020-03-15 09:19:03'),
(32, 'albanus@digitaledgekenya.com', 'Super Admin', '41.90.57.69', 'Chrome 80.0.3987.132, Windows 10', '2020-03-18 11:06:46'),
(33, 'albanus@digitaledgekenya.com', 'Super Admin', '105.231.92.108', 'Chrome 80.0.3987.87, Android', '2020-03-19 07:45:25'),
(34, 'albanus@digitaledgekenya.com', 'Super Admin', '41.80.141.56', 'Chrome 80.0.3987.149, Windows 10', '2020-03-21 11:46:58'),
(35, 'albanus@digitaledgekenya.com', 'Super Admin', '154.157.81.222', 'Chrome 80.0.3987.87, Android', '2020-03-27 13:40:50'),
(36, 'albanus@digitaledgekenya.com', 'Super Admin', '102.5.171.28', 'Chrome 80.0.3987.87, Android', '2020-03-31 10:14:40'),
(37, 'albanus@digitaledgekenya.com', 'Super Admin', '197.232.61.232', 'Chrome 80.0.3987.149, Windows 7', '2020-03-31 21:51:26'),
(38, 'albanus@digitaledgekenya.com', 'Super Admin', '41.139.245.198', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 05:23:34'),
(39, 'teacher2@creativehaven.co.ke', 'Teacher', '41.139.245.198', 'Firefox 73.0, Windows 10', '2020-04-01 06:35:12'),
(40, 'albanus@creativehaven.co.ke', 'Super Admin', '41.139.245.198', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 06:57:48'),
(41, 'dennis@creativehaven.co.ke', 'Super Admin', '41.139.245.198', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 07:00:03'),
(42, 'accountant1@creativehaven.co.ke', 'Accountant', '41.139.245.198', 'Firefox 73.0, Windows 10', '2020-04-01 07:04:07'),
(43, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.238.8', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 09:48:16'),
(44, 'std9', 'student', '41.80.238.8', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 09:57:01'),
(45, 'parent9', 'parent', '41.80.238.8', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 09:59:30'),
(46, 'teacher2@creativehaven.co.ke', 'Teacher', '41.80.238.8', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 10:01:04'),
(47, 'accountant1@creativehaven.co.ke', 'Accountant', '41.80.238.8', 'Chrome 80.0.3987.149, Windows 10', '2020-04-01 10:02:44'),
(48, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.53.41', 'Chrome 81.0.4044.138, Android', '2020-05-15 14:36:53'),
(49, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.143.166', 'Chrome 83.0.4103.61, Windows 10', '2020-06-02 14:05:28'),
(50, 'accountant1@creativehaven.co.ke', 'Accountant', '41.90.143.166', 'Chrome 83.0.4103.61, Windows 10', '2020-06-02 14:20:17'),
(51, 'parent9', 'parent', '41.90.143.166', 'Chrome 83.0.4103.61, Windows 10', '2020-06-02 14:30:42'),
(52, 'teacher2@creativehaven.co.ke', 'Teacher', '41.90.143.166', 'Chrome 83.0.4103.61, Windows 10', '2020-06-02 14:33:01'),
(53, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.143.166', 'Chrome 83.0.4103.61, Windows 10', '2020-06-02 14:36:51'),
(54, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.74.63', 'Chrome 83.0.4103.106, Windows 10', '2020-06-19 12:31:00'),
(55, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.234.25', 'Chrome 84.0.4147.105, Windows 10', '2020-08-06 14:48:47'),
(56, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.49.40', 'Chrome 84.0.4147.105, Windows 10', '2020-08-12 14:42:38'),
(57, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.247.130', 'Chrome 84.0.4147.125, Windows 10', '2020-08-13 09:46:40'),
(58, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.247.130', 'Chrome 84.0.4147.125, Windows 10', '2020-08-13 12:08:41'),
(59, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:03:09'),
(60, 'teacher2@creativehaven.co.ke', 'Teacher', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:07:51'),
(61, 'accountant1@creativehaven.co.ke', 'Accountant', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:13:14'),
(62, 'std9', 'student', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:15:59'),
(63, 'parent9', 'parent', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:18:02'),
(64, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:19:04'),
(65, 'std9', 'student', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:21:06'),
(66, 'teacher2@creativehaven.co.ke', 'Teacher', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:22:23'),
(67, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 08:35:11'),
(68, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 14:11:34'),
(69, 'std9', 'student', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 14:43:03'),
(70, 'parent9', 'parent', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 14:46:56'),
(71, 'accountant1@creativehaven.co.ke', 'Accountant', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 14:48:32'),
(72, 'teacher2@creativehaven.co.ke', 'Teacher', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 14:54:24'),
(73, 'dennis@creativehaven.co.ke', 'Super Admin', '41.80.135.38', 'Chrome 84.0.4147.125, Windows 10', '2020-08-14 14:58:29'),
(74, 'dennis@creativehaven.co.ke', 'Super Admin', '197.237.128.154', 'Chrome 84.0.4147.125, Windows 10', '2020-08-18 09:09:23'),
(75, 'dennis@creativehaven.co.ke', 'Super Admin', '197.248.146.110', 'Chrome 84.0.4147.125, Windows 10', '2020-08-20 10:44:02'),
(76, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.233.246', 'Chrome 85.0.4183.102, Windows 10', '2020-09-12 20:41:35'),
(77, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.233.246', 'Chrome 85.0.4183.127, Android', '2020-10-03 05:57:20'),
(78, 'dennis@creativehaven.co.ke', 'Super Admin', '197.232.48.40', 'Chrome 86.0.4240.75, Windows 10', '2020-10-15 10:15:18'),
(79, 'dennis@creativehaven.co.ke', 'Super Admin', '105.163.56.208', 'Chrome 86.0.4240.183, Windows 10', '2020-11-10 05:25:07'),
(80, 'dennis@creativehaven.co.ke', 'Super Admin', '154.152.95.102', 'Chrome 86.0.4240.198, Android', '2020-11-15 11:49:38'),
(81, 'dennis@creativehaven.co.ke', 'Super Admin', '91.219.215.42', 'Chrome 87.0.4280.88, Windows 10', '2020-12-08 07:41:31'),
(82, 'dennis@creativehaven.co.ke', 'Super Admin', '41.212.29.226', 'Chrome 87.0.4280.141, Windows 10', '2021-01-14 15:37:59'),
(83, 'dennis@creativehaven.co.ke', 'Super Admin', '41.212.29.226', 'Chrome 87.0.4280.141, Windows 10', '2021-01-19 12:55:31'),
(84, 'dennis@creativehaven.co.ke', 'Super Admin', '41.212.29.226', 'Chrome 87.0.4280.141, Windows 10', '2021-01-20 04:30:11'),
(85, 'dennis@creativehaven.co.ke', 'Super Admin', '197.232.97.8', 'Chrome 87.0.4280.141, Windows 10', '2021-01-20 08:07:17'),
(86, 'std9', 'student', '197.232.97.8', 'Chrome 87.0.4280.141, Windows 10', '2021-01-20 08:44:20'),
(87, 'parent9', 'parent', '197.232.97.8', 'Chrome 87.0.4280.141, Windows 10', '2021-01-20 08:46:17'),
(88, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.5.119', 'Chrome 90.0.4430.93, Windows 10', '2021-05-08 05:19:38'),
(89, 'std9', 'student', '41.90.5.119', 'Chrome 90.0.4430.93, Windows 10', '2021-05-08 05:56:48'),
(90, 'parent9', 'parent', '41.90.5.119', 'Chrome 90.0.4430.93, Windows 10', '2021-05-08 06:13:56'),
(91, 'dennis@creativehaven.co.ke', 'Super Admin', '41.90.5.119', 'Chrome 90.0.4430.93, Windows 10', '2021-05-08 06:16:04'),
(92, 'dennis@creativehaven.co.ke', 'Super Admin', '197.237.16.110', 'Chrome 90.0.4430.212, Windows 10', '2021-05-13 12:45:17'),
(93, 'dennis@creativehaven.co.ke', 'Super Admin', '105.160.78.214', 'Chrome 93.0.4577.63, Windows 10', '2021-09-09 08:17:40'),
(94, 'dennis@creativehaven.co.ke', 'Super Admin', '105.163.232.98', 'Chrome 93.0.4577.63, Windows 10', '2021-09-09 11:10:27'),
(95, 'dennis@creativehaven.co.ke', 'Super Admin', '41.212.107.182', 'Chrome 93.0.4577.63, Windows 10', '2021-09-10 09:20:01'),
(96, 'std9', 'student', '41.212.107.182', 'Chrome 93.0.4577.63, Windows 10', '2021-09-10 09:38:27'),
(97, 'std10', 'student', '41.212.107.182', 'Chrome 93.0.4577.63, Windows 10', '2021-09-10 10:23:21'),
(98, 'parent10', 'parent', '41.212.107.182', 'Chrome 93.0.4577.63, Windows 10', '2021-09-10 10:25:21'),
(99, 'accountant1@creativehaven.co.ke', 'Accountant', '41.212.107.182', 'Chrome 93.0.4577.63, Windows 10', '2021-09-10 10:26:53'),
(100, 'dennis@creativehaven.co.ke', 'Super Admin', '41.212.107.182', 'Chrome 93.0.4577.63, Windows 10', '2021-09-10 10:31:47'),
(101, 'dennis@creativehaven.co.ke', 'Super Admin', '41.212.107.182', 'Chrome 93.0.4577.63, Windows 10', '2021-09-12 19:42:14'),
(102, 'dennis@creativehaven.co.ke', 'Super Admin', '105.163.239.33', 'Chrome 93.0.4577.63, Windows 10', '2021-09-13 10:21:45'),
(103, 'dennis@creativehaven.co.ke', 'Super Admin', '105.163.239.33', 'Chrome 93.0.4577.63, Windows 10', '2021-09-13 10:43:25'),
(104, 'parent12', 'parent', '105.163.239.33', 'Chrome 93.0.4577.63, Windows 10', '2021-09-13 10:51:47'),
(105, 'dennis@creativehaven.co.ke', 'Super Admin', '41.212.107.166', 'Chrome 95.0.4638.54, Windows 10', '2021-10-30 09:22:12'),
(106, 'dennis@creativehaven.co.ke', 'Super Admin', '197.237.92.252', 'Chrome 96.0.4664.45, Windows 10', '2021-11-25 08:44:00'),
(107, 'dennis@creativehaven.co.ke', 'Super Admin', '196.201.210.97', 'Chrome 93.0.4577.82, Android', '2022-01-04 12:51:02'),
(108, 'dennis@creativehaven.co.ke', 'Super Admin', '196.207.187.96', 'Chrome 97.0.4692.99, Windows 10', '2022-02-08 07:17:57');

-- --------------------------------------------------------

--
-- Table structure for table `vehicles`
--

CREATE TABLE `vehicles` (
  `id` int(10) UNSIGNED NOT NULL,
  `vehicle_no` varchar(20) DEFAULT NULL,
  `vehicle_model` varchar(100) NOT NULL DEFAULT 'None',
  `manufacture_year` varchar(4) DEFAULT NULL,
  `driver_name` varchar(50) DEFAULT NULL,
  `driver_licence` varchar(50) NOT NULL DEFAULT 'None',
  `driver_contact` varchar(20) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `vehicles`
--

INSERT INTO `vehicles` (`id`, `vehicle_no`, `vehicle_model`, `manufacture_year`, `driver_name`, `driver_licence`, `driver_contact`, `note`, `created_at`) VALUES
(1, 'KCN 123J', 'HINO VAN', '2017', 'MATHIAS KENGA', '15545465', '22045548775', '', '2020-02-17 00:10:39'),
(2, 'KCK 121B', 'MERCEDES VAN', '2018', 'FRED SALAMA', '754555475', '211262626', '', '2020-02-17 00:11:15');

-- --------------------------------------------------------

--
-- Table structure for table `vehicle_routes`
--

CREATE TABLE `vehicle_routes` (
  `id` int(11) NOT NULL,
  `route_id` int(11) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `vehicle_routes`
--

INSERT INTO `vehicle_routes` (`id`, `route_id`, `vehicle_id`, `created_at`) VALUES
(1, 1, 1, '2020-02-17 00:24:59'),
(2, 3, 2, '2020-02-17 00:25:08'),
(3, 2, 2, '2020-02-17 00:25:15');

-- --------------------------------------------------------

--
-- Table structure for table `visitors_book`
--

CREATE TABLE `visitors_book` (
  `id` int(11) NOT NULL,
  `source` varchar(100) DEFAULT NULL,
  `purpose` varchar(20) NOT NULL,
  `name` varchar(100) NOT NULL,
  `email` varchar(100) DEFAULT NULL,
  `contact` varchar(12) NOT NULL,
  `id_proof` varchar(50) NOT NULL,
  `no_of_pepple` int(11) NOT NULL,
  `date` date NOT NULL,
  `in_time` varchar(20) NOT NULL,
  `out_time` varchar(20) NOT NULL,
  `note` mediumtext NOT NULL,
  `image` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `visitors_purpose`
--

CREATE TABLE `visitors_purpose` (
  `id` int(11) NOT NULL,
  `visitors_purpose` varchar(100) NOT NULL,
  `description` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `attendence_type`
--
ALTER TABLE `attendence_type`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `batch`
--
ALTER TABLE `batch`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `books`
--
ALTER TABLE `books`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `book_issues`
--
ALTER TABLE `book_issues`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `certificates`
--
ALTER TABLE `certificates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `chat_connections`
--
ALTER TABLE `chat_connections`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_user_one` (`chat_user_one`),
  ADD KEY `chat_user_two` (`chat_user_two`);

--
-- Indexes for table `chat_messages`
--
ALTER TABLE `chat_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_user_id` (`chat_user_id`),
  ADD KEY `chat_connection_id` (`chat_connection_id`);

--
-- Indexes for table `chat_users`
--
ALTER TABLE `chat_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `staff_id` (`staff_id`),
  ADD KEY `student_id` (`student_id`),
  ADD KEY `create_staff_id` (`create_staff_id`),
  ADD KEY `create_student_id` (`create_student_id`);

--
-- Indexes for table `classes`
--
ALTER TABLE `classes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `class_batches`
--
ALTER TABLE `class_batches`
  ADD PRIMARY KEY (`id`),
  ADD KEY `class_section_id` (`class_section_id`),
  ADD KEY `batch_id` (`batch_id`);

--
-- Indexes for table `class_batch_subjects`
--
ALTER TABLE `class_batch_subjects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `class_batch_id` (`class_batch_id`),
  ADD KEY `subject_id` (`subject_id`);

--
-- Indexes for table `class_sections`
--
ALTER TABLE `class_sections`
  ADD PRIMARY KEY (`id`),
  ADD KEY `class_id` (`class_id`),
  ADD KEY `section_id` (`section_id`);

--
-- Indexes for table `class_teacher`
--
ALTER TABLE `class_teacher`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `complaint`
--
ALTER TABLE `complaint`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `complaint_type`
--
ALTER TABLE `complaint_type`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `contents`
--
ALTER TABLE `contents`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `content_for`
--
ALTER TABLE `content_for`
  ADD PRIMARY KEY (`id`),
  ADD KEY `content_id` (`content_id`),
  ADD KEY `user_id` (`user_id`);

--
-- Indexes for table `custom_fields`
--
ALTER TABLE `custom_fields`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `custom_field_values`
--
ALTER TABLE `custom_field_values`
  ADD PRIMARY KEY (`id`),
  ADD KEY `custom_field_id` (`custom_field_id`);

--
-- Indexes for table `delete_chat`
--
ALTER TABLE `delete_chat`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `department`
--
ALTER TABLE `department`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `disable_reason`
--
ALTER TABLE `disable_reason`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `dispatch_receive`
--
ALTER TABLE `dispatch_receive`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `enquiry`
--
ALTER TABLE `enquiry`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `enquiry_type`
--
ALTER TABLE `enquiry_type`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `events`
--
ALTER TABLE `events`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `exams`
--
ALTER TABLE `exams`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `exam_groups`
--
ALTER TABLE `exam_groups`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `exam_group_class_batch_exam_subjects`
--
ALTER TABLE `exam_group_class_batch_exam_subjects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exam_group_class_batch_exams_id` (`exam_group_class_batch_exams_id`),
  ADD KEY `class_batch_subject_id` (`class_batch_subject_id`);

--
-- Indexes for table `exam_group_exam_connections`
--
ALTER TABLE `exam_group_exam_connections`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exam_group_id` (`exam_group_id`),
  ADD KEY `exam_group_class_batch_exams_id` (`exam_group_class_batch_exams_id`);

--
-- Indexes for table `exam_group_exam_results`
--
ALTER TABLE `exam_group_exam_results`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exam_group_class_batch_exam_subject_id` (`exam_group_class_batch_exam_subject_id`),
  ADD KEY `exam_group_student_id` (`exam_group_student_id`),
  ADD KEY `exam_group_class_batch_exam_student_id` (`exam_group_class_batch_exam_student_id`);

--
-- Indexes for table `exam_results`
--
ALTER TABLE `exam_results`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exam_schedule_id` (`exam_schedule_id`),
  ADD KEY `student_id` (`student_id`);

--
-- Indexes for table `expenses`
--
ALTER TABLE `expenses`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `expense_head`
--
ALTER TABLE `expense_head`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `feecategory`
--
ALTER TABLE `feecategory`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fees_reminder`
--
ALTER TABLE `fees_reminder`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `feetype`
--
ALTER TABLE `feetype`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fee_groups`
--
ALTER TABLE `fee_groups`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fee_receipt_no`
--
ALTER TABLE `fee_receipt_no`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `follow_up`
--
ALTER TABLE `follow_up`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `front_cms_media_gallery`
--
ALTER TABLE `front_cms_media_gallery`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `front_cms_menus`
--
ALTER TABLE `front_cms_menus`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `front_cms_menu_items`
--
ALTER TABLE `front_cms_menu_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `front_cms_pages`
--
ALTER TABLE `front_cms_pages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `front_cms_page_contents`
--
ALTER TABLE `front_cms_page_contents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `page_id` (`page_id`);

--
-- Indexes for table `front_cms_programs`
--
ALTER TABLE `front_cms_programs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `front_cms_program_photos`
--
ALTER TABLE `front_cms_program_photos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `program_id` (`program_id`);

--
-- Indexes for table `front_cms_settings`
--
ALTER TABLE `front_cms_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `general_calls`
--
ALTER TABLE `general_calls`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `grades`
--
ALTER TABLE `grades`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `hostel`
--
ALTER TABLE `hostel`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `hostel_rooms`
--
ALTER TABLE `hostel_rooms`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `id_card`
--
ALTER TABLE `id_card`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `income`
--
ALTER TABLE `income`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `income_head`
--
ALTER TABLE `income_head`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `item`
--
ALTER TABLE `item`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `item_category`
--
ALTER TABLE `item_category`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `item_issue`
--
ALTER TABLE `item_issue`
  ADD PRIMARY KEY (`id`),
  ADD KEY `item_id` (`item_id`),
  ADD KEY `item_category_id` (`item_category_id`);

--
-- Indexes for table `item_stock`
--
ALTER TABLE `item_stock`
  ADD PRIMARY KEY (`id`),
  ADD KEY `item_id` (`item_id`),
  ADD KEY `supplier_id` (`supplier_id`),
  ADD KEY `store_id` (`store_id`);

--
-- Indexes for table `item_store`
--
ALTER TABLE `item_store`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `item_supplier`
--
ALTER TABLE `item_supplier`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `leave_types`
--
ALTER TABLE `leave_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `type` (`type`);

--
-- Indexes for table `libarary_members`
--
ALTER TABLE `libarary_members`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `logs`
--
ALTER TABLE `logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `messages`
--
ALTER TABLE `messages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `notification_roles`
--
ALTER TABLE `notification_roles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `send_notification_id` (`send_notification_id`),
  ADD KEY `role_id` (`role_id`);

--
-- Indexes for table `notification_setting`
--
ALTER TABLE `notification_setting`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `onlineexam_attempts`
--
ALTER TABLE `onlineexam_attempts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `onlineexam_student_id` (`onlineexam_student_id`);

--
-- Indexes for table `onlineexam_student_results`
--
ALTER TABLE `onlineexam_student_results`
  ADD PRIMARY KEY (`id`),
  ADD KEY `onlineexam_student_id` (`onlineexam_student_id`),
  ADD KEY `onlineexam_question_id` (`onlineexam_question_id`);

--
-- Indexes for table `payslip_allowance`
--
ALTER TABLE `payslip_allowance`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `permission_category`
--
ALTER TABLE `permission_category`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `permission_group`
--
ALTER TABLE `permission_group`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `permission_parent`
--
ALTER TABLE `permission_parent`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `permission_student`
--
ALTER TABLE `permission_student`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `question`
--
ALTER TABLE `question`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `questions`
--
ALTER TABLE `questions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subject_id` (`subject_id`);

--
-- Indexes for table `question_answers`
--
ALTER TABLE `question_answers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `question_options`
--
ALTER TABLE `question_options`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `read_notification`
--
ALTER TABLE `read_notification`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `reference`
--
ALTER TABLE `reference`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `roles_permissions`
--
ALTER TABLE `roles_permissions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `room_types`
--
ALTER TABLE `room_types`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `school_houses`
--
ALTER TABLE `school_houses`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sections`
--
ALTER TABLE `sections`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `send_notification`
--
ALTER TABLE `send_notification`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `source`
--
ALTER TABLE `source`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `staff_attendance`
--
ALTER TABLE `staff_attendance`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_staff_attendance_staff` (`staff_id`),
  ADD KEY `FK_staff_attendance_staff_attendance_type` (`staff_attendance_type_id`);

--
-- Indexes for table `staff_attendance_type`
--
ALTER TABLE `staff_attendance_type`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `staff_designation`
--
ALTER TABLE `staff_designation`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `staff_leave_details`
--
ALTER TABLE `staff_leave_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_staff_leave_details_staff` (`staff_id`),
  ADD KEY `FK_staff_leave_details_leave_types` (`leave_type_id`);

--
-- Indexes for table `staff_leave_request`
--
ALTER TABLE `staff_leave_request`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_staff_leave_request_staff` (`staff_id`),
  ADD KEY `FK_staff_leave_request_leave_types` (`leave_type_id`);

--
-- Indexes for table `staff_payroll`
--
ALTER TABLE `staff_payroll`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `staff_payslip`
--
ALTER TABLE `staff_payslip`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_staff_payslip_staff` (`staff_id`);

--
-- Indexes for table `staff_rating`
--
ALTER TABLE `staff_rating`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_staff_rating_staff` (`staff_id`);

--
-- Indexes for table `staff_roles`
--
ALTER TABLE `staff_roles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `role_id` (`role_id`),
  ADD KEY `staff_id` (`staff_id`);

--
-- Indexes for table `staff_timeline`
--
ALTER TABLE `staff_timeline`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_staff_timeline_staff` (`staff_id`);

--
-- Indexes for table `student_doc`
--
ALTER TABLE `student_doc`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `student_fees_deposite`
--
ALTER TABLE `student_fees_deposite`
  ADD PRIMARY KEY (`id`),
  ADD KEY `student_fees_master_id` (`student_fees_master_id`),
  ADD KEY `fee_groups_feetype_id` (`fee_groups_feetype_id`);

--
-- Indexes for table `student_sibling`
--
ALTER TABLE `student_sibling`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `student_timeline`
--
ALTER TABLE `student_timeline`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `subjects`
--
ALTER TABLE `subjects`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `submit_assignment`
--
ALTER TABLE `submit_assignment`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `template_admitcards`
--
ALTER TABLE `template_admitcards`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `template_marksheets`
--
ALTER TABLE `template_marksheets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `timetables`
--
ALTER TABLE `timetables`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `transport_route`
--
ALTER TABLE `transport_route`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `userlog`
--
ALTER TABLE `userlog`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vehicles`
--
ALTER TABLE `vehicles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vehicle_routes`
--
ALTER TABLE `vehicle_routes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `visitors_book`
--
ALTER TABLE `visitors_book`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `visitors_purpose`
--
ALTER TABLE `visitors_purpose`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `attendence_type`
--
ALTER TABLE `attendence_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `batch`
--
ALTER TABLE `batch`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `books`
--
ALTER TABLE `books`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `book_issues`
--
ALTER TABLE `book_issues`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `certificates`
--
ALTER TABLE `certificates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `chat_connections`
--
ALTER TABLE `chat_connections`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `chat_messages`
--
ALTER TABLE `chat_messages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `chat_users`
--
ALTER TABLE `chat_users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `classes`
--
ALTER TABLE `classes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `class_batches`
--
ALTER TABLE `class_batches`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `class_batch_subjects`
--
ALTER TABLE `class_batch_subjects`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `class_sections`
--
ALTER TABLE `class_sections`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `class_teacher`
--
ALTER TABLE `class_teacher`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `complaint`
--
ALTER TABLE `complaint`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `complaint_type`
--
ALTER TABLE `complaint_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `contents`
--
ALTER TABLE `contents`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `content_for`
--
ALTER TABLE `content_for`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `custom_fields`
--
ALTER TABLE `custom_fields`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `custom_field_values`
--
ALTER TABLE `custom_field_values`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `delete_chat`
--
ALTER TABLE `delete_chat`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `department`
--
ALTER TABLE `department`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `disable_reason`
--
ALTER TABLE `disable_reason`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `dispatch_receive`
--
ALTER TABLE `dispatch_receive`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `enquiry`
--
ALTER TABLE `enquiry`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `enquiry_type`
--
ALTER TABLE `enquiry_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exams`
--
ALTER TABLE `exams`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exam_groups`
--
ALTER TABLE `exam_groups`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exam_group_class_batch_exam_subjects`
--
ALTER TABLE `exam_group_class_batch_exam_subjects`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exam_group_exam_connections`
--
ALTER TABLE `exam_group_exam_connections`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exam_group_exam_results`
--
ALTER TABLE `exam_group_exam_results`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exam_results`
--
ALTER TABLE `exam_results`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expense_head`
--
ALTER TABLE `expense_head`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `feecategory`
--
ALTER TABLE `feecategory`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fees_reminder`
--
ALTER TABLE `fees_reminder`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `feetype`
--
ALTER TABLE `feetype`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `fee_groups`
--
ALTER TABLE `fee_groups`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `fee_receipt_no`
--
ALTER TABLE `fee_receipt_no`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `follow_up`
--
ALTER TABLE `follow_up`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `front_cms_media_gallery`
--
ALTER TABLE `front_cms_media_gallery`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `front_cms_menus`
--
ALTER TABLE `front_cms_menus`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `front_cms_menu_items`
--
ALTER TABLE `front_cms_menu_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `front_cms_pages`
--
ALTER TABLE `front_cms_pages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=77;

--
-- AUTO_INCREMENT for table `front_cms_page_contents`
--
ALTER TABLE `front_cms_page_contents`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `front_cms_programs`
--
ALTER TABLE `front_cms_programs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `front_cms_program_photos`
--
ALTER TABLE `front_cms_program_photos`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `front_cms_settings`
--
ALTER TABLE `front_cms_settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `general_calls`
--
ALTER TABLE `general_calls`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `grades`
--
ALTER TABLE `grades`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `hostel`
--
ALTER TABLE `hostel`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `hostel_rooms`
--
ALTER TABLE `hostel_rooms`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `id_card`
--
ALTER TABLE `id_card`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `income`
--
ALTER TABLE `income`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `income_head`
--
ALTER TABLE `income_head`
  MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `item`
--
ALTER TABLE `item`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_category`
--
ALTER TABLE `item_category`
  MODIFY `id` int(255) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_issue`
--
ALTER TABLE `item_issue`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_stock`
--
ALTER TABLE `item_stock`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_store`
--
ALTER TABLE `item_store`
  MODIFY `id` int(255) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_supplier`
--
ALTER TABLE `item_supplier`
  MODIFY `id` int(255) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=91;

--
-- AUTO_INCREMENT for table `leave_types`
--
ALTER TABLE `leave_types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `libarary_members`
--
ALTER TABLE `libarary_members`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `logs`
--
ALTER TABLE `logs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=438;

--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `notification_roles`
--
ALTER TABLE `notification_roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `notification_setting`
--
ALTER TABLE `notification_setting`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `onlineexam_attempts`
--
ALTER TABLE `onlineexam_attempts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `onlineexam_student_results`
--
ALTER TABLE `onlineexam_student_results`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payslip_allowance`
--
ALTER TABLE `payslip_allowance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `permission_category`
--
ALTER TABLE `permission_category`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=233;

--
-- AUTO_INCREMENT for table `permission_group`
--
ALTER TABLE `permission_group`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT for table `permission_parent`
--
ALTER TABLE `permission_parent`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `permission_student`
--
ALTER TABLE `permission_student`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `question`
--
ALTER TABLE `question`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `questions`
--
ALTER TABLE `questions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `question_answers`
--
ALTER TABLE `question_answers`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `question_options`
--
ALTER TABLE `question_options`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `read_notification`
--
ALTER TABLE `read_notification`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `reference`
--
ALTER TABLE `reference`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `roles_permissions`
--
ALTER TABLE `roles_permissions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1440;

--
-- AUTO_INCREMENT for table `room_types`
--
ALTER TABLE `room_types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `school_houses`
--
ALTER TABLE `school_houses`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `sections`
--
ALTER TABLE `sections`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `send_notification`
--
ALTER TABLE `send_notification`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sessions`
--
ALTER TABLE `sessions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `source`
--
ALTER TABLE `source`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staff_attendance`
--
ALTER TABLE `staff_attendance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staff_attendance_type`
--
ALTER TABLE `staff_attendance_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `staff_designation`
--
ALTER TABLE `staff_designation`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staff_leave_details`
--
ALTER TABLE `staff_leave_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staff_leave_request`
--
ALTER TABLE `staff_leave_request`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staff_payroll`
--
ALTER TABLE `staff_payroll`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staff_payslip`
--
ALTER TABLE `staff_payslip`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `staff_rating`
--
ALTER TABLE `staff_rating`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staff_roles`
--
ALTER TABLE `staff_roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `staff_timeline`
--
ALTER TABLE `staff_timeline`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `student_doc`
--
ALTER TABLE `student_doc`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `student_fees_deposite`
--
ALTER TABLE `student_fees_deposite`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `student_sibling`
--
ALTER TABLE `student_sibling`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `student_timeline`
--
ALTER TABLE `student_timeline`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subjects`
--
ALTER TABLE `subjects`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `submit_assignment`
--
ALTER TABLE `submit_assignment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `template_admitcards`
--
ALTER TABLE `template_admitcards`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `template_marksheets`
--
ALTER TABLE `template_marksheets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `timetables`
--
ALTER TABLE `timetables`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `transport_route`
--
ALTER TABLE `transport_route`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `userlog`
--
ALTER TABLE `userlog`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=109;

--
-- AUTO_INCREMENT for table `vehicles`
--
ALTER TABLE `vehicles`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `vehicle_routes`
--
ALTER TABLE `vehicle_routes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `visitors_book`
--
ALTER TABLE `visitors_book`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `visitors_purpose`
--
ALTER TABLE `visitors_purpose`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `chat_connections`
--
ALTER TABLE `chat_connections`
  ADD CONSTRAINT `chat_connections_ibfk_1` FOREIGN KEY (`chat_user_one`) REFERENCES `chat_users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `chat_connections_ibfk_2` FOREIGN KEY (`chat_user_two`) REFERENCES `chat_users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `chat_messages`
--
ALTER TABLE `chat_messages`
  ADD CONSTRAINT `chat_messages_ibfk_1` FOREIGN KEY (`chat_user_id`) REFERENCES `chat_users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `chat_messages_ibfk_2` FOREIGN KEY (`chat_connection_id`) REFERENCES `chat_connections` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `chat_users`
--
ALTER TABLE `chat_users`
  ADD CONSTRAINT `chat_users_ibfk_1` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `chat_users_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `chat_users_ibfk_3` FOREIGN KEY (`create_staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `chat_users_ibfk_4` FOREIGN KEY (`create_student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `class_batches`
--
ALTER TABLE `class_batches`
  ADD CONSTRAINT `class_batches_ibfk_1` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `class_batches_ibfk_2` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `class_batch_subjects`
--
ALTER TABLE `class_batch_subjects`
  ADD CONSTRAINT `class_batch_subjects_ibfk_1` FOREIGN KEY (`class_batch_id`) REFERENCES `class_batches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `class_batch_subjects_ibfk_2` FOREIGN KEY (`subject_id`) REFERENCES `subjects` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `content_for`
--
ALTER TABLE `content_for`
  ADD CONSTRAINT `content_for_ibfk_1` FOREIGN KEY (`content_id`) REFERENCES `contents` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `content_for_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `custom_field_values`
--
ALTER TABLE `custom_field_values`
  ADD CONSTRAINT `custom_field_values_ibfk_1` FOREIGN KEY (`custom_field_id`) REFERENCES `custom_fields` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `exam_group_class_batch_exam_subjects`
--
ALTER TABLE `exam_group_class_batch_exam_subjects`
  ADD CONSTRAINT `exam_group_class_batch_exam_subjects_ibfk_1` FOREIGN KEY (`exam_group_class_batch_exams_id`) REFERENCES `exam_group_class_batch_exams` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_group_class_batch_exam_subjects_ibfk_2` FOREIGN KEY (`class_batch_subject_id`) REFERENCES `class_batch_subjects` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `exam_group_exam_connections`
--
ALTER TABLE `exam_group_exam_connections`
  ADD CONSTRAINT `exam_group_exam_connections_ibfk_1` FOREIGN KEY (`exam_group_id`) REFERENCES `exam_groups` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_group_exam_connections_ibfk_2` FOREIGN KEY (`exam_group_class_batch_exams_id`) REFERENCES `exam_group_class_batch_exams` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `exam_group_exam_results`
--
ALTER TABLE `exam_group_exam_results`
  ADD CONSTRAINT `exam_group_exam_results_ibfk_1` FOREIGN KEY (`exam_group_class_batch_exam_subject_id`) REFERENCES `exam_group_class_batch_exam_subjects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_group_exam_results_ibfk_2` FOREIGN KEY (`exam_group_student_id`) REFERENCES `exam_group_students` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_group_exam_results_ibfk_3` FOREIGN KEY (`exam_group_class_batch_exam_student_id`) REFERENCES `exam_group_class_batch_exam_students` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `front_cms_page_contents`
--
ALTER TABLE `front_cms_page_contents`
  ADD CONSTRAINT `front_cms_page_contents_ibfk_1` FOREIGN KEY (`page_id`) REFERENCES `front_cms_pages` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `front_cms_program_photos`
--
ALTER TABLE `front_cms_program_photos`
  ADD CONSTRAINT `front_cms_program_photos_ibfk_1` FOREIGN KEY (`program_id`) REFERENCES `front_cms_programs` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `item_issue`
--
ALTER TABLE `item_issue`
  ADD CONSTRAINT `item_issue_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `item` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `item_issue_ibfk_2` FOREIGN KEY (`item_category_id`) REFERENCES `item_category` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `item_stock`
--
ALTER TABLE `item_stock`
  ADD CONSTRAINT `item_stock_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `item` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `item_stock_ibfk_2` FOREIGN KEY (`supplier_id`) REFERENCES `item_supplier` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `item_stock_ibfk_3` FOREIGN KEY (`store_id`) REFERENCES `item_store` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `notification_roles`
--
ALTER TABLE `notification_roles`
  ADD CONSTRAINT `notification_roles_ibfk_1` FOREIGN KEY (`send_notification_id`) REFERENCES `send_notification` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notification_roles_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `onlineexam_attempts`
--
ALTER TABLE `onlineexam_attempts`
  ADD CONSTRAINT `onlineexam_attempts_ibfk_1` FOREIGN KEY (`onlineexam_student_id`) REFERENCES `onlineexam_students` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `onlineexam_student_results`
--
ALTER TABLE `onlineexam_student_results`
  ADD CONSTRAINT `onlineexam_student_results_ibfk_1` FOREIGN KEY (`onlineexam_student_id`) REFERENCES `onlineexam_students` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `onlineexam_student_results_ibfk_2` FOREIGN KEY (`onlineexam_question_id`) REFERENCES `onlineexam_questions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `questions`
--
ALTER TABLE `questions`
  ADD CONSTRAINT `questions_ibfk_1` FOREIGN KEY (`subject_id`) REFERENCES `subjects` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_attendance`
--
ALTER TABLE `staff_attendance`
  ADD CONSTRAINT `FK_staff_attendance_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `FK_staff_attendance_staff_attendance_type` FOREIGN KEY (`staff_attendance_type_id`) REFERENCES `staff_attendance_type` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_leave_details`
--
ALTER TABLE `staff_leave_details`
  ADD CONSTRAINT `FK_staff_leave_details_leave_types` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `FK_staff_leave_details_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_leave_request`
--
ALTER TABLE `staff_leave_request`
  ADD CONSTRAINT `FK_staff_leave_request_leave_types` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_types` (`id`),
  ADD CONSTRAINT `FK_staff_leave_request_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_payslip`
--
ALTER TABLE `staff_payslip`
  ADD CONSTRAINT `FK_staff_payslip_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_rating`
--
ALTER TABLE `staff_rating`
  ADD CONSTRAINT `FK_staff_rating_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_roles`
--
ALTER TABLE `staff_roles`
  ADD CONSTRAINT `FK_staff_roles_roles` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `FK_staff_roles_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_timeline`
--
ALTER TABLE `staff_timeline`
  ADD CONSTRAINT `FK_staff_timeline_staff` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE;
COMMIT;

