-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 06, 2024 at 11:21 AM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.1.25

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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 */;

--
-- Database: `eschool-saas`
--

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

--
-- Table structure for table `academic_calendars`
--

CREATE TABLE `academic_calendars` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `title` varchar(512) NOT NULL,
  `description` varchar(1024) DEFAULT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `addons`
--

CREATE TABLE `addons` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `price` double(8,4) NOT NULL COMMENT 'Daily price',
  `feature_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 => Inactive, 1 => Active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `addons`
--

INSERT INTO `addons` (`id`, `name`, `price`, `feature_id`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Slider Managemet', 2.0000, 3, 1, '2024-05-01 07:24:46', '2024-05-01 07:26:10', NULL),
(2, 'Holiday Management', 3.0000, 6, 1, '2024-05-01 07:24:56', '2024-05-01 07:26:10', NULL),
(3, 'TImetable Management', 4.0000, 7, 1, '2024-05-01 07:25:03', '2024-05-01 07:26:11', NULL),
(4, 'Attendance Management', 5.0000, 8, 1, '2024-05-01 07:25:10', '2024-05-01 07:26:12', NULL),
(5, 'Exam Management', 5.0000, 9, 1, '2024-05-01 07:25:17', '2024-05-01 07:26:13', NULL),
(6, 'Lesson Management', 5.0000, 10, 1, '2024-05-01 07:25:23', '2024-05-01 07:26:08', NULL),
(7, 'Assignmen Management', 6.0000, 11, 1, '2024-05-01 07:25:30', '2024-05-01 07:26:07', NULL),
(8, 'Expense Management', 8.0000, 14, 1, '2024-05-01 07:25:36', '2024-05-01 07:26:07', NULL),
(9, 'Staff Management', 8.0000, 13, 1, '2024-05-01 07:25:47', '2024-05-01 07:26:06', NULL),
(10, 'Leave Management', 4.0000, 15, 1, '2024-05-01 07:26:02', '2024-05-01 07:26:05', NULL);

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

--
-- Table structure for table `addon_subscriptions`
--

CREATE TABLE `addon_subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subscription_id` bigint(20) UNSIGNED DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `feature_id` bigint(20) UNSIGNED NOT NULL,
  `price` double(64,4) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0 => Discontinue next billing, 1 => Continue',
  `payment_transaction_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `addon_subscriptions`
--

INSERT INTO `addon_subscriptions` (`id`, `subscription_id`, `school_id`, `feature_id`, `price`, `start_date`, `end_date`, `status`, `payment_transaction_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 2, 2, 15, 4.0000, '2024-05-03', '2024-10-29', 1, NULL, '2024-05-03 06:25:36', '2024-05-03 06:25:36', NULL);

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

--
-- Table structure for table `announcements`
--

CREATE TABLE `announcements` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(128) NOT NULL,
  `description` varchar(1024) DEFAULT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `announcements`
--

INSERT INTO `announcements` (`id`, `title`, `description`, `session_year_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 'A', 'A', 1, 1, '2024-04-29 10:43:54', '2024-04-29 10:43:54'),
(2, 'School opening', 'The dates for the reopening of schools will be announced on June 9, 2024.', 5, 1, '2024-04-29 10:44:12', '2024-05-03 06:47:34');

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

--
-- Table structure for table `announcement_classes`
--

CREATE TABLE `announcement_classes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `announcement_id` bigint(20) UNSIGNED DEFAULT NULL,
  `class_section_id` bigint(20) UNSIGNED DEFAULT NULL,
  `class_subject_id` bigint(20) UNSIGNED DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `announcement_classes`
--

INSERT INTO `announcement_classes` (`id`, `announcement_id`, `class_section_id`, `class_subject_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 6, 1, '2024-04-29 10:43:54', '2024-04-29 10:43:54'),
(2, 2, 1, NULL, 1, '2024-04-29 10:44:12', '2024-05-03 06:47:34'),
(3, 2, 2, NULL, 1, '2024-04-29 10:44:12', '2024-05-03 06:47:34'),
(4, 2, 3, NULL, 1, '2024-04-29 10:44:12', '2024-05-03 06:47:34'),
(5, 2, 4, NULL, 1, '2024-04-29 10:44:12', '2024-05-03 06:47:34'),
(6, 2, 5, NULL, 1, '2024-04-29 10:44:12', '2024-05-03 06:47:34');

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

--
-- Table structure for table `assignments`
--

CREATE TABLE `assignments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(128) NOT NULL,
  `instructions` varchar(1024) DEFAULT NULL,
  `due_date` datetime NOT NULL,
  `points` int(11) DEFAULT NULL,
  `resubmission` tinyint(1) NOT NULL DEFAULT 0,
  `extra_days_for_resubmission` int(11) DEFAULT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_by` bigint(20) UNSIGNED NOT NULL COMMENT 'teacher_user_id',
  `edited_by` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'teacher_user_id',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `assignment_submissions`
--

CREATE TABLE `assignment_submissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `assignment_id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `feedback` text DEFAULT NULL,
  `points` int(11) DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 = Pending/In Review , 1 = Accepted , 2 = Rejected , 3 = Resubmitted',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `attendances`
--

CREATE TABLE `attendances` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT '0=Absent, 1=Present',
  `date` date NOT NULL,
  `remark` varchar(512) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `attendances`
--

INSERT INTO `attendances` (`id`, `class_section_id`, `student_id`, `session_year_id`, `type`, `date`, `remark`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1, 44, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(2, 1, 46, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(3, 1, 14, 5, 0, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(4, 1, 22, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(5, 1, 16, 5, 0, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(6, 1, 36, 5, 0, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(7, 1, 26, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(8, 1, 8, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(9, 1, 38, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(10, 1, 40, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(11, 1, 30, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(12, 1, 34, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(13, 1, 42, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(14, 1, 24, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(15, 1, 32, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(16, 1, 18, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(17, 1, 12, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(18, 1, 20, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(19, 1, 10, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(20, 1, 28, 5, 1, '2024-05-01', '', 1, '2024-05-01 04:49:16', '2024-05-01 04:49:58'),
(21, 3, 98, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(22, 3, 112, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(23, 3, 124, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(24, 3, 120, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(25, 3, 100, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(26, 3, 114, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(27, 3, 126, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(28, 3, 90, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(29, 3, 110, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(30, 3, 108, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(31, 3, 92, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(32, 3, 102, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(33, 3, 94, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(34, 3, 118, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(35, 3, 96, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(36, 3, 104, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(37, 3, 88, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(38, 3, 106, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(39, 3, 122, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(40, 3, 116, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:10:05', '2024-05-03 06:10:05'),
(41, 3, 98, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(42, 3, 112, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(43, 3, 124, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(44, 3, 120, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(45, 3, 100, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(46, 3, 114, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(47, 3, 126, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(48, 3, 90, 5, 0, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(49, 3, 110, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(50, 3, 108, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(51, 3, 92, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(52, 3, 102, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(53, 3, 94, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(54, 3, 118, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(55, 3, 96, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(56, 3, 104, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(57, 3, 88, 5, 0, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(58, 3, 106, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(59, 3, 122, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(60, 3, 116, 5, 0, '2024-05-02', '', 1, '2024-05-03 06:10:14', '2024-05-03 06:10:14'),
(61, 3, 98, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(62, 3, 112, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(63, 3, 124, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(64, 3, 120, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(65, 3, 100, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(66, 3, 114, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(67, 3, 126, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(68, 3, 90, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(69, 3, 110, 5, 0, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(70, 3, 108, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(71, 3, 92, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(72, 3, 102, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(73, 3, 94, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(74, 3, 118, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(75, 3, 96, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(76, 3, 104, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(77, 3, 88, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(78, 3, 106, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(79, 3, 122, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(80, 3, 116, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:10:21', '2024-05-03 06:10:21'),
(81, 4, 133, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(82, 4, 135, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(83, 4, 137, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(84, 4, 139, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(85, 4, 141, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(86, 4, 143, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(87, 4, 145, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(88, 4, 147, 5, 0, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(89, 4, 149, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(90, 4, 151, 5, 1, '2024-05-01', '', 1, '2024-05-03 06:11:03', '2024-05-03 06:11:03'),
(91, 4, 133, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(92, 4, 135, 5, 0, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(93, 4, 137, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(94, 4, 139, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(95, 4, 141, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(96, 4, 143, 5, 0, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(97, 4, 145, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(98, 4, 147, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(99, 4, 149, 5, 0, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(100, 4, 151, 5, 1, '2024-05-02', '', 1, '2024-05-03 06:11:09', '2024-05-03 06:11:09'),
(101, 4, 133, 5, 0, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(102, 4, 135, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(103, 4, 137, 5, 0, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(104, 4, 139, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(105, 4, 141, 5, 0, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(106, 4, 143, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(107, 4, 145, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(108, 4, 147, 5, 0, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(109, 4, 149, 5, 1, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18'),
(110, 4, 151, 5, 0, '2024-05-03', '', 1, '2024-05-03 06:11:18', '2024-05-03 06:11:18');

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

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

CREATE TABLE `categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `classes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `include_semesters` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 - no 1 - yes',
  `medium_id` bigint(20) UNSIGNED NOT NULL,
  `shift_id` bigint(20) UNSIGNED DEFAULT NULL,
  `stream_id` bigint(20) UNSIGNED DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `classes` (`id`, `name`, `include_semesters`, `medium_id`, `shift_id`, `stream_id`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, '9', 0, 1, NULL, NULL, 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(2, '10', 0, 1, NULL, NULL, 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(3, '11', 0, 1, NULL, NULL, 1, '2024-05-03 07:24:06', '2024-05-03 07:24:06', NULL);

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

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

CREATE TABLE `class_sections` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_id` bigint(20) UNSIGNED NOT NULL,
  `section_id` bigint(20) UNSIGNED NOT NULL,
  `medium_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `class_sections` (`id`, `class_id`, `section_id`, `medium_id`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 1, 1, 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(2, 1, 2, 1, 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(3, 2, 1, 1, 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(4, 2, 2, 1, 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(5, 2, 3, 1, 1, '2024-04-29 09:05:46', '2024-05-06 09:05:33', '2024-05-06 09:05:33'),
(6, 3, 1, 1, 1, '2024-05-03 07:24:06', '2024-05-03 07:24:06', NULL),
(7, 3, 2, 1, 1, '2024-05-03 07:24:06', '2024-05-03 07:24:06', NULL);

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

--
-- Table structure for table `class_subjects`
--

CREATE TABLE `class_subjects` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_id` bigint(20) UNSIGNED NOT NULL,
  `subject_id` bigint(20) UNSIGNED NOT NULL,
  `type` varchar(32) NOT NULL COMMENT 'Compulsory / Elective',
  `elective_subject_group_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'if type=Elective',
  `semester_id` bigint(20) UNSIGNED DEFAULT NULL,
  `virtual_semester_id` int(11) GENERATED ALWAYS AS (case when `semester_id` is not null then `semester_id` else 0 end) VIRTUAL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `class_subjects`
--

INSERT INTO `class_subjects` (`id`, `class_id`, `subject_id`, `type`, `elective_subject_group_id`, `semester_id`, `school_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 2, 1, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:09:43', '2024-04-29 09:09:43'),
(2, 2, 2, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:09:43', '2024-04-29 09:09:43'),
(3, 2, 3, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:09:43', '2024-04-29 09:09:43'),
(4, 2, 5, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:09:43', '2024-04-29 09:09:43'),
(5, 2, 6, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:09:43', '2024-04-29 09:09:43'),
(6, 1, 1, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:10:00', '2024-04-29 09:10:00'),
(7, 1, 2, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:10:00', '2024-04-29 09:10:00'),
(8, 1, 3, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:10:00', '2024-04-29 09:10:00'),
(9, 1, 4, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:10:00', '2024-04-29 09:10:00'),
(10, 1, 6, 'Compulsory', NULL, NULL, 1, NULL, '2024-04-29 09:10:00', '2024-04-29 09:10:00'),
(11, 3, 1, 'Compulsory', NULL, NULL, 1, NULL, '2024-05-03 07:24:26', '2024-05-03 07:24:26'),
(12, 3, 2, 'Compulsory', NULL, NULL, 1, NULL, '2024-05-03 07:24:26', '2024-05-03 07:24:26'),
(13, 3, 3, 'Compulsory', NULL, NULL, 1, NULL, '2024-05-03 07:24:26', '2024-05-03 07:24:26'),
(14, 3, 4, 'Compulsory', NULL, NULL, 1, NULL, '2024-05-03 07:24:26', '2024-05-03 07:24:26'),
(15, 3, 5, 'Compulsory', NULL, NULL, 1, NULL, '2024-05-03 07:24:26', '2024-05-03 07:24:26');

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

--
-- Table structure for table `class_teachers`
--

CREATE TABLE `class_teachers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `teacher_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `class_teachers`
--

INSERT INTO `class_teachers` (`id`, `class_section_id`, `teacher_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1, 127, 1, '2024-04-29 09:10:26', '2024-04-29 09:10:26'),
(2, 3, 128, 1, '2024-05-06 08:54:48', '2024-05-06 08:54:48'),
(3, 2, 130, 1, '2024-05-02 11:06:30', '2024-05-02 11:06:30'),
(5, 4, 129, 1, '2024-05-06 08:55:11', '2024-05-06 08:55:11');

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

--
-- Table structure for table `compulsory_fees`
--

CREATE TABLE `compulsory_fees` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `payment_transaction_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` enum('Full Payment','Installment Payment') NOT NULL,
  `installment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `mode` enum('Cash','Cheque','Online') NOT NULL,
  `cheque_no` varchar(191) DEFAULT NULL,
  `amount` double(8,2) NOT NULL,
  `due_charges` double(8,2) DEFAULT NULL,
  `fees_paid_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` enum('Success','Pending','Failed') NOT NULL,
  `date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `compulsory_fees`
--

INSERT INTO `compulsory_fees` (`id`, `student_id`, `payment_transaction_id`, `type`, `installment_id`, `mode`, `cheque_no`, `amount`, `due_charges`, `fees_paid_id`, `status`, `date`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 86, NULL, 'Full Payment', NULL, 'Cash', NULL, 17000.00, NULL, 1, 'Success', '2024-04-29', 1, '2024-04-29 09:46:23', '2024-04-29 09:46:23', NULL),
(2, 84, NULL, 'Full Payment', NULL, 'Cheque', '123', 17000.00, NULL, 2, 'Success', '2024-05-01', 1, '2024-05-01 03:50:19', '2024-05-01 03:50:19', NULL),
(8, 86, NULL, 'Installment Payment', 1, 'Cash', NULL, 2833.33, 0.00, 6, 'Success', '2024-05-06', 1, '2024-05-06 06:57:24', '2024-05-06 06:57:45', NULL),
(9, 86, NULL, 'Installment Payment', 2, 'Cash', NULL, 3083.34, 0.00, 6, 'Success', '2024-05-06', 1, '2024-05-06 06:58:49', '2024-05-06 06:59:38', NULL),
(10, 86, NULL, 'Installment Payment', 3, 'Cash', NULL, 1083.33, 0.00, 6, 'Success', '2024-05-06', 1, '2024-05-06 06:59:58', '2024-05-06 06:59:58', NULL);

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

--
-- Table structure for table `elective_subject_groups`
--

CREATE TABLE `elective_subject_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `total_subjects` int(11) NOT NULL,
  `total_selectable_subjects` int(11) NOT NULL,
  `class_id` bigint(20) UNSIGNED NOT NULL,
  `semester_id` bigint(20) UNSIGNED DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `exams` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(128) NOT NULL,
  `description` varchar(1024) DEFAULT NULL,
  `class_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `publish` tinyint(4) NOT NULL DEFAULT 0,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exams`
--

INSERT INTO `exams` (`id`, `name`, `description`, `class_id`, `session_year_id`, `start_date`, `end_date`, `publish`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Exam - 1', NULL, 1, 1, '2024-04-01', '2024-04-02', 1, 1, '2024-04-29 09:18:38', '2024-04-29 09:21:51', NULL),
(2, 'Mid Term - 1', NULL, 1, 5, '2024-04-29', '2024-04-30', 0, 1, '2024-05-01 04:56:20', '2024-05-01 04:57:42', NULL),
(3, 'Mid Term - 1', NULL, 2, 5, '2024-04-29', '2024-04-30', 0, 1, '2024-05-01 04:56:20', '2024-05-01 04:57:00', NULL);

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

--
-- Table structure for table `exam_marks`
--

CREATE TABLE `exam_marks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `exam_timetable_id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `obtained_marks` double(8,2) NOT NULL,
  `teacher_review` varchar(1024) DEFAULT NULL,
  `passing_status` tinyint(1) NOT NULL COMMENT '1=Pass, 0=Fail',
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `grade` tinytext DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exam_marks`
--

INSERT INTO `exam_marks` (`id`, `exam_timetable_id`, `student_id`, `class_subject_id`, `obtained_marks`, `teacher_review`, `passing_status`, `session_year_id`, `grade`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 46, 6, 50.00, NULL, 1, 1, 'O', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(2, 1, 44, 6, 25.00, NULL, 1, 1, 'B', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(3, 1, 42, 6, 36.00, NULL, 1, 1, 'A', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(4, 1, 40, 6, 20.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(5, 1, 38, 6, 15.00, NULL, 0, 1, 'F', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(6, 1, 36, 6, 25.00, NULL, 1, 1, 'B', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(7, 1, 34, 6, 22.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(8, 1, 32, 6, 23.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(9, 1, 30, 6, 36.00, NULL, 1, 1, 'A', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(10, 1, 28, 6, 40.00, NULL, 1, 1, 'A+', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(11, 1, 26, 6, 20.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(12, 1, 24, 6, 23.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(13, 1, 22, 6, 25.00, NULL, 1, 1, 'B', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(14, 1, 20, 6, 50.00, NULL, 1, 1, 'O', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(15, 1, 18, 6, 36.00, NULL, 1, 1, 'A', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(16, 1, 16, 6, 32.00, NULL, 1, 1, 'B+', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(17, 1, 14, 6, 36.00, NULL, 1, 1, 'A', 1, '2024-04-29 09:21:05', '2024-04-29 09:21:05', NULL),
(18, 1, 12, 6, 32.00, NULL, 1, 1, 'B+', 1, '2024-04-29 09:21:06', '2024-04-29 09:21:06', NULL),
(19, 1, 10, 6, 11.00, NULL, 0, 1, 'F', 1, '2024-04-29 09:21:06', '2024-04-29 09:21:06', NULL),
(20, 1, 8, 6, 20.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:06', '2024-04-29 09:21:06', NULL),
(21, 2, 46, 7, 45.00, NULL, 1, 1, 'O', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(22, 2, 44, 7, 20.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(23, 2, 42, 7, 25.00, NULL, 1, 1, 'B', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(24, 2, 40, 7, 21.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(25, 2, 38, 7, 22.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(26, 2, 36, 7, 12.00, NULL, 0, 1, 'F', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(27, 2, 34, 7, 20.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(28, 2, 32, 7, 23.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(29, 2, 30, 7, 35.00, NULL, 1, 1, 'A', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(30, 2, 28, 7, 21.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(31, 2, 26, 7, 40.00, NULL, 1, 1, 'A+', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(32, 2, 24, 7, 23.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(33, 2, 22, 7, 25.00, NULL, 1, 1, 'B', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(34, 2, 20, 7, 39.00, NULL, 1, 1, 'A', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(35, 2, 18, 7, 23.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(36, 2, 16, 7, 25.00, NULL, 1, 1, 'B', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(37, 2, 14, 7, 21.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(38, 2, 12, 7, 20.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:45', '2024-04-29 09:21:45', NULL),
(39, 2, 10, 7, 23.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:46', '2024-04-29 09:21:46', NULL),
(40, 2, 8, 7, 22.00, NULL, 1, 1, 'C', 1, '2024-04-29 09:21:46', '2024-04-29 09:21:46', NULL),
(41, 5, 46, 6, 50.00, NULL, 1, 5, 'O', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(42, 5, 44, 6, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(43, 5, 42, 6, 25.00, NULL, 1, 5, 'B', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(44, 5, 40, 6, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(45, 5, 38, 6, 30.00, NULL, 1, 5, 'B+', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(46, 5, 36, 6, 31.00, NULL, 1, 5, 'B+', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(47, 5, 34, 6, 25.00, NULL, 1, 5, 'B', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(48, 5, 32, 6, 21.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(49, 5, 30, 6, 15.00, NULL, 0, 5, 'F', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(50, 5, 28, 6, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(51, 5, 26, 6, 25.00, NULL, 1, 5, 'B', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(52, 5, 24, 6, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(53, 5, 22, 6, 35.00, NULL, 1, 5, 'A', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(54, 5, 20, 6, 40.00, NULL, 1, 5, 'A+', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(55, 5, 18, 6, 32.00, NULL, 1, 5, 'B+', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(56, 5, 16, 6, 22.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(57, 5, 14, 6, 25.00, NULL, 1, 5, 'B', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(58, 5, 12, 6, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(59, 5, 10, 6, 25.00, NULL, 1, 5, 'B', 1, '2024-05-02 09:20:47', '2024-05-02 09:20:47', NULL),
(60, 5, 8, 6, 15.00, NULL, 0, 5, 'F', 1, '2024-05-02 09:20:47', '2024-05-03 04:03:37', NULL),
(61, 6, 46, 10, 46.00, NULL, 1, 5, 'O', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(62, 6, 44, 10, 40.00, NULL, 1, 5, 'A+', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(63, 6, 42, 10, 22.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(64, 6, 40, 10, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(65, 6, 38, 10, 21.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(66, 6, 36, 10, 35.00, NULL, 1, 5, 'A', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(67, 6, 34, 10, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(68, 6, 32, 10, 24.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(69, 6, 30, 10, 38.00, NULL, 1, 5, 'A', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(70, 6, 28, 10, 36.00, NULL, 1, 5, 'A', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(71, 6, 26, 10, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(72, 6, 24, 10, 21.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(73, 6, 22, 10, 12.00, NULL, 0, 5, 'F', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(74, 6, 20, 10, 25.00, NULL, 1, 5, 'B', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(75, 6, 18, 10, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(76, 6, 16, 10, 36.00, NULL, 1, 5, 'A', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(77, 6, 14, 10, 20.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(78, 6, 12, 10, 25.00, NULL, 1, 5, 'B', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(79, 6, 10, 10, 22.00, NULL, 1, 5, 'C', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(80, 6, 8, 10, 12.00, NULL, 0, 5, 'F', 1, '2024-05-02 09:21:13', '2024-05-02 09:21:13', NULL),
(81, 3, 126, 5, 50.00, NULL, 1, 5, 'O', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(82, 3, 124, 5, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(83, 3, 122, 5, 30.00, NULL, 1, 5, 'B+', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(84, 3, 120, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(85, 3, 118, 5, 12.00, NULL, 0, 5, 'F', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(86, 3, 116, 5, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(87, 3, 114, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(88, 3, 112, 5, 23.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(89, 3, 110, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(90, 3, 108, 5, 22.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(91, 3, 106, 5, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(92, 3, 104, 5, 21.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(93, 3, 102, 5, 15.00, NULL, 0, 5, 'F', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(94, 3, 100, 5, 10.00, NULL, 0, 5, 'F', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(95, 3, 98, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(96, 3, 96, 5, 23.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(97, 3, 94, 5, 33.00, NULL, 1, 5, 'B+', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(98, 3, 92, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(99, 3, 90, 5, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(100, 3, 88, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 08:59:53', '2024-05-06 08:59:53', NULL),
(101, 4, 126, 1, 50.00, NULL, 1, 5, 'O', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(102, 4, 124, 1, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(103, 4, 122, 1, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(104, 4, 120, 1, 12.00, NULL, 0, 5, 'F', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(105, 4, 118, 1, 22.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(106, 4, 116, 1, 32.00, NULL, 1, 5, 'B+', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(107, 4, 114, 1, 11.00, NULL, 0, 5, 'F', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(108, 4, 112, 1, 14.00, NULL, 0, 5, 'F', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(109, 4, 110, 1, 15.00, NULL, 0, 5, 'F', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(110, 4, 108, 1, 36.00, NULL, 1, 5, 'A', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(111, 4, 106, 1, 39.00, NULL, 1, 5, 'A', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(112, 4, 104, 1, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(113, 4, 102, 1, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(114, 4, 100, 1, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(115, 4, 98, 1, 30.00, NULL, 1, 5, 'B+', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(116, 4, 96, 1, 39.00, NULL, 1, 5, 'A', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(117, 4, 94, 1, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(118, 4, 92, 1, 35.00, NULL, 1, 5, 'A', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(119, 4, 90, 1, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(120, 4, 88, 1, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:00:24', '2024-05-06 09:00:24', NULL),
(121, 3, 151, 5, 39.00, NULL, 1, 5, 'A', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(122, 3, 149, 5, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(123, 3, 147, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(124, 3, 145, 5, 22.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(125, 3, 143, 5, 2.00, NULL, 0, 5, 'F', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(126, 3, 141, 5, 12.00, NULL, 0, 5, 'F', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(127, 3, 139, 5, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(128, 3, 137, 5, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(129, 3, 135, 5, 33.00, NULL, 1, 5, 'B+', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(130, 3, 133, 5, 35.00, NULL, 1, 5, 'A', 1, '2024-05-06 09:01:58', '2024-05-06 09:01:58', NULL),
(131, 4, 151, 1, 38.00, NULL, 1, 5, 'A', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(132, 4, 149, 1, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(133, 4, 147, 1, 20.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(134, 4, 145, 1, 23.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(135, 4, 143, 1, 32.00, NULL, 1, 5, 'B+', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(136, 4, 141, 1, 22.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(137, 4, 139, 1, 25.00, NULL, 1, 5, 'B', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(138, 4, 137, 1, 23.00, NULL, 1, 5, 'C', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(139, 4, 135, 1, 32.00, NULL, 1, 5, 'B+', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL),
(140, 4, 133, 1, 15.00, NULL, 0, 5, 'F', 1, '2024-05-06 09:02:15', '2024-05-06 09:02:15', NULL);

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

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

CREATE TABLE `exam_results` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `exam_id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `total_marks` int(11) NOT NULL,
  `obtained_marks` double(8,2) NOT NULL,
  `percentage` double(8,2) NOT NULL,
  `grade` tinytext NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '0 -> Failed, 1 -> Pass',
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exam_results`
--

INSERT INTO `exam_results` (`id`, `exam_id`, `class_section_id`, `student_id`, `total_marks`, `obtained_marks`, `percentage`, `grade`, `status`, `session_year_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 36, 100, 37.00, 37.00, 'F', 0, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(2, 1, 1, 10, 100, 34.00, 34.00, 'F', 0, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(3, 1, 1, 22, 100, 50.00, 50.00, 'B', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(4, 1, 1, 34, 100, 42.00, 42.00, 'C', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(5, 1, 1, 8, 100, 42.00, 42.00, 'C', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(6, 1, 1, 46, 100, 95.00, 95.00, 'O', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(7, 1, 1, 20, 100, 89.00, 89.00, 'A+', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(8, 1, 1, 32, 100, 46.00, 46.00, 'C', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(9, 1, 1, 44, 100, 45.00, 45.00, 'C', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(10, 1, 1, 18, 100, 59.00, 59.00, 'B', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(11, 1, 1, 30, 100, 71.00, 71.00, 'A', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(12, 1, 1, 42, 100, 61.00, 61.00, 'B+', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(13, 1, 1, 16, 100, 57.00, 57.00, 'B', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(14, 1, 1, 28, 100, 61.00, 61.00, 'B+', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(15, 1, 1, 40, 100, 41.00, 41.00, 'C', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(16, 1, 1, 14, 100, 57.00, 57.00, 'B', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(17, 1, 1, 26, 100, 60.00, 60.00, 'B+', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(18, 1, 1, 38, 100, 37.00, 37.00, 'F', 0, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(19, 1, 1, 12, 100, 52.00, 52.00, 'B', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51'),
(20, 1, 1, 24, 100, 46.00, 46.00, 'C', 1, 1, 1, '2024-04-29 09:21:51', '2024-04-29 09:21:51');

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

--
-- Table structure for table `exam_timetables`
--

CREATE TABLE `exam_timetables` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `exam_id` bigint(20) UNSIGNED NOT NULL,
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `total_marks` double(8,2) NOT NULL,
  `passing_marks` double(8,2) NOT NULL,
  `date` date NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exam_timetables`
--

INSERT INTO `exam_timetables` (`id`, `exam_id`, `class_subject_id`, `total_marks`, `passing_marks`, `date`, `start_time`, `end_time`, `session_year_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1, 6, 50.00, 20.00, '2024-04-01', '10:00:00', '12:00:00', 1, 1, '2024-04-29 09:18:58', '2024-04-29 09:18:58'),
(2, 1, 7, 50.00, 20.00, '2024-04-02', '10:00:00', '12:00:00', 1, 1, '2024-04-29 09:18:58', '2024-04-29 09:18:58'),
(3, 3, 5, 50.00, 20.00, '2024-04-29', '10:00:00', '12:00:00', 5, 1, '2024-05-01 04:57:00', '2024-05-01 04:57:00'),
(4, 3, 1, 50.00, 20.00, '2024-04-30', '10:00:00', '12:00:00', 5, 1, '2024-05-01 04:57:00', '2024-05-01 05:01:24'),
(5, 2, 6, 50.00, 20.00, '2024-04-29', '10:00:00', '12:00:00', 5, 1, '2024-05-01 04:57:42', '2024-05-01 04:57:42'),
(6, 2, 10, 50.00, 20.00, '2024-04-30', '10:00:00', '12:00:00', 5, 1, '2024-05-01 04:57:42', '2024-05-01 04:57:42');

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

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

CREATE TABLE `expenses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ref_no` varchar(191) DEFAULT NULL,
  `staff_id` bigint(20) UNSIGNED DEFAULT NULL,
  `basic_salary` bigint(20) NOT NULL DEFAULT 0,
  `paid_leaves` double(8,2) NOT NULL DEFAULT 0.00,
  `month` bigint(20) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `title` varchar(512) NOT NULL,
  `description` varchar(191) DEFAULT NULL,
  `amount` double(64,2) NOT NULL,
  `date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `expenses`
--

INSERT INTO `expenses` (`id`, `category_id`, `ref_no`, `staff_id`, `basic_salary`, `paid_leaves`, `month`, `year`, `title`, `description`, `amount`, `date`, `school_id`, `session_year_id`, `created_at`, `updated_at`) VALUES
(1, NULL, NULL, 2, 25000, 0.00, 1, 2024, 'January - 2024', 'Salary', 25000.00, '2024-01-31', 1, 1, '2024-04-29 09:11:18', '2024-04-29 09:11:18'),
(2, NULL, NULL, 3, 25000, 0.00, 1, 2024, 'January - 2024', 'Salary', 25000.00, '2024-01-31', 1, 1, '2024-04-29 09:11:18', '2024-04-29 09:11:18'),
(3, NULL, NULL, 4, 25000, 0.00, 1, 2024, 'January - 2024', 'Salary', 25000.00, '2024-01-31', 1, 1, '2024-04-29 09:11:18', '2024-04-29 09:11:18'),
(4, NULL, NULL, 5, 15000, 0.00, 1, 2024, 'January - 2024', 'Salary', 15000.00, '2024-01-31', 1, 1, '2024-04-29 09:11:18', '2024-04-29 09:11:18'),
(5, NULL, NULL, 5, 15000, 1.50, 2, 2024, 'February - 2024', 'Salary', 15000.00, '2024-02-29', 1, 1, '2024-04-29 10:41:57', '2024-04-29 10:41:57'),
(6, NULL, NULL, 4, 25000, 1.50, 2, 2024, 'February - 2024', 'Salary', 26000.00, '2024-02-29', 1, 1, '2024-04-29 10:41:57', '2024-04-30 04:46:32'),
(7, NULL, NULL, 3, 25000, 1.50, 2, 2024, 'February - 2024', 'Salary', 25000.00, '2024-02-29', 1, 1, '2024-04-29 10:41:57', '2024-04-30 04:46:32'),
(8, NULL, NULL, 2, 25000, 1.50, 2, 2024, 'February - 2024', 'Salary', 24000.00, '2024-02-29', 1, 1, '2024-04-29 10:41:57', '2024-04-30 04:46:32'),
(9, NULL, NULL, 5, 15000, 1.50, 3, 2024, 'March - 2024', 'Salary', 15000.00, '2024-03-31', 1, 1, '2024-04-30 04:12:07', '2024-04-30 04:12:07'),
(10, NULL, NULL, 6, 15000, 1.50, 3, 2024, 'March - 2024', 'Salary', 16000.00, '2024-03-31', 1, 1, '2024-04-30 04:12:07', '2024-04-30 04:13:12'),
(11, NULL, NULL, 4, 25000, 1.50, 3, 2024, 'March - 2024', 'Salary', 25000.00, '2024-03-31', 1, 1, '2024-04-30 04:12:07', '2024-04-30 04:12:07'),
(12, NULL, NULL, 3, 25000, 1.50, 3, 2024, 'March - 2024', 'Salary', 25000.00, '2024-03-31', 1, 1, '2024-04-30 04:12:07', '2024-04-30 04:12:07'),
(13, NULL, NULL, 2, 25000, 1.50, 3, 2024, 'March - 2024', 'Salary', 25000.00, '2024-03-31', 1, 1, '2024-04-30 04:12:07', '2024-04-30 04:12:07');

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

--
-- Table structure for table `expense_categories`
--

CREATE TABLE `expense_categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` varchar(191) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `extra_student_datas`
--

CREATE TABLE `extra_student_datas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `form_field_id` bigint(20) UNSIGNED NOT NULL,
  `data` text DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(191) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `faqs`
--

CREATE TABLE `faqs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) NOT NULL,
  `description` text NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `features`
--

CREATE TABLE `features` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `is_default` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 => No, 1 => Yes',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `features`
--

INSERT INTO `features` (`id`, `name`, `is_default`, `created_at`, `updated_at`) VALUES
(1, 'Student Management', 1, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(2, 'Academics Management', 1, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(3, 'Slider Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(4, 'Teacher Management', 1, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(5, 'Session Year Management', 1, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(6, 'Holiday Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(7, 'Timetable Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(8, 'Attendance Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(9, 'Exam Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(10, 'Lesson Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(11, 'Assignment Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(12, 'Announcement Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(13, 'Staff Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(14, 'Expense Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(15, 'Staff Leave Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(16, 'Fees Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(17, 'School Gallery Management', 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40');

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

--
-- Table structure for table `feature_sections`
--

CREATE TABLE `feature_sections` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) NOT NULL,
  `heading` varchar(191) DEFAULT NULL,
  `rank` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `feature_section_lists`
--

CREATE TABLE `feature_section_lists` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `feature_section_id` bigint(20) UNSIGNED NOT NULL,
  `feature` varchar(191) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `image` varchar(191) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `fees`
--

CREATE TABLE `fees` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `due_date` date NOT NULL,
  `due_charges` double(8,2) NOT NULL COMMENT 'in percentage (%)',
  `due_charges_amount` double(8,2) NOT NULL,
  `class_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fees`
--

INSERT INTO `fees` (`id`, `name`, `due_date`, `due_charges`, `due_charges_amount`, `class_id`, `school_id`, `session_year_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Admission Fees - 9 - English', '2024-04-30', 5.00, 850.00, 1, 1, 1, '2024-04-29 09:46:02', '2024-04-29 09:46:02', NULL),
(2, 'Admission Fees - 10 - English', '2024-04-30', 5.00, 850.00, 2, 1, 1, '2024-04-29 09:46:02', '2024-04-29 09:46:02', NULL),
(4, 'Test - 9 - English', '2024-05-31', 4.00, 280.00, 1, 1, 5, '2024-05-06 06:10:26', '2024-05-06 06:10:26', NULL);

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

--
-- Table structure for table `fees_advance`
--

CREATE TABLE `fees_advance` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `compulsory_fee_id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `parent_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `amount` double(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fees_advance`
--

INSERT INTO `fees_advance` (`id`, `compulsory_fee_id`, `student_id`, `parent_id`, `amount`, `created_at`, `updated_at`) VALUES
(3, 8, 86, 85, 500.00, '2024-05-06 06:57:45', '2024-05-06 06:57:45'),
(4, 9, 86, 85, 1000.00, '2024-05-06 06:59:38', '2024-05-06 06:59:38');

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

--
-- Table structure for table `fees_class_types`
--

CREATE TABLE `fees_class_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_id` bigint(20) UNSIGNED NOT NULL,
  `fees_id` bigint(20) UNSIGNED NOT NULL,
  `fees_type_id` bigint(20) UNSIGNED NOT NULL,
  `amount` double(64,2) NOT NULL,
  `optional` tinyint(1) NOT NULL COMMENT '0 - No, 1 - Yes',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fees_class_types`
--

INSERT INTO `fees_class_types` (`id`, `class_id`, `fees_id`, `fees_type_id`, `amount`, `optional`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 8000.00, 0, 1, '2024-04-29 09:46:02', '2024-04-29 09:46:02'),
(2, 1, 1, 2, 5000.00, 0, 1, '2024-04-29 09:46:02', '2024-04-29 09:46:02'),
(3, 1, 1, 3, 2000.00, 0, 1, '2024-04-29 09:46:02', '2024-04-29 09:46:02'),
(4, 1, 1, 4, 500.00, 0, 1, '2024-04-29 09:46:02', '2024-04-29 09:46:02'),
(5, 1, 1, 5, 1500.00, 0, 1, '2024-04-29 09:46:02', '2024-04-29 09:46:02'),
(6, 2, 2, 1, 8000.00, 0, 1, '2024-04-29 09:46:03', '2024-04-29 09:46:03'),
(7, 2, 2, 2, 5000.00, 0, 1, '2024-04-29 09:46:03', '2024-04-29 09:46:03'),
(8, 2, 2, 3, 2000.00, 0, 1, '2024-04-29 09:46:03', '2024-04-29 09:46:03'),
(9, 2, 2, 4, 500.00, 0, 1, '2024-04-29 09:46:03', '2024-04-29 09:46:03'),
(10, 2, 2, 5, 1500.00, 0, 1, '2024-04-29 09:46:03', '2024-04-29 09:46:03'),
(12, 1, 4, 1, 5000.00, 0, 1, '2024-05-06 06:10:26', '2024-05-06 06:57:04'),
(13, 1, 4, 2, 2000.00, 0, 1, '2024-05-06 06:10:26', '2024-05-06 06:57:04'),
(14, 1, 4, 5, 2000.00, 1, 1, '2024-05-06 06:10:26', '2024-05-06 06:57:04'),
(15, 1, 4, 4, 500.00, 1, 1, '2024-05-06 06:10:26', '2024-05-06 06:57:04');

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

--
-- Table structure for table `fees_installments`
--

CREATE TABLE `fees_installments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `due_date` date NOT NULL,
  `due_charges_type` enum('fixed','percentage') NOT NULL DEFAULT 'percentage',
  `due_charges` int(11) NOT NULL,
  `fees_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fees_installments`
--

INSERT INTO `fees_installments` (`id`, `name`, `due_date`, `due_charges_type`, `due_charges`, `fees_id`, `session_year_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, '1st', '2024-05-15', 'percentage', 5, 4, 5, 1, '2024-05-06 06:39:14', '2024-05-06 06:57:04'),
(2, '2nd', '2024-05-20', 'percentage', 5, 4, 5, 1, '2024-05-06 06:39:14', '2024-05-06 06:57:04'),
(3, '3rd', '2024-05-30', 'percentage', 5, 4, 5, 1, '2024-05-06 06:57:04', '2024-05-06 06:57:04');

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

--
-- Table structure for table `fees_paids`
--

CREATE TABLE `fees_paids` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fees_id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `is_fully_paid` tinyint(1) NOT NULL COMMENT '0 - No, 1 - Yes',
  `is_used_installment` tinyint(1) NOT NULL COMMENT '0 - No, 1 - Yes',
  `amount` double(8,2) NOT NULL,
  `date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fees_paids`
--

INSERT INTO `fees_paids` (`id`, `fees_id`, `student_id`, `is_fully_paid`, `is_used_installment`, `amount`, `date`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 86, 1, 0, 17000.00, '2024-04-29', 1, '2024-04-29 09:46:23', '2024-04-29 09:46:23', NULL),
(2, 1, 84, 1, 0, 17000.00, '2024-05-01', 1, '2024-05-01 03:50:19', '2024-05-01 03:50:19', NULL),
(6, 4, 86, 1, 1, 7499.99, '2024-05-06', 1, '2024-05-06 06:57:24', '2024-05-06 06:59:58', NULL);

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

--
-- Table structure for table `fees_types`
--

CREATE TABLE `fees_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `description` varchar(191) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fees_types`
--

INSERT INTO `fees_types` (`id`, `name`, `description`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Admission', NULL, 1, '2024-04-29 09:44:56', '2024-04-29 09:44:56', NULL),
(2, 'Class', NULL, 1, '2024-04-29 09:45:00', '2024-04-29 09:45:00', NULL),
(3, 'Tuition', NULL, 1, '2024-04-29 09:45:04', '2024-04-29 09:45:04', NULL),
(4, 'Exam', NULL, 1, '2024-04-29 09:45:06', '2024-04-29 09:45:06', NULL),
(5, 'Uniform', NULL, 1, '2024-04-29 09:45:14', '2024-04-29 09:45:14', NULL);

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

--
-- Table structure for table `files`
--

CREATE TABLE `files` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `modal_type` varchar(191) NOT NULL,
  `modal_id` bigint(20) UNSIGNED NOT NULL,
  `file_name` varchar(1024) DEFAULT NULL,
  `file_thumbnail` varchar(1024) DEFAULT NULL,
  `type` tinytext NOT NULL COMMENT '1 = File Upload, 2 = Youtube Link, 3 = Video Upload, 4 = Other Link',
  `file_url` varchar(1024) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `files`
--

INSERT INTO `files` (`id`, `modal_type`, `modal_id`, `file_name`, `file_thumbnail`, `type`, `file_url`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(2, 'App\\Models\\Gallery', 1, 'html', NULL, '1', 'files/6631edb1974f12.272100081714548145.png', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(3, 'App\\Models\\Gallery', 1, 'javascript_intro', NULL, '1', 'files/6631edb19a2969.614675931714548145.jpeg', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(4, 'App\\Models\\Gallery', 1, 'css', NULL, '1', 'files/6631edb19aa122.401785851714548145.png', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(5, 'App\\Models\\Gallery', 1, 'laravel', NULL, '1', 'files/6631edb19b89d1.569375141714548145.png', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(6, 'App\\Models\\Gallery', 1, 'laravel-2', NULL, '1', 'files/6631edb19c9667.160960801714548145.png', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(7, 'App\\Models\\Gallery', 1, 'laravel-1', NULL, '1', 'files/6631edb19dc1b3.147272611714548145.jpeg', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(8, 'App\\Models\\Gallery', 1, 'php', NULL, '1', 'files/6631edb19e2aa5.384440851714548145.png', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(9, 'App\\Models\\Gallery', 1, 'php-mysql', NULL, '1', 'files/6631edb19fb470.588744461714548145.png', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(10, 'App\\Models\\Gallery', 1, 'php-1', NULL, '1', 'files/6631edb1a0d720.013927661714548145.png', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(11, 'App\\Models\\Gallery', 1, 'html_intro', NULL, '1', 'files/6631edb1a1efe4.924111981714548145.jpeg', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(12, 'App\\Models\\Gallery', 1, 'YouTube Link', NULL, '2', 'https://www.youtube.com/watch?v=eUNWzJUvkCA&pp=ygUHbGFyYXZlbA%3D%3D', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL),
(13, 'App\\Models\\Gallery', 1, 'YouTube Link', NULL, '2', 'https://www.youtube.com/watch?v=jG5TlWtnG3A&pp=ygUHbGFyYXZlbA%3D%3D', 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25', NULL);

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

--
-- Table structure for table `form_fields`
--

CREATE TABLE `form_fields` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(128) NOT NULL,
  `type` varchar(128) NOT NULL COMMENT 'text,number,textarea,dropdown,checkbox,radio,fileupload',
  `is_required` tinyint(1) NOT NULL DEFAULT 0,
  `default_values` text DEFAULT NULL COMMENT 'values of radio,checkbox,dropdown,etc',
  `other` text DEFAULT NULL COMMENT 'extra HTML attributes',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `rank` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `galleries`
--

CREATE TABLE `galleries` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) NOT NULL,
  `description` varchar(191) DEFAULT NULL,
  `thumbnail` varchar(191) DEFAULT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `galleries`
--

INSERT INTO `galleries` (`id`, `title`, `description`, `thumbnail`, `session_year_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 'Test', NULL, 'gallery/hM9doqUvQrfgBWtEc88Fi9rbt48ETa25GcLpZuYm.png', 5, 1, '2024-05-01 07:22:25', '2024-05-01 07:22:25');

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

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

CREATE TABLE `grades` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `starting_range` double(8,2) NOT NULL,
  `ending_range` double(8,2) NOT NULL,
  `grade` tinytext NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `grades`
--

INSERT INTO `grades` (`id`, `starting_range`, `ending_range`, `grade`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 0.00, 39.00, 'F', 1, '2024-04-29 09:21:02', '2024-04-29 09:21:02'),
(2, 39.01, 49.00, 'C', 1, '2024-04-29 09:21:02', '2024-04-29 09:21:02'),
(3, 49.01, 59.00, 'B', 1, '2024-04-29 09:21:02', '2024-04-29 09:21:02'),
(4, 59.01, 69.00, 'B+', 1, '2024-04-29 09:21:02', '2024-04-29 09:21:02'),
(5, 69.01, 79.00, 'A', 1, '2024-04-29 09:21:02', '2024-04-29 09:21:02'),
(6, 79.01, 89.00, 'A+', 1, '2024-04-29 09:21:02', '2024-04-29 09:21:02'),
(7, 89.01, 100.00, 'O', 1, '2024-04-29 09:21:02', '2024-04-29 09:21:02');

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

--
-- Table structure for table `guidances`
--

CREATE TABLE `guidances` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `link` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `holidays`
--

CREATE TABLE `holidays` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `title` varchar(128) NOT NULL,
  `description` varchar(1024) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `languages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `code` varchar(64) NOT NULL,
  `file` varchar(512) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=>active',
  `is_rtl` tinyint(4) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `languages` (`id`, `name`, `code`, `file`, `status`, `is_rtl`, `created_at`, `updated_at`) VALUES
(1, 'English', 'en', 'en.json', 1, 0, '2024-04-29 09:04:40', '2024-04-29 09:04:40'),
(2, 'ENG RTL', 'EN RTL', 'EN RTL.json', 0, 1, '2024-05-01 05:36:54', '2024-05-01 05:37:13');

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

--
-- Table structure for table `leaves`
--

CREATE TABLE `leaves` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `reason` varchar(191) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '0 => Pending, 1 => Approved, 2 => Rejected',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `leave_master_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leaves`
--

INSERT INTO `leaves` (`id`, `user_id`, `reason`, `from_date`, `to_date`, `status`, `school_id`, `leave_master_id`, `created_at`, `updated_at`) VALUES
(1, 127, 'A', '2024-02-29', '2024-03-01', 1, 1, 1, '2024-04-29 10:22:29', '2024-04-29 10:23:15');

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

--
-- Table structure for table `leave_details`
--

CREATE TABLE `leave_details` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `leave_id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `type` varchar(191) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leave_details`
--

INSERT INTO `leave_details` (`id`, `leave_id`, `date`, `type`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2024-02-29', 'First Half', 1, '2024-04-29 10:22:29', '2024-04-29 10:22:29'),
(2, 1, '2024-03-01', 'Full', 1, '2024-04-29 10:22:29', '2024-04-29 10:22:29');

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

--
-- Table structure for table `leave_masters`
--

CREATE TABLE `leave_masters` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `leaves` double(8,2) NOT NULL COMMENT 'Leaves per month',
  `holiday` varchar(191) NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `leave_masters`
--

INSERT INTO `leave_masters` (`id`, `leaves`, `holiday`, `session_year_id`, `school_id`, `created_at`, `updated_at`) VALUES
(1, 1.50, 'Sunday', 1, 1, '2024-04-29 10:22:14', '2024-04-29 10:22:14'),
(2, 1.50, 'Sunday', 5, 1, '2024-05-03 09:27:01', '2024-05-03 09:27:01');

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

--
-- Table structure for table `lessons`
--

CREATE TABLE `lessons` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `description` varchar(1024) DEFAULT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `lesson_topics`
--

CREATE TABLE `lesson_topics` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `lesson_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(128) NOT NULL,
  `description` varchar(1024) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `mediums`
--

CREATE TABLE `mediums` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mediums`
--

INSERT INTO `mediums` (`id`, `name`, `school_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'English', 1, NULL, '2024-04-29 09:05:46', '2024-04-29 09:05:46'),
(2, 'Hindi', 1, NULL, '2024-04-29 09:05:46', '2024-04-29 09:05:46'),
(3, 'Gujarati', 1, NULL, '2024-04-29 09:05:46', '2024-04-29 09:05:46');

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

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

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(191) NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2022_04_01_091033_create_permission_tables', 1),
(6, '2022_04_01_105826_all_tables', 1),
(7, '2023_11_16_134449_version1-0-1', 1),
(8, '2023_12_07_120054_version1_1_0', 1),
(9, '2024_01_30_092228_version1_2_0', 1),
(10, '2024_03_12_173521_version1_3_0', 2);

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

--
-- Table structure for table `model_has_permissions`
--

CREATE TABLE `model_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(191) NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_permissions`
--

INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES
(114, 'App\\Models\\User', 127),
(114, 'App\\Models\\User', 128),
(114, 'App\\Models\\User', 129),
(114, 'App\\Models\\User', 130),
(115, 'App\\Models\\User', 127),
(115, 'App\\Models\\User', 128),
(115, 'App\\Models\\User', 129),
(115, 'App\\Models\\User', 130),
(123, 'App\\Models\\User', 127),
(123, 'App\\Models\\User', 128),
(123, 'App\\Models\\User', 129),
(123, 'App\\Models\\User', 130),
(179, 'App\\Models\\User', 131),
(180, 'App\\Models\\User', 131),
(181, 'App\\Models\\User', 131),
(182, 'App\\Models\\User', 131);

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

--
-- Table structure for table `model_has_roles`
--

CREATE TABLE `model_has_roles` (
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(191) NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_roles`
--

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

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) NOT NULL,
  `message` varchar(191) DEFAULT NULL,
  `image` varchar(191) DEFAULT NULL,
  `send_to` varchar(191) NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`id`, `title`, `message`, `image`, `send_to`, `session_year_id`, `school_id`, `created_at`, `updated_at`) VALUES
(8, 'TE', 'A', NULL, 'All users', 1, 1, '2024-04-30 05:35:39', '2024-04-30 05:35:39'),
(9, 'ASS', 'SFDF', 'notification/8W3ZmmjVVKJNMs2V1XHoCcyBrPRFY9uEI75KYItl.jpg', 'All users', 1, 1, '2024-04-30 05:35:50', '2024-04-30 05:35:50'),
(10, 'Test', 'Test demo', 'notification/ej7eH97NDYbrHxbuHw6qApwMK8BmmAN6nMPjb4lv.jpg', 'Roles', 1, 1, '2024-04-30 05:40:43', '2024-04-30 05:40:43'),
(15, 'AS', 'AS', NULL, 'All users', 5, 1, '2024-05-02 10:18:41', '2024-05-02 10:18:41');

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

--
-- Table structure for table `online_exams`
--

CREATE TABLE `online_exams` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(128) NOT NULL,
  `exam_key` bigint(20) NOT NULL,
  `duration` int(11) NOT NULL COMMENT 'in minutes',
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `online_exam_questions`
--

CREATE TABLE `online_exam_questions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `question` varchar(1024) NOT NULL,
  `image_url` varchar(1024) DEFAULT NULL,
  `note` varchar(1024) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `last_edited_by` bigint(20) UNSIGNED NOT NULL COMMENT 'teacher_user_id',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `online_exam_question_choices`
--

CREATE TABLE `online_exam_question_choices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `online_exam_id` bigint(20) UNSIGNED NOT NULL,
  `question_id` bigint(20) UNSIGNED NOT NULL,
  `marks` int(11) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `online_exam_question_options`
--

CREATE TABLE `online_exam_question_options` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `question_id` bigint(20) UNSIGNED NOT NULL,
  `option` varchar(1024) NOT NULL,
  `is_answer` tinyint(4) NOT NULL COMMENT '1 - yes, 0 - no',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `online_exam_student_answers`
--

CREATE TABLE `online_exam_student_answers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `online_exam_id` bigint(20) UNSIGNED NOT NULL,
  `question_id` bigint(20) UNSIGNED NOT NULL,
  `option_id` bigint(20) UNSIGNED NOT NULL,
  `submitted_date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `optional_fees`
--

CREATE TABLE `optional_fees` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `class_id` bigint(20) UNSIGNED NOT NULL,
  `payment_transaction_id` bigint(20) UNSIGNED DEFAULT NULL,
  `fees_class_id` bigint(20) UNSIGNED DEFAULT NULL,
  `mode` enum('Cash','Cheque','Online') NOT NULL,
  `cheque_no` varchar(191) DEFAULT NULL,
  `amount` double(8,2) NOT NULL,
  `fees_paid_id` bigint(20) UNSIGNED DEFAULT NULL,
  `date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `status` enum('Success','Pending','Failed') NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `optional_fees`
--

INSERT INTO `optional_fees` (`id`, `student_id`, `class_id`, `payment_transaction_id`, `fees_class_id`, `mode`, `cheque_no`, `amount`, `fees_paid_id`, `date`, `school_id`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(5, 86, 1, NULL, 15, 'Cash', NULL, 500.00, 6, '2024-05-06', 1, 'Success', '2024-05-06 06:59:21', '2024-05-06 06:59:21', NULL);

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

--
-- Table structure for table `packages`
--

CREATE TABLE `packages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `description` varchar(191) DEFAULT NULL,
  `tagline` varchar(191) DEFAULT NULL,
  `student_charge` double(8,4) NOT NULL DEFAULT 0.0000,
  `staff_charge` double(8,4) NOT NULL DEFAULT 0.0000,
  `days` int(11) NOT NULL DEFAULT 1,
  `type` int(11) NOT NULL DEFAULT 1 COMMENT '0 => Prepaid, 1 => Postpaid',
  `no_of_students` int(11) NOT NULL DEFAULT 0,
  `no_of_staffs` int(11) NOT NULL DEFAULT 0,
  `charges` double(64,4) NOT NULL DEFAULT 0.0000,
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 => Unpublished, 1 => Published',
  `is_trial` int(11) NOT NULL DEFAULT 0,
  `highlight` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 => No, 1 => Yes',
  `rank` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `packages`
--

INSERT INTO `packages` (`id`, `name`, `description`, `tagline`, `student_charge`, `staff_charge`, `days`, `type`, `no_of_students`, `no_of_staffs`, `charges`, `status`, `is_trial`, `highlight`, `rank`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Pro', 'Unlimited Features', 'Best plan for school', 5.0000, 5.0000, 365, 1, 0, 0, 0.0000, 1, 0, 0, 1, '2024-04-29 09:05:47', '2024-05-03 11:23:18', NULL),
(2, 'Basic', NULL, NULL, 5.0000, 5.0000, 180, 1, 0, 0, 0.0000, 1, 0, 0, 2, '2024-05-03 06:25:02', '2024-05-03 11:23:18', NULL);

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

--
-- Table structure for table `package_features`
--

CREATE TABLE `package_features` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `package_id` bigint(20) UNSIGNED NOT NULL,
  `feature_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `package_features`
--

INSERT INTO `package_features` (`id`, `package_id`, `feature_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(2, 1, 2, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(3, 1, 3, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(4, 1, 4, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(5, 1, 5, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(6, 1, 6, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(7, 1, 7, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(8, 1, 8, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(9, 1, 9, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(10, 1, 10, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(11, 1, 11, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(12, 1, 12, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(13, 1, 13, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(14, 1, 14, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(15, 1, 15, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(16, 1, 16, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(17, 1, 17, '2024-04-29 09:05:47', '2024-04-29 09:06:41'),
(19, 2, 1, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(20, 2, 2, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(21, 2, 4, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(22, 2, 5, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(23, 2, 12, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(24, 2, 14, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(25, 2, 16, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(26, 2, 11, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(27, 2, 10, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(28, 2, 9, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(29, 2, 8, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(30, 2, 6, '2024-05-03 06:25:02', '2024-05-03 06:25:02'),
(31, 2, 3, '2024-05-03 06:25:02', '2024-05-03 06:25:02');

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(191) NOT NULL,
  `token` varchar(191) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `payment_configurations`
--

CREATE TABLE `payment_configurations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `payment_method` varchar(191) NOT NULL,
  `api_key` varchar(191) NOT NULL,
  `secret_key` varchar(191) NOT NULL,
  `webhook_secret_key` varchar(191) NOT NULL,
  `currency_code` varchar(128) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0 - Disabled, 1 - Enabled',
  `school_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `payment_transactions`
--

CREATE TABLE `payment_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `amount` double(64,2) NOT NULL,
  `payment_gateway` varchar(191) NOT NULL,
  `order_id` varchar(191) DEFAULT NULL COMMENT 'order_id / payment_intent_id',
  `payment_id` varchar(191) DEFAULT NULL,
  `payment_signature` varchar(191) DEFAULT NULL,
  `payment_status` enum('failed','succeed','pending') NOT NULL,
  `school_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `guard_name` varchar(191) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'role-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(2, 'role-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(3, 'role-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(4, 'role-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(5, 'medium-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(6, 'medium-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(7, 'medium-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(8, 'medium-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(9, 'section-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(10, 'section-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(11, 'section-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(12, 'section-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(13, 'class-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(14, 'class-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(15, 'class-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(16, 'class-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(17, 'class-section-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(18, 'class-section-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(19, 'class-section-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(20, 'class-section-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(21, 'subject-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(22, 'subject-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(23, 'subject-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(24, 'subject-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(25, 'teacher-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(26, 'teacher-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(27, 'teacher-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(28, 'teacher-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(29, 'guardian-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(30, 'guardian-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(31, 'guardian-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(32, 'guardian-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(33, 'session-year-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(34, 'session-year-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(35, 'session-year-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(36, 'session-year-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(37, 'student-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(38, 'student-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(39, 'student-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(40, 'student-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(41, 'timetable-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(42, 'timetable-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(43, 'timetable-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(44, 'timetable-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(45, 'attendance-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(46, 'attendance-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(47, 'attendance-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(48, 'attendance-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(49, 'holiday-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(50, 'holiday-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(51, 'holiday-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(52, 'holiday-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(53, 'announcement-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(54, 'announcement-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(55, 'announcement-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(56, 'announcement-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(57, 'slider-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(58, 'slider-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(59, 'slider-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(60, 'slider-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(61, 'promote-student-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(62, 'promote-student-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(63, 'promote-student-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(64, 'promote-student-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(65, 'language-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(66, 'language-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(67, 'language-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(68, 'language-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(69, 'lesson-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(70, 'lesson-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(71, 'lesson-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(72, 'lesson-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(73, 'topic-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(74, 'topic-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(75, 'topic-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(76, 'topic-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(77, 'schools-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(78, 'schools-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(79, 'schools-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(80, 'schools-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(81, 'form-fields-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(82, 'form-fields-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(83, 'form-fields-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(84, 'form-fields-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(85, 'grade-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(86, 'grade-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(87, 'grade-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(88, 'grade-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(89, 'package-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(90, 'package-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(91, 'package-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(92, 'package-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(93, 'addons-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(94, 'addons-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(95, 'addons-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(96, 'addons-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(97, 'guidance-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(98, 'guidance-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(99, 'guidance-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(100, 'guidance-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(101, 'assignment-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(102, 'assignment-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(103, 'assignment-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(104, 'assignment-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(105, 'assignment-submission', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(106, 'exam-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(107, 'exam-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(108, 'exam-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(109, 'exam-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(110, 'exam-timetable-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(111, 'exam-timetable-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(112, 'exam-timetable-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(113, 'exam-timetable-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(114, 'exam-upload-marks', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(115, 'exam-result', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(116, 'system-setting-manage', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(117, 'fcm-setting-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(118, 'email-setting-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(119, 'privacy-policy', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(120, 'contact-us', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(121, 'about-us', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(122, 'terms-condition', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(123, 'class-teacher', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(124, 'student-reset-password', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(125, 'reset-password-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(126, 'student-change-password', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(127, 'update-admin-profile', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(128, 'fees-classes', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(129, 'fees-paid', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(130, 'fees-config', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(131, 'school-setting-manage', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(132, 'app-settings', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(133, 'subscription-view', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(134, 'online-exam-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(135, 'online-exam-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(136, 'online-exam-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(137, 'online-exam-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(138, 'online-exam-questions-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(139, 'online-exam-questions-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(140, 'online-exam-questions-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(141, 'online-exam-questions-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(142, 'online-exam-result-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(143, 'fees-type-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(144, 'fees-type-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(145, 'fees-type-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(146, 'fees-type-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(147, 'fees-class-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(148, 'fees-class-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(149, 'fees-class-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(150, 'fees-class-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(151, 'staff-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(152, 'staff-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(153, 'staff-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(154, 'staff-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(155, 'expense-category-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(156, 'expense-category-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(157, 'expense-category-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(158, 'expense-category-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(159, 'expense-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(160, 'expense-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(161, 'expense-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(162, 'expense-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(163, 'semester-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(164, 'semester-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(165, 'semester-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(166, 'semester-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(167, 'payroll-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(168, 'payroll-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(169, 'payroll-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(170, 'payroll-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(171, 'stream-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(172, 'stream-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(173, 'stream-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(174, 'stream-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(175, 'shift-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(176, 'shift-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(177, 'shift-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(178, 'shift-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(179, 'leave-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(180, 'leave-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(181, 'leave-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(182, 'leave-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(183, 'approve-leave', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(184, 'faqs-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(185, 'faqs-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(186, 'faqs-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(187, 'faqs-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(188, 'fcm-setting-manage', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(189, 'fees-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(190, 'fees-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(191, 'fees-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(192, 'fees-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(193, 'transfer-student-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(194, 'transfer-student-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(195, 'transfer-student-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(196, 'transfer-student-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(197, 'gallery-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(198, 'gallery-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(199, 'gallery-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(200, 'gallery-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(201, 'notification-list', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(202, 'notification-create', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(203, 'notification-edit', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(204, 'notification-delete', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(205, 'payment-settings', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(206, 'subscription-settings', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(207, 'subscription-change-bills', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(208, 'school-terms-condition', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(209, 'student-id-card-settings', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(210, 'subscription-bill-payment', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(211, 'web-settings', 'web', '2024-04-29 09:04:37', '2024-04-29 09:04:37');

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

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(191) NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `token` varchar(64) NOT NULL,
  `abilities` text DEFAULT NULL,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `personal_access_tokens`
--

INSERT INTO `personal_access_tokens` (`id`, `tokenable_type`, `tokenable_id`, `name`, `token`, `abilities`, `last_used_at`, `expires_at`, `created_at`, `updated_at`) VALUES
(1, 'App\\Models\\User', 127, 'Lucifer', '4b5a8841a02b4675103f7b59183259aa358c6589ac956880d71e8fb70a36b425', '[\"*\"]', '2024-05-01 08:01:47', NULL, '2024-04-29 09:15:20', '2024-05-01 08:01:47'),
(2, 'App\\Models\\User', 85, 'Zelma', '4297098683f7aba5edc9e237163d54343b7f057000cd0e43901c6d1eb304ea0c', '[\"*\"]', '2024-04-29 09:57:46', NULL, '2024-04-29 09:46:57', '2024-04-29 09:57:46'),
(3, 'App\\Models\\User', 131, 'Kevin', '658ad7ccb801ef42cc1c43585a80450f62412d5b25bdb33b4291b7838f8467bc', '[\"*\"]', '2024-05-02 11:35:43', NULL, '2024-04-29 11:08:00', '2024-05-02 11:35:43'),
(4, 'App\\Models\\User', 85, 'Zelma', 'ae35db2e88327926cc7e2654e78e47e700fafdd518edb6a11b5746af8101f49a', '[\"*\"]', NULL, NULL, '2024-05-01 11:28:59', '2024-05-01 11:28:59'),
(5, 'App\\Models\\User', 131, 'Kevin', '7a2bc5be3eb26d27f2e5f4f704f9f4d3a6e3e010bdffbd453acc678277b28c82', '[\"*\"]', NULL, NULL, '2024-05-01 11:29:13', '2024-05-01 11:29:13'),
(6, 'App\\Models\\User', 131, 'Kevin', '2ad2b194ef58bf684d7b32632ebb5c847318cd514ef8ce137f8b491b114a6346', '[\"*\"]', NULL, NULL, '2024-05-01 11:32:49', '2024-05-01 11:32:49'),
(7, 'App\\Models\\User', 127, 'Lucifer', '4dbca4fc00301c34483288b2ac19ef373cf232c2075573067c55da3d1429203c', '[\"*\"]', '2024-05-02 06:37:42', NULL, '2024-05-02 06:34:25', '2024-05-02 06:37:42');

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

--
-- Table structure for table `promote_students`
--

CREATE TABLE `promote_students` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `result` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=>Pass,0=>fail',
  `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=>continue,0=>leave',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `promote_students`
--

INSERT INTO `promote_students` (`id`, `student_id`, `class_section_id`, `session_year_id`, `result`, `status`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 46, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(2, 44, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(3, 42, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(4, 40, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(5, 38, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(6, 36, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(7, 34, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(8, 32, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(9, 30, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(10, 28, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(11, 26, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(12, 24, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(13, 22, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(14, 20, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(15, 18, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(16, 16, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(17, 14, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(18, 12, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(19, 10, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(20, 8, 1, 5, 1, 1, 1, '2024-05-01 04:48:23', '2024-05-01 04:48:23', NULL),
(21, 86, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(22, 84, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(23, 82, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(24, 80, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(25, 78, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(26, 76, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(27, 74, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(28, 72, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(29, 70, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(30, 68, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(31, 66, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(32, 64, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(33, 62, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(34, 60, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(35, 58, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(36, 56, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(37, 54, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(38, 52, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(39, 50, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(40, 48, 2, 5, 1, 1, 1, '2024-05-01 04:48:31', '2024-05-01 04:48:31', NULL),
(41, 126, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(42, 124, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(43, 122, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(44, 120, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(45, 118, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(46, 116, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(47, 114, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(48, 112, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(49, 110, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(50, 108, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(51, 106, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(52, 104, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(53, 102, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(54, 100, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(55, 98, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(56, 96, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(57, 94, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(58, 92, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(59, 90, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL),
(60, 88, 3, 5, 1, 1, 1, '2024-05-01 04:48:38', '2024-05-01 04:48:38', NULL);

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

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

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `guard_name` varchar(191) NOT NULL,
  `school_id` bigint(20) UNSIGNED DEFAULT NULL,
  `custom_role` tinyint(1) NOT NULL DEFAULT 1,
  `editable` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `roles` (`id`, `name`, `guard_name`, `school_id`, `custom_role`, `editable`, `created_at`, `updated_at`) VALUES
(1, 'Super Admin', 'web', NULL, 0, 0, '2024-04-29 09:04:37', '2024-04-29 09:04:37'),
(2, 'School Admin', 'web', NULL, 0, 0, '2024-04-29 09:04:38', '2024-04-29 09:04:38'),
(3, 'Teacher', 'web', NULL, 1, 1, '2024-04-29 09:04:39', '2024-04-29 09:04:39'),
(4, 'Guardian', 'web', 1, 0, 0, '2024-04-29 09:05:45', '2024-04-29 09:05:45'),
(5, 'Student', 'web', 1, 0, 0, '2024-04-29 09:05:45', '2024-04-29 09:05:45'),
(6, 'Teacher', 'web', 1, 0, 1, '2024-04-29 09:05:45', '2024-04-29 09:05:45'),
(7, 'Guardian', 'web', 2, 0, 0, '2024-04-29 09:05:46', '2024-04-29 09:05:46'),
(8, 'Student', 'web', 2, 0, 0, '2024-04-29 09:05:46', '2024-04-29 09:05:46'),
(9, 'Teacher', 'web', 2, 0, 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46'),
(10, 'Admin', 'web', 1, 1, 1, '2024-04-29 11:07:04', '2024-04-29 11:07:04');

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

--
-- Table structure for table `role_has_permissions`
--

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `role_has_permissions`
--

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

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

--
-- Table structure for table `schools`
--

CREATE TABLE `schools` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `address` varchar(191) NOT NULL,
  `support_phone` varchar(191) NOT NULL,
  `support_email` varchar(191) NOT NULL,
  `tagline` varchar(191) NOT NULL,
  `logo` varchar(191) NOT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'user_id',
  `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 => Deactivate, 1 => Active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `schools`
--

INSERT INTO `schools` (`id`, `name`, `address`, `support_phone`, `support_email`, `tagline`, `logo`, `admin_id`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'School 1', 'Bhuj', '1234567890', 'school1@gmail.com', 'We Provide Best Education', 'school/6yCygABAUNpbxfsWLUUt8XQ5Ja6uHRdEozPSVBZ0.svg', 2, 1, '2024-04-29 09:05:45', '2024-05-03 09:11:42', NULL),
(2, 'School 2', 'Bhuj', '1234567890', 'school2@gmail.com', 'We Provide Best Education', 'school/logo.png', 3, 1, '2024-04-29 09:05:45', '2024-04-29 09:05:45', NULL);

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

--
-- Table structure for table `school_settings`
--

CREATE TABLE `school_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `data` text NOT NULL,
  `type` varchar(191) DEFAULT NULL COMMENT 'datatype like string , file etc',
  `school_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `school_settings`
--

INSERT INTO `school_settings` (`id`, `name`, `data`, `type`, `school_id`) VALUES
(1, 'school_name', 'School 1', 'string', 1),
(2, 'school_email', 'school1@gmail.com', 'string', 1),
(3, 'school_phone', '1234567890', 'number', 1),
(4, 'school_tagline', 'We Provide Best Education', 'string', 1),
(5, 'school_address', 'Bhuj', 'string', 1),
(6, 'session_year', '5', 'number', 1),
(7, 'horizontal_logo', 'school-settings/662f6ef02aa728.909332371714384624.svg', 'file', 1),
(8, 'vertical_logo', 'school-settings/6634aa4ee971e3.158673141714727502.svg', 'file', 1),
(9, 'timetable_start_time', '09:00:00', 'time', 1),
(10, 'timetable_end_time', '18:00:00', 'time', 1),
(11, 'timetable_duration', '01:00:00', 'time', 1),
(12, 'auto_renewal_plan', '1', 'integer', 1),
(13, 'currency_code', 'INR', 'string', 1),
(14, 'currency_symbol', '₹', 'string', 1),
(15, 'date_format', 'd-m-Y', 'string', 1),
(16, 'time_format', 'h:i A', 'string', 1),
(17, 'school_name', 'School 2', 'string', 2),
(18, 'school_email', 'school2@gmail.com', 'string', 2),
(19, 'school_phone', '1234567890', 'number', 2),
(20, 'school_tagline', 'We Provide Best Education', 'string', 2),
(21, 'school_address', 'Bhuj', 'string', 2),
(22, 'session_year', '2', 'number', 2),
(23, 'horizontal_logo', '', 'file', 2),
(24, 'vertical_logo', '', 'file', 2),
(25, 'timetable_start_time', '09:00:00', 'time', 2),
(26, 'timetable_end_time', '18:00:00', 'time', 2),
(27, 'timetable_duration', '01:00:00', 'time', 2),
(28, 'auto_renewal_plan', '1', 'integer', 2),
(29, 'currency_code', 'INR', 'string', 2),
(30, 'currency_symbol', '₹', 'string', 2),
(31, 'date_format', 'd-m-Y', 'string', 2),
(32, 'time_format', 'h:i A', 'string', 2),
(33, 'favicon', 'school-settings/6634aa4ee8b373.619271191714727502.svg', 'file', 1),
(34, 'roll_number_sort_column', 'first_name', 'string', 1),
(35, 'roll_number_sort_order', 'asc', 'string', 1),
(36, 'change_roll_number', '', 'string', 1),
(41, 'header_color', '#01a7ff', 'string', 1),
(42, 'footer_color', '#001bff', 'string', 1),
(43, 'header_footer_text_color', '#000000', 'string', 1),
(44, 'layout_type', 'vertical', 'string', 1),
(45, 'profile_image_style', 'round', 'string', 1),
(46, 'page_width', '90', 'string', 1),
(47, 'page_height', '145', 'string', 1),
(48, 'student_id_card_fields', 'student_name,class_section,roll_no,dob,gender,session_year,guardian_name,guardian_contact', 'string', 1);

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

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

CREATE TABLE `sections` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `sections` (`id`, `name`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'A', 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(2, 'B', 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(3, 'C', 1, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL);

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

--
-- Table structure for table `semesters`
--

CREATE TABLE `semesters` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `start_month` tinyint(4) NOT NULL,
  `end_month` tinyint(4) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `semesters`
--

INSERT INTO `semesters` (`id`, `name`, `start_month`, `end_month`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, '1st Semester', 5, 10, 1, '2024-05-06 07:28:37', '2024-05-06 07:28:37', NULL),
(2, '2nd Semester', 11, 4, 1, '2024-05-06 07:28:50', '2024-05-06 07:28:50', NULL);

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

--
-- Table structure for table `session_years`
--

CREATE TABLE `session_years` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `default` tinyint(4) NOT NULL DEFAULT 0,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `session_years`
--

INSERT INTO `session_years` (`id`, `name`, `default`, `start_date`, `end_date`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, '2023-24', 0, '2023-06-01', '2024-04-30', 1, '2024-04-29 09:05:46', '2024-05-01 04:48:52', NULL),
(2, '2022-23', 1, '2022-06-01', '2023-04-30', 2, '2024-04-29 09:05:46', '2024-04-29 09:05:46', NULL),
(5, '2024-25', 1, '2024-05-01', '2025-04-30', 1, '2024-05-01 04:47:10', '2024-05-01 04:48:52', NULL);

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

--
-- Table structure for table `shifts`
--

CREATE TABLE `shifts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `sliders`
--

CREATE TABLE `sliders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `image` varchar(1024) NOT NULL,
  `link` varchar(191) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `staffs`
--

CREATE TABLE `staffs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `qualification` varchar(512) DEFAULT NULL,
  `salary` double NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `staffs`
--

INSERT INTO `staffs` (`id`, `user_id`, `qualification`, `salary`, `created_at`, `updated_at`) VALUES
(1, 6, 'MSC IT', 100000, '2024-04-29 09:05:47', '2024-04-29 09:05:47'),
(2, 127, 'A', 25000, '2024-04-29 09:08:18', '2024-04-29 09:08:18'),
(3, 128, 'A', 25000, '2024-04-29 09:08:39', '2024-04-29 09:08:39'),
(4, 129, 'A', 25000, '2024-04-29 09:09:03', '2024-04-29 09:09:03'),
(5, 130, 'A', 15000, '2024-04-29 09:09:23', '2024-04-29 09:09:23'),
(6, 131, NULL, 15000, '2024-04-29 11:07:50', '2024-04-29 11:07:50');

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

--
-- Table structure for table `staff_support_schools`
--

CREATE TABLE `staff_support_schools` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `streams`
--

CREATE TABLE `streams` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `students`
--

CREATE TABLE `students` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `admission_no` varchar(512) NOT NULL,
  `roll_number` int(11) DEFAULT NULL,
  `admission_date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `guardian_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `students`
--

INSERT INTO `students` (`id`, `user_id`, `class_section_id`, `admission_no`, `roll_number`, `admission_date`, `school_id`, `guardian_id`, `session_year_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(2, 8, 1, '2023-2412', 8, '2006-01-23', 1, 7, 5, '2024-04-29 09:07:39', '2024-05-01 04:48:23', NULL),
(3, 10, 1, '2023-2413', 19, '2005-10-06', 1, 9, 5, '2024-04-29 09:07:39', '2024-05-01 04:48:23', NULL),
(4, 12, 1, '2023-2414', 17, '2006-02-19', 1, 11, 5, '2024-04-29 09:07:39', '2024-05-01 04:48:23', NULL),
(5, 14, 1, '2023-2415', 3, '2006-10-25', 1, 13, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(6, 16, 1, '2023-2416', 5, '2007-01-24', 1, 15, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(7, 18, 1, '2023-2417', 16, '2005-06-13', 1, 17, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(8, 20, 1, '2023-2418', 18, '2006-12-08', 1, 19, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(9, 22, 1, '2023-2419', 4, '2008-11-08', 1, 21, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(10, 24, 1, '2023-24110', 14, '2006-09-28', 1, 23, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(11, 26, 1, '2023-24111', 7, '2006-07-20', 1, 25, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(12, 28, 1, '2023-24112', 20, '2009-06-05', 1, 27, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(13, 30, 1, '2023-24113', 11, '2006-10-23', 1, 29, 5, '2024-04-29 09:07:40', '2024-05-01 04:48:23', NULL),
(14, 32, 1, '2023-24114', 15, '2007-10-08', 1, 31, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(15, 34, 1, '2023-24115', 12, '2005-08-26', 1, 33, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(16, 36, 1, '2023-24116', 6, '2006-08-07', 1, 35, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(17, 38, 1, '2023-24117', 9, '2007-05-05', 1, 37, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(18, 40, 1, '2023-24118', 10, '2008-07-09', 1, 39, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(19, 42, 1, '2023-24119', 13, '2009-09-27', 1, 41, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(20, 44, 1, '2023-24120', 1, '2008-09-15', 1, 43, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(21, 46, 1, '2023-24121', 2, '2005-02-19', 1, 45, 5, '2024-04-29 09:07:41', '2024-05-01 04:48:23', NULL),
(22, 48, 2, '2023-24122', 5, '2009-09-03', 1, 47, 5, '2024-04-29 09:07:47', '2024-05-01 04:48:31', NULL),
(23, 50, 2, '2023-24123', 3, '2009-02-13', 1, 49, 5, '2024-04-29 09:07:47', '2024-05-01 04:48:31', NULL),
(24, 52, 2, '2023-24124', 2, '2005-01-21', 1, 51, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(25, 54, 2, '2023-24125', 9, '2008-08-08', 1, 53, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(26, 56, 2, '2023-24126', 16, '2005-01-22', 1, 55, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(27, 58, 2, '2023-24127', 7, '2006-02-01', 1, 57, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(28, 60, 2, '2023-24128', 19, '2009-08-13', 1, 59, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(29, 62, 2, '2023-24129', 4, '2007-01-02', 1, 61, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(30, 64, 2, '2023-24130', 18, '2008-10-17', 1, 63, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(31, 66, 2, '2023-24131', 17, '2007-12-25', 1, 65, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(32, 68, 2, '2023-24132', 13, '2007-01-23', 1, 67, 5, '2024-04-29 09:07:48', '2024-05-01 04:48:31', NULL),
(33, 70, 2, '2023-24133', 12, '2009-02-21', 1, 69, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(34, 72, 2, '2023-24134', 20, '2005-07-18', 1, 71, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(35, 74, 2, '2023-24135', 6, '2005-01-05', 1, 73, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(36, 76, 2, '2023-24136', 1, '2007-01-15', 1, 75, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(37, 78, 2, '2023-24137', 15, '2008-09-25', 1, 77, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(38, 80, 2, '2023-24138', 11, '2006-10-06', 1, 79, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(39, 82, 2, '2023-24139', 14, '2006-03-14', 1, 81, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(40, 84, 2, '2023-24140', 8, '2005-08-21', 1, 83, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(41, 86, 2, '2023-24141', 10, '2009-08-06', 1, 85, 5, '2024-04-29 09:07:49', '2024-05-01 04:48:31', NULL),
(42, 88, 3, '2023-24142', 17, '2009-08-31', 1, 87, 5, '2024-04-29 09:07:55', '2024-05-01 04:48:38', NULL),
(43, 90, 3, '2023-24143', 8, '2007-03-05', 1, 89, 5, '2024-04-29 09:07:55', '2024-05-01 04:48:38', NULL),
(44, 92, 3, '2023-24144', 11, '2009-04-18', 1, 91, 5, '2024-04-29 09:07:55', '2024-05-01 04:48:38', NULL),
(45, 94, 3, '2023-24145', 13, '2007-01-14', 1, 93, 5, '2024-04-29 09:07:55', '2024-05-01 04:48:38', NULL),
(46, 96, 3, '2023-24146', 15, '2008-08-18', 1, 95, 5, '2024-04-29 09:07:55', '2024-05-01 04:48:38', NULL),
(47, 98, 3, '2023-24147', 1, '2009-08-04', 1, 97, 5, '2024-04-29 09:07:55', '2024-05-01 04:48:38', NULL),
(48, 100, 3, '2023-24148', 5, '2008-09-23', 1, 99, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(49, 102, 3, '2023-24149', 12, '2006-04-13', 1, 101, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(50, 104, 3, '2023-24150', 16, '2007-07-25', 1, 103, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(51, 106, 3, '2023-24151', 18, '2005-02-16', 1, 105, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(52, 108, 3, '2023-24152', 10, '2005-12-12', 1, 107, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(53, 110, 3, '2023-24153', 9, '2008-03-21', 1, 109, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(54, 112, 3, '2023-24154', 2, '2006-10-01', 1, 111, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(55, 114, 3, '2023-24155', 6, '2007-02-04', 1, 113, 5, '2024-04-29 09:07:56', '2024-05-01 04:48:38', NULL),
(56, 116, 3, '2023-24156', 20, '2006-01-28', 1, 115, 5, '2024-04-29 09:07:57', '2024-05-01 04:48:38', NULL),
(57, 118, 3, '2023-24157', 14, '2008-01-03', 1, 117, 5, '2024-04-29 09:07:57', '2024-05-01 04:48:38', NULL),
(58, 120, 3, '2023-24158', 4, '2008-01-13', 1, 119, 5, '2024-04-29 09:07:57', '2024-05-01 04:48:38', NULL),
(59, 122, 3, '2023-24159', 19, '2006-12-13', 1, 121, 5, '2024-04-29 09:07:57', '2024-05-01 04:48:38', NULL),
(60, 124, 3, '2023-24160', 3, '2009-08-20', 1, 123, 5, '2024-04-29 09:07:57', '2024-05-01 04:48:38', NULL),
(61, 126, 3, '2023-24161', 7, '2007-05-26', 1, 125, 5, '2024-04-29 09:07:57', '2024-05-01 04:48:38', NULL),
(62, 133, 4, '2024-25162', 1, '2007-09-02', 1, 132, 5, '2024-05-03 06:09:06', '2024-05-03 06:09:06', NULL),
(63, 135, 4, '2024-25163', 2, '2005-01-12', 1, 134, 5, '2024-05-03 06:09:06', '2024-05-03 06:09:06', NULL),
(64, 137, 4, '2024-25164', 3, '2007-01-25', 1, 136, 5, '2024-05-03 06:09:06', '2024-05-03 06:09:06', NULL),
(65, 139, 4, '2024-25165', 4, '2005-09-29', 1, 138, 5, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(66, 141, 4, '2024-25166', 5, '2008-02-23', 1, 140, 5, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(67, 143, 4, '2024-25167', 6, '2008-02-04', 1, 142, 5, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(68, 145, 4, '2024-25168', 7, '2009-09-29', 1, 144, 5, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(69, 147, 4, '2024-25169', 8, '2008-01-01', 1, 146, 5, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(70, 149, 4, '2024-25170', 9, '2006-09-23', 1, 148, 5, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(71, 151, 4, '2024-25171', 10, '2006-07-22', 1, 150, 5, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL);

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

--
-- Table structure for table `student_online_exam_statuses`
--

CREATE TABLE `student_online_exam_statuses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `online_exam_id` bigint(20) UNSIGNED NOT NULL,
  `status` tinyint(4) NOT NULL COMMENT '1 - in progress 2 - completed',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `student_subjects`
--

CREATE TABLE `student_subjects` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `student_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `session_year_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `subjects` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(512) NOT NULL,
  `code` varchar(64) DEFAULT NULL,
  `bg_color` varchar(32) NOT NULL,
  `image` varchar(512) NOT NULL,
  `medium_id` bigint(20) UNSIGNED NOT NULL,
  `type` varchar(64) NOT NULL COMMENT 'Theory / Practical',
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `subjects` (`id`, `name`, `code`, `bg_color`, `image`, `medium_id`, `type`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Maths', 'MA', '#31f795', 'subject.png', 1, 'Practical', 1, '2024-04-29 09:05:46', '2024-05-03 11:08:33', NULL),
(2, 'Science', 'SC', '#f731b9', 'subject.png', 1, 'Practical', 1, '2024-04-29 09:05:46', '2024-05-03 11:08:28', NULL),
(3, 'English', 'EN', '#96c4ec', 'subject.png', 1, 'Theory', 1, '2024-04-29 09:05:46', '2024-05-03 11:09:45', NULL),
(4, 'Gujarati', 'GJ', '#bde0ff', 'subject.png', 1, 'Theory', 1, '2024-04-29 09:05:46', '2024-05-03 11:08:17', NULL),
(5, 'Sanskrit', 'SN', '#e6ec0e', 'subject.png', 1, 'Theory', 1, '2024-04-29 09:05:46', '2024-05-03 11:08:10', NULL),
(6, 'Hindi', 'HN', '#f73182', 'subject.png', 1, 'Theory', 1, '2024-04-29 09:05:46', '2024-05-03 11:08:03', NULL),
(7, 'Computer', 'CMP', '#31f787', 'subject.png', 1, 'Practical', 1, '2024-04-29 09:05:46', '2024-05-03 11:07:58', NULL),
(8, 'PT', 'PT', '#3187f7', 'subject.png', 1, 'Practical', 1, '2024-04-29 09:05:46', '2024-05-03 11:07:52', NULL);

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

--
-- Table structure for table `subject_teachers`
--

CREATE TABLE `subject_teachers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `subject_id` bigint(20) UNSIGNED NOT NULL,
  `teacher_id` bigint(20) UNSIGNED NOT NULL COMMENT 'user_id',
  `class_subject_id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subject_teachers`
--

INSERT INTO `subject_teachers` (`id`, `class_section_id`, `subject_id`, `teacher_id`, `class_subject_id`, `school_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 1, 127, 6, 1, '2024-04-29 09:10:26', '2024-04-29 09:10:26', NULL),
(2, 1, 2, 129, 7, 1, '2024-04-29 09:10:26', '2024-04-29 09:10:26', NULL),
(3, 1, 3, 128, 8, 1, '2024-04-29 09:10:26', '2024-04-29 09:10:26', NULL),
(4, 1, 4, 130, 9, 1, '2024-04-29 09:10:26', '2024-04-29 09:10:26', NULL),
(5, 1, 6, 128, 10, 1, '2024-04-29 09:10:26', '2024-04-29 09:10:26', NULL),
(6, 3, 1, 128, 1, 1, '2024-04-29 09:10:53', '2024-05-06 08:54:48', NULL),
(7, 3, 2, 129, 2, 1, '2024-04-29 09:10:53', '2024-05-06 08:54:48', NULL),
(8, 3, 3, 128, 3, 1, '2024-04-29 09:10:53', '2024-05-06 08:54:48', NULL),
(9, 3, 5, 130, 4, 1, '2024-04-29 09:10:53', '2024-05-06 08:54:48', NULL),
(10, 3, 6, 127, 5, 1, '2024-04-29 09:10:53', '2024-05-06 08:54:48', NULL),
(11, 2, 1, 127, 6, 1, '2024-05-02 11:06:30', '2024-05-02 11:06:30', NULL),
(12, 2, 2, 129, 7, 1, '2024-05-02 11:06:30', '2024-05-02 11:06:30', NULL),
(13, 2, 3, 130, 8, 1, '2024-05-02 11:06:30', '2024-05-02 11:06:30', NULL),
(14, 2, 4, 6, 9, 1, '2024-05-02 11:06:30', '2024-05-02 11:06:30', NULL),
(15, 2, 6, 130, 10, 1, '2024-05-02 11:06:30', '2024-05-02 11:06:30', NULL),
(16, 6, 1, 127, 11, 1, '2024-05-03 07:24:35', '2024-05-03 07:24:35', NULL),
(17, 3, 2, 128, 2, 1, '2024-05-06 08:54:48', '2024-05-06 08:54:48', NULL),
(18, 3, 5, 128, 4, 1, '2024-05-06 08:54:48', '2024-05-06 08:54:48', NULL),
(19, 3, 6, 128, 5, 1, '2024-05-06 08:54:48', '2024-05-06 08:54:48', NULL),
(25, 4, 1, 129, 1, 1, '2024-05-06 08:55:11', '2024-05-06 08:55:11', NULL),
(26, 4, 2, 129, 2, 1, '2024-05-06 08:55:11', '2024-05-06 08:55:11', NULL),
(27, 4, 3, 129, 3, 1, '2024-05-06 08:55:11', '2024-05-06 08:55:11', NULL),
(28, 4, 5, 129, 4, 1, '2024-05-06 08:55:11', '2024-05-06 08:55:11', NULL),
(29, 4, 6, 129, 5, 1, '2024-05-06 08:55:11', '2024-05-06 08:55:11', NULL);

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

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `package_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `student_charge` double(8,4) NOT NULL,
  `staff_charge` double(8,4) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `package_type` int(11) NOT NULL DEFAULT 1 COMMENT '0 => Prepaid, 1 => Postpaid',
  `no_of_students` int(11) NOT NULL DEFAULT 0,
  `no_of_staffs` int(11) NOT NULL DEFAULT 0,
  `charges` double(64,4) NOT NULL DEFAULT 0.0000,
  `billing_cycle` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subscriptions`
--

INSERT INTO `subscriptions` (`id`, `school_id`, `package_id`, `name`, `student_charge`, `staff_charge`, `start_date`, `end_date`, `package_type`, `no_of_students`, `no_of_staffs`, `charges`, `billing_cycle`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'Pro', 5.0000, 5.0000, '2024-04-29', '2025-04-28', 1, 0, 0, 0.0000, 365, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(2, 2, 2, 'Basic', 5.0000, 5.0000, '2024-05-03', '2024-10-29', 1, 0, 0, 0.0000, 180, '2024-05-03 06:25:15', '2024-05-03 06:25:15');

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

--
-- Table structure for table `subscription_bills`
--

CREATE TABLE `subscription_bills` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subscription_id` bigint(20) UNSIGNED NOT NULL,
  `description` varchar(191) DEFAULT NULL,
  `amount` double(64,4) NOT NULL,
  `total_student` bigint(20) NOT NULL,
  `total_staff` bigint(20) NOT NULL,
  `payment_transaction_id` bigint(20) UNSIGNED DEFAULT NULL,
  `due_date` date NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `subscription_features`
--

CREATE TABLE `subscription_features` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subscription_id` bigint(20) UNSIGNED NOT NULL,
  `feature_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subscription_features`
--

INSERT INTO `subscription_features` (`id`, `subscription_id`, `feature_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(2, 1, 2, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(3, 1, 3, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(4, 1, 4, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(5, 1, 5, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(6, 1, 6, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(7, 1, 7, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(8, 1, 8, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(9, 1, 9, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(10, 1, 10, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(11, 1, 11, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(12, 1, 12, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(13, 1, 13, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(14, 1, 14, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(15, 1, 15, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(16, 1, 16, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(17, 1, 17, '2024-04-29 09:06:50', '2024-04-29 09:06:50'),
(18, 2, 1, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(19, 2, 2, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(20, 2, 3, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(21, 2, 4, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(22, 2, 5, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(23, 2, 6, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(24, 2, 8, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(25, 2, 9, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(26, 2, 10, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(27, 2, 11, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(28, 2, 12, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(29, 2, 14, '2024-05-03 06:25:15', '2024-05-03 06:25:15'),
(30, 2, 16, '2024-05-03 06:25:15', '2024-05-03 06:25:15');

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

--
-- Table structure for table `system_settings`
--

CREATE TABLE `system_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) NOT NULL,
  `data` text NOT NULL,
  `type` varchar(191) DEFAULT NULL COMMENT 'datatype like string , file etc'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `system_settings`
--

INSERT INTO `system_settings` (`id`, `name`, `data`, `type`) VALUES
(1, 'time_zone', 'Asia/Kolkata', 'string'),
(2, 'date_format', 'd-m-Y', 'date'),
(3, 'time_format', 'h:i A', 'time'),
(4, 'theme_color', '#22577A', 'string'),
(5, 'session_year', '1', 'string'),
(6, 'system_version', '1.1.0', 'string'),
(7, 'email_verified', '0', 'boolean'),
(8, 'subscription_alert', '7', 'integer'),
(9, 'currency_code', 'USD', 'string'),
(10, 'currency_symbol', '$', 'string'),
(11, 'additional_billing_days', '5', 'integer'),
(12, 'system_name', 'eSchool Saas - School Management System', 'string'),
(13, 'address', '#262-263, Time Square Empire, SH 42 Mirjapar highway, Bhuj - Kutch 370001 Gujarat India.', 'string'),
(14, 'billing_cycle_in_days', '30', 'integer'),
(15, 'current_plan_expiry_warning_days', '7', 'integer'),
(16, 'front_site_theme_color', '#e9f9f3', 'text'),
(17, 'primary_color', '#3ccb9b', 'text'),
(18, 'secondary_color', '#245a7f', 'text'),
(19, 'short_description', 'eSchool-Saas - Manage Your School', 'text'),
(20, 'facebook', 'https://www.facebook.com/wrteam.in/', 'text'),
(21, 'instagram', 'https://www.instagram.com/wrteam.in/', 'text'),
(22, 'linkedin', 'https://in.linkedin.com/company/wrteam', 'text'),
(23, 'footer_text', '<p>&copy;&nbsp;<strong><a href=\'https://wrteam.in/\' target=\'_blank\' rel=\'noopener noreferrer\'>WRTeam</a></strong>. All Rights Reserved</p>', 'text'),
(24, 'tagline', 'We Provide the best Education', 'text'),
(25, 'hero_title_1', 'Opt for eSchool Saas 14+ robust features for an enhanced educational experience.', 'text'),
(26, 'hero_title_2', 'Top Rated Instructors', 'text'),
(27, 'about_us_title', 'A modern and unique style', 'text'),
(28, 'about_us_heading', 'Why it is best?', 'text'),
(29, 'about_us_description', 'eSchool is the pinnacle of school management, offering advanced technology, user-friendly features, and personalized solutions. It simplifies communication, streamlines administrative tasks, and elevates the educational experience for all stakeholders. With eSchool, excellence in education management is guaranteed.', 'text'),
(30, 'about_us_points', 'Affordable price,Easy to manage admin panel,Data Security', 'text'),
(31, 'custom_package_status', '1', 'text'),
(32, 'custom_package_description', 'Tailor your experience with our custom package options. From personalized services to bespoke solutions, we offer flexibility to meet your unique needs.', 'text'),
(33, 'download_our_app_description', 'Join the ranks of true trivia champions and quench your thirst for knowledge with Masters of Trivia - the ultimate quiz app designed to test your wits and unlock a world of fun facts. Challenge your brain, compete with friends, and discover fascinating tidbits from diverse categories. Don\'t miss out on the exhilarating experience that awaits you - get started now!Join the ranks of true trivia champions and quench your thirst for knowledge with Masters of Trivia - the ultimate quiz app designed to test your wits and unlock a world of fun facts.', 'text'),
(34, 'theme_primary_color', '#56cc99', 'text'),
(35, 'theme_secondary_color', '#215679', 'text'),
(36, 'theme_secondary_color_1', '#38a3a5', 'text'),
(37, 'theme_primary_background_color', '#f2f5f7', 'text'),
(38, 'theme_text_secondary_color', '#5c788c', 'text'),
(39, 'tag_line', 'Transform School Management With eSchool SaaS', 'text'),
(40, 'mobile', 'xxxxxxxxxx', 'text'),
(41, 'hero_description', 'Experience the future of education with our eSchool SaaS platform. Streamline attendance, assignments, exams, and more. Elevate your school\'s efficiency and engagement.', 'text'),
(42, 'display_school_logos', '1', 'text'),
(43, 'display_counters', '1', 'text');

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

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

CREATE TABLE `timetables` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subject_teacher_id` bigint(20) UNSIGNED DEFAULT NULL,
  `class_section_id` bigint(20) UNSIGNED NOT NULL,
  `subject_id` bigint(20) UNSIGNED DEFAULT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `note` varchar(1024) DEFAULT NULL,
  `day` enum('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday') NOT NULL,
  `type` enum('Lecture','Break') NOT NULL,
  `semester_id` bigint(20) UNSIGNED DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `timetables`
--

INSERT INTO `timetables` (`id`, `subject_teacher_id`, `class_section_id`, `subject_id`, `start_time`, `end_time`, `note`, `day`, `type`, `semester_id`, `school_id`, `created_at`, `updated_at`) VALUES
(4, 1, 1, 1, '09:00:00', '10:00:00', NULL, 'Monday', 'Lecture', NULL, 1, '2024-05-01 06:39:35', '2024-05-01 06:39:35'),
(5, 1, 1, 1, '09:00:00', '10:00:00', NULL, 'Tuesday', 'Lecture', NULL, 1, '2024-05-01 06:39:38', '2024-05-01 06:39:38'),
(6, 2, 1, 2, '10:00:00', '11:00:00', NULL, 'Monday', 'Lecture', NULL, 1, '2024-05-01 06:39:45', '2024-05-01 06:39:45'),
(7, 2, 1, 2, '10:00:00', '11:00:00', NULL, 'Tuesday', 'Lecture', NULL, 1, '2024-05-01 06:39:47', '2024-05-01 06:39:47'),
(10, 4, 1, 4, '09:00:00', '10:00:00', NULL, 'Wednesday', 'Lecture', NULL, 1, '2024-05-03 11:08:50', '2024-05-03 11:08:50'),
(11, 3, 1, 3, '10:00:00', '11:00:00', NULL, 'Wednesday', 'Lecture', NULL, 1, '2024-05-03 11:09:29', '2024-05-03 11:09:29');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `first_name` varchar(128) NOT NULL,
  `last_name` varchar(128) NOT NULL,
  `mobile` varchar(191) DEFAULT NULL,
  `email` varchar(191) NOT NULL,
  `password` varchar(191) NOT NULL,
  `gender` varchar(16) DEFAULT NULL,
  `image` varchar(512) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `current_address` varchar(191) DEFAULT NULL,
  `permanent_address` varchar(191) DEFAULT NULL,
  `occupation` varchar(128) DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `reset_request` tinyint(4) NOT NULL DEFAULT 0,
  `fcm_id` varchar(1024) DEFAULT NULL,
  `school_id` bigint(20) UNSIGNED DEFAULT NULL,
  `language` varchar(191) NOT NULL DEFAULT 'en',
  `remember_token` varchar(100) DEFAULT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `first_name`, `last_name`, `mobile`, `email`, `password`, `gender`, `image`, `dob`, `current_address`, `permanent_address`, `occupation`, `status`, `reset_request`, `fcm_id`, `school_id`, `language`, `remember_token`, `email_verified_at`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'super', 'admin', '', 'superadmin@gmail.com', '$2y$10$Y6AtoAS3VLoK9sMQOTOeJOn1azCBuewyEazbxlRMgAwyHYB/.oAxO', 'male', 'logo.svg', NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, 'en', NULL, NULL, '2024-04-29 09:04:40', '2024-05-06 05:24:44', NULL),
(2, 'School 1', 'Demo 1', '1234567890', 'school1@gmail.com', '$2y$10$e3NgWzmapnB/KUY2Ks9fWu5.mlr3Ww6PCmJrLtoYkcGY7IQYteYiS', 'male', 'users/school_admin.png', NULL, 'Bhuj', 'Bhuj', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:05:45', '2024-05-03 10:03:35', NULL),
(3, 'School 2', 'Demo 2', '1234567890', 'school2@gmail.com', '$2y$10$Vpfdd/494pmvYjmrUF2ZpeJq.C2lRspaMb32mv1ghBRB58Xf.Dy2.', 'male', 'users/school_admin.png', NULL, 'Bhuj', 'Bhuj', NULL, 1, 0, NULL, 2, 'en', NULL, NULL, '2024-04-29 09:05:45', '2024-04-29 09:05:45', NULL),
(4, 'Guardian', 'Demo', '1234567890', 'guardian@gmail.com', '$2y$10$MsfSxRFSH.bz5SHDT82ukeCs0F5iDrLVjoAWEyucwjq9dIRF67PPW', 'female', 'guardian/user.png', NULL, 'Bhuj', 'Bhuj', NULL, 1, 0, NULL, NULL, 'en', NULL, NULL, '2024-04-29 09:05:47', '2024-04-29 09:05:47', NULL),
(6, 'Teacher', 'Demo', '1234567890', 'teacher@gmail.com', '$2y$10$FGxb9p4ob99Wq.BVSVpID.TLDsdNq.6HrQIgtAOuFFbuehoDepYeS', 'male', 'teachers/user.png', NULL, 'Bhuj', 'Bhuj', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:05:47', '2024-04-29 09:05:47', NULL),
(7, 'Teena', 'Dayly', '8732391853', 'Teena@gmail.com', '$2y$10$hJatrWUNgoA/nfLGnXIfju.AiXaP2sWxPbNgV8e20iQjzye.OKs5O', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:39', '2024-04-29 09:07:39', NULL),
(8, 'Glennie', 'Dayly', '5214938824', '2023-2412', '$2y$10$YaueIDOGpoaGguYN6E4r3Oyl7HiughhiVOwlyCIPPJpIHR8uqZlfm', 'Female', NULL, '2001-01-01', '20 Prentice Junction', '153 Dexter Junction', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:39', '2024-04-29 09:19:50', NULL),
(9, 'Shani', 'Yitzhakov', '4041929606', 'Shani@gmail.com', '$2y$10$DAzTMQHTazHFyoR0Quic3.2B7BE2GzqyWq/8cqMfA5bZ8ppU4vN6.', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, 'en', NULL, NULL, '2024-04-29 09:07:39', '2024-04-29 09:07:39', NULL),
(10, 'Truda', 'Yitzhakov', '1593383320', '2023-2413', '$2y$10$/Og6boVWSQ4nqDkZkRU7w.7TOxFukghnxjUD.esewR.a0Nq8p3YTC', 'Female', NULL, '2001-01-01', '8167 Darwin Road', '0904 Twin Pines Avenue', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:39', '2024-04-29 09:19:50', NULL),
(11, 'Francois', 'Wesley', '6167797995', 'Francois@gmail.com', '$2y$10$umJvkh8J.TpflIhNQhw84eUc2FHbfV9UTRzgIP6snoDy3T49nMJ1W', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:39', '2024-04-29 09:07:39', NULL),
(12, 'Peder', 'Wesley', '8253743354', '2023-2414', '$2y$10$W/2sar7tEpM2g9vNRhMM6uYfAx0tQAGTvWQtxNl6t.Epm3B6g.VKK', 'Male', NULL, '2001-01-01', '52 La Follette Pass', '51 Bashford Parkway', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:39', '2024-04-29 09:19:50', NULL),
(13, 'Garnet', 'Foyster', '8904217699', 'Garnet@gmail.com', '$2y$10$y2XELrl79uH6SNe27AelNuSlPnkF0Z2903FlQu/op208Npo3eHop.', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:39', '2024-04-29 09:07:39', NULL),
(14, 'Christalle', 'Foyster', '9829970110', '2023-2415', '$2y$10$DYqho.mxVJTbYYhdeAZkzuvNx8Yje1wW1hRuacOIDERsGrPREz2ZO', 'Male', NULL, '2001-01-01', '602 Florence Hill', '88 Helena Circle', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-05-01 04:51:00', NULL),
(15, 'Thorin', 'Treby', '1206963664', 'Thorin@gmail.com', '$2y$10$7qlacitBLRii1a84J9svguFv3fim7nL8tdSPo3rijrl9ku6X.9Rd2', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(16, 'Corey', 'Treby', '6665234663', '2023-2416', '$2y$10$gy58Emjar1Mk4Yj7yBGU7uHWJF3f5vzQTVyi44W7GC6/m2qgT6.6e', 'Female', NULL, '2001-01-01', '8628 Lakewood Gardens Street', '7967 Linden Hill', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(17, 'Geoffry', 'Daye', '9293676248', 'Geoffry@gmail.com', '$2y$10$2JoqT306HQCheyTEiS0HjeU0JLBPfGYX13./CDU1jN4faPSv/MaMi', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(18, 'Orazio', 'Daye', '5792036097', '2023-2417', '$2y$10$zB1v3/i/CierBX9OnHd2z.C.qSxf5uMRcOChNn.DANi0Pb8EmePnO', 'Female', NULL, '2001-01-01', '0 Londonderry Avenue', '10 Melody Plaza', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(19, 'Hersh', 'Jakeman', '7752122639', 'Hersh@gmail.com', '$2y$10$hAWSz1Pbd5CImSkTt2alNOaftMoo0./Afo.AiLwRaNxdg5V7rLA/2', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(20, 'Stillmann', 'Jakeman', '3253651735', '2023-2418', '$2y$10$aJBDF3HX1XVFyhDOUAh/4.7sL7xDQnCjY3oXwsjo6cDKmkN2E.1i2', 'Female', NULL, '2001-01-01', '59 Di Loreto Trail', '80357 Mccormick Crossing', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(21, 'Juana', 'Weedall', '3257522277', 'Juana@gmail.com', '$2y$10$0NHcZ.AygYwNcKadFvYAAOdNsayU7sThoKDGoil.bdW0pSJ8lpCr2', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(22, 'Constance', 'Weedall', '7205993517', '2023-2419', '$2y$10$iCJVILiS/BxrtjCwB6L1We6O4qMB8.MQ3UMl61doDaEgTix.LN/kG', 'Male', NULL, '2001-01-01', '74 Magdeline Crossing', '524 Haas Trail', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(23, 'Diego', 'Dye', '3325819630', 'Diego@gmail.com', '$2y$10$YB0MMkNaShwuD.u3M/nJ6ufMa.YxZsq9rLerECqAYy5usjVyq5UqO', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(24, 'Lydon', 'Dye', '1863168236', '2023-24110', '$2y$10$eA5hQdHI69tkbsxGMR421.vGQjxZKSxh9Ui57vRrTblZcsMe3AHFe', 'Female', NULL, '2001-01-01', '99 Grim Plaza', '7769 David Trail', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(25, 'Abra', 'Meletti', '4928016585', 'Abra@gmail.com', '$2y$10$ks9onqzqtSEsJyNtKJzdOOK8jM76OQr5ymiS98HX7NNgBnyWaf7CC', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(26, 'Donna', 'Meletti', '5558039999', '2023-24111', '$2y$10$M/qEZT/69lfVyx1Zkjh/4.dnuUioGGqFk76LjLt0KRIGqSRBQHRiS', 'Male', NULL, '2001-01-01', '28 Monterey Terrace', '36 Meadow Vale Place', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(27, 'Red', 'Craggs', '6803439231', 'Red@gmail.com', '$2y$10$yqI1wMr1iC3qdvy1nuGdfuxgXV5cERbTEggus8SXxMb4G1AQ/8DHW', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(28, 'Willi', 'Craggs', '1171549615', '2023-24112', '$2y$10$jgcod9wWEj4c1eS4PAzeJeZGiPyrE4HcJBQStmjVADPKm0ah/0Uea', 'Male', NULL, '2001-01-01', '8094 South Parkway', '3009 Hooker Way', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(29, 'Konstantin', 'Rasp', '6889893642', 'Konstantin@gmail.com', '$2y$10$pPeRxVBTgNOOjHW7V.4h.eh4ahgwa0sNPkk/RbuJ8zgdNtu563WJm', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(30, 'Ikey', 'Rasp', '5995595174', '2023-24113', '$2y$10$wlsQlemAOrOxNaPDCLxVDuivHkRqn52VSlmyp/Y/o7yGV50VGIiTO', 'Female', NULL, '2001-01-01', '35 Anthes Street', '6950 Holmberg Alley', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:19:49', NULL),
(31, 'Perkin', 'Fernihough', '9459529727', 'Perkin@gmail.com', '$2y$10$ESRkdE7jrWxW7MzyPJoaH.uKYpypU.VaLTDYWKnnjiCpuAKcVE6Ka', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:40', '2024-04-29 09:07:40', NULL),
(32, 'Noel', 'Fernihough', '2355367418', '2023-24114', '$2y$10$ZidD7xJcnny6zZRInKx.nO30Q0BY83wIuUt2337DlyqVJAbwfSxqu', 'Male', NULL, '2001-01-01', '3700 Northland Plaza', '9379 Cody Trail', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:19:49', NULL),
(33, 'Jodie', 'Hallbord', '5185149046', 'Jodie@gmail.com', '$2y$10$hf/q4GZsyPhm5TCymgTDYORQUgAAtjwlEUu9pi56ZAr6PfhAMQZr.', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:07:41', NULL),
(34, 'Konstantine', 'Hallbord', '7434311183', '2023-24115', '$2y$10$tbQoW9FsUq/ZR.UkGMAVBuW7ch.j.JhQLyzaejSpLwGUuHMK/pLhW', 'Female', NULL, '2001-01-01', '69 Fallview Alley', '95 Prairie Rose Court', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:19:49', NULL),
(35, 'Camel', 'Pay', '8963281767', 'Camel@gmail.com', '$2y$10$6BjQwSZadJ1v4ZUpUfvhJO501LhAAG2CkV3UXj9VcivygasrgBuIq', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:07:41', NULL),
(36, 'Delcina', 'Pay', '9994296339', '2023-24116', '$2y$10$JjAHQH4.wIm68bfqCrE8Ju50Idtpbeo7e6a61mYbj9BnGaDR8Zs6.', 'Female', NULL, '2001-01-01', '6 Hagan Court', '7 Eggendart Avenue', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:19:49', NULL),
(37, 'Matthew', 'Dunnion', '1966716868', 'Matthew@gmail.com', '$2y$10$oewKM7UGc.RlGk1lRQ94YeUJN0jQ2tcO7cOKDgsdJv/TNjqHkwzze', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:07:41', NULL),
(38, 'Griffith', 'Dunnion', '8026023691', '2023-24117', '$2y$10$9F0u/epy3F/Edj3l3ozS8OkWpS08j.bHNk/Eruw6HHmZ.yDKeTGxO', 'Female', NULL, '2001-01-01', '3271 Sachs Street', '85859 Hudson Terrace', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:19:49', NULL),
(39, 'Lonee', 'Szreter', '4671975854', 'Lonee@gmail.com', '$2y$10$pL1xHTG2O44CCSbLNnAZeOwN0O3OjcgKrmn8bqqO3x3RUkSnqlNVO', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:07:41', NULL),
(40, 'Hyacinthie', 'Szreter', '8708497798', '2023-24118', '$2y$10$qKCn5GHnlbZ4Wz73jpE1MuPoamvq3n9mBDMZ13wUPK2VxKuLWL14.', 'Male', NULL, '2001-01-01', '733 Dayton Point', '6 Summit Parkway', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:19:49', NULL),
(41, 'Caye', 'Creevy', '5856981977', 'Caye@gmail.com', '$2y$10$E1goGYRrcnOBjJn1YrTBa.KgfJ0KuATGgYgfLtdy46vw/sVA2vpzu', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:07:41', NULL),
(42, 'Lorilyn', 'Creevy', '2808934953', '2023-24119', '$2y$10$fw3TadCTLQuZ5IQdAnhR4ulzTV72OO9yvtinpBFyYobOLC6I2GiZS', 'Female', NULL, '2001-01-01', '40 Old Gate Terrace', '5 Surrey Court', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:19:49', NULL),
(43, 'Linn', 'McCathay', '3422927464', 'Linn@gmail.com', '$2y$10$8m4dUZHrqQQibdkW1UcrtuA.rAaKFkzx7DiiJXwFHuOYSxsMBHrgO', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:07:41', NULL),
(44, 'Annis', 'McCathay', '8044524492', '2023-24120', '$2y$10$orjTMn3xrSsWPO/6.dbVIOPExaVeFrc19us885TXvqvLO332etMm.', 'Male', NULL, '2001-01-01', '411 Prairie Rose Junction', '736 Bunting Alley', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-05-01 04:51:00', NULL),
(45, 'Shalom', 'Heggie', '5358170264', 'Shalom@gmail.com', '$2y$10$VTf1SXXPqYmuTL99ma.GwuD9qFdYdcIdqQPzL3mn3RGcz2q0FZs/G', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-04-29 09:07:41', NULL),
(46, 'Burg', 'Heggie', '2287783061', '2023-24121', '$2y$10$mPsl/zs1dwBHirs4gaYK1Opx8aUuX8B.kNzlofxnEPpnZtWd7JZXq', 'Female', NULL, '2001-01-01', '5038 Schurz Point', '91 Grasskamp Crossing', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:41', '2024-05-01 04:51:00', NULL),
(47, 'Noll', 'Covington', '1612912571', 'Noll@gmail.com', '$2y$10$EKKvYjiGaNW.qr3JO8k4NuZdNVQHlkm6xTWNtvysgQ5wdmi77YdLy', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:47', '2024-04-29 09:07:47', NULL),
(48, 'Cullin', 'Covington', '2907531848', '2023-24122', '$2y$10$pdkCDqaphF7LxBMQj6kTu.uMMniBWFGsRO9PytM06.kcrsn.EgsiG', 'Female', NULL, '2001-01-01', '95554 East Plaza', '470 Bunting Terrace', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:47', '2024-04-29 09:19:49', NULL),
(49, 'Jany', 'Larwood', '5679036046', 'Jany@gmail.com', '$2y$10$WkGd8mNvmGt7vy0FQYgrbOdyjEqehdMa9B2U9ycn72qYHk2jbdz7i', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:47', '2024-04-29 09:07:47', NULL),
(50, 'Casey', 'Larwood', '9576633822', '2023-24123', '$2y$10$ZJHJfIqdbS/iDyhs.0f7AOhVcnLo7ow5ZEtYliOkLNxo/hIlM7EyC', 'Male', NULL, '2001-01-01', '21527 International Road', '98183 Reinke Trail', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:47', '2024-04-29 09:19:49', NULL),
(51, 'Nike', 'Aspy', '3473049306', 'Nike@gmail.com', '$2y$10$sNhpICYMZ5ALSmnEYd77LutDaJruxS9sofi8xSaRh5pzJXFx9TS4e', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:47', '2024-04-29 09:07:47', NULL),
(52, 'Calli', 'Aspy', '4834905135', '2023-24124', '$2y$10$t5LGzQTfKsgd.zebtbIqQ.cwSNJfHnTdKViTkKxJpEZwsLPGKGqSm', 'Male', NULL, '2001-01-01', '89859 Bonner Terrace', '137 Ludington Plaza', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(53, 'Rheta', 'Loram', '7626734695', 'Rheta@gmail.com', '$2y$10$SPJPKvRoHaf7j55lGNWB..Ccu.2tUDqq6FRI1/DfpLHEC6iTpHAj.', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(54, 'Freida', 'Loram', '7148726626', '2023-24125', '$2y$10$svSGSD96GSNxJnHHNmOuXutfFPjOMHf63mCrRA1rvmDETZVz6rkT.', 'Male', NULL, '2001-01-01', '77515 Grasskamp Plaza', '2 Namekagon Lane', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(55, 'Horton', 'Stairmond', '8354572514', 'Horton@gmail.com', '$2y$10$kL2akunlmlWJNmYMu17XLeJ8t5.1EvVCBeJJP3WTK8uU3BGgAPO26', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(56, 'Mycah', 'Stairmond', '6914928035', '2023-24126', '$2y$10$P7l8w97OZcX0OEhHUz/nC.yobvHOQ.yay2oCc/uA1Z8fOdJzwCcm2', 'Male', NULL, '2001-01-01', '891 Delladonna Plaza', '09820 Gerald Court', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(57, 'Lidia', 'Fagence', '5456699917', 'Lidia@gmail.com', '$2y$10$ByQ03ukYoDJWH..7pKH9T.HKjOineYSQHi28l1/ZocjiGqNCa8mam', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(58, 'Dusty', 'Fagence', '5809688597', '2023-24127', '$2y$10$NBu/2h31Yn6Xwof4MpwvheKcuvvISNJIkyXxvgJSkQyFR7BL31/D6', 'Male', NULL, '2001-01-01', '6 Judy Road', '75 Magdeline Center', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(59, 'Luci', 'Zelley', '2323453725', 'Luci@gmail.com', '$2y$10$eKkDZv9SYYp0SvNgajD.WeGKnU5x4RGcgivXUeFJSKPJiz4nQEgO2', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(60, 'Shirley', 'Zelley', '2013115508', '2023-24128', '$2y$10$JBGfXjp24tuEeVTJbvoUsuSvNRdOdBToGMm4HILem6DCXu/PJHcS.', 'Female', NULL, '2001-01-01', '0 Quincy Trail', '83 Hanson Road', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(61, 'Kania', 'Smallacombe', '8342072945', 'Kania@gmail.com', '$2y$10$PH6Lt8sPxb/szuPJMUCu/O2emiZR2WQJlPdENg7WO6GK7fsvNLpzm', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(62, 'Corabella', 'Smallacombe', '9597082301', '2023-24129', '$2y$10$BwvsB.A1OoKO3dDoQXDxsudXZLLztkDT3J4YB0So2EuppULZUmCEi', 'Female', NULL, '2001-01-01', '5 Meadow Valley Plaza', '0 2nd Terrace', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(63, 'Merell', 'Noddings', '6784567243', 'Merell@gmail.com', '$2y$10$jwSCJh03JiwKwQTkm4CZ6.lYgJODj3FF.JT4OfoJ4c//OqSOxGOKG', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(64, 'Robers', 'Noddings', '8261072305', '2023-24130', '$2y$10$eAPua33nY9LqfcGL/ZxarOKO0gs3ZW9vE6iytstjehobhuzevGdNC', 'Male', NULL, '2001-01-01', '51942 Vahlen Crossing', '26 Eggendart Hill', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(65, 'Jake', 'Dimbleby', '5854779106', 'Jake@gmail.com', '$2y$10$R0i55iTkP5.02sV6GIkgsufZwz8834nOdmjZ/9Tvtud/Y5j4j24Om', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(66, 'Reynard', 'Dimbleby', '1755738482', '2023-24131', '$2y$10$XO1ENa./En6r2VWaSG99leexI1Sm682VSn3VlzLyGzupRHY1jXIgO', 'Male', NULL, '2001-01-01', '1974 Sachs Lane', '25541 Carey Junction', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(67, 'Laraine', 'MacElane', '7495224433', 'Laraine@gmail.com', '$2y$10$rf8twDEAhYl48mRsCZNjuu0btV363I2PZ8MHn3X06z6LSxq.1vESm', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(68, 'Lindsey', 'MacElane', '7161882268', '2023-24132', '$2y$10$gEyyzqI1T9CpUfqwd/qGEOdLo7Ew5fuY6SFRgTUG8CJHG8kJH0lDa', 'Female', NULL, '2001-01-01', '3 Spenser Point', '76 Lighthouse Bay Junction', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:19:49', NULL),
(69, 'Lane', 'Balma', '7998421541', 'Lane@gmail.com', '$2y$10$S3.dpLHuWtZcDTWQql4Q..LrKO4s77b3lmb.7FD.VM.Am0Sm0DIaq', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:48', '2024-04-29 09:07:48', NULL),
(70, 'Lesley', 'Balma', '6618825852', '2023-24133', '$2y$10$N7QxckAhb3V8VRmRXnGh7.PXgbfgmquzY56Ah2CLG02KwhHeqBIgm', 'Male', NULL, '2001-01-01', '8894 Annamark Crossing', '08578 Orin Alley', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(71, 'Briny', 'Edes', '3949376533', 'Briny@gmail.com', '$2y$10$gGOoItwhWtwsFphBE0828uK85eCPpbncX9GjQrI24o04gTvBYR1N2', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(72, 'Trisha', 'Edes', '6776854152', '2023-24134', '$2y$10$F/JuAtdono4BPmVNAhhp7OIfQ.7F37GhLuQyEX9pKi4O.VUzRbHou', 'Male', NULL, '2001-01-01', '2 Bunker Hill Alley', '9712 Tomscot Drive', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(73, 'Brenna', 'Hamson', '6568065714', 'Brenna@gmail.com', '$2y$10$nnbYccABPWE3ETo/UGoHO.2fq/76/p6L3MgQcUTwDF7mzUeeXeOUu', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(74, 'Diandra', 'Hamson', '3374717772', '2023-24135', '$2y$10$WlUHZb1xlLhT8frrvejF2O16J/AgK3wJcjNJ9nuFSHLT6QVTL.Ugu', 'Female', NULL, '2001-01-01', '67 Helena Terrace', '6 Kenwood Pass', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(75, 'Terri-jo', 'Gillimgham', '1243757373', 'Terri-jo@gmail.com', '$2y$10$U/xck1yBBG7O2WslnKyqq.Aia8xrSA0XeFFRislfaMLPiHact9EUq', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(76, 'Alicea', 'Gillimgham', '3388773522', '2023-24136', '$2y$10$pFRK4Vcn7hz7wa4bjZyl3ePq.ALCwGEl2fz5vt.hi4r5k6.8FVDUW', 'Female', NULL, '2001-01-01', '86067 Logan Terrace', '3475 Maryland Hill', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(77, 'Sol', 'Trinkwon', '7499811228', 'Sol@gmail.com', '$2y$10$Yg5N8zHdH53.g9IZW9tcde0j3paEJ544nrR/EtOdNnDVMR3AXPqAG', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(78, 'Mikel', 'Trinkwon', '5376736128', '2023-24137', '$2y$10$RrO47RnLA2pKfc3IrgHzfOIrYaCOYtUowaCDLYp7DbS2TWU4bSGYC', 'Female', NULL, '2001-01-01', '8080 Drewry Pass', '20 Packers Circle', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(79, 'Ferdinanda', 'Procter', '1433304617', 'Ferdinanda@gmail.com', '$2y$10$26OpCeDVETxZx4gt9X.SHubufYeC1SaU0L46l3D55LBnTvWfZmjta', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(80, 'Junina', 'Procter', '8822501437', '2023-24138', '$2y$10$ik/nXHi4Dx40zJE7.ubHTe/fHWZIjzU750FdePVdhFGfxtxJukFuO', 'Male', NULL, '2001-01-01', '73 Thackeray Crossing', '01 Grayhawk Circle', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(81, 'Terri', 'Pointon', '5531684690', 'Terri@gmail.com', '$2y$10$3MFRlYQGK6HX7n5TgZFeEuX1Mjql/0nTnhorsKr3dCuhc4JSQ2T8q', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(82, 'Martie', 'Pointon', '1041620487', '2023-24139', '$2y$10$lgxWw2mVIMP.ZFEcJC2njeq9o3Ef4WAdnsJ48KszovTTsd2hfO/ZG', 'Male', NULL, '2001-01-01', '9533 Roth Plaza', '4 American Hill', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(83, 'Ursa', 'Kahn', '7458844785', 'Ursa@gmail.com', '$2y$10$5OOO6MRoQQbXuCS2AdSPr.idAHF.req3Zv2lPd0Pb.Pldwk1L32OK', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(84, 'Eartha', 'Kahn', '8437938888', '2023-24140', '$2y$10$RJFL8M5EUDRG61HpSXAGruONq5hkv2ln0cXaKhPZodXCjgqWU2vFi', 'Female', NULL, '2001-01-01', '01302 Hauk Center', '3 Hoepker Hill', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(85, 'Zelma', 'Abella', '7113856099', 'Zelma@gmail.com', '$2y$10$YHvuS9MlhqM8vowebme3tOc0tqri5NAXVGV7sCKBMLYUVIY2ta5sS', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:07:49', NULL),
(86, 'Gisela', 'Abella', '2838084926', '2023-24141', '$2y$10$AmkcCH/uA2kKh23D7vZ/TeIeK0RjGOFvuRo75qDYupRu4xm8oxOmy', 'Female', NULL, '2001-01-01', '2 Acker Center', '1196 Hintze Place', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:49', '2024-04-29 09:19:49', NULL),
(87, 'Tessie', 'Baraja', '4897345468', 'Tessie@gmail.com', '$2y$10$KZRIlVnEXX1FebAONV4a8ujtia3dyEiC0PkkrMpY9nrTVBVMKNCwi', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:07:55', NULL),
(88, 'Rosemarie', 'Baraja', '4487756734', '2023-24142', '$2y$10$gaHhFrBMq3CpX/ZlKIYEPeaEbVFI.bt8uHsOh.yNJoeexwp6pqB7i', 'Female', NULL, '2001-01-01', '07 Kensington Court', '45066 Fisk Junction', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:19:49', NULL),
(89, 'Bess', 'Sein', '4766100429', 'Bess@gmail.com', '$2y$10$LRHz1XxPmgbPEVSc3j.cMuH5WN5bqaeeG.4j2f0woI/pwFR9lsMX2', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:07:55', NULL),
(90, 'Esmeralda', 'Sein', '7849720473', '2023-24143', '$2y$10$eMCei6KRmp7wQRoGKj18n.ZjfK4yaXDIK2u9xtjhM55nm6biHFiem', 'Male', NULL, '2001-01-01', '36 Vahlen Street', '6665 Bowman Road', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:19:49', NULL),
(91, 'Bamby', 'Merritt', '8399812251', 'Bamby@gmail.com', '$2y$10$tyyjUYf8N43ihPufUu6Am.ZnxKBmEMVC7TgZFwCLupRgq2goAY4Gy', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:07:55', NULL),
(92, 'Kai', 'Merritt', '1504509192', '2023-24144', '$2y$10$08mxmLBiEOCVNXsp3Bn/2uEvtMIgPsFfbgxCSIFGY2H11YD8lCBFe', 'Male', NULL, '2001-01-01', '4378 Larry Place', '48188 Reindahl Point', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:19:49', NULL),
(93, 'Drona', 'Kneesha', '8152427521', 'Drona@gmail.com', '$2y$10$wQvP9F5vPFQ0.EEn93PDYu.nGWqFLo5SEzo4iGt2Q68mqjY4EippW', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:07:55', NULL),
(94, 'Missy', 'Kneesha', '4197137172', '2023-24145', '$2y$10$gWN2LW8fbCNGbizzx5VUEuk1VbwQvLHtp6jlMup9wqdKY50a2tpIC', 'Male', NULL, '2001-01-01', '8416 Sycamore Street', '14968 Susan Road', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:19:49', NULL),
(95, 'Allyson', 'Wilshin', '8297392619', 'Allyson@gmail.com', '$2y$10$rpy.FGSt1xn1LCKE517RBO2n6KSR8pTLP5SAgD4oaUwtcZF6/eDGO', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:07:55', NULL),
(96, 'Paulie', 'Wilshin', '9424171346', '2023-24146', '$2y$10$Av/j.SnHsm44iQ5JnAi50Oiz11h2kWvutmVKvyLG7VIzmbVq52BHC', 'Female', NULL, '2001-01-01', '0 Grayhawk Avenue', '1 Dottie Terrace', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:19:49', NULL),
(97, 'Dulcea', 'Halford', '1336734113', 'Dulcea@gmail.com', '$2y$10$d9WQOKGLuxtEINCzm7ULgOTBi5ECw5LfPi0S3aFU/GMbc8ckq4Z0S', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:07:55', NULL),
(98, 'Alvira', 'Halford', '5274153228', '2023-24147', '$2y$10$kej.QEt10BaSn6d1HAfgee/Rv6.UdU3zRFZ.HAMtA96WDl8pK221q', 'Male', NULL, '2001-01-01', '74 Wayridge Parkway', '17988 Utah Lane', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:55', '2024-04-29 09:19:49', NULL),
(99, 'Victoria', 'Fooks', '7017286552', 'Victoria@gmail.com', '$2y$10$9woVFK3RChKs2va0u1OSX.sY5.FZsIuFTqhhOFhnnQX1ysb6aAIHu', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(100, 'Candida', 'Fooks', '6401051448', '2023-24148', '$2y$10$1ZR2Gt4EbGqKhn/LE.ZmI.JMxMwZHIGhUAVVaDtEtGJ43cctO91l.', 'Female', NULL, '2001-01-01', '3 Stoughton Parkway', '04 Tennyson Park', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(101, 'Benedicta', 'MacNulty', '8797767770', 'Benedicta@gmail.com', '$2y$10$VsG32Bcn/rwT.8n.slQIDu6LdviG7aUCPslfJ/CornlX/jugRI.u2', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(102, 'Maddalena', 'MacNulty', '7883705252', '2023-24149', '$2y$10$OYIosTJLa.8MhnRwkPN9zuWL0xjF7rDzOI5QAy7EdA.3XDyyhQZxq', 'Male', NULL, '2001-01-01', '73 Bonner Road', '5683 Forster Junction', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(103, 'Rabi', 'Cyseley', '2631282148', 'Rabi@gmail.com', '$2y$10$NVKRDdh5Upj7E2RahyAiOOVWohF3sEdLVMg6w71TVBrpxJU03kr6W', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(104, 'Rolando', 'Cyseley', '3727697385', '2023-24150', '$2y$10$mlLVi5GPxgeZinb0WSOADeTQ1zJaGcozQkGIIPsW9XKQ6PTfeDeUW', 'Male', NULL, '2001-01-01', '4 Merry Terrace', '0 Kropf Street', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(105, 'Bev', 'Archanbault', '2187712659', 'Bev@gmail.com', '$2y$10$Z1OSsFJv0wkSHTQNl6IpguXiOojRUOoyp4/K0aMq2BUoMv2eSHM6K', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(106, 'Thorpe', 'Archanbault', '7247434779', '2023-24151', '$2y$10$k7Dm0pr.uNsdozMZjCoI8OCm.UwS6wRgEgEltyJhf04eeQ5Y.gqVq', 'Female', NULL, '2001-01-01', '4754 Westerfield Way', '1622 Starling Avenue', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(107, 'Forrest', 'Hartill', '4419774172', 'Forrest@gmail.com', '$2y$10$p93QwgQ/DuvplHRWSZ9YAuwN006SmUKVUnvg9DRpwBe9Rg0B1.qIi', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(108, 'Justis', 'Hartill', '6325871536', '2023-24152', '$2y$10$QFuTa4MvNzbcVDy3jwNBouGcjgYiTxDmdli91ypNKWOrfgpTAs8rK', 'Male', NULL, '2001-01-01', '35160 Mockingbird Junction', '8422 Arizona Drive', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(109, 'Jennee', 'Sidon', '3263956819', 'Jennee@gmail.com', '$2y$10$FWTioCIl5m1ewzJoRCHIzuidpevwAeRfezGxNXKQsh6QSnnxl2pMK', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(110, 'Idaline', 'Sidon', '3098105732', '2023-24153', '$2y$10$J/yBKbNZL9/.VCl/pv3vvu5Ub7Ond0EY.TsJe1H914z3nI4R3TzRe', 'Female', NULL, '2001-01-01', '039 Golf View Point', '020 Sunfield Crossing', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(111, 'Berkie', 'Martinec', '3508198414', 'Berkie@gmail.com', '$2y$10$IQ/6MdSmvHFtJaFyh05RLOX2C8WdFep/C9k5cRQQ20hWx7jLQ7Qrq', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(112, 'Baxter', 'Martinec', '1802487974', '2023-24154', '$2y$10$TM9MhTx228EOzEShUUA0Sujk3AY6EL63p0SC9pn1yrWc4mIDQZYKO', 'Male', NULL, '2001-01-01', '08 Westridge Street', '4 Monica Way', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(113, 'Bettina', 'Flaxman', '3874486873', 'Bettina@gmail.com', '$2y$10$knxFyZxtPdQCzXzUjnYpJeSbHHoHgGjRLVmsmrzT.lLmU/FoHMiO2', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(114, 'Caresse', 'Flaxman', '6492299999', '2023-24155', '$2y$10$7/M7tQhnFePj9n0pDkf.tuXdgoWpxL5p3eB8fb3y5SzZaNgQ8h.5.', 'Male', NULL, '2001-01-01', '902 Prairieview Junction', '24879 Helena Alley', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:19:49', NULL),
(115, 'Ninnette', 'McWard', '3249669101', 'Ninnette@gmail.com', '$2y$10$qiTVPzmtD90tc8HhAFP98evoy49xHRCDDOxMhpqD3njCRRxmqEtmK', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:56', '2024-04-29 09:07:56', NULL),
(116, 'Zoe', 'McWard', '3942934825', '2023-24156', '$2y$10$rgiINCy.2DNVI9ah9P27ku3MIvKv7kYVn6WDm/4rseehpxYS35g2K', 'Female', NULL, '2001-01-01', '326 International Circle', '1437 Hoffman Parkway', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:19:49', NULL),
(117, 'Aprilette', 'Shorbrook', '4058839711', 'Aprilette@gmail.com', '$2y$10$IBsXArkDPiCln3AkauQg1e8frb8iouDK/hWCuHlYr.ViA/a5doG82', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:07:57', NULL),
(118, 'Nerta', 'Shorbrook', '1761178681', '2023-24157', '$2y$10$Xe5C8HDaY8lkyedWizoSsOiEOXBnkWQWXJdD0PmNSIspPbIm0mbm.', 'Female', NULL, '2001-01-01', '43 Annamark Plaza', '2 Meadow Ridge Place', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:19:49', NULL),
(119, 'Bettye', 'Labern', '1045198447', 'Bettye@gmail.com', '$2y$10$WPpOj0NSRst8GJKk2XOvSe2uy1a1EUrRXrUnszWbSohLgjngfZg6i', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:07:57', NULL),
(120, 'Blinnie', 'Labern', '7816673624', '2023-24158', '$2y$10$3vm92X8BMPrZ8CqOMRtnt.YcqC41OcjPn/VDggDemefjw68/Fm2ai', 'Male', NULL, '2001-01-01', '2 Di Loreto Parkway', '0 Manley Pass', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:19:49', NULL),
(121, 'Reamonn', 'Folca', '4334817430', 'Reamonn@gmail.com', '$2y$10$d5eXKIQDZe35fgimTBxfaOhJiYJ9JXmck/BceE2BLoTxgJUmDyoPq', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:07:57', NULL),
(122, 'Tulley', 'Folca', '6155907996', '2023-24159', '$2y$10$crKUDny3bLXL7x.BPUoBxesrOVaeGXnkbwcd5Ez8D2eR04iyImR6.', 'Male', NULL, '2001-01-01', '5393 Armistice Circle', '81680 Victoria Lane', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:19:49', NULL),
(123, 'Sean', 'Grieveson', '1849123834', 'Sean@gmail.com', '$2y$10$LjNxtwOPXAD8Oy.gDEbi2OaZGevNsdM8pZlfY08DY3akJHLEuZGLa', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:07:57', NULL),
(124, 'Bernadette', 'Grieveson', '2786585928', '2023-24160', '$2y$10$wfOZ4wdFTokElqE0Han2zevCzX4ob2MnqBWBfz/UJFx8qNBLGMq3K', 'Female', NULL, '2001-01-01', '1 Transport Point', '8204 Jenifer Park', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:19:49', NULL),
(125, 'Constantina', 'Greening', '1607307284', 'Constantina@gmail.com', '$2y$10$j1hUWBW116olOQkhfeQ0W.Af6kpjeTmi/3/UcGPccuJi/Rzygj5gu', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:07:57', NULL),
(126, 'Cori', 'Greening', '9019435983', '2023-24161', '$2y$10$5VK.PHAVbxYV8c/TX/ciluh7gakoqqbleSxoa3qmeG6L6ApqqS4Xq', 'Female', NULL, '2001-01-01', '37658 Vernon Alley', '172 Knutson Crossing', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:07:57', '2024-04-29 09:19:49', NULL),
(127, 'Lucifer', 'Patel', '9654585566', 'lucifer@gmail.com', '$2y$10$49E3IPl2oXa4IKgkPVJtqO22G.Gp.oFFcVR10PmEncQHBzE2YZ.jm', 'male', NULL, '1970-01-01', 'A', 'A', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:08:18', '2024-05-03 08:04:56', NULL),
(128, 'Thor', 'Patel', '566321258', 'thor@gmail.com', '$2y$10$iHfcwA39y8kpFrq/cQqKlezBoVlffr8O2UAYxkbrhBiYZLLDIFhvO', 'male', NULL, '1970-01-01', 'A', 'A', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:08:39', '2024-04-29 09:08:39', NULL),
(129, 'Hulk', 'Joshi', '9654525544', 'hulk@gmail.com', '$2y$10$bqVEJmRH43OHjVjpl1OdR.x9WuQHfbWg8xaX3FQRzbf8VCyrowEoK', 'male', NULL, '1970-01-01', 'A', 'A', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:09:03', '2024-04-29 09:09:03', NULL),
(130, 'Locy', 'Patel', '1523554455', 'locy@gmail.com', '$2y$10$QRsPBXRg1CWjvqPYV//L4.kjlE6gR9VAG.Hlpe1zx7PqBqMvpqOCS', 'male', NULL, '1970-01-01', 'A', 'A', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 09:09:23', '2024-04-29 09:09:23', NULL),
(131, 'Kevin', 'Ouma', '8965452366', 'kevin@gmail.com', '$2y$10$pXs1YcFF3au4QIJa301y7O/r.7OQSx2PYVGfQfa35dVeE.1vMjH9.', NULL, NULL, '1970-01-01', NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-04-29 11:07:50', '2024-05-01 06:40:19', NULL),
(132, 'Carmon', 'Weall', '8809366675', 'Carmon@gmail.com', '$2y$10$K1B7XehGwh4CTyrhPEDpM.5fiMNU1oHtD4YIdeY6MEO7CmOlP9KI6', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:06', '2024-05-03 06:09:06', NULL),
(133, 'Winonah', 'Weall', '3969882703', '2024-25162', '$2y$10$QRAcDbu6/Po/GfVziF29BOL9YXbdwea/b9LXJgNnPhadWn9R6KLlm', 'Male', NULL, '2001-01-01', '475 Prairie Rose Pass', '17645 Claremont Circle', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:06', '2024-05-03 06:09:17', NULL),
(134, 'Cort', 'Faint', '8262824391', 'Cort@gmail.com', '$2y$10$7ApYv5DIoz3fb1a.LQ9Vb.gYi3lnNOH6kvmfRWcGmAJBES978ehEy', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:06', '2024-05-03 06:09:06', NULL),
(135, 'Walton', 'Faint', '7168725654', '2024-25163', '$2y$10$Hz6pHdW6OGgJXgvf.8teoOFS0D3qj34hVCk.CdUkgDDJI7YgETZoS', 'Female', NULL, '2001-01-01', '0083 Elka Plaza', '40836 Westridge Lane', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:06', '2024-05-03 06:09:17', NULL),
(136, 'Coreen', 'Spurgeon', '2998019807', 'Coreen@gmail.com', '$2y$10$LuYr28z2YsQO1FkPhz5Vyejp0JtXbqweiO6bFGf/1VEODMfujGvTC', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:06', '2024-05-03 06:09:06', NULL),
(137, 'Cordie', 'Spurgeon', '3419985420', '2024-25164', '$2y$10$.3P7kOSXzLXwpLzDoa6KGO0kAGQwTHFbk6LPqCRok2OA0i5kNMLkW', 'Male', NULL, '2001-01-01', '523 Marquette Plaza', '75726 Daystar Junction', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:06', '2024-05-03 06:09:17', NULL),
(138, 'Onfroi', 'Rheam', '4592977502', 'Onfroi@gmail.com', '$2y$10$uZb/ROaTAzYlUm/KWBdR9uH4.v/o0doZnhIJlI.l0C0OUSTO.UVW6', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:06', '2024-05-03 06:09:06', NULL),
(139, 'Inglis', 'Rheam', '8739238956', '2024-25165', '$2y$10$S1ku2pxG6kwUEXLACos0JuloJB1r/PSV8HDbr9kAX5U4UVVHgTsjG', 'Female', NULL, '2001-01-01', '776 Ridgeway Pass', '37 Becker Crossing', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:17', NULL),
(140, 'Rosy', 'Winkle', '3163324234', 'Rosy@gmail.com', '$2y$10$A9zy1TZrW1d09yGaxcEeH.pUkpaflEvuRQQ9J.Q5qwJIZ/4EBvM4S', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(141, 'Essie', 'Winkle', '6024071156', '2024-25166', '$2y$10$4ce.ZQ86YWIP2Wv.hIEpj.Q/HExR2egxov25I7E580I1tMIVQEBfy', 'Male', NULL, '2001-01-01', '75 Mayer Drive', '12 Morrow Road', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:17', NULL),
(142, 'Glen', 'Aspinal', '2726330735', 'Glen@gmail.com', '$2y$10$m4tgs8EXDSTaMqctQqOQP.VhV.moR132685sQE90pGpI1wMGguaTe', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(143, 'Geoffry', 'Aspinal', '8934204098', '2024-25167', '$2y$10$tVjkoUCEqSG.POUUwryw7eM12b12IdipOnI/pvv/YW8/bhw2YwGlu', 'Female', NULL, '2001-01-01', '86 Comanche Plaza', '45 Troy Park', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:17', NULL),
(144, 'Gris', 'Pinard', '6811521314', 'Gris@gmail.com', '$2y$10$8WYKqkHCt0ZqcUGAqdXYL.4Wj3Sfg8tiBhzNhO/b42i/kSwWIrEHG', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(145, 'Pierre', 'Pinard', '8121421719', '2024-25168', '$2y$10$D.PEGe9s0eP/cMwXxYJsIefCeLDau4eb6zNhIUT8XDOJD0v16l.ja', 'Male', NULL, '2001-01-01', '89034 Hoard Street', '296 Dryden Terrace', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:17', NULL),
(146, 'Prent', 'Cuffe', '9585191020', 'Prent@gmail.com', '$2y$10$./QZQPlbOjGPyola2r2VBukF0TwgvesrUgHRtgTdQMT7gAGitrbcW', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(147, 'Gordie', 'Cuffe', '1215431529', '2024-25169', '$2y$10$DGRMNaEwaryR658IwVyPr.vY1O8XcExIy5NbKcafgRcDA8iyc359y', 'Male', NULL, '2001-01-01', '9534 Florence Street', '7 Bonner Place', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:17', NULL),
(148, 'Armin', 'Andreasson', '4764536329', 'Armin@gmail.com', '$2y$10$yOqML4vtYd9c78LFQI6Kd.jlhjjLNABzSqpeot6N5M9aIq.7SKxHS', 'Male', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(149, 'Hakim', 'Andreasson', '8769620389', '2024-25170', '$2y$10$.RALM1k8AXeO8Yvhp.X1yO3jgYsLd6JBtCXDhOIP1L6tPUlzCCgL6', 'Female', NULL, '2001-01-01', '1 Hooker Lane', '394 Elmside Way', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:17', NULL),
(150, 'Cristy', 'Keniwell', '5173190724', 'Cristy@gmail.com', '$2y$10$mOEQZtugNioLFMIqVNps6ufXu89Q0hyVFZb9aylMPsjmDCcqXr1Ri', 'Female', NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:07', NULL),
(151, 'Silvia', 'Keniwell', '7226521600', '2024-25171', '$2y$10$aUXGbuiRKNkBG/k4XlqEhewzulTBUudS7fB7YBhukF1Sh6byQyVe2', 'Female', NULL, '2001-01-01', '4967 Coolidge Hill', '8164 Sutteridge Park', NULL, 1, 0, NULL, 1, 'en', NULL, NULL, '2024-05-03 06:09:07', '2024-05-03 06:09:17', NULL);

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

--
-- Table structure for table `user_status_for_next_cycles`
--

CREATE TABLE `user_status_for_next_cycles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `status` int(11) NOT NULL,
  `school_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `academic_calendars`
--
ALTER TABLE `academic_calendars`
  ADD PRIMARY KEY (`id`),
  ADD KEY `academic_calendars_school_id_foreign` (`school_id`),
  ADD KEY `academic_calendars_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `addons`
--
ALTER TABLE `addons`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `addons_feature_id_unique` (`feature_id`);

--
-- Indexes for table `addon_subscriptions`
--
ALTER TABLE `addon_subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `addon_subscriptions_school_id_foreign` (`school_id`),
  ADD KEY `addon_subscriptions_feature_id_foreign` (`feature_id`),
  ADD KEY `addon_subscriptions_subscription_id_foreign` (`subscription_id`),
  ADD KEY `addon_subscriptions_payment_transaction_id_foreign` (`payment_transaction_id`);

--
-- Indexes for table `announcements`
--
ALTER TABLE `announcements`
  ADD PRIMARY KEY (`id`),
  ADD KEY `announcements_school_id_foreign` (`school_id`),
  ADD KEY `announcements_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `announcement_classes`
--
ALTER TABLE `announcement_classes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_columns` (`announcement_id`,`class_section_id`,`school_id`),
  ADD KEY `announcement_classes_school_id_foreign` (`school_id`),
  ADD KEY `announcement_classes_announcement_id_index` (`announcement_id`),
  ADD KEY `announcement_classes_class_section_id_index` (`class_section_id`),
  ADD KEY `announcement_classes_class_subject_id_foreign` (`class_subject_id`);

--
-- Indexes for table `assignments`
--
ALTER TABLE `assignments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `assignments_school_id_foreign` (`school_id`),
  ADD KEY `assignments_class_section_id_foreign` (`class_section_id`),
  ADD KEY `assignments_class_subject_id_foreign` (`class_subject_id`),
  ADD KEY `assignments_session_year_id_foreign` (`session_year_id`),
  ADD KEY `assignments_created_by_foreign` (`created_by`),
  ADD KEY `assignments_edited_by_foreign` (`edited_by`);

--
-- Indexes for table `assignment_submissions`
--
ALTER TABLE `assignment_submissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `assignment_submissions_assignment_id_foreign` (`assignment_id`),
  ADD KEY `assignment_submissions_school_id_foreign` (`school_id`),
  ADD KEY `assignment_submissions_session_year_id_foreign` (`session_year_id`),
  ADD KEY `assignment_submissions_student_id_foreign` (`student_id`);

--
-- Indexes for table `attendances`
--
ALTER TABLE `attendances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `attendances_school_id_foreign` (`school_id`),
  ADD KEY `attendances_class_section_id_foreign` (`class_section_id`),
  ADD KEY `attendances_session_year_id_foreign` (`session_year_id`),
  ADD KEY `attendances_student_id_foreign` (`student_id`);

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

--
-- Indexes for table `classes`
--
ALTER TABLE `classes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `classes_school_id_foreign` (`school_id`),
  ADD KEY `classes_medium_id_foreign` (`medium_id`),
  ADD KEY `classes_shift_id_foreign` (`shift_id`),
  ADD KEY `classes_stream_id_foreign` (`stream_id`);

--
-- Indexes for table `class_sections`
--
ALTER TABLE `class_sections`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_id` (`class_id`,`section_id`,`medium_id`),
  ADD KEY `class_sections_school_id_foreign` (`school_id`),
  ADD KEY `class_sections_section_id_foreign` (`section_id`),
  ADD KEY `class_sections_medium_id_foreign` (`medium_id`);

--
-- Indexes for table `class_subjects`
--
ALTER TABLE `class_subjects`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_ids` (`class_id`,`subject_id`,`virtual_semester_id`),
  ADD KEY `class_subjects_elective_subject_group_id_foreign` (`elective_subject_group_id`),
  ADD KEY `class_subjects_school_id_foreign` (`school_id`),
  ADD KEY `class_subjects_subject_id_foreign` (`subject_id`),
  ADD KEY `class_subjects_semester_id_foreign` (`semester_id`);

--
-- Indexes for table `class_teachers`
--
ALTER TABLE `class_teachers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_id` (`class_section_id`,`teacher_id`),
  ADD KEY `class_teachers_school_id_foreign` (`school_id`),
  ADD KEY `class_teachers_teacher_id_foreign` (`teacher_id`);

--
-- Indexes for table `compulsory_fees`
--
ALTER TABLE `compulsory_fees`
  ADD PRIMARY KEY (`id`),
  ADD KEY `compulsory_fees_payment_transaction_id_foreign` (`payment_transaction_id`),
  ADD KEY `compulsory_fees_installment_id_foreign` (`installment_id`),
  ADD KEY `compulsory_fees_fees_paid_id_foreign` (`fees_paid_id`),
  ADD KEY `compulsory_fees_school_id_foreign` (`school_id`),
  ADD KEY `compulsory_fees_student_id_foreign` (`student_id`);

--
-- Indexes for table `elective_subject_groups`
--
ALTER TABLE `elective_subject_groups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `elective_subject_groups_school_id_foreign` (`school_id`),
  ADD KEY `elective_subject_groups_class_id_foreign` (`class_id`),
  ADD KEY `elective_subject_groups_semester_id_foreign` (`semester_id`);

--
-- Indexes for table `exams`
--
ALTER TABLE `exams`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exams_school_id_foreign` (`school_id`),
  ADD KEY `exams_class_id_foreign` (`class_id`),
  ADD KEY `exams_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `exam_marks`
--
ALTER TABLE `exam_marks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exam_marks_school_id_foreign` (`school_id`),
  ADD KEY `exam_marks_exam_timetable_id_foreign` (`exam_timetable_id`),
  ADD KEY `exam_marks_class_subject_id_foreign` (`class_subject_id`),
  ADD KEY `exam_marks_session_year_id_foreign` (`session_year_id`),
  ADD KEY `exam_marks_student_id_foreign` (`student_id`);

--
-- Indexes for table `exam_results`
--
ALTER TABLE `exam_results`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exam_results_school_id_foreign` (`school_id`),
  ADD KEY `exam_results_exam_id_foreign` (`exam_id`),
  ADD KEY `exam_results_class_section_id_foreign` (`class_section_id`),
  ADD KEY `exam_results_session_year_id_foreign` (`session_year_id`),
  ADD KEY `exam_results_student_id_foreign` (`student_id`);

--
-- Indexes for table `exam_timetables`
--
ALTER TABLE `exam_timetables`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exam_timetables_exam_id_foreign` (`exam_id`),
  ADD KEY `exam_timetables_school_id_foreign` (`school_id`),
  ADD KEY `exam_timetables_class_subject_id_foreign` (`class_subject_id`),
  ADD KEY `exam_timetables_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `expenses`
--
ALTER TABLE `expenses`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `salary_unique_records` (`staff_id`,`month`,`year`),
  ADD KEY `expenses_school_id_foreign` (`school_id`),
  ADD KEY `expenses_category_id_foreign` (`category_id`),
  ADD KEY `expenses_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `expense_categories`
--
ALTER TABLE `expense_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expense_categories_school_id_foreign` (`school_id`);

--
-- Indexes for table `extra_student_datas`
--
ALTER TABLE `extra_student_datas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `extra_student_datas_form_field_id_foreign` (`form_field_id`),
  ADD KEY `extra_student_datas_school_id_foreign` (`school_id`),
  ADD KEY `extra_student_datas_student_id_foreign` (`student_id`);

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

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

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

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

--
-- Indexes for table `feature_section_lists`
--
ALTER TABLE `feature_section_lists`
  ADD PRIMARY KEY (`id`),
  ADD KEY `feature_section_lists_feature_section_id_foreign` (`feature_section_id`);

--
-- Indexes for table `fees`
--
ALTER TABLE `fees`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fees_class_id_foreign` (`class_id`),
  ADD KEY `fees_school_id_foreign` (`school_id`),
  ADD KEY `fees_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `fees_advance`
--
ALTER TABLE `fees_advance`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fees_advance_compulsory_fee_id_foreign` (`compulsory_fee_id`),
  ADD KEY `fees_advance_student_id_foreign` (`student_id`),
  ADD KEY `fees_advance_parent_id_foreign` (`parent_id`);

--
-- Indexes for table `fees_class_types`
--
ALTER TABLE `fees_class_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_ids` (`class_id`,`fees_type_id`,`school_id`,`fees_id`),
  ADD KEY `fees_class_types_fees_id_foreign` (`fees_id`),
  ADD KEY `fees_class_types_fees_type_id_foreign` (`fees_type_id`),
  ADD KEY `fees_class_types_school_id_foreign` (`school_id`);

--
-- Indexes for table `fees_installments`
--
ALTER TABLE `fees_installments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fees_installments_fees_id_foreign` (`fees_id`),
  ADD KEY `fees_installments_session_year_id_foreign` (`session_year_id`),
  ADD KEY `fees_installments_school_id_foreign` (`school_id`);

--
-- Indexes for table `fees_paids`
--
ALTER TABLE `fees_paids`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_ids` (`student_id`,`fees_id`,`school_id`),
  ADD KEY `fees_paids_fees_id_foreign` (`fees_id`),
  ADD KEY `fees_paids_school_id_foreign` (`school_id`);

--
-- Indexes for table `fees_types`
--
ALTER TABLE `fees_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fees_types_school_id_foreign` (`school_id`);

--
-- Indexes for table `files`
--
ALTER TABLE `files`
  ADD PRIMARY KEY (`id`),
  ADD KEY `files_modal_type_modal_id_index` (`modal_type`,`modal_id`),
  ADD KEY `files_school_id_foreign` (`school_id`);

--
-- Indexes for table `form_fields`
--
ALTER TABLE `form_fields`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`,`school_id`),
  ADD KEY `form_fields_school_id_foreign` (`school_id`);

--
-- Indexes for table `galleries`
--
ALTER TABLE `galleries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `galleries_session_year_id_foreign` (`session_year_id`),
  ADD KEY `galleries_school_id_foreign` (`school_id`);

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

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

--
-- Indexes for table `holidays`
--
ALTER TABLE `holidays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `holidays_school_id_foreign` (`school_id`);

--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `languages_code_unique` (`code`);

--
-- Indexes for table `leaves`
--
ALTER TABLE `leaves`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leaves_user_id_foreign` (`user_id`),
  ADD KEY `leaves_school_id_foreign` (`school_id`),
  ADD KEY `leaves_leave_master_id_foreign` (`leave_master_id`);

--
-- Indexes for table `leave_details`
--
ALTER TABLE `leave_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_details_leave_id_foreign` (`leave_id`),
  ADD KEY `leave_details_school_id_foreign` (`school_id`);

--
-- Indexes for table `leave_masters`
--
ALTER TABLE `leave_masters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_masters_session_year_id_foreign` (`session_year_id`),
  ADD KEY `leave_masters_school_id_foreign` (`school_id`);

--
-- Indexes for table `lessons`
--
ALTER TABLE `lessons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lessons_school_id_foreign` (`school_id`),
  ADD KEY `lessons_class_section_id_foreign` (`class_section_id`),
  ADD KEY `lessons_class_subject_id_foreign` (`class_subject_id`);

--
-- Indexes for table `lesson_topics`
--
ALTER TABLE `lesson_topics`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lesson_topics_lesson_id_foreign` (`lesson_id`),
  ADD KEY `lesson_topics_school_id_foreign` (`school_id`);

--
-- Indexes for table `mediums`
--
ALTER TABLE `mediums`
  ADD PRIMARY KEY (`id`),
  ADD KEY `mediums_school_id_foreign` (`school_id`);

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

--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_session_year_id_foreign` (`session_year_id`),
  ADD KEY `notifications_school_id_foreign` (`school_id`);

--
-- Indexes for table `online_exams`
--
ALTER TABLE `online_exams`
  ADD PRIMARY KEY (`id`),
  ADD KEY `online_exams_school_id_foreign` (`school_id`),
  ADD KEY `online_exams_class_section_id_foreign` (`class_section_id`),
  ADD KEY `online_exams_class_subject_id_foreign` (`class_subject_id`),
  ADD KEY `online_exams_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `online_exam_questions`
--
ALTER TABLE `online_exam_questions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `online_exam_questions_school_id_foreign` (`school_id`),
  ADD KEY `online_exam_questions_class_section_id_foreign` (`class_section_id`),
  ADD KEY `online_exam_questions_class_subject_id_foreign` (`class_subject_id`),
  ADD KEY `online_exam_questions_last_edited_by_foreign` (`last_edited_by`);

--
-- Indexes for table `online_exam_question_choices`
--
ALTER TABLE `online_exam_question_choices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `online_exam_question_choices_school_id_foreign` (`school_id`),
  ADD KEY `online_exam_question_choices_online_exam_id_foreign` (`online_exam_id`),
  ADD KEY `online_exam_question_choices_question_id_foreign` (`question_id`);

--
-- Indexes for table `online_exam_question_options`
--
ALTER TABLE `online_exam_question_options`
  ADD PRIMARY KEY (`id`),
  ADD KEY `online_exam_question_options_question_id_foreign` (`question_id`),
  ADD KEY `online_exam_question_options_school_id_foreign` (`school_id`);

--
-- Indexes for table `online_exam_student_answers`
--
ALTER TABLE `online_exam_student_answers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `online_exam_student_answers_school_id_foreign` (`school_id`),
  ADD KEY `online_exam_student_answers_online_exam_id_foreign` (`online_exam_id`),
  ADD KEY `online_exam_student_answers_question_id_foreign` (`question_id`),
  ADD KEY `online_exam_student_answers_option_id_foreign` (`option_id`),
  ADD KEY `online_exam_student_answers_student_id_foreign` (`student_id`);

--
-- Indexes for table `optional_fees`
--
ALTER TABLE `optional_fees`
  ADD PRIMARY KEY (`id`),
  ADD KEY `optional_fees_class_id_foreign` (`class_id`),
  ADD KEY `optional_fees_payment_transaction_id_foreign` (`payment_transaction_id`),
  ADD KEY `optional_fees_fees_class_id_foreign` (`fees_class_id`),
  ADD KEY `optional_fees_fees_paid_id_foreign` (`fees_paid_id`),
  ADD KEY `optional_fees_school_id_foreign` (`school_id`),
  ADD KEY `optional_fees_student_id_foreign` (`student_id`);

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

--
-- Indexes for table `package_features`
--
ALTER TABLE `package_features`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique` (`package_id`,`feature_id`),
  ADD KEY `package_features_package_id_index` (`package_id`),
  ADD KEY `package_features_feature_id_index` (`feature_id`);

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

--
-- Indexes for table `payment_configurations`
--
ALTER TABLE `payment_configurations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_configurations_school_id_foreign` (`school_id`);

--
-- Indexes for table `payment_transactions`
--
ALTER TABLE `payment_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_transactions_user_id_foreign` (`user_id`),
  ADD KEY `payment_transactions_school_id_foreign` (`school_id`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`);

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);

--
-- Indexes for table `promote_students`
--
ALTER TABLE `promote_students`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_columns` (`student_id`,`class_section_id`,`session_year_id`),
  ADD KEY `promote_students_school_id_foreign` (`school_id`),
  ADD KEY `promote_students_class_section_id_foreign` (`class_section_id`),
  ADD KEY `promote_students_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_name_guard_name_school_id_unique` (`name`,`guard_name`,`school_id`),
  ADD KEY `roles_school_id_foreign` (`school_id`);

--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);

--
-- Indexes for table `schools`
--
ALTER TABLE `schools`
  ADD PRIMARY KEY (`id`),
  ADD KEY `schools_admin_id_foreign` (`admin_id`);

--
-- Indexes for table `school_settings`
--
ALTER TABLE `school_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `school_settings_name_school_id_unique` (`name`,`school_id`),
  ADD KEY `school_settings_school_id_foreign` (`school_id`);

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

--
-- Indexes for table `semesters`
--
ALTER TABLE `semesters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `semesters_school_id_foreign` (`school_id`);

--
-- Indexes for table `session_years`
--
ALTER TABLE `session_years`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `session_years_name_school_id_unique` (`name`,`school_id`),
  ADD KEY `session_years_school_id_foreign` (`school_id`);

--
-- Indexes for table `shifts`
--
ALTER TABLE `shifts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `shifts_school_id_foreign` (`school_id`);

--
-- Indexes for table `sliders`
--
ALTER TABLE `sliders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sliders_school_id_foreign` (`school_id`);

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

--
-- Indexes for table `staff_support_schools`
--
ALTER TABLE `staff_support_schools`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_school` (`user_id`,`school_id`),
  ADD KEY `staff_support_schools_school_id_foreign` (`school_id`);

--
-- Indexes for table `streams`
--
ALTER TABLE `streams`
  ADD PRIMARY KEY (`id`),
  ADD KEY `streams_school_id_foreign` (`school_id`);

--
-- Indexes for table `students`
--
ALTER TABLE `students`
  ADD PRIMARY KEY (`id`),
  ADD KEY `students_school_id_foreign` (`school_id`),
  ADD KEY `students_user_id_foreign` (`user_id`),
  ADD KEY `students_class_section_id_foreign` (`class_section_id`),
  ADD KEY `students_guardian_id_foreign` (`guardian_id`),
  ADD KEY `students_session_year_id_foreign` (`session_year_id`);

--
-- Indexes for table `student_online_exam_statuses`
--
ALTER TABLE `student_online_exam_statuses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `student_online_exam_statuses_school_id_foreign` (`school_id`),
  ADD KEY `student_online_exam_statuses_online_exam_id_foreign` (`online_exam_id`),
  ADD KEY `student_online_exam_statuses_student_id_foreign` (`student_id`);

--
-- Indexes for table `student_subjects`
--
ALTER TABLE `student_subjects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `student_subjects_school_id_foreign` (`school_id`),
  ADD KEY `student_subjects_class_subject_id_foreign` (`class_subject_id`),
  ADD KEY `student_subjects_class_section_id_foreign` (`class_section_id`),
  ADD KEY `student_subjects_session_year_id_foreign` (`session_year_id`),
  ADD KEY `student_subjects_student_id_foreign` (`student_id`);

--
-- Indexes for table `subjects`
--
ALTER TABLE `subjects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subjects_school_id_foreign` (`school_id`),
  ADD KEY `subjects_medium_id_foreign` (`medium_id`);

--
-- Indexes for table `subject_teachers`
--
ALTER TABLE `subject_teachers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_ids` (`class_section_id`,`class_subject_id`,`teacher_id`),
  ADD KEY `subject_teachers_school_id_foreign` (`school_id`),
  ADD KEY `subject_teachers_subject_id_foreign` (`subject_id`),
  ADD KEY `subject_teachers_teacher_id_foreign` (`teacher_id`),
  ADD KEY `subject_teachers_class_subject_id_foreign` (`class_subject_id`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subscriptions_package_id_foreign` (`package_id`),
  ADD KEY `subscriptions_school_id_foreign` (`school_id`);

--
-- Indexes for table `subscription_bills`
--
ALTER TABLE `subscription_bills`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscription_bill` (`subscription_id`,`school_id`),
  ADD KEY `subscription_bills_school_id_foreign` (`school_id`),
  ADD KEY `subscription_bills_payment_transaction_id_foreign` (`payment_transaction_id`);

--
-- Indexes for table `subscription_features`
--
ALTER TABLE `subscription_features`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique` (`subscription_id`,`feature_id`),
  ADD KEY `subscription_features_feature_id_foreign` (`feature_id`);

--
-- Indexes for table `system_settings`
--
ALTER TABLE `system_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `system_settings_name_unique` (`name`);

--
-- Indexes for table `timetables`
--
ALTER TABLE `timetables`
  ADD PRIMARY KEY (`id`),
  ADD KEY `timetables_subject_teacher_id_foreign` (`subject_teacher_id`),
  ADD KEY `timetables_school_id_foreign` (`school_id`),
  ADD KEY `timetables_class_section_id_foreign` (`class_section_id`),
  ADD KEY `timetables_subject_id_foreign` (`subject_id`),
  ADD KEY `timetables_semester_id_foreign` (`semester_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD KEY `users_school_id_foreign` (`school_id`);

--
-- Indexes for table `user_status_for_next_cycles`
--
ALTER TABLE `user_status_for_next_cycles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_status_for_next_cycles_user_id_unique` (`user_id`),
  ADD KEY `user_status_for_next_cycles_school_id_foreign` (`school_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `academic_calendars`
--
ALTER TABLE `academic_calendars`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `addons`
--
ALTER TABLE `addons`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `addon_subscriptions`
--
ALTER TABLE `addon_subscriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `announcements`
--
ALTER TABLE `announcements`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `announcement_classes`
--
ALTER TABLE `announcement_classes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `assignments`
--
ALTER TABLE `assignments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `assignment_submissions`
--
ALTER TABLE `assignment_submissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `attendances`
--
ALTER TABLE `attendances`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=111;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `classes`
--
ALTER TABLE `classes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `class_sections`
--
ALTER TABLE `class_sections`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `class_subjects`
--
ALTER TABLE `class_subjects`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `class_teachers`
--
ALTER TABLE `class_teachers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `compulsory_fees`
--
ALTER TABLE `compulsory_fees`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `elective_subject_groups`
--
ALTER TABLE `elective_subject_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exams`
--
ALTER TABLE `exams`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `exam_marks`
--
ALTER TABLE `exam_marks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=141;

--
-- AUTO_INCREMENT for table `exam_results`
--
ALTER TABLE `exam_results`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `exam_timetables`
--
ALTER TABLE `exam_timetables`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `expense_categories`
--
ALTER TABLE `expense_categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `extra_student_datas`
--
ALTER TABLE `extra_student_datas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `faqs`
--
ALTER TABLE `faqs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `features`
--
ALTER TABLE `features`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `feature_sections`
--
ALTER TABLE `feature_sections`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `feature_section_lists`
--
ALTER TABLE `feature_section_lists`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `fees`
--
ALTER TABLE `fees`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `fees_advance`
--
ALTER TABLE `fees_advance`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `fees_class_types`
--
ALTER TABLE `fees_class_types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `fees_installments`
--
ALTER TABLE `fees_installments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `fees_paids`
--
ALTER TABLE `fees_paids`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `fees_types`
--
ALTER TABLE `fees_types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `files`
--
ALTER TABLE `files`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `form_fields`
--
ALTER TABLE `form_fields`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `galleries`
--
ALTER TABLE `galleries`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `grades`
--
ALTER TABLE `grades`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `guidances`
--
ALTER TABLE `guidances`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `holidays`
--
ALTER TABLE `holidays`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `leaves`
--
ALTER TABLE `leaves`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `leave_details`
--
ALTER TABLE `leave_details`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `leave_masters`
--
ALTER TABLE `leave_masters`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `lessons`
--
ALTER TABLE `lessons`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lesson_topics`
--
ALTER TABLE `lesson_topics`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mediums`
--
ALTER TABLE `mediums`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `online_exams`
--
ALTER TABLE `online_exams`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `online_exam_questions`
--
ALTER TABLE `online_exam_questions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `online_exam_question_choices`
--
ALTER TABLE `online_exam_question_choices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `online_exam_question_options`
--
ALTER TABLE `online_exam_question_options`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `online_exam_student_answers`
--
ALTER TABLE `online_exam_student_answers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `optional_fees`
--
ALTER TABLE `optional_fees`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `packages`
--
ALTER TABLE `packages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `package_features`
--
ALTER TABLE `package_features`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `payment_configurations`
--
ALTER TABLE `payment_configurations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payment_transactions`
--
ALTER TABLE `payment_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=212;

--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `promote_students`
--
ALTER TABLE `promote_students`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `schools`
--
ALTER TABLE `schools`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `school_settings`
--
ALTER TABLE `school_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;

--
-- AUTO_INCREMENT for table `sections`
--
ALTER TABLE `sections`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `semesters`
--
ALTER TABLE `semesters`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `session_years`
--
ALTER TABLE `session_years`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `shifts`
--
ALTER TABLE `shifts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sliders`
--
ALTER TABLE `sliders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `staffs`
--
ALTER TABLE `staffs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `staff_support_schools`
--
ALTER TABLE `staff_support_schools`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `streams`
--
ALTER TABLE `streams`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `students`
--
ALTER TABLE `students`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72;

--
-- AUTO_INCREMENT for table `student_online_exam_statuses`
--
ALTER TABLE `student_online_exam_statuses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `student_subjects`
--
ALTER TABLE `student_subjects`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subjects`
--
ALTER TABLE `subjects`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `subject_teachers`
--
ALTER TABLE `subject_teachers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `subscription_bills`
--
ALTER TABLE `subscription_bills`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscription_features`
--
ALTER TABLE `subscription_features`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `system_settings`
--
ALTER TABLE `system_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT for table `timetables`
--
ALTER TABLE `timetables`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=152;

--
-- AUTO_INCREMENT for table `user_status_for_next_cycles`
--
ALTER TABLE `user_status_for_next_cycles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `academic_calendars`
--
ALTER TABLE `academic_calendars`
  ADD CONSTRAINT `academic_calendars_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `academic_calendars_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`);

--
-- Constraints for table `addons`
--
ALTER TABLE `addons`
  ADD CONSTRAINT `addons_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`);

--
-- Constraints for table `addon_subscriptions`
--
ALTER TABLE `addon_subscriptions`
  ADD CONSTRAINT `addon_subscriptions_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `addon_subscriptions_payment_transaction_id_foreign` FOREIGN KEY (`payment_transaction_id`) REFERENCES `payment_transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `addon_subscriptions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `addon_subscriptions_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `announcements`
--
ALTER TABLE `announcements`
  ADD CONSTRAINT `announcements_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `announcements_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`);

--
-- Constraints for table `announcement_classes`
--
ALTER TABLE `announcement_classes`
  ADD CONSTRAINT `announcement_classes_announcement_id_foreign` FOREIGN KEY (`announcement_id`) REFERENCES `announcements` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `announcement_classes_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `announcement_classes_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `announcement_classes_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `assignments`
--
ALTER TABLE `assignments`
  ADD CONSTRAINT `assignments_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `assignments_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `assignments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `assignments_edited_by_foreign` FOREIGN KEY (`edited_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `assignments_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `assignments_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`);

--
-- Constraints for table `assignment_submissions`
--
ALTER TABLE `assignment_submissions`
  ADD CONSTRAINT `assignment_submissions_assignment_id_foreign` FOREIGN KEY (`assignment_id`) REFERENCES `assignments` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `assignment_submissions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `assignment_submissions_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`),
  ADD CONSTRAINT `assignment_submissions_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `attendances`
--
ALTER TABLE `attendances`
  ADD CONSTRAINT `attendances_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `attendances_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`),
  ADD CONSTRAINT `attendances_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `categories_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `classes`
--
ALTER TABLE `classes`
  ADD CONSTRAINT `classes_medium_id_foreign` FOREIGN KEY (`medium_id`) REFERENCES `mediums` (`id`),
  ADD CONSTRAINT `classes_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `classes_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`),
  ADD CONSTRAINT `classes_stream_id_foreign` FOREIGN KEY (`stream_id`) REFERENCES `streams` (`id`);

--
-- Constraints for table `class_sections`
--
ALTER TABLE `class_sections`
  ADD CONSTRAINT `class_sections_class_id_foreign` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`),
  ADD CONSTRAINT `class_sections_medium_id_foreign` FOREIGN KEY (`medium_id`) REFERENCES `mediums` (`id`),
  ADD CONSTRAINT `class_sections_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `class_sections_section_id_foreign` FOREIGN KEY (`section_id`) REFERENCES `sections` (`id`);

--
-- Constraints for table `class_subjects`
--
ALTER TABLE `class_subjects`
  ADD CONSTRAINT `class_subjects_class_id_foreign` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`),
  ADD CONSTRAINT `class_subjects_elective_subject_group_id_foreign` FOREIGN KEY (`elective_subject_group_id`) REFERENCES `elective_subject_groups` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `class_subjects_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `class_subjects_semester_id_foreign` FOREIGN KEY (`semester_id`) REFERENCES `semesters` (`id`),
  ADD CONSTRAINT `class_subjects_subject_id_foreign` FOREIGN KEY (`subject_id`) REFERENCES `subjects` (`id`);

--
-- Constraints for table `class_teachers`
--
ALTER TABLE `class_teachers`
  ADD CONSTRAINT `class_teachers_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `class_teachers_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `class_teachers_teacher_id_foreign` FOREIGN KEY (`teacher_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `compulsory_fees`
--
ALTER TABLE `compulsory_fees`
  ADD CONSTRAINT `compulsory_fees_fees_paid_id_foreign` FOREIGN KEY (`fees_paid_id`) REFERENCES `fees_paids` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `compulsory_fees_installment_id_foreign` FOREIGN KEY (`installment_id`) REFERENCES `fees_installments` (`id`),
  ADD CONSTRAINT `compulsory_fees_payment_transaction_id_foreign` FOREIGN KEY (`payment_transaction_id`) REFERENCES `payment_transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `compulsory_fees_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `compulsory_fees_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `elective_subject_groups`
--
ALTER TABLE `elective_subject_groups`
  ADD CONSTRAINT `elective_subject_groups_class_id_foreign` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`),
  ADD CONSTRAINT `elective_subject_groups_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `elective_subject_groups_semester_id_foreign` FOREIGN KEY (`semester_id`) REFERENCES `semesters` (`id`);

--
-- Constraints for table `exams`
--
ALTER TABLE `exams`
  ADD CONSTRAINT `exams_class_id_foreign` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`),
  ADD CONSTRAINT `exams_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exams_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`);

--
-- Constraints for table `exam_marks`
--
ALTER TABLE `exam_marks`
  ADD CONSTRAINT `exam_marks_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `exam_marks_exam_timetable_id_foreign` FOREIGN KEY (`exam_timetable_id`) REFERENCES `exam_timetables` (`id`),
  ADD CONSTRAINT `exam_marks_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_marks_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`),
  ADD CONSTRAINT `exam_marks_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `exam_results`
--
ALTER TABLE `exam_results`
  ADD CONSTRAINT `exam_results_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `exam_results_exam_id_foreign` FOREIGN KEY (`exam_id`) REFERENCES `exams` (`id`),
  ADD CONSTRAINT `exam_results_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_results_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`),
  ADD CONSTRAINT `exam_results_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `exam_timetables`
--
ALTER TABLE `exam_timetables`
  ADD CONSTRAINT `exam_timetables_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `exam_timetables_exam_id_foreign` FOREIGN KEY (`exam_id`) REFERENCES `exams` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_timetables_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `exam_timetables_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`);

--
-- Constraints for table `expenses`
--
ALTER TABLE `expenses`
  ADD CONSTRAINT `expenses_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `expense_categories` (`id`),
  ADD CONSTRAINT `expenses_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expenses_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`),
  ADD CONSTRAINT `expenses_staff_id_foreign` FOREIGN KEY (`staff_id`) REFERENCES `staffs` (`id`);

--
-- Constraints for table `expense_categories`
--
ALTER TABLE `expense_categories`
  ADD CONSTRAINT `expense_categories_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `extra_student_datas`
--
ALTER TABLE `extra_student_datas`
  ADD CONSTRAINT `extra_student_datas_form_field_id_foreign` FOREIGN KEY (`form_field_id`) REFERENCES `form_fields` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `extra_student_datas_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `extra_student_datas_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `feature_section_lists`
--
ALTER TABLE `feature_section_lists`
  ADD CONSTRAINT `feature_section_lists_feature_section_id_foreign` FOREIGN KEY (`feature_section_id`) REFERENCES `feature_sections` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `fees`
--
ALTER TABLE `fees`
  ADD CONSTRAINT `fees_class_id_foreign` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`),
  ADD CONSTRAINT `fees_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `fees_advance`
--
ALTER TABLE `fees_advance`
  ADD CONSTRAINT `fees_advance_compulsory_fee_id_foreign` FOREIGN KEY (`compulsory_fee_id`) REFERENCES `compulsory_fees` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_advance_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_advance_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `fees_class_types`
--
ALTER TABLE `fees_class_types`
  ADD CONSTRAINT `fees_class_types_class_id_foreign` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_class_types_fees_id_foreign` FOREIGN KEY (`fees_id`) REFERENCES `fees` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_class_types_fees_type_id_foreign` FOREIGN KEY (`fees_type_id`) REFERENCES `fees_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_class_types_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `fees_installments`
--
ALTER TABLE `fees_installments`
  ADD CONSTRAINT `fees_installments_fees_id_foreign` FOREIGN KEY (`fees_id`) REFERENCES `fees` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_installments_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_installments_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `fees_paids`
--
ALTER TABLE `fees_paids`
  ADD CONSTRAINT `fees_paids_fees_id_foreign` FOREIGN KEY (`fees_id`) REFERENCES `fees` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_paids_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fees_paids_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `fees_types`
--
ALTER TABLE `fees_types`
  ADD CONSTRAINT `fees_types_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `files`
--
ALTER TABLE `files`
  ADD CONSTRAINT `files_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `form_fields`
--
ALTER TABLE `form_fields`
  ADD CONSTRAINT `form_fields_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `galleries`
--
ALTER TABLE `galleries`
  ADD CONSTRAINT `galleries_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `galleries_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `grades`
--
ALTER TABLE `grades`
  ADD CONSTRAINT `grades_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `holidays`
--
ALTER TABLE `holidays`
  ADD CONSTRAINT `holidays_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leaves`
--
ALTER TABLE `leaves`
  ADD CONSTRAINT `leaves_leave_master_id_foreign` FOREIGN KEY (`leave_master_id`) REFERENCES `leave_masters` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leaves_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leaves_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leave_details`
--
ALTER TABLE `leave_details`
  ADD CONSTRAINT `leave_details_leave_id_foreign` FOREIGN KEY (`leave_id`) REFERENCES `leaves` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_details_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leave_masters`
--
ALTER TABLE `leave_masters`
  ADD CONSTRAINT `leave_masters_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_masters_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `lessons`
--
ALTER TABLE `lessons`
  ADD CONSTRAINT `lessons_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `lessons_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `lessons_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `lesson_topics`
--
ALTER TABLE `lesson_topics`
  ADD CONSTRAINT `lesson_topics_lesson_id_foreign` FOREIGN KEY (`lesson_id`) REFERENCES `lessons` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lesson_topics_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `mediums`
--
ALTER TABLE `mediums`
  ADD CONSTRAINT `mediums_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `notifications`
--
ALTER TABLE `notifications`
  ADD CONSTRAINT `notifications_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notifications_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `online_exams`
--
ALTER TABLE `online_exams`
  ADD CONSTRAINT `online_exams_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `online_exams_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `online_exams_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `online_exams_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`);

--
-- Constraints for table `online_exam_questions`
--
ALTER TABLE `online_exam_questions`
  ADD CONSTRAINT `online_exam_questions_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `online_exam_questions_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `online_exam_questions_last_edited_by_foreign` FOREIGN KEY (`last_edited_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `online_exam_questions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `online_exam_question_choices`
--
ALTER TABLE `online_exam_question_choices`
  ADD CONSTRAINT `online_exam_question_choices_online_exam_id_foreign` FOREIGN KEY (`online_exam_id`) REFERENCES `online_exams` (`id`),
  ADD CONSTRAINT `online_exam_question_choices_question_id_foreign` FOREIGN KEY (`question_id`) REFERENCES `online_exam_questions` (`id`),
  ADD CONSTRAINT `online_exam_question_choices_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `online_exam_question_options`
--
ALTER TABLE `online_exam_question_options`
  ADD CONSTRAINT `online_exam_question_options_question_id_foreign` FOREIGN KEY (`question_id`) REFERENCES `online_exam_questions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `online_exam_question_options_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `online_exam_student_answers`
--
ALTER TABLE `online_exam_student_answers`
  ADD CONSTRAINT `online_exam_student_answers_online_exam_id_foreign` FOREIGN KEY (`online_exam_id`) REFERENCES `online_exams` (`id`),
  ADD CONSTRAINT `online_exam_student_answers_option_id_foreign` FOREIGN KEY (`option_id`) REFERENCES `online_exam_question_options` (`id`),
  ADD CONSTRAINT `online_exam_student_answers_question_id_foreign` FOREIGN KEY (`question_id`) REFERENCES `online_exam_question_choices` (`id`),
  ADD CONSTRAINT `online_exam_student_answers_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `online_exam_student_answers_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `optional_fees`
--
ALTER TABLE `optional_fees`
  ADD CONSTRAINT `optional_fees_class_id_foreign` FOREIGN KEY (`class_id`) REFERENCES `classes` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `optional_fees_fees_class_id_foreign` FOREIGN KEY (`fees_class_id`) REFERENCES `fees_class_types` (`id`),
  ADD CONSTRAINT `optional_fees_fees_paid_id_foreign` FOREIGN KEY (`fees_paid_id`) REFERENCES `fees_paids` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `optional_fees_payment_transaction_id_foreign` FOREIGN KEY (`payment_transaction_id`) REFERENCES `payment_transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `optional_fees_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `optional_fees_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `package_features`
--
ALTER TABLE `package_features`
  ADD CONSTRAINT `package_features_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`),
  ADD CONSTRAINT `package_features_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`);

--
-- Constraints for table `payment_configurations`
--
ALTER TABLE `payment_configurations`
  ADD CONSTRAINT `payment_configurations_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_transactions`
--
ALTER TABLE `payment_transactions`
  ADD CONSTRAINT `payment_transactions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_transactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `promote_students`
--
ALTER TABLE `promote_students`
  ADD CONSTRAINT `promote_students_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `promote_students_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `promote_students_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`),
  ADD CONSTRAINT `promote_students_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `roles_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `schools`
--
ALTER TABLE `schools`
  ADD CONSTRAINT `schools_admin_id_foreign` FOREIGN KEY (`admin_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `school_settings`
--
ALTER TABLE `school_settings`
  ADD CONSTRAINT `school_settings_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `sections`
--
ALTER TABLE `sections`
  ADD CONSTRAINT `sections_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `semesters`
--
ALTER TABLE `semesters`
  ADD CONSTRAINT `semesters_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `session_years`
--
ALTER TABLE `session_years`
  ADD CONSTRAINT `session_years_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `shifts`
--
ALTER TABLE `shifts`
  ADD CONSTRAINT `shifts_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `sliders`
--
ALTER TABLE `sliders`
  ADD CONSTRAINT `sliders_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staffs`
--
ALTER TABLE `staffs`
  ADD CONSTRAINT `staffs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `staff_support_schools`
--
ALTER TABLE `staff_support_schools`
  ADD CONSTRAINT `staff_support_schools_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `staff_support_schools_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `streams`
--
ALTER TABLE `streams`
  ADD CONSTRAINT `streams_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `students`
--
ALTER TABLE `students`
  ADD CONSTRAINT `students_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `students_guardian_id_foreign` FOREIGN KEY (`guardian_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `students_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `students_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `students_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `student_online_exam_statuses`
--
ALTER TABLE `student_online_exam_statuses`
  ADD CONSTRAINT `student_online_exam_statuses_online_exam_id_foreign` FOREIGN KEY (`online_exam_id`) REFERENCES `online_exams` (`id`),
  ADD CONSTRAINT `student_online_exam_statuses_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `student_online_exam_statuses_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `student_subjects`
--
ALTER TABLE `student_subjects`
  ADD CONSTRAINT `student_subjects_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `student_subjects_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `student_subjects_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `student_subjects_session_year_id_foreign` FOREIGN KEY (`session_year_id`) REFERENCES `session_years` (`id`),
  ADD CONSTRAINT `student_subjects_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `subjects`
--
ALTER TABLE `subjects`
  ADD CONSTRAINT `subjects_medium_id_foreign` FOREIGN KEY (`medium_id`) REFERENCES `mediums` (`id`),
  ADD CONSTRAINT `subjects_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `subject_teachers`
--
ALTER TABLE `subject_teachers`
  ADD CONSTRAINT `subject_teachers_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `subject_teachers_class_subject_id_foreign` FOREIGN KEY (`class_subject_id`) REFERENCES `class_subjects` (`id`),
  ADD CONSTRAINT `subject_teachers_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `subject_teachers_subject_id_foreign` FOREIGN KEY (`subject_id`) REFERENCES `subjects` (`id`),
  ADD CONSTRAINT `subject_teachers_teacher_id_foreign` FOREIGN KEY (`teacher_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD CONSTRAINT `subscriptions_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`),
  ADD CONSTRAINT `subscriptions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `subscription_bills`
--
ALTER TABLE `subscription_bills`
  ADD CONSTRAINT `subscription_bills_payment_transaction_id_foreign` FOREIGN KEY (`payment_transaction_id`) REFERENCES `payment_transactions` (`id`),
  ADD CONSTRAINT `subscription_bills_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `subscription_bills_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`);

--
-- Constraints for table `subscription_features`
--
ALTER TABLE `subscription_features`
  ADD CONSTRAINT `subscription_features_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`),
  ADD CONSTRAINT `subscription_features_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`);

--
-- Constraints for table `timetables`
--
ALTER TABLE `timetables`
  ADD CONSTRAINT `timetables_class_section_id_foreign` FOREIGN KEY (`class_section_id`) REFERENCES `class_sections` (`id`),
  ADD CONSTRAINT `timetables_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `timetables_semester_id_foreign` FOREIGN KEY (`semester_id`) REFERENCES `semesters` (`id`),
  ADD CONSTRAINT `timetables_subject_id_foreign` FOREIGN KEY (`subject_id`) REFERENCES `subjects` (`id`),
  ADD CONSTRAINT `timetables_subject_teacher_id_foreign` FOREIGN KEY (`subject_teacher_id`) REFERENCES `subject_teachers` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_status_for_next_cycles`
--
ALTER TABLE `user_status_for_next_cycles`
  ADD CONSTRAINT `user_status_for_next_cycles_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `user_status_for_next_cycles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 */;
