-- Smart School DB
-- version 6.3.0
-- https://smart-school.in
-- https://qdocs.in
-- Tables added: 157
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
-- --------------------------------------------------------
--
-- Table structure for table `alumni_events`
--
CREATE TABLE `alumni_events` (
`id` int(11) NOT NULL,
`title` text NOT NULL,
`event_for` varchar(100) NOT NULL,
`session_id` int(11) NOT NULL,
`class_id` varchar(255) NOT NULL,
`section` varchar(255) NOT NULL,
`from_date` date NOT NULL,
`to_date` date NOT NULL,
`note` text NOT NULL,
`photo` varchar(255) NOT NULL,
`is_active` int(11) NOT NULL,
`event_notification_message` text NOT NULL,
`show_onwebsite` 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 `alumni_students`
--
CREATE TABLE `alumni_students` (
`id` int(11) NOT NULL,
`current_email` varchar(255) NOT NULL,
`current_phone` varchar(255) NOT NULL,
`occupation` text NOT NULL,
`address` text NOT NULL,
`student_id` int(11) NOT NULL,
`photo` 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 `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', 'P', 'yes', '2016-06-23 18:11:37', '0000-00-00'),
(2, 'Late With Excuse', 'E', 'no', '2018-05-29 08:19:48', '0000-00-00'),
(3, 'Late', 'L', 'yes', '2016-06-23 18:12:28', '0000-00-00'),
(4, 'Absent', 'A', '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', 'F', 'yes', '2016-06-23 18:12:28', '0000-00-00');
-- --------------------------------------------------------
--
-- 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,
`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 `captcha`
--
CREATE TABLE `captcha` (
`id` int(11) NOT NULL,
`name` varchar(250) NOT NULL,
`status` 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 `captcha`
--
INSERT INTO `captcha` (`id`, `name`, `status`, `created_at`) VALUES
(1, 'userlogin', 0, '2021-01-19 08:10:29'),
(2, 'login', 0, '2021-01-19 08:10:31'),
(3, 'admission', 0, '2021-01-19 04:48:11'),
(4, 'complain', 0, '2021-01-19 04:48:13'),
(5, 'contact_us', 0, '2021-01-19 04:48:15');
-- --------------------------------------------------------
--
-- 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;
-- --------------------------------------------------------
--
-- 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 [name] has born on [dob]
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] .
We wish best of luck for future endeavors.', 'Reff. No.....1111111.........', 'To Whomever It May Concern', 'Date: _10__/_10__/__2019__', '.................................
admin', '.................................
principal', '.................................
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,
`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` datetime DEFAULT NULL
) 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;
-- --------------------------------------------------------
--
-- 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;
-- --------------------------------------------------------
--
-- 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,
`session_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `complaint`
--
CREATE TABLE `complaint` (
`id` int(11) NOT NULL,
`complaint_type` varchar(255) 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` text 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,
`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) DEFAULT NULL,
`belong_to` varchar(100) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL,
`bs_column` int(10) DEFAULT NULL,
`validation` int(11) DEFAULT '0',
`field_values` text,
`show_table` varchar(100) 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,
`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 `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;
-- --------------------------------------------------------
--
-- 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 `email_config`
--
CREATE TABLE `email_config` (
`id` int(11) UNSIGNED NOT NULL,
`email_type` varchar(100) DEFAULT NULL,
`smtp_server` varchar(100) DEFAULT NULL,
`smtp_port` varchar(100) DEFAULT NULL,
`smtp_username` varchar(100) DEFAULT NULL,
`smtp_password` varchar(100) DEFAULT NULL,
`ssl_tls` varchar(100) DEFAULT NULL,
`smtp_auth` varchar(10) NOT 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 `email_config`
--
INSERT INTO `email_config` (`id`, `email_type`, `smtp_server`, `smtp_port`, `smtp_username`, `smtp_password`, `ssl_tls`, `smtp_auth`, `is_active`, `created_at`) VALUES
(1, 'sendmail', NULL, NULL, NULL, NULL, NULL, '', '', '2020-02-28 13:46:03');
-- --------------------------------------------------------
--
-- Table structure for table `enquiry`
--
CREATE TABLE `enquiry` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`contact` varchar(20) NOT NULL,
`address` text NOT NULL,
`reference` varchar(20) NOT NULL,
`date` date NOT NULL,
`description` varchar(500) NOT NULL,
`follow_up_date` date NOT NULL,
`note` text 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` text 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,
`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,
`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_exams`
--
CREATE TABLE `exam_group_class_batch_exams` (
`id` int(11) NOT NULL,
`exam` varchar(250) DEFAULT NULL,
`session_id` int(10) NOT NULL,
`date_from` date DEFAULT NULL,
`date_to` date DEFAULT NULL,
`description` text,
`exam_group_id` int(11) DEFAULT NULL,
`use_exam_roll_no` int(1) NOT NULL DEFAULT '1',
`is_publish` int(1) DEFAULT '0',
`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_class_batch_exam_students`
--
CREATE TABLE `exam_group_class_batch_exam_students` (
`id` int(11) NOT NULL,
`exam_group_class_batch_exam_id` int(11) NOT NULL,
`student_id` int(11) NOT NULL,
`student_session_id` int(11) NOT NULL,
`roll_no` int(6) NOT NULL DEFAULT '0',
`teacher_remark` text,
`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_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
) 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,
`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_group_students`
--
CREATE TABLE `exam_group_students` (
`id` int(11) NOT NULL,
`exam_group_id` int(11) DEFAULT NULL,
`student_id` int(11) DEFAULT NULL,
`student_session_id` int(10) 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 `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,
`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_schedules`
--
CREATE TABLE `exam_schedules` (
`id` int(11) NOT NULL,
`session_id` int(11) NOT NULL,
`exam_id` int(11) DEFAULT NULL,
`teacher_subject_id` int(11) DEFAULT NULL,
`date_of_exam` date DEFAULT NULL,
`start_to` varchar(50) DEFAULT NULL,
`end_from` varchar(50) DEFAULT NULL,
`room_no` varchar(50) DEFAULT NULL,
`full_marks` int(11) DEFAULT NULL,
`passing_marks` int(11) DEFAULT NULL,
`note` text,
`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,
`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,
`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 `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 `feemasters`
--
CREATE TABLE `feemasters` (
`id` int(11) NOT NULL,
`session_id` int(11) DEFAULT NULL,
`feetype_id` int(11) NOT NULL,
`class_id` int(11) DEFAULT NULL,
`amount` float(10,2) DEFAULT NULL,
`description` text,
`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_discounts`
--
CREATE TABLE `fees_discounts` (
`id` int(11) NOT NULL,
`session_id` int(11) DEFAULT NULL,
`name` varchar(100) DEFAULT NULL,
`code` varchar(100) DEFAULT NULL,
`amount` decimal(10,2) DEFAULT NULL,
`description` text,
`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 `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 CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` date DEFAULT NULL
) 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, '2020-02-28 13:38:32', NULL),
(2, 'before', 5, 0, '2020-02-28 13:38:36', NULL),
(3, 'after', 2, 0, '2020-02-28 13:38:40', NULL),
(4, 'after', 5, 0, '2020-02-28 13:38:44', NULL);
-- --------------------------------------------------------
--
-- 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;
-- --------------------------------------------------------
--
-- 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,
`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 `fee_groups_feetype`
--
CREATE TABLE `fee_groups_feetype` (
`id` int(11) NOT NULL,
`fee_session_group_id` int(11) DEFAULT NULL,
`fee_groups_id` int(11) DEFAULT NULL,
`feetype_id` int(11) DEFAULT NULL,
`session_id` int(11) DEFAULT NULL,
`amount` decimal(10,2) DEFAULT NULL,
`fine_type` varchar(50) NOT NULL DEFAULT 'none',
`due_date` date DEFAULT NULL,
`fine_percentage` float(10,2) NOT NULL DEFAULT '0.00',
`fine_amount` float(10,2) NOT NULL DEFAULT '0.00',
`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 `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 `fee_session_groups`
--
CREATE TABLE `fee_session_groups` (
`id` int(11) NOT NULL,
`fee_groups_id` int(11) DEFAULT NULL,
`session_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 `filetypes`
--
CREATE TABLE `filetypes` (
`id` int(11) NOT NULL,
`file_extension` text,
`file_mime` text,
`file_size` int(11) NOT NULL,
`image_extension` text,
`image_mime` text,
`image_size` 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 `filetypes`
--
INSERT INTO `filetypes` (`id`, `file_extension`, `file_mime`, `file_size`, `image_extension`, `image_mime`, `image_size`, `created_at`) VALUES
(1, 'pdf, zip, jpg, jpeg, png, txt, 7z, gif, csv, docx, mp3, mp4, accdb, odt, ods, ppt, pptx, xlsx, wmv, jfif, apk, ppt, bmp, jpe, mdb, rar, xls, svg', 'application/pdf, image/zip, image/jpg, image/png, image/jpeg, text/plain, application/x-zip-compressed, application/zip, image/gif, text/csv, application/vnd.openxmlformats-officedocument.wordprocessingml.document, audio/mpeg, application/msaccess, application/vnd.oasis.opendocument.text, application/vnd.oasis.opendocument.spreadsheet, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, video/x-ms-wmv, video/mp4, image/jpeg, application/vnd.android.package-archive, application/x-msdownload, application/vnd.ms-powerpoint, image/bmp, image/jpeg, application/msaccess, application/vnd.ms-excel, image/svg+xml', 100048576, 'jfif, png, jpe, jpeg, jpg, bmp, gif, svg', 'image/jpeg, image/png, image/jpeg, image/jpeg, image/bmp, image/gif, image/x-ms-bmp, image/svg+xml', 10048576, '2021-01-30 13:03:03');
-- --------------------------------------------------------
--
-- 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` text 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` text,
`open_new_tab` int(10) NOT NULL DEFAULT '0',
`ext_url` text NOT NULL,
`ext_url_link` text 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` text,
`open_new_tab` int(11) DEFAULT '0',
`ext_url_link` text,
`slug` varchar(200) DEFAULT NULL,
`weight` int(11) DEFAULT NULL,
`publish` int(11) NOT NULL DEFAULT '0',
`description` text,
`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, 'Online 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` text,
`meta_description` text,
`meta_keyword` text,
`feature_image` varchar(200) NOT NULL,
`description` longtext,
`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', '', '', '', '', '
home page
', '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', '', '[form-builder:complain]
', '0000-00-00', 1, NULL, 'no', '2019-11-13 10:16:36'), (3, 'default', 0, '404 page', 'page/404-page', 'page', '404-page', '', ' ', '', '', '\r\n\r\n404 page found
\r\n\r\n', '0000-00-00', 0, NULL, 'no', '2018-05-18 14:46:04'), (4, 'default', 0, 'Contact us', 'page/contact-us', 'page', 'contact-us', '', '', '', '', '\r\n\r\n
350 Fifth Avenue, 34th floor New York NY 10118-3299 USA
\r\nE-mail : info@abcschool.com
\r\n\r\nMobile : +91-9009987654
\r\nMon-Fri : 9 am to 5 pm
\r\n\r\nSat : 9 am to 3 pm
\r\nPlease enter your institution online admission terms & conditions here.
', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '', '#424242', '#eeeeee', '1.png', 0, 'Monday', 0, '2021-02-08 09:48:23', NULL); -- -------------------------------------------------------- -- -- 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; -- -------------------------------------------------------- -- -- 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, `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; -- -------------------------------------------------------- -- -- 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, '2019-20', 'no', '2016-08-24 19:26:55', '0000-00-00'), (15, '2020-21', 'no', '2016-10-01 05:28:08', '0000-00-00'), (16, '2021-22', 'no', '2016-10-01 05:28:20', '0000-00-00'), (18, '2022-23', 'no', '2016-10-01 05:29:02', '0000-00-00'), (19, '2023-24', 'no', '2016-10-01 05:29:10', '0000-00-00'), (20, '2024-25', 'no', '2016-10-01 05:29:18', '0000-00-00'), (21, '2025-26', 'no', '2016-10-01 05:30:10', '0000-00-00'), (22, '2026-27', 'no', '2016-10-01 05:30:18', '0000-00-00'), (23, '2027-28', 'no', '2016-10-01 05:30:24', '0000-00-00'), (24, '2028-29', 'no', '2016-10-01 05:30:30', '0000-00-00'), (25, '2029-30', 'no', '2016-10-01 05:30:37', '0000-00-00'); -- -------------------------------------------------------- -- -- Table structure for table `sms_config` -- CREATE TABLE `sms_config` ( `id` int(11) NOT NULL, `type` varchar(50) NOT NULL, `name` varchar(100) NOT NULL, `api_id` varchar(100) NOT NULL, `authkey` varchar(100) NOT NULL, `senderid` varchar(100) NOT NULL, `contact` text, `username` varchar(150) DEFAULT NULL, `url` varchar(150) DEFAULT NULL, `password` varchar(150) DEFAULT NULL, `is_active` varchar(255) DEFAULT 'disabled', `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 `source` -- CREATE TABLE `source` ( `id` int(11) NOT NULL, `source` varchar(100) NOT NULL, `description` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `staff` -- CREATE TABLE `staff` ( `id` int(11) NOT NULL, `employee_id` varchar(200) NOT NULL, `lang_id` int(11) NOT NULL, `department` int(11) DEFAULT '0', `designation` int(11) DEFAULT '0', `qualification` varchar(200) NOT NULL, `work_exp` varchar(200) NOT NULL, `name` varchar(200) NOT NULL, `surname` varchar(200) NOT NULL, `father_name` varchar(200) NOT NULL, `mother_name` varchar(200) NOT NULL, `contact_no` varchar(200) NOT NULL, `emergency_contact_no` varchar(200) NOT NULL, `email` varchar(200) NOT NULL, `dob` date NOT NULL, `marital_status` varchar(100) NOT NULL, `date_of_joining` date NOT NULL, `date_of_leaving` date NOT NULL, `local_address` varchar(300) NOT NULL, `permanent_address` varchar(200) NOT NULL, `note` varchar(200) NOT NULL, `image` varchar(200) NOT NULL, `password` varchar(250) NOT NULL, `gender` varchar(50) NOT NULL, `account_title` varchar(200) NOT NULL, `bank_account_no` varchar(200) NOT NULL, `bank_name` varchar(200) NOT NULL, `ifsc_code` varchar(200) NOT NULL, `bank_branch` varchar(100) NOT NULL, `payscale` varchar(200) NOT NULL, `basic_salary` varchar(200) NOT NULL, `epf_no` varchar(200) NOT NULL, `contract_type` varchar(100) NOT NULL, `shift` varchar(100) NOT NULL, `location` varchar(100) NOT NULL, `facebook` varchar(200) NOT NULL, `twitter` varchar(200) NOT NULL, `linkedin` varchar(200) NOT NULL, `instagram` varchar(200) NOT NULL, `resume` varchar(200) NOT NULL, `joining_letter` varchar(200) NOT NULL, `resignation_letter` varchar(200) NOT NULL, `other_document_name` varchar(200) NOT NULL, `other_document_file` varchar(200) NOT NULL, `user_id` int(11) NOT NULL, `is_active` int(11) NOT NULL, `verification_code` varchar(100) NOT NULL, `disable_at` date DEFAULT 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` date DEFAULT 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', 'P', 'yes', '0000-00-00 00:00:00', '0000-00-00'), (2, 'Late', 'L', 'yes', '0000-00-00 00:00:00', '0000-00-00'), (3, 'Absent', 'A', 'yes', '0000-00-00 00:00:00', '0000-00-00'), (4, 'Half Day', 'F', '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_id_card` -- CREATE TABLE `staff_id_card` ( `id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `school_name` varchar(255) NOT NULL, `school_address` varchar(255) 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_vertical_card` int(11) NOT NULL DEFAULT '0', `enable_staff_role` tinyint(1) NOT NULL COMMENT '0=disable,1=enable', `enable_staff_id` tinyint(1) NOT NULL COMMENT '0=disable,1=enable', `enable_staff_department` tinyint(1) NOT NULL COMMENT '0=disable,1=enable', `enable_designation` tinyint(1) NOT NULL COMMENT '0=disable,1=enable', `enable_name` 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_date_of_joining` tinyint(1) NOT NULL COMMENT '0=disable,1=enable', `enable_permanent_address` tinyint(1) NOT NULL COMMENT '0=disable,1=enable', `enable_staff_dob` tinyint(1) NOT NULL COMMENT '0=disable,1=enable', `enable_staff_phone` 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 `staff_id_card` -- INSERT INTO `staff_id_card` (`id`, `title`, `school_name`, `school_address`, `background`, `logo`, `sign_image`, `header_color`, `enable_vertical_card`, `enable_staff_role`, `enable_staff_id`, `enable_staff_department`, `enable_designation`, `enable_name`, `enable_fathers_name`, `enable_mothers_name`, `enable_date_of_joining`, `enable_permanent_address`, `enable_staff_dob`, `enable_staff_phone`, `status`) VALUES (1, 'Sample Staff ID Card Horizontal', 'Mount Carmel School', '110 Kings Street, CA', 'background1.png', 'logo1.png', 'sign1.png', '#9b1818', 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1), (2, 'Sample Staff ID Card Vertical', 'Mount Carmel School', '110 Kings Street, CA', 'background1.png', 'logo1.png', 'sign1.png', '#9b1818', 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1); -- -------------------------------------------------------- -- -- 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` float(10,2) NOT NULL, `total_allowance` float(10,2) NOT NULL, `total_deduction` float(10,2) NOT NULL, `leave_deduction` int(11) NOT NULL, `tax` varchar(200) NOT NULL, `net_salary` float(10,2) 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; -- -------------------------------------------------------- -- -- Table structure for table `staff_rating` -- CREATE TABLE `staff_rating` ( `id` int(11) NOT NULL, `staff_id` int(11) NOT NULL, `comment` text NOT NULL, `rate` int(11) NOT NULL, `user_id` int(11) NOT NULL, `role` varchar(255) 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; -- -------------------------------------------------------- -- -- 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 `students` -- CREATE TABLE `students` ( `id` int(11) NOT NULL, `parent_id` int(11) NOT NULL, `admission_no` varchar(100) DEFAULT NULL, `roll_no` varchar(100) DEFAULT NULL, `admission_date` date DEFAULT NULL, `firstname` varchar(100) DEFAULT NULL, `middlename` varchar(255) DEFAULT NULL, `lastname` varchar(100) DEFAULT NULL, `rte` varchar(20) DEFAULT NULL, `image` varchar(100) DEFAULT NULL, `mobileno` varchar(100) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `state` varchar(100) DEFAULT NULL, `city` varchar(100) DEFAULT NULL, `pincode` varchar(100) DEFAULT NULL, `religion` varchar(100) DEFAULT NULL, `cast` varchar(50) DEFAULT NULL, `dob` date DEFAULT NULL, `gender` varchar(100) DEFAULT NULL, `current_address` text, `permanent_address` text, `category_id` varchar(100) DEFAULT NULL, `route_id` int(11) NOT NULL, `school_house_id` int(11) NOT NULL, `blood_group` varchar(200) NOT NULL, `vehroute_id` int(11) NOT NULL, `hostel_room_id` int(11) NOT NULL, `adhar_no` varchar(100) DEFAULT NULL, `samagra_id` varchar(100) DEFAULT NULL, `bank_account_no` varchar(100) DEFAULT NULL, `bank_name` varchar(100) DEFAULT NULL, `ifsc_code` varchar(100) DEFAULT NULL, `guardian_is` varchar(100) NOT NULL, `father_name` varchar(100) DEFAULT NULL, `father_phone` varchar(100) DEFAULT NULL, `father_occupation` varchar(100) DEFAULT NULL, `mother_name` varchar(100) DEFAULT NULL, `mother_phone` varchar(100) DEFAULT NULL, `mother_occupation` varchar(100) DEFAULT NULL, `guardian_name` varchar(100) DEFAULT NULL, `guardian_relation` varchar(100) DEFAULT NULL, `guardian_phone` varchar(100) DEFAULT NULL, `guardian_occupation` varchar(150) NOT NULL, `guardian_address` text, `guardian_email` varchar(100) DEFAULT NULL, `father_pic` varchar(200) NOT NULL, `mother_pic` varchar(200) NOT NULL, `guardian_pic` varchar(200) NOT NULL, `is_active` varchar(255) DEFAULT 'yes', `previous_school` text, `height` varchar(100) NOT NULL, `weight` varchar(100) NOT NULL, `measurement_date` date NOT NULL, `dis_reason` int(11) NOT NULL, `note` varchar(200) DEFAULT NULL, `dis_note` text NOT NULL, `app_key` text, `parent_app_key` text, `disable_at` date 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 `student_applyleave` -- CREATE TABLE `student_applyleave` ( `id` int(11) NOT NULL, `student_session_id` int(11) NOT NULL, `from_date` date NOT NULL, `to_date` date NOT NULL, `apply_date` date NOT NULL, `status` int(1) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `docs` text NOT NULL, `reason` text NOT NULL, `approve_by` int(11) NOT NULL, `request_type` int(11) NOT NULL COMMENT '0 student,1 staff' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `student_attendences` -- CREATE TABLE `student_attendences` ( `id` int(11) NOT NULL, `student_session_id` int(11) DEFAULT NULL, `biometric_attendence` int(1) NOT NULL DEFAULT '0', `date` date DEFAULT NULL, `attendence_type_id` int(11) DEFAULT NULL, `remark` varchar(200) NOT NULL, `biometric_device_data` text, `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_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_edit_fields` -- CREATE TABLE `student_edit_fields` ( `id` int(11) NOT NULL, `name` varchar(250) DEFAULT NULL, `status` int(1) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `student_fees` -- CREATE TABLE `student_fees` ( `id` int(11) NOT NULL, `student_session_id` int(11) DEFAULT NULL, `feemaster_id` int(11) DEFAULT NULL, `amount` float(10,2) DEFAULT NULL, `amount_discount` float(10,2) NOT NULL, `amount_fine` float(10,2) NOT NULL DEFAULT '0.00', `description` text, `date` date DEFAULT NULL, `payment_mode` 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; -- -------------------------------------------------------- -- -- 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, `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 `student_fees_discounts` -- CREATE TABLE `student_fees_discounts` ( `id` int(11) NOT NULL, `student_session_id` int(11) DEFAULT NULL, `fees_discount_id` int(11) DEFAULT NULL, `status` varchar(20) DEFAULT 'assigned', `payment_id` varchar(50) DEFAULT NULL, `description` text, `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 `student_fees_master` -- CREATE TABLE `student_fees_master` ( `id` int(11) NOT NULL, `is_system` int(1) NOT NULL DEFAULT '0', `student_session_id` int(11) DEFAULT NULL, `fee_session_group_id` int(11) DEFAULT NULL, `amount` float(10,2) DEFAULT '0.00', `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 `student_session` -- CREATE TABLE `student_session` ( `id` int(11) NOT NULL, `session_id` int(11) DEFAULT NULL, `student_id` int(11) DEFAULT NULL, `class_id` int(11) DEFAULT NULL, `section_id` int(11) DEFAULT NULL, `route_id` int(11) NOT NULL, `hostel_room_id` int(11) NOT NULL, `vehroute_id` int(10) DEFAULT NULL, `transport_fees` float(10,2) NOT NULL DEFAULT '0.00', `fees_discount` float(10,2) NOT NULL DEFAULT '0.00', `is_active` varchar(255) DEFAULT 'no', `is_alumni` int(11) NOT NULL, `default_login` int(1) 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; -- -------------------------------------------------------- -- -- 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_subject_attendances` -- CREATE TABLE `student_subject_attendances` ( `id` int(11) NOT NULL, `student_session_id` int(11) DEFAULT NULL, `subject_timetable_id` int(11) DEFAULT NULL, `attendence_type_id` int(11) DEFAULT NULL, `date` date DEFAULT NULL, `remark` text, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) 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; -- -------------------------------------------------------- -- -- Table structure for table `subject_groups` -- CREATE TABLE `subject_groups` ( `id` int(11) NOT NULL, `name` varchar(250) DEFAULT NULL, `description` text, `session_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 `subject_group_class_sections` -- CREATE TABLE `subject_group_class_sections` ( `id` int(11) NOT NULL, `subject_group_id` int(11) DEFAULT NULL, `class_section_id` int(11) DEFAULT NULL, `session_id` int(11) DEFAULT NULL, `description` text, `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 `subject_group_subjects` -- CREATE TABLE `subject_group_subjects` ( `id` int(11) NOT NULL, `subject_group_id` int(11) DEFAULT NULL, `session_id` int(11) DEFAULT NULL, `subject_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 `subject_syllabus` -- CREATE TABLE `subject_syllabus` ( `id` int(11) NOT NULL, `topic_id` int(11) NOT NULL, `session_id` int(11) NOT NULL, `created_by` int(11) NOT NULL, `created_for` int(11) NOT NULL, `date` date NOT NULL, `time_from` varchar(255) NOT NULL, `time_to` varchar(255) NOT NULL, `presentation` text NOT NULL, `attachment` text NOT NULL, `lacture_youtube_url` varchar(255) NOT NULL, `lacture_video` varchar(255) NOT NULL, `sub_topic` text NOT NULL, `teaching_method` text NOT NULL, `general_objectives` text NOT NULL, `previous_knowledge` text NOT NULL, `comprehensive_questions` text NOT NULL, `status` 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 `subject_timetable` -- CREATE TABLE `subject_timetable` ( `id` int(11) NOT NULL, `day` varchar(20) DEFAULT NULL, `class_id` int(11) DEFAULT NULL, `section_id` int(11) DEFAULT NULL, `subject_group_id` int(11) DEFAULT NULL, `subject_group_subject_id` int(11) DEFAULT NULL, `staff_id` int(11) DEFAULT NULL, `time_from` varchar(20) DEFAULT NULL, `time_to` varchar(20) DEFAULT NULL, `start_time` time DEFAULT NULL, `end_time` time DEFAULT NULL, `room_no` varchar(20) DEFAULT NULL, `session_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 `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, `file_name` text, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `teacher_subjects` -- CREATE TABLE `teacher_subjects` ( `id` int(11) NOT NULL, `session_id` int(11) DEFAULT NULL, `class_section_id` int(11) DEFAULT NULL, `subject_id` int(11) DEFAULT NULL, `teacher_id` int(11) DEFAULT NULL, `description` 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; -- -------------------------------------------------------- -- -- Table structure for table `template_admitcards` -- CREATE TABLE `template_admitcards` ( `id` int(11) NOT NULL, `template` varchar(250) DEFAULT NULL, `heading` text, `title` text, `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, `is_class` int(11) NOT NULL DEFAULT '0', `is_section` int(11) NOT NULL DEFAULT '0', `content_footer` text, `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`, `is_class`, `is_section`, `content_footer`, `created_at`, `updated_at`) VALUES (1, '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, 0, 0, NULL, '2020-02-28 14:26:15', NULL); -- -------------------------------------------------------- -- -- Table structure for table `template_marksheets` -- CREATE TABLE `template_marksheets` ( `id` int(11) NOT NULL, `template` varchar(200) DEFAULT NULL, `heading` text, `title` text, `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, `date` varchar(20) DEFAULT NULL, `is_class` int(11) NOT NULL DEFAULT '0', `is_teacher_remark` int(11) NOT NULL DEFAULT '1', `is_section` int(11) NOT NULL DEFAULT '0', `content` text, `content_footer` text, `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_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`, `date`, `is_class`, `is_teacher_remark`, `is_section`, `content`, `content_footer`, `created_at`, `updated_at`) VALUES (1, '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', 'Mount Carmel School', 'GOVT GIRLS H S SCHOOL', '331e0690e50f8c6b7a219a0a2b9667f7.png', '351f513d79ee5c0f642c2d36514a1ff4.png', 'fb79d2c0d163357d1706b78550a05e2c.png', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '', NULL, 0, 1, 0, NULL, NULL, '2020-02-28 14:26:06', NULL); -- -------------------------------------------------------- -- -- 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 `topic` -- CREATE TABLE `topic` ( `id` int(11) NOT NULL, `session_id` int(11) NOT NULL, `lesson_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `status` int(11) NOT NULL, `complete_date` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) 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, `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 `userlog` -- CREATE TABLE `userlog` ( `id` int(11) NOT NULL, `user` varchar(100) DEFAULT NULL, `role` varchar(100) DEFAULT NULL, `class_section_id` int(11) 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; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `user_id` int(10) NOT NULL, `username` varchar(50) DEFAULT NULL, `password` varchar(50) DEFAULT NULL, `childs` text NOT NULL, `role` varchar(30) NOT NULL, `verification_code` varchar(200) NOT NULL, `lang_id` int(11) NOT NULL, `is_active` varchar(255) DEFAULT 'yes', `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 `users_authentication` -- CREATE TABLE `users_authentication` ( `id` int(11) NOT NULL, `users_id` int(11) NOT NULL, `token` varchar(255) NOT NULL, `expired_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `created_at` date DEFAULT NULL, `updated_at` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 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, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 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; -- -------------------------------------------------------- -- -- Table structure for table `visitors_book` -- CREATE TABLE `visitors_book` ( `id` int(11) NOT NULL, `source` varchar(100) DEFAULT NULL, `purpose` varchar(255) 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` text 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` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `alumni_events` -- ALTER TABLE `alumni_events` ADD PRIMARY KEY (`id`); -- -- Indexes for table `alumni_students` -- ALTER TABLE `alumni_students` ADD PRIMARY KEY (`id`), ADD KEY `student_id` (`student_id`); -- -- Indexes for table `attendence_type` -- ALTER TABLE `attendence_type` 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 `captcha` -- ALTER TABLE `captcha` 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_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 `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 `email_config` -- ALTER TABLE `email_config` 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_exams` -- ALTER TABLE `exam_group_class_batch_exams` ADD PRIMARY KEY (`id`), ADD KEY `exam_group_id` (`exam_group_id`); -- -- Indexes for table `exam_group_class_batch_exam_students` -- ALTER TABLE `exam_group_class_batch_exam_students` ADD PRIMARY KEY (`id`), ADD KEY `exam_group_class_batch_exam_id` (`exam_group_class_batch_exam_id`), ADD KEY `student_id` (`student_id`), ADD KEY `student_session_id` (`student_session_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 `subject_id` (`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_group_students` -- ALTER TABLE `exam_group_students` ADD PRIMARY KEY (`id`), ADD KEY `exam_group_id` (`exam_group_id`), ADD KEY `student_id` (`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 `exam_schedules` -- ALTER TABLE `exam_schedules` ADD PRIMARY KEY (`id`), ADD KEY `teacher_subject_id` (`teacher_subject_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 `feemasters` -- ALTER TABLE `feemasters` ADD PRIMARY KEY (`id`); -- -- Indexes for table `fees_discounts` -- ALTER TABLE `fees_discounts` ADD PRIMARY KEY (`id`), ADD KEY `session_id` (`session_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_groups_feetype` -- ALTER TABLE `fee_groups_feetype` ADD PRIMARY KEY (`id`), ADD KEY `fee_session_group_id` (`fee_session_group_id`), ADD KEY `fee_groups_id` (`fee_groups_id`), ADD KEY `feetype_id` (`feetype_id`), ADD KEY `session_id` (`session_id`); -- -- Indexes for table `fee_receipt_no` -- ALTER TABLE `fee_receipt_no` ADD PRIMARY KEY (`id`); -- -- Indexes for table `fee_session_groups` -- ALTER TABLE `fee_session_groups` ADD PRIMARY KEY (`id`), ADD KEY `fee_groups_id` (`fee_groups_id`), ADD KEY `session_id` (`session_id`); -- -- Indexes for table `filetypes` -- ALTER TABLE `filetypes` 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 `homework` -- ALTER TABLE `homework` ADD PRIMARY KEY (`id`), ADD KEY `subject_group_subject_id` (`subject_group_subject_id`); -- -- Indexes for table `homework_evaluation` -- ALTER TABLE `homework_evaluation` 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 `lesson` -- ALTER TABLE `lesson` ADD PRIMARY KEY (`id`), ADD KEY `session_id` (`session_id`), ADD KEY `subject_group_subject_id` (`subject_group_subject_id`), ADD KEY `subject_group_class_sections_id` (`subject_group_class_sections_id`); -- -- 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 `multi_class_students` -- ALTER TABLE `multi_class_students` ADD PRIMARY KEY (`id`), ADD KEY `student_id` (`student_id`), ADD KEY `student_session_id` (`student_session_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` -- ALTER TABLE `onlineexam` ADD PRIMARY KEY (`id`), ADD KEY `session_id` (`session_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_questions` -- ALTER TABLE `onlineexam_questions` ADD PRIMARY KEY (`id`), ADD KEY `onlineexam_id` (`onlineexam_id`), ADD KEY `question_id` (`question_id`), ADD KEY `session_id` (`session_id`); -- -- Indexes for table `onlineexam_students` -- ALTER TABLE `onlineexam_students` ADD PRIMARY KEY (`id`), ADD KEY `onlineexam_id` (`onlineexam_id`), ADD KEY `student_session_id` (`student_session_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 `online_admissions` -- ALTER TABLE `online_admissions` ADD PRIMARY KEY (`id`), ADD KEY `class_section_id` (`class_section_id`); -- -- Indexes for table `online_admission_fields` -- ALTER TABLE `online_admission_fields` ADD PRIMARY KEY (`id`); -- -- Indexes for table `online_admission_payment` -- ALTER TABLE `online_admission_payment` ADD PRIMARY KEY (`id`); -- -- Indexes for table `payment_settings` -- ALTER TABLE `payment_settings` ADD PRIMARY KEY (`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_student` -- ALTER TABLE `permission_student` ADD PRIMARY KEY (`id`); -- -- Indexes for table `print_headerfooter` -- ALTER TABLE `print_headerfooter` 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 `sch_settings` -- ALTER TABLE `sch_settings` ADD PRIMARY KEY (`id`), ADD KEY `lang_id` (`lang_id`), ADD KEY `session_id` (`session_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 `sms_config` -- ALTER TABLE `sms_config` ADD PRIMARY KEY (`id`); -- -- Indexes for table `source` -- ALTER TABLE `source` ADD PRIMARY KEY (`id`); -- -- Indexes for table `staff` -- ALTER TABLE `staff` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `employee_id` (`employee_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_id_card` -- ALTER TABLE `staff_id_card` 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 `students` -- ALTER TABLE `students` ADD PRIMARY KEY (`id`); -- -- Indexes for table `student_applyleave` -- ALTER TABLE `student_applyleave` ADD PRIMARY KEY (`id`); -- -- Indexes for table `student_attendences` -- ALTER TABLE `student_attendences` ADD PRIMARY KEY (`id`), ADD KEY `student_session_id` (`student_session_id`), ADD KEY `attendence_type_id` (`attendence_type_id`); -- -- Indexes for table `student_doc` -- ALTER TABLE `student_doc` ADD PRIMARY KEY (`id`); -- -- Indexes for table `student_edit_fields` -- ALTER TABLE `student_edit_fields` ADD PRIMARY KEY (`id`); -- -- Indexes for table `student_fees` -- ALTER TABLE `student_fees` 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_fees_discounts` -- ALTER TABLE `student_fees_discounts` ADD PRIMARY KEY (`id`), ADD KEY `student_session_id` (`student_session_id`), ADD KEY `fees_discount_id` (`fees_discount_id`); -- -- Indexes for table `student_fees_master` -- ALTER TABLE `student_fees_master` ADD PRIMARY KEY (`id`), ADD KEY `student_session_id` (`student_session_id`), ADD KEY `fee_session_group_id` (`fee_session_group_id`); -- -- Indexes for table `student_session` -- ALTER TABLE `student_session` ADD PRIMARY KEY (`id`), ADD KEY `session_id` (`session_id`), ADD KEY `student_id` (`student_id`), ADD KEY `class_id` (`class_id`), ADD KEY `section_id` (`section_id`); -- -- Indexes for table `student_sibling` -- ALTER TABLE `student_sibling` ADD PRIMARY KEY (`id`); -- -- Indexes for table `student_subject_attendances` -- ALTER TABLE `student_subject_attendances` ADD PRIMARY KEY (`id`), ADD KEY `attendence_type_id` (`attendence_type_id`), ADD KEY `student_session_id` (`student_session_id`), ADD KEY `subject_timetable_id` (`subject_timetable_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 `subject_groups` -- ALTER TABLE `subject_groups` ADD PRIMARY KEY (`id`), ADD KEY `session_id` (`session_id`); -- -- Indexes for table `subject_group_class_sections` -- ALTER TABLE `subject_group_class_sections` ADD PRIMARY KEY (`id`), ADD KEY `class_section_id` (`class_section_id`), ADD KEY `subject_group_id` (`subject_group_id`), ADD KEY `session_id` (`session_id`); -- -- Indexes for table `subject_group_subjects` -- ALTER TABLE `subject_group_subjects` ADD PRIMARY KEY (`id`), ADD KEY `subject_group_id` (`subject_group_id`), ADD KEY `session_id` (`session_id`), ADD KEY `subject_id` (`subject_id`); -- -- Indexes for table `subject_syllabus` -- ALTER TABLE `subject_syllabus` ADD PRIMARY KEY (`id`), ADD KEY `topic_id` (`topic_id`), ADD KEY `session_id` (`session_id`), ADD KEY `created_by` (`created_by`), ADD KEY `created_for` (`created_for`); -- -- Indexes for table `subject_timetable` -- ALTER TABLE `subject_timetable` ADD PRIMARY KEY (`id`), ADD KEY `class_id` (`class_id`), ADD KEY `section_id` (`section_id`), ADD KEY `subject_group_id` (`subject_group_id`), ADD KEY `subject_group_subject_id` (`subject_group_subject_id`), ADD KEY `staff_id` (`staff_id`), ADD KEY `session_id` (`session_id`); -- -- Indexes for table `submit_assignment` -- ALTER TABLE `submit_assignment` ADD PRIMARY KEY (`id`); -- -- Indexes for table `teacher_subjects` -- ALTER TABLE `teacher_subjects` ADD PRIMARY KEY (`id`), ADD KEY `class_section_id` (`class_section_id`), ADD KEY `session_id` (`session_id`), ADD KEY `subject_id` (`subject_id`), ADD KEY `teacher_id` (`teacher_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 `topic` -- ALTER TABLE `topic` ADD PRIMARY KEY (`id`), ADD KEY `session_id` (`session_id`), ADD KEY `lesson_id` (`lesson_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 `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users_authentication` -- ALTER TABLE `users_authentication` 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 `alumni_events` -- ALTER TABLE `alumni_events` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `alumni_students` -- ALTER TABLE `alumni_students` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- 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 `books` -- ALTER TABLE `books` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `books` -- ALTER TABLE `online_admission_payment` 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 `captcha` -- ALTER TABLE `captcha` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- 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 for table `class_sections` -- ALTER TABLE `class_sections` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `class_teacher` -- ALTER TABLE `class_teacher` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- 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 `department` -- ALTER TABLE `department` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- 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 `email_config` -- ALTER TABLE `email_config` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- 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_exams` -- ALTER TABLE `exam_group_class_batch_exams` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `exam_group_class_batch_exam_students` -- ALTER TABLE `exam_group_class_batch_exam_students` 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_group_students` -- ALTER TABLE `exam_group_students` 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 `exam_schedules` -- ALTER TABLE `exam_schedules` 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 for table `feecategory` -- ALTER TABLE `feecategory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `feemasters` -- ALTER TABLE `feemasters` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fees_discounts` -- ALTER TABLE `fees_discounts` 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 for table `fee_groups` -- ALTER TABLE `fee_groups` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fee_groups_feetype` -- ALTER TABLE `fee_groups_feetype` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fee_receipt_no` -- ALTER TABLE `fee_receipt_no` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fee_session_groups` -- ALTER TABLE `fee_session_groups` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `filetypes` -- ALTER TABLE `filetypes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- 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=6; -- -- 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 `homework` -- ALTER TABLE `homework` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `homework_evaluation` -- ALTER TABLE `homework_evaluation` 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=3; -- -- 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 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=94; -- -- AUTO_INCREMENT for table `leave_types` -- ALTER TABLE `leave_types` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `lesson` -- ALTER TABLE `lesson` 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 for table `logs` -- ALTER TABLE `logs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `messages` -- ALTER TABLE `messages` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `multi_class_students` -- ALTER TABLE `multi_class_students` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `notification_roles` -- ALTER TABLE `notification_roles` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `notification_setting` -- ALTER TABLE `notification_setting` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `onlineexam` -- ALTER TABLE `onlineexam` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `onlineexam_attempts` -- ALTER TABLE `onlineexam_attempts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `onlineexam_questions` -- ALTER TABLE `onlineexam_questions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `onlineexam_students` -- ALTER TABLE `onlineexam_students` 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 `online_admissions` -- ALTER TABLE `online_admissions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `online_admission_fields` -- ALTER TABLE `online_admission_fields` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; -- -- AUTO_INCREMENT for table `payment_settings` -- ALTER TABLE `payment_settings` 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 for table `permission_category` -- ALTER TABLE `permission_category` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=250; -- -- AUTO_INCREMENT for table `permission_group` -- ALTER TABLE `permission_group` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- AUTO_INCREMENT for table `permission_student` -- ALTER TABLE `permission_student` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `print_headerfooter` -- ALTER TABLE `print_headerfooter` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- 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 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=1481; -- -- 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 for table `sections` -- ALTER TABLE `sections` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `send_notification` -- ALTER TABLE `send_notification` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `sessions` -- ALTER TABLE `sessions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `sms_config` -- ALTER TABLE `sms_config` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `source` -- ALTER TABLE `source` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `staff` -- ALTER TABLE `staff` 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_id_card` -- ALTER TABLE `staff_id_card` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- 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 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 for table `staff_timeline` -- ALTER TABLE `staff_timeline` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `students` -- ALTER TABLE `students` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `student_applyleave` -- ALTER TABLE `student_applyleave` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `student_attendences` -- ALTER TABLE `student_attendences` 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_edit_fields` -- ALTER TABLE `student_edit_fields` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `student_fees` -- ALTER TABLE `student_fees` 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 for table `student_fees_discounts` -- ALTER TABLE `student_fees_discounts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `student_fees_master` -- ALTER TABLE `student_fees_master` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `student_session` -- ALTER TABLE `student_session` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `student_sibling` -- ALTER TABLE `student_sibling` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `student_subject_attendances` -- ALTER TABLE `student_subject_attendances` 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 for table `subject_groups` -- ALTER TABLE `subject_groups` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subject_group_class_sections` -- ALTER TABLE `subject_group_class_sections` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subject_group_subjects` -- ALTER TABLE `subject_group_subjects` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subject_syllabus` -- ALTER TABLE `subject_syllabus` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subject_timetable` -- ALTER TABLE `subject_timetable` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `submit_assignment` -- ALTER TABLE `submit_assignment` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `teacher_subjects` -- ALTER TABLE `teacher_subjects` 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=2; -- -- AUTO_INCREMENT for table `template_marksheets` -- ALTER TABLE `template_marksheets` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `timetables` -- ALTER TABLE `timetables` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `topic` -- ALTER TABLE `topic` 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 for table `userlog` -- ALTER TABLE `userlog` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users_authentication` -- ALTER TABLE `users_authentication` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `vehicles` -- ALTER TABLE `vehicles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `vehicle_routes` -- ALTER TABLE `vehicle_routes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `visitors_book` -- ALTER TABLE `visitors_book` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `visitors_purpose` -- ALTER TABLE `visitors_purpose` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `alumni_students` -- ALTER TABLE `alumni_students` ADD CONSTRAINT `alumni_students_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE; -- -- 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 `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_exams` -- ALTER TABLE `exam_group_class_batch_exams` ADD CONSTRAINT `exam_group_class_batch_exams_ibfk_1` FOREIGN KEY (`exam_group_id`) REFERENCES `exam_groups` (`id`) ON DELETE CASCADE; -- -- Constraints for table `exam_group_class_batch_exam_students` -- ALTER TABLE `exam_group_class_batch_exam_students` ADD CONSTRAINT `exam_group_class_batch_exam_students_ibfk_1` FOREIGN KEY (`exam_group_class_batch_exam_id`) REFERENCES `exam_group_class_batch_exams` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `exam_group_class_batch_exam_students_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `exam_group_class_batch_exam_students_ibfk_3` FOREIGN KEY (`student_session_id`) REFERENCES `student_session` (`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 (`subject_id`) REFERENCES `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 `exam_group_students` -- ALTER TABLE `exam_group_students` ADD CONSTRAINT `exam_group_students_ibfk_1` FOREIGN KEY (`exam_group_id`) REFERENCES `exam_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `exam_group_students_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE; -- -- Constraints for table `fees_discounts` -- ALTER TABLE `fees_discounts` ADD CONSTRAINT `fees_discounts_ibfk_1` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `fee_groups_feetype` -- ALTER TABLE `fee_groups_feetype` ADD CONSTRAINT `fee_groups_feetype_ibfk_1` FOREIGN KEY (`fee_session_group_id`) REFERENCES `fee_session_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_groups_feetype_ibfk_2` FOREIGN KEY (`fee_groups_id`) REFERENCES `fee_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_groups_feetype_ibfk_3` FOREIGN KEY (`feetype_id`) REFERENCES `feetype` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_groups_feetype_ibfk_4` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `fee_session_groups` -- ALTER TABLE `fee_session_groups` ADD CONSTRAINT `fee_session_groups_ibfk_1` FOREIGN KEY (`fee_groups_id`) REFERENCES `fee_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_session_groups_ibfk_2` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`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 `homework` -- ALTER TABLE `homework` ADD CONSTRAINT `homework_ibfk_1` FOREIGN KEY (`subject_group_subject_id`) REFERENCES `subject_group_subjects` (`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 `lesson` -- ALTER TABLE `lesson` ADD CONSTRAINT `lesson_ibfk_1` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `lesson_ibfk_2` FOREIGN KEY (`subject_group_subject_id`) REFERENCES `subject_group_subjects` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `lesson_ibfk_3` FOREIGN KEY (`subject_group_class_sections_id`) REFERENCES `subject_group_class_sections` (`id`) ON DELETE CASCADE; -- -- Constraints for table `multi_class_students` -- ALTER TABLE `multi_class_students` ADD CONSTRAINT `multi_class_students_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `multi_class_students_ibfk_2` FOREIGN KEY (`student_session_id`) REFERENCES `student_session` (`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` -- ALTER TABLE `onlineexam` ADD CONSTRAINT `onlineexam_ibfk_1` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`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_questions` -- ALTER TABLE `onlineexam_questions` ADD CONSTRAINT `onlineexam_questions_ibfk_1` FOREIGN KEY (`onlineexam_id`) REFERENCES `onlineexam` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `onlineexam_questions_ibfk_2` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `onlineexam_questions_ibfk_3` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `onlineexam_students` -- ALTER TABLE `onlineexam_students` ADD CONSTRAINT `onlineexam_students_ibfk_1` FOREIGN KEY (`onlineexam_id`) REFERENCES `onlineexam` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `onlineexam_students_ibfk_2` FOREIGN KEY (`student_session_id`) REFERENCES `student_session` (`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 `online_admissions` -- ALTER TABLE `online_admissions` ADD CONSTRAINT `online_admissions_ibfk_1` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`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; -- -- Constraints for table `student_session` -- ALTER TABLE `student_session` ADD CONSTRAINT `student_session_ibfk_1` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `student_session_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `student_session_ibfk_3` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `student_session_ibfk_4` FOREIGN KEY (`section_id`) REFERENCES `sections` (`id`) ON DELETE CASCADE; -- -- Constraints for table `student_subject_attendances` -- ALTER TABLE `student_subject_attendances` ADD CONSTRAINT `student_subject_attendances_ibfk_1` FOREIGN KEY (`attendence_type_id`) REFERENCES `attendence_type` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `student_subject_attendances_ibfk_2` FOREIGN KEY (`student_session_id`) REFERENCES `student_session` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `student_subject_attendances_ibfk_3` FOREIGN KEY (`subject_timetable_id`) REFERENCES `subject_timetable` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subject_groups` -- ALTER TABLE `subject_groups` ADD CONSTRAINT `subject_groups_ibfk_1` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subject_group_class_sections` -- ALTER TABLE `subject_group_class_sections` ADD CONSTRAINT `subject_group_class_sections_ibfk_1` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_group_class_sections_ibfk_2` FOREIGN KEY (`subject_group_id`) REFERENCES `subject_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_group_class_sections_ibfk_3` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subject_group_subjects` -- ALTER TABLE `subject_group_subjects` ADD CONSTRAINT `subject_group_subjects_ibfk_1` FOREIGN KEY (`subject_group_id`) REFERENCES `subject_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_group_subjects_ibfk_2` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_group_subjects_ibfk_3` FOREIGN KEY (`subject_id`) REFERENCES `subjects` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subject_syllabus` -- ALTER TABLE `subject_syllabus` ADD CONSTRAINT `subject_syllabus_ibfk_1` FOREIGN KEY (`topic_id`) REFERENCES `topic` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_syllabus_ibfk_2` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_syllabus_ibfk_3` FOREIGN KEY (`created_by`) REFERENCES `staff` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_syllabus_ibfk_4` FOREIGN KEY (`created_for`) REFERENCES `staff` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subject_timetable` -- ALTER TABLE `subject_timetable` ADD CONSTRAINT `subject_timetable_ibfk_1` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_timetable_ibfk_2` FOREIGN KEY (`section_id`) REFERENCES `sections` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_timetable_ibfk_3` FOREIGN KEY (`subject_group_id`) REFERENCES `subject_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_timetable_ibfk_4` FOREIGN KEY (`subject_group_subject_id`) REFERENCES `subject_group_subjects` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_timetable_ibfk_5` FOREIGN KEY (`staff_id`) REFERENCES `staff` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subject_timetable_ibfk_6` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `topic` -- ALTER TABLE `topic` ADD CONSTRAINT `topic_ibfk_1` FOREIGN KEY (`session_id`) REFERENCES `sessions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `topic_ibfk_2` FOREIGN KEY (`lesson_id`) REFERENCES `lesson` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;