3955 lines
190 KiB
SQL
3955 lines
190 KiB
SQL
-- phpMyAdmin SQL Dump
|
||
-- version 5.2.1
|
||
-- https://www.phpmyadmin.net/
|
||
--
|
||
-- Host: localhost
|
||
-- Generation Time: Sep 09, 2025 at 12:43 AM
|
||
-- Server version: 10.4.28-MariaDB
|
||
-- PHP Version: 8.2.4
|
||
|
||
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: `school`
|
||
--
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `attendance_data`
|
||
--
|
||
|
||
CREATE TABLE `attendance_data` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`class_id` int(11) NOT NULL,
|
||
`class_section_id` int(11) NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`date` date NOT NULL,
|
||
`status` enum('present','absent','late') NOT NULL DEFAULT 'present',
|
||
`reason` text DEFAULT NULL,
|
||
`reported` tinyint(4) DEFAULT NULL,
|
||
`semester` varchar(25) NOT NULL,
|
||
`school_year` varchar(9) NOT NULL,
|
||
`modified_by` int(11) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `attendance_record`
|
||
--
|
||
|
||
CREATE TABLE `attendance_record` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`class_section_id` int(11) NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`total_absence` int(11) NOT NULL DEFAULT 0,
|
||
`total_late` int(11) NOT NULL DEFAULT 0,
|
||
`total_presence` int(11) NOT NULL DEFAULT 0,
|
||
`total_attendance` int(11) NOT NULL DEFAULT 0,
|
||
`semester` varchar(25) NOT NULL,
|
||
`school_year` varchar(9) NOT NULL,
|
||
`modified_by` int(11) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `attendance_tracking`
|
||
--
|
||
|
||
CREATE TABLE `attendance_tracking` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) UNSIGNED NOT NULL,
|
||
`date` date NOT NULL,
|
||
`is_reported` tinyint(1) NOT NULL DEFAULT 0,
|
||
`reason` text DEFAULT NULL,
|
||
`is_notified` tinyint(1) NOT NULL DEFAULT 0,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `authorized_users`
|
||
--
|
||
|
||
CREATE TABLE `authorized_users` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`user_id` int(11) NOT NULL,
|
||
`authorized_user_id` int(11) DEFAULT NULL,
|
||
`firstname` varchar(255) NOT NULL,
|
||
`lastname` varchar(255) NOT NULL,
|
||
`phone_number` varchar(25) NOT NULL,
|
||
`gender` varchar(10) NOT NULL,
|
||
`email` varchar(255) NOT NULL,
|
||
`relation_to_user` varchar(64) DEFAULT NULL,
|
||
`token` varchar(128) DEFAULT NULL,
|
||
`status` enum('Pending','Active') DEFAULT 'Pending',
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `calendar_events`
|
||
--
|
||
|
||
CREATE TABLE `calendar_events` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`title` varchar(255) NOT NULL,
|
||
`date` date NOT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`notify_parent` tinyint(1) NOT NULL DEFAULT 0,
|
||
`notify_admin` tinyint(1) NOT NULL DEFAULT 0,
|
||
`notify_teacher` tinyint(1) NOT NULL DEFAULT 0,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`notification_sent` tinyint(1) NOT NULL DEFAULT 0,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `calendar_events`
|
||
--
|
||
|
||
INSERT INTO `calendar_events` (`id`, `title`, `date`, `description`, `notify_parent`, `notify_admin`, `notify_teacher`, `semester`, `school_year`, `notification_sent`, `created_at`, `updated_at`) VALUES
|
||
(1, 'First Day of School', '2025-09-21', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:30:03', '2025-07-27 17:30:03'),
|
||
(2, 'Last Day of Registration', '2025-10-01', 'Registration ends at midnight', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:32:00', '2025-07-27 17:32:00'),
|
||
(3, 'November Break', '2025-11-30', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:32:26', '2025-07-27 17:32:26'),
|
||
(4, 'Winter Break 1', '2025-12-21', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:32:47', '2025-07-27 17:32:47'),
|
||
(5, 'Winter Break 2', '2025-12-28', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:33:08', '2025-07-27 17:33:08'),
|
||
(6, 'Midterm Exam', '2026-01-18', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:33:22', '2025-07-27 17:33:57'),
|
||
(7, 'February Break', '2026-02-15', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:34:17', '2025-07-27 17:34:17'),
|
||
(8, 'Ramadan Last 10 Break', '2026-03-15', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-07-27 17:34:43', '2025-07-27 17:34:54'),
|
||
(9, 'Eid Al-Fitr Break', '2026-03-22', '', 0, 0, 0, 'Fall', '2024-2025', 0, '2025-07-27 17:35:15', '2025-07-27 17:35:15'),
|
||
(10, 'April Break', '2026-04-19', '', 0, 0, 0, 'Fall', '2024-2025', 0, '2025-07-27 17:35:34', '2025-07-27 17:35:34'),
|
||
(11, 'Final Exam', '2026-05-17', '', 0, 0, 0, 'Fall', '2024-2025', 0, '2025-07-27 17:35:49', '2025-07-27 17:36:29'),
|
||
(12, 'May Break', '2026-05-24', '', 0, 0, 0, 'Fall', '2024-2025', 0, '2025-07-27 17:36:09', '2025-07-27 17:36:39'),
|
||
(13, 'Ceremony Day', '2026-05-31', 'Last Day of School', 0, 0, 0, 'Fall', '2024-2025', 0, '2025-07-27 17:37:14', '2025-07-27 17:39:39'),
|
||
(14, 'Eid Al-Fitr Break', '2026-03-22', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-09-01 00:02:09', '2025-09-01 00:02:09'),
|
||
(15, 'April Break', '2026-04-19', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-09-01 00:04:18', '2025-09-01 00:04:18'),
|
||
(16, 'Final Exam', '2026-05-17', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-09-01 00:04:38', '2025-09-01 00:04:38'),
|
||
(17, 'May Break', '2026-05-24', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-09-01 00:04:57', '2025-09-01 00:04:57'),
|
||
(18, 'Ceremony Day / Lay Day of School', '2026-05-31', '', 0, 0, 0, 'Fall', '2025-2026', 0, '2025-09-01 00:05:30', '2025-09-01 00:05:30');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `chapters`
|
||
--
|
||
|
||
CREATE TABLE `chapters` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`chapter_name` varchar(100) NOT NULL,
|
||
`class_section_id` int(11) NOT NULL,
|
||
`school_year` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `classes`
|
||
--
|
||
|
||
CREATE TABLE `classes` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`class_name` varchar(100) NOT NULL,
|
||
`schedule` varchar(100) NOT NULL,
|
||
`capacity` int(11) NOT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `classes`
|
||
--
|
||
|
||
INSERT INTO `classes` (`id`, `class_name`, `schedule`, `capacity`, `semester`, `school_year`) VALUES
|
||
(1, 'KG', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(2, '1', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(3, '2', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(4, '3', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(5, '4', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(6, '5', 'Sunday 10:00 PM - 1:00 PM', 30, '', '-1'),
|
||
(7, '6', 'Sunday 10:00 PM - 1:00 PM', 30, '', '-1'),
|
||
(8, '7', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(9, '8', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(10, '9', 'Sunday 10:00 PM - 1:00 PM', 30, '', '-1'),
|
||
(11, '10', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(12, '11', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1'),
|
||
(13, 'youth', 'Sunday 10:00 AM - 1:00 PM', 30, '', '-1');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `classSection`
|
||
--
|
||
|
||
CREATE TABLE `classSection` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`class_id` int(11) UNSIGNED NOT NULL,
|
||
`class_section_id` int(11) UNSIGNED NOT NULL,
|
||
`class_section_name` varchar(100) NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `classSection`
|
||
--
|
||
|
||
INSERT INTO `classSection` (`id`, `class_id`, `class_section_id`, `class_section_name`, `created_at`, `updated_at`, `semester`, `school_year`) VALUES
|
||
(1, 1, 1, 'KG', '2024-08-16 01:06:30', '2024-08-23 16:30:43', '', NULL),
|
||
(2, 2, 10, '1', '2024-08-16 01:06:30', '2024-08-23 16:30:43', '', NULL),
|
||
(3, 2, 11, '1-A', '2024-08-16 01:06:30', '2024-08-23 17:15:54', '', NULL),
|
||
(4, 2, 12, '1-B', '2024-08-16 01:06:30', '2024-08-23 17:15:54', '', NULL),
|
||
(5, 2, 13, '1-C', '2024-08-16 01:06:30', '2024-08-23 17:15:54', '', NULL),
|
||
(6, 3, 20, '2', '2024-08-16 01:06:30', '2024-08-23 17:16:30', '', NULL),
|
||
(7, 3, 21, '2-A', '2024-08-16 01:06:30', '2024-08-23 17:16:30', '', NULL),
|
||
(8, 3, 22, '2-B', '2024-08-16 01:06:30', '2024-08-23 17:16:30', '', NULL),
|
||
(9, 3, 23, '2-C', '2024-08-16 01:06:30', '2024-08-23 17:16:30', '', NULL),
|
||
(10, 4, 30, '3', '2024-08-16 01:06:30', '2024-08-23 17:18:14', '', NULL),
|
||
(11, 4, 31, '3-A', '2024-08-16 01:06:30', '2024-08-23 17:18:14', '', NULL),
|
||
(12, 4, 32, '3-B', '2024-08-16 01:06:30', '2024-08-23 17:18:14', '', NULL),
|
||
(13, 4, 33, '3-C', '2024-08-16 01:06:30', '2024-08-23 17:18:14', '', NULL),
|
||
(14, 5, 40, '4', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(15, 5, 41, '4-A', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(16, 5, 42, '4-B', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(17, 5, 43, '4-C', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(18, 6, 50, '5', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(19, 6, 51, '5-A', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(20, 6, 52, '5-B', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(21, 6, 53, '5-C', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(22, 7, 60, '6', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(23, 7, 61, '6-A', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(24, 7, 62, '6-B', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(25, 7, 63, '6-C', '2024-08-16 01:06:30', '2024-08-23 17:19:31', '', NULL),
|
||
(26, 8, 70, '7', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(27, 8, 71, '7-A', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(28, 8, 72, '7-B', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(29, 8, 73, '7-C', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(30, 9, 80, '8', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(31, 9, 81, '8-A', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(32, 9, 82, '8-B', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(33, 9, 83, '8-C', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(34, 10, 90, '9', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(35, 10, 91, '9-A', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(36, 10, 92, '9-B', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(37, 10, 93, '9-C', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(38, 11, 100, '10', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(39, 11, 101, '10-A', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(40, 11, 102, '10-B', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(41, 11, 103, '10-C', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(42, 12, 110, '11', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(43, 12, 111, '11-A', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(44, 12, 112, '11-B', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(45, 12, 113, '11-C', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(46, 13, 120, 'youth', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(47, 13, 121, 'youth-A', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(48, 13, 122, 'youth-B', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL),
|
||
(49, 13, 123, 'youth-C', '2024-08-16 01:06:30', '2024-08-23 17:21:41', '', NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `class_preparation_log`
|
||
--
|
||
|
||
CREATE TABLE `class_preparation_log` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`class_section_id` int(10) UNSIGNED NOT NULL,
|
||
`class_section` varchar(100) DEFAULT NULL,
|
||
`school_year` varchar(9) NOT NULL,
|
||
`prep_data` text NOT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `class_section`
|
||
--
|
||
|
||
CREATE TABLE `class_section` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`class_id` int(10) UNSIGNED NOT NULL,
|
||
`section_id` int(10) UNSIGNED NOT NULL,
|
||
`class_section_name` varchar(100) NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `configuration`
|
||
--
|
||
|
||
CREATE TABLE `configuration` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`config_key` varchar(100) NOT NULL,
|
||
`config_value` varchar(100) NOT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `configuration`
|
||
--
|
||
|
||
INSERT INTO `configuration` (`id`, `config_key`, `config_value`) VALUES
|
||
(1, 'date_age_reference', '2025-12-31'),
|
||
(2, 'stickerWidth', '102'),
|
||
(3, 'stickerHeight', '34'),
|
||
(4, 'pageWidth', '216'),
|
||
(5, 'pageHeight', '280'),
|
||
(6, 'leftMargin', '4'),
|
||
(7, 'topMargin', '19'),
|
||
(8, 'horizontalGap', '5'),
|
||
(9, 'verticalGap', '0'),
|
||
(10, 'enable_attendance', '1'),
|
||
(11, 'due_date', '2025-09-21'),
|
||
(12, 'max_emergency', '1'),
|
||
(13, 'pass_score', '60'),
|
||
(14, 'weeks_study', '35'),
|
||
(15, 'end_school_day', '2026-06-01'),
|
||
(16, 'max_age', '18'),
|
||
(17, 'min_age', '5'),
|
||
(18, 'trophy_score', '94'),
|
||
(19, 'max_kids', '6'),
|
||
(20, 'cleanup_timeout', '900'),
|
||
(21, 'enrollment_deadline', '2025-10-01'),
|
||
(22, 'school_year', '2025-2026'),
|
||
(23, 'youth_fee', '200'),
|
||
(24, 'second_student_fee', '220'),
|
||
(25, 'first_student_fee', '370'),
|
||
(26, 'total_semester1_days', '14'),
|
||
(27, 'semester', 'Fall'),
|
||
(28, 'refund_deadline', '2025-12-31'),
|
||
(29, 'total_semester2_days', '13'),
|
||
(30, 'delete_email_notify', 'support@alrahmaisgl.org, melabidi@alrahmaisgl.org'),
|
||
(31, 'school_start_date', '2025-09-21'),
|
||
(32, 'sandbox_secret_paypal', 'Ar0Br3ZhBukQwwdSCxIcSveiu70-Ekt-qqF0nSyYNr3eRAYQKcWTTlhCAKncZiYXmBoPeo4IceV6FjT'),
|
||
(33, 'sandbox_verifylink_paypal', 'https://api-m.sandbox.paypal.com/v1/notifications/verify-webhook-signature'),
|
||
(34, 'sandbox_tokenurl_paypal', 'https://api-m.sandbox.paypal.com/v1/oauth2/token'),
|
||
(35, 'sandbox_clientid_paypal', 'AYsiOekZUvrjgx9C5c554ZeSQ4W6yd0ZX-OHE93_D0fWoa4YXrMmroEeLiAjjdCKkELH8EVZR_yGMLPS'),
|
||
(36, 'sandbox_webhookid_paypal', '0EU27043LC060650D'),
|
||
(37, 'production_verifylink_paypal', 'https://api-m.paypal.com/v1/notifications/verify-webhook-signature'),
|
||
(38, 'production_webhookid_paypal', '0H5876426L0092829'),
|
||
(39, 'production_secret_paypal', 'KKvmE-0cvwx8rEHnEcFaAvn1Rlc3cy07IGIjqGGPR8EqxABbmPodM_JrjRQq2SF2903A4q0DBjjUWai'),
|
||
(40, 'production_clientid_paypal', 'AQhCgmypaitgLgretMqNrh_7mEG5fAmwCECxCxevuLDQfsQVwECFyQOU50byzPzFrwd0cVVD8r2lujIB'),
|
||
(41, 'production_tokenurl_paypal', 'https://api-m.paypal.com/v1/oauth2/token'),
|
||
(42, 'comment_reviewer', 'administrator, principal'),
|
||
(43, 'paypal_mode', 'sandbox'),
|
||
(44, 'grade_fee', '9'),
|
||
(45, 'installment_date', '2026-03-01');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `contactus`
|
||
--
|
||
|
||
CREATE TABLE `contactus` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`sender_id` int(11) UNSIGNED NOT NULL,
|
||
`reciever_id` int(11) UNSIGNED NOT NULL,
|
||
`subject` varchar(255) NOT NULL,
|
||
`message` text NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `current_flag`
|
||
--
|
||
|
||
CREATE TABLE `current_flag` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`student_name` varchar(255) NOT NULL,
|
||
`grade` varchar(50) NOT NULL,
|
||
`flag` enum('payment','attendance','grade','behavior','other') NOT NULL,
|
||
`flag_datetime` datetime NOT NULL,
|
||
`flag_state` enum('Open','Closed','Canceled') DEFAULT 'Open',
|
||
`updated_by_open` int(11) DEFAULT NULL,
|
||
`open_description` text DEFAULT NULL,
|
||
`updated_by_closed` int(11) DEFAULT NULL,
|
||
`close_description` text DEFAULT NULL,
|
||
`updated_by_canceled` int(11) DEFAULT NULL,
|
||
`cancel_description` text DEFAULT NULL,
|
||
`semester` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`school_year` varchar(9) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
|
||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||
`updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `discount_usages`
|
||
--
|
||
|
||
CREATE TABLE `discount_usages` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`voucher_id` int(11) NOT NULL,
|
||
`invoice_id` int(11) UNSIGNED NOT NULL,
|
||
`parent_id` int(11) DEFAULT NULL,
|
||
`discount_amount` decimal(10,2) NOT NULL DEFAULT 0.00,
|
||
`description` text DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL,
|
||
`school_year` varchar(9) NOT NULL,
|
||
`updated_by` int(11) DEFAULT NULL,
|
||
`used_at` datetime DEFAULT current_timestamp(),
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `discount_usages`
|
||
--
|
||
|
||
INSERT INTO `discount_usages` (`id`, `voucher_id`, `invoice_id`, `parent_id`, `discount_amount`, `description`, `semester`, `school_year`, `updated_by`, `used_at`, `created_at`, `updated_at`) VALUES
|
||
(3, 5, 14, 2, 100.00, 'financial assistance', 'Fall', '2025-2026', 1, '2025-09-06 06:48:32', '2025-09-06 06:48:32', '2025-09-07 00:15:40');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `discount_vouchers`
|
||
--
|
||
|
||
CREATE TABLE `discount_vouchers` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`code` varchar(50) NOT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`discount_type` enum('percent','fixed') NOT NULL DEFAULT 'percent',
|
||
`discount_value` decimal(10,2) NOT NULL,
|
||
`max_uses` int(11) DEFAULT 1,
|
||
`times_used` int(11) DEFAULT 0,
|
||
`valid_from` date DEFAULT NULL,
|
||
`valid_until` date DEFAULT NULL,
|
||
`is_active` tinyint(1) DEFAULT 1,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `discount_vouchers`
|
||
--
|
||
|
||
INSERT INTO `discount_vouchers` (`id`, `code`, `description`, `discount_type`, `discount_value`, `max_uses`, `times_used`, `valid_from`, `valid_until`, `is_active`, `created_at`, `updated_at`, `school_year`, `semester`) VALUES
|
||
(5, '5F8SB9SIHU', 'financial assistance', 'fixed', 100.00, 1, 1, '2025-09-06', '2025-09-13', 0, '2025-09-06 06:48:22', '2025-09-06 06:48:32', NULL, NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `emergency_contacts`
|
||
--
|
||
|
||
CREATE TABLE `emergency_contacts` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`emergency_contact_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`parent_id` int(11) DEFAULT NULL,
|
||
`cellphone` varchar(20) NOT NULL,
|
||
`email` varchar(255) DEFAULT NULL,
|
||
`relation` varchar(50) NOT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `emergency_contacts`
|
||
--
|
||
|
||
INSERT INTO `emergency_contacts` (`id`, `emergency_contact_name`, `parent_id`, `cellphone`, `email`, `relation`, `semester`, `school_year`, `created_at`, `updated_at`) VALUES
|
||
(7, 'Fgdhghg Hghgh', 2, '121-212-1212', '', 'Parent', 'Fall', '2025-2026', '2025-09-05 04:11:16', '2025-09-05 04:11:16');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `enrollments`
|
||
--
|
||
|
||
CREATE TABLE `enrollments` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`student_id` int(10) UNSIGNED NOT NULL,
|
||
`class_section_id` int(10) UNSIGNED DEFAULT NULL,
|
||
`parent_id` int(10) UNSIGNED NOT NULL,
|
||
`enrollment_date` date NOT NULL,
|
||
`enrollment_status` enum('admission under review','payment pending','enrolled','withdraw under review','refund pending','withdrawn','waitlist','denied') NOT NULL DEFAULT 'admission under review',
|
||
`withdrawal_date` date DEFAULT NULL,
|
||
`is_withdrawn` tinyint(1) NOT NULL DEFAULT 0,
|
||
`admission_status` enum('pending','accepted','denied') NOT NULL DEFAULT 'pending',
|
||
`semester` varchar(25) DEFAULT NULL,
|
||
`school_year` varchar(25) NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `enrollments`
|
||
--
|
||
|
||
INSERT INTO `enrollments` (`id`, `student_id`, `class_section_id`, `parent_id`, `enrollment_date`, `enrollment_status`, `withdrawal_date`, `is_withdrawn`, `admission_status`, `semester`, `school_year`, `created_at`, `updated_at`) VALUES
|
||
(101, 15, 10, 2, '2025-09-06', 'payment pending', NULL, 0, 'accepted', 'Fall', '2025-2026', '2025-09-06 06:45:58', '2025-09-06 21:04:42'),
|
||
(102, 16, 1, 2, '2025-09-06', 'payment pending', NULL, 0, 'accepted', 'Fall', '2025-2026', '2025-09-06 06:45:58', '2025-09-08 06:59:06'),
|
||
(103, 17, 120, 2, '2025-09-06', 'payment pending', NULL, 0, 'accepted', 'Fall', '2025-2026', '2025-09-06 06:45:58', '2025-09-08 06:59:16');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `events`
|
||
--
|
||
|
||
CREATE TABLE `events` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`event_name` varchar(255) NOT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`amount` decimal(10,2) NOT NULL,
|
||
`flyer` varchar(255) DEFAULT NULL,
|
||
`expiration_date` date NOT NULL,
|
||
`semester` varchar(50) DEFAULT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `event_charges`
|
||
--
|
||
|
||
CREATE TABLE `event_charges` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`event_id` int(11) UNSIGNED NOT NULL,
|
||
`parent_id` int(11) UNSIGNED DEFAULT NULL,
|
||
`student_id` int(11) UNSIGNED DEFAULT NULL,
|
||
`participation` enum('yes','no') DEFAULT NULL,
|
||
`charged` tinyint(1) DEFAULT 0,
|
||
`semester` varchar(50) DEFAULT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`updated_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `examquestiondistribution`
|
||
--
|
||
|
||
CREATE TABLE `examquestiondistribution` (
|
||
`id` int(11) NOT NULL,
|
||
`exam_distribution_id` int(11) NOT NULL,
|
||
`exam_id` int(11) NOT NULL,
|
||
`question_type_id` int(11) NOT NULL,
|
||
`num_questions` int(11) NOT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `examquestions`
|
||
--
|
||
|
||
CREATE TABLE `examquestions` (
|
||
`id` int(11) NOT NULL,
|
||
`exam_question_id` int(11) NOT NULL,
|
||
`exam_id` int(11) NOT NULL,
|
||
`question_id` int(11) NOT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `exams`
|
||
--
|
||
|
||
CREATE TABLE `exams` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` char(36) NOT NULL,
|
||
`student_school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) NOT NULL,
|
||
`exam_name` varchar(100) NOT NULL,
|
||
`created_at` timestamp NULL DEFAULT current_timestamp()
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `expenses`
|
||
--
|
||
|
||
CREATE TABLE `expenses` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`category` enum('Expense','Purchase','Reimbursement') NOT NULL,
|
||
`amount` decimal(10,2) NOT NULL,
|
||
`receipt_path` varchar(255) DEFAULT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`purchased_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`added_by` int(11) UNSIGNED NOT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL,
|
||
`status` enum('pending','approved','denied') NOT NULL DEFAULT 'pending',
|
||
`status_reason` text DEFAULT NULL,
|
||
`updated_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`approved_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`reimbursement_id` int(11) UNSIGNED DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `final_exam`
|
||
--
|
||
|
||
CREATE TABLE `final_exam` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`score` float DEFAULT NULL,
|
||
`semester` varchar(25) NOT NULL DEFAULT 'Spring',
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `final_score`
|
||
--
|
||
|
||
CREATE TABLE `final_score` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`score` float NOT NULL,
|
||
`score_letter` varchar(9) DEFAULT NULL,
|
||
`comment` text DEFAULT NULL,
|
||
`school_year` varchar(9) NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`semester` varchar(255) NOT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `flag`
|
||
--
|
||
|
||
CREATE TABLE `flag` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`student_name` varchar(255) NOT NULL,
|
||
`grade` varchar(50) NOT NULL,
|
||
`flag` enum('payment','attendance','grade','behavior','other') NOT NULL,
|
||
`flag_datetime` datetime NOT NULL,
|
||
`flag_state` enum('Closed','Canceled') NOT NULL,
|
||
`updated_by_open` int(11) DEFAULT NULL,
|
||
`open_description` text DEFAULT NULL,
|
||
`updated_by_closed` int(11) DEFAULT NULL,
|
||
`close_description` text DEFAULT NULL,
|
||
`updated_by_canceled` int(11) DEFAULT NULL,
|
||
`cancel_description` text DEFAULT NULL,
|
||
`semester` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`school_year` varchar(9) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||
`updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `grades`
|
||
--
|
||
|
||
CREATE TABLE `grades` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`score` int(11) NOT NULL,
|
||
`score_letter` varchar(9) DEFAULT NULL,
|
||
`comment` text DEFAULT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `homework`
|
||
--
|
||
|
||
CREATE TABLE `homework` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`homework_index` tinyint(4) DEFAULT NULL,
|
||
`score` float DEFAULT NULL,
|
||
`comment` text DEFAULT NULL,
|
||
`semester` varchar(25) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `invoices`
|
||
--
|
||
|
||
CREATE TABLE `invoices` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`parent_id` int(11) NOT NULL,
|
||
`invoice_number` varchar(50) NOT NULL,
|
||
`total_amount` decimal(10,2) NOT NULL DEFAULT 0.00,
|
||
`balance` decimal(10,2) DEFAULT 0.00,
|
||
`paid_amount` decimal(10,2) NOT NULL DEFAULT 0.00,
|
||
`has_discount` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 if discount applied, 0 no discount',
|
||
`issue_date` datetime DEFAULT NULL,
|
||
`due_date` datetime DEFAULT NULL,
|
||
`status` varchar(50) NOT NULL DEFAULT '''unpaid''',
|
||
`description` text DEFAULT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||
`updated_by` int(11) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `invoices`
|
||
--
|
||
|
||
INSERT INTO `invoices` (`id`, `parent_id`, `invoice_number`, `total_amount`, `balance`, `paid_amount`, `has_discount`, `issue_date`, `due_date`, `status`, `description`, `school_year`, `created_at`, `updated_at`, `updated_by`, `semester`) VALUES
|
||
(15, 2, 'INV-2500002-68bcd08d8c5c8', 810.00, 270.00, 540.00, 0, '2025-09-07 00:23:41', '2025-09-21 23:59:59', 'unpaid', NULL, '2025-2026', '2025-09-07 00:23:41', '2025-09-08 06:18:44', NULL, 'Fall');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `invoice_event`
|
||
--
|
||
|
||
CREATE TABLE `invoice_event` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`invoice_id` int(11) UNSIGNED NOT NULL,
|
||
`event_name` varchar(255) NOT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`amount` decimal(10,2) NOT NULL,
|
||
`semester` varchar(50) DEFAULT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`updated_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `invoice_students_list`
|
||
--
|
||
|
||
CREATE TABLE `invoice_students_list` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`invoice_id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) UNSIGNED NOT NULL,
|
||
`student_firstname` varchar(100) NOT NULL,
|
||
`student_lastname` varchar(100) NOT NULL,
|
||
`school_id` int(11) UNSIGNED NOT NULL,
|
||
`enrolled` tinyint(1) DEFAULT 1,
|
||
`school_year` varchar(9) NOT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `ip_attempts`
|
||
--
|
||
|
||
CREATE TABLE `ip_attempts` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`ip_address` varchar(45) NOT NULL,
|
||
`attempts` int(11) NOT NULL DEFAULT 0,
|
||
`last_attempt_at` datetime NOT NULL,
|
||
`blocked_until` datetime DEFAULT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `ip_attempts`
|
||
--
|
||
|
||
INSERT INTO `ip_attempts` (`id`, `ip_address`, `attempts`, `last_attempt_at`, `blocked_until`, `created_at`, `updated_at`, `school_year`, `semester`) VALUES
|
||
(2, '127.0.0.1', 1, '2025-09-04 05:36:30', NULL, '2025-09-04 05:36:30', '2025-09-04 05:36:30', NULL, NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `login_activity`
|
||
--
|
||
|
||
CREATE TABLE `login_activity` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`user_id` int(11) NOT NULL,
|
||
`email` varchar(255) NOT NULL,
|
||
`login_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`logout_time` timestamp NULL DEFAULT NULL,
|
||
`ip_address` varchar(255) NOT NULL,
|
||
`user_agent` varchar(255) NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `login_activity`
|
||
--
|
||
|
||
INSERT INTO `login_activity` (`id`, `user_id`, `email`, `login_time`, `logout_time`, `ip_address`, `user_agent`, `created_at`, `updated_at`, `semester`, `school_year`) VALUES
|
||
(9, 2, 'alrahma.isgl1@gmail.com', '2025-09-04 02:28:12', '2025-09-04 06:28:12', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-04 02:26:54', '2025-09-04 02:28:12', '', NULL),
|
||
(10, 1, 'administrator@gmail.com', '2025-09-04 03:24:16', '2025-09-04 07:24:16', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-04 02:28:18', '2025-09-04 03:24:16', '', NULL),
|
||
(11, 1, 'administrator@gmail.com', '2025-09-04 18:15:57', '2025-09-04 22:15:57', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-04 03:45:12', '2025-09-04 18:15:57', '', NULL),
|
||
(12, 2, 'alrahma.isgl@gmail.com', '2025-09-04 18:24:37', '2025-09-04 22:24:37', '127.0.0.1', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36', '2025-09-04 05:36:48', '2025-09-04 18:24:37', '', NULL),
|
||
(13, 2, 'alrahma.isgl@gmail.com', '2025-09-04 18:24:37', '2025-09-04 22:24:37', '127.0.0.1', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36', '2025-09-04 06:57:10', '2025-09-04 18:24:37', '', NULL),
|
||
(14, 2, 'alrahma.isgl@gmail.com', '2025-09-04 18:24:37', '2025-09-04 22:24:37', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-04 18:16:07', '2025-09-04 18:24:37', '', NULL),
|
||
(15, 1, 'administrator@gmail.com', '2025-09-04 18:24:58', '2025-09-04 22:24:58', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-04 18:24:43', '2025-09-04 18:24:58', '', NULL),
|
||
(16, 2, 'alrahma.isgl@gmail.com', '2025-09-04 19:28:42', '2025-09-04 23:28:42', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-04 18:25:03', '2025-09-04 19:28:42', '', NULL),
|
||
(17, 1, 'administrator@gmail.com', '2025-09-05 06:56:47', '2025-09-05 10:56:47', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-04 19:28:47', '2025-09-05 06:56:47', '', NULL),
|
||
(18, 2, 'alrahma.isgl@gmail.com', '2025-09-05 03:31:33', '2025-09-05 07:31:33', '127.0.0.1', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36', '2025-09-04 19:39:04', '2025-09-05 03:31:33', '', NULL),
|
||
(19, 2, 'alrahma.isgl@gmail.com', '2025-09-05 17:48:50', '2025-09-05 21:48:50', '127.0.0.1', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36', '2025-09-05 03:31:36', '2025-09-05 17:48:50', '', NULL),
|
||
(20, 2, 'alrahma.isgl@gmail.com', '2025-09-05 17:48:50', '2025-09-05 21:48:50', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 06:56:53', '2025-09-05 17:48:50', '', NULL),
|
||
(21, 1, 'administrator@gmail.com', '2025-09-05 21:16:47', '2025-09-06 01:16:47', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 17:48:56', '2025-09-05 21:16:47', '', NULL),
|
||
(22, 1, 'administrator@gmail.com', '2025-09-05 21:24:03', '2025-09-06 01:24:03', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 21:18:40', '2025-09-05 21:24:03', '', NULL),
|
||
(23, 1, 'administrator@gmail.com', '2025-09-05 21:36:14', '2025-09-06 01:36:14', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 21:24:09', '2025-09-05 21:36:14', '', NULL),
|
||
(24, 1, 'administrator@gmail.com', '2025-09-05 21:41:23', '2025-09-06 01:41:23', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 21:36:18', '2025-09-05 21:41:23', '', NULL),
|
||
(25, 1, 'administrator@gmail.com', '2025-09-05 21:44:33', '2025-09-06 01:44:33', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 21:41:28', '2025-09-05 21:44:33', '', NULL),
|
||
(26, 1, 'administrator@gmail.com', '2025-09-05 21:44:33', '2025-09-06 01:44:33', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 21:43:50', '2025-09-05 21:44:33', '', NULL),
|
||
(27, 1, 'administrator@gmail.com', '2025-09-06 04:38:28', '2025-09-06 08:38:28', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-05 21:44:51', '2025-09-06 04:38:28', '', NULL),
|
||
(28, 2, 'alrahma.isgl@gmail.com', '2025-09-07 00:08:15', '2025-09-07 04:08:15', '127.0.0.1', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36', '2025-09-05 22:24:56', '2025-09-07 00:08:15', '', NULL),
|
||
(29, 2, 'alrahma.isgl@gmail.com', '2025-09-07 00:08:15', '2025-09-07 04:08:15', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-06 04:38:35', '2025-09-07 00:08:15', '', NULL),
|
||
(30, 1, 'administrator@gmail.com', '2025-09-06 18:51:36', '2025-09-06 22:51:36', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-06 06:08:11', '2025-09-06 18:51:36', '', NULL),
|
||
(31, 1, 'administrator@gmail.com', '2025-09-07 00:08:01', '2025-09-07 04:08:01', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-06 18:51:41', '2025-09-07 00:08:01', '', NULL),
|
||
(32, 2, 'alrahma.isgl@gmail.com', '2025-09-07 00:08:15', '2025-09-07 04:08:15', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:08:06', '2025-09-07 00:08:15', '', NULL),
|
||
(33, 109, 'alrahma.isgl1@gmail.com', '2025-09-07 00:08:28', '2025-09-07 04:08:28', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:08:19', '2025-09-07 00:08:28', '', NULL),
|
||
(34, 1, 'administrator@gmail.com', '2025-09-07 00:09:05', '2025-09-07 04:09:05', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:08:33', '2025-09-07 00:09:05', '', NULL),
|
||
(35, 2, 'alrahma.isgl@gmail.com', '2025-09-07 00:09:15', '2025-09-07 04:09:15', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:09:10', '2025-09-07 00:09:15', '', NULL),
|
||
(36, 1, 'administrator@gmail.com', '2025-09-07 00:09:35', '2025-09-07 04:09:35', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:09:21', '2025-09-07 00:09:35', '', NULL),
|
||
(37, 2, 'alrahma.isgl@gmail.com', '2025-09-07 00:14:30', '2025-09-07 04:14:30', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:09:40', '2025-09-07 00:14:30', '', NULL),
|
||
(38, 109, 'alrahma.isgl1@gmail.com', '2025-09-07 00:14:43', '2025-09-07 04:14:43', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:14:40', '2025-09-07 00:14:43', '', NULL),
|
||
(39, 1, 'administrator@gmail.com', '2025-09-07 00:15:00', '2025-09-07 04:15:00', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:14:49', '2025-09-07 00:15:00', '', NULL),
|
||
(40, 2, 'alrahma.isgl@gmail.com', '2025-09-07 00:15:26', '2025-09-07 04:15:26', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:15:04', '2025-09-07 00:15:26', '', NULL),
|
||
(41, 1, 'administrator@gmail.com', '2025-09-07 06:34:19', '2025-09-07 10:34:19', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 00:15:31', '2025-09-07 06:34:19', '', NULL),
|
||
(42, 1, 'administrator@gmail.com', '2025-09-07 06:35:13', '2025-09-07 10:35:13', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 06:34:35', '2025-09-07 06:35:13', '', NULL),
|
||
(43, 1, 'administrator@gmail.com', '2025-09-07 19:43:01', '2025-09-07 23:43:01', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 06:35:59', '2025-09-07 19:43:01', '', NULL),
|
||
(44, 2, 'alrahma.isgl@gmail.com', '2025-09-07 19:56:54', '2025-09-07 23:56:54', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 19:43:05', '2025-09-07 19:56:54', '', NULL),
|
||
(45, 1, 'administrator@gmail.com', '2025-09-08 03:06:15', '2025-09-08 07:06:15', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-07 19:57:00', '2025-09-08 03:06:15', '', NULL),
|
||
(46, 2, 'alrahma.isgl@gmail.com', '2025-09-08 06:26:56', '2025-09-08 10:26:56', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:06:21', '2025-09-08 06:26:56', '', NULL),
|
||
(47, 1, 'administrator@gmail.com', '2025-09-08 03:17:59', '2025-09-08 07:17:59', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:06:30', '2025-09-08 03:17:59', '', NULL),
|
||
(48, 1, 'administrator@gmail.com', '2025-09-08 03:30:43', '2025-09-08 07:30:43', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:18:08', '2025-09-08 03:30:43', '', NULL),
|
||
(49, 1, 'administrator@gmail.com', '2025-09-08 03:30:43', '2025-09-08 07:30:43', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:18:42', '2025-09-08 03:30:43', '', NULL),
|
||
(50, 1, 'administrator@gmail.com', '2025-09-08 03:30:43', '2025-09-08 07:30:43', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:20:18', '2025-09-08 03:30:43', '', NULL),
|
||
(51, 1, 'administrator@gmail.com', '2025-09-08 03:30:43', '2025-09-08 07:30:43', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:22:19', '2025-09-08 03:30:43', '', NULL),
|
||
(52, 1, 'administrator@gmail.com', '2025-09-08 03:38:55', '2025-09-08 07:38:55', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:30:50', '2025-09-08 03:38:55', '', NULL),
|
||
(53, 1, 'administrator@gmail.com', '2025-09-08 03:38:55', '2025-09-08 07:38:55', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:36:43', '2025-09-08 03:38:55', '', NULL),
|
||
(54, 1, 'administrator@gmail.com', '2025-09-08 06:25:34', '2025-09-08 10:25:34', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:39:02', '2025-09-08 06:25:34', '', NULL),
|
||
(55, 1, 'administrator@gmail.com', '2025-09-08 06:25:34', '2025-09-08 10:25:34', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 03:49:00', '2025-09-08 06:25:34', '', NULL),
|
||
(56, 2, 'alrahma.isgl@gmail.com', '2025-09-08 06:26:56', '2025-09-08 10:26:56', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 06:25:40', '2025-09-08 06:26:56', '', NULL),
|
||
(57, 1, 'administrator@gmail.com', '2025-09-08 06:29:59', '2025-09-08 10:29:59', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 06:27:02', '2025-09-08 06:29:59', '', NULL),
|
||
(58, 2, 'alrahma.isgl@gmail.com', '2025-09-08 06:30:36', '2025-09-08 10:30:36', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 06:30:06', '2025-09-08 06:30:36', '', NULL),
|
||
(59, 1, 'administrator@gmail.com', '2025-09-08 06:32:49', '2025-09-08 10:32:49', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 06:30:49', '2025-09-08 06:32:49', '', NULL),
|
||
(60, 2, 'alrahma.isgl@gmail.com', '2025-09-08 06:33:05', '2025-09-08 10:33:05', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 06:32:56', '2025-09-08 06:33:05', '', NULL),
|
||
(61, 109, 'alrahma.isgl1@gmail.com', '2025-09-08 06:33:38', '2025-09-08 10:33:38', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 06:33:11', '2025-09-08 06:33:38', '', NULL),
|
||
(62, 1, 'administrator@gmail.com', '2025-09-08 18:35:03', '2025-09-08 22:35:03', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 06:33:47', '2025-09-08 18:35:03', '', NULL),
|
||
(63, 1, 'administrator@gmail.com', '2025-09-08 18:58:53', '2025-09-08 22:58:53', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 18:35:08', '2025-09-08 18:58:53', '', NULL),
|
||
(64, 1, 'administrator@gmail.com', '2025-09-08 19:16:09', '2025-09-08 23:16:09', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 18:58:57', '2025-09-08 19:16:09', '', NULL),
|
||
(65, 1, 'administrator@gmail.com', '2025-09-08 21:42:08', '2025-09-09 01:42:08', '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 19:16:16', '2025-09-08 21:42:08', '', NULL),
|
||
(66, 1, 'administrator@gmail.com', '2025-09-09 01:42:13', NULL, '127.0.0.1', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0', '2025-09-08 21:42:13', '2025-09-08 21:42:13', '', NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `longanswerquestions`
|
||
--
|
||
|
||
CREATE TABLE `longanswerquestions` (
|
||
`id` int(11) NOT NULL,
|
||
`la_question_id` int(11) NOT NULL,
|
||
`question_id` int(11) NOT NULL,
|
||
`correct_answer` text DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `manual_payments`
|
||
--
|
||
|
||
CREATE TABLE `manual_payments` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`invoice_number` varchar(100) DEFAULT NULL,
|
||
`amount` decimal(10,2) DEFAULT NULL,
|
||
`payment_method` varchar(100) DEFAULT NULL,
|
||
`reference` varchar(255) DEFAULT NULL,
|
||
`discount_number` int(11) DEFAULT NULL,
|
||
`proof_path` varchar(255) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `messages`
|
||
--
|
||
|
||
CREATE TABLE `messages` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`sender_id` int(11) NOT NULL,
|
||
`recipient_id` int(11) NOT NULL,
|
||
`subject` varchar(255) NOT NULL,
|
||
`message` text NOT NULL,
|
||
`sent_datetime` datetime NOT NULL,
|
||
`read_status` tinyint(1) NOT NULL DEFAULT 0,
|
||
`read_datetime` datetime DEFAULT NULL,
|
||
`message_number` varchar(20) NOT NULL,
|
||
`priority` varchar(10) NOT NULL DEFAULT 'normal',
|
||
`attachment` varchar(255) DEFAULT NULL,
|
||
`status` varchar(10) NOT NULL DEFAULT 'sent',
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `midterm_exam`
|
||
--
|
||
|
||
CREATE TABLE `midterm_exam` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`score` float DEFAULT NULL,
|
||
`comment` text DEFAULT NULL,
|
||
`semester` varchar(25) NOT NULL DEFAULT 'Fall',
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `migrations`
|
||
--
|
||
|
||
CREATE TABLE `migrations` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`version` varchar(255) NOT NULL,
|
||
`class` varchar(255) NOT NULL,
|
||
`group` varchar(255) NOT NULL,
|
||
`namespace` varchar(255) NOT NULL,
|
||
`time` int(11) NOT NULL,
|
||
`batch` int(11) UNSIGNED NOT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `migrations`
|
||
--
|
||
|
||
INSERT INTO `migrations` (`id`, `version`, `class`, `group`, `namespace`, `time`, `batch`) VALUES
|
||
(1, '2024-08-25-024150', 'App\\Database\\Migrations\\CreateClassesTable', 'default', 'App', 1757357135, 1),
|
||
(2, '2024-08-25-024201', 'App\\Database\\Migrations\\CreateConfigurationTable', 'default', 'App', 1757357135, 1),
|
||
(3, '2024-08-25-024217', 'App\\Database\\Migrations\\CreateEmergencyContactsTable', 'default', 'App', 1757357135, 1),
|
||
(4, '2024-08-25-024236', 'App\\Database\\Migrations\\CreateEventsTable', 'default', 'App', 1757357135, 1),
|
||
(5, '2024-08-25-024305', 'App\\Database\\Migrations\\CreateLoginActivityTable', 'default', 'App', 1757357135, 1),
|
||
(6, '2024-08-25-024345', 'App\\Database\\Migrations\\CreateNotificationsTable', 'default', 'App', 1757357135, 1),
|
||
(7, '2024-08-25-024411', 'App\\Database\\Migrations\\CreateParentsTable', 'default', 'App', 1757357135, 1),
|
||
(8, '2024-08-25-024424', 'App\\Database\\Migrations\\CreatePaymentsTable', 'default', 'App', 1757357135, 1),
|
||
(9, '2024-08-25-024435', 'App\\Database\\Migrations\\CreatePermissionsTable', 'default', 'App', 1757357135, 1),
|
||
(10, '2024-08-25-024447', 'App\\Database\\Migrations\\CreateRolesTable', 'default', 'App', 1757357135, 1),
|
||
(11, '2024-08-25-024457', 'App\\Database\\Migrations\\CreateRolePermissionsTable', 'default', 'App', 1757357135, 1),
|
||
(12, '2024-08-25-024510', 'App\\Database\\Migrations\\CreateSettingsTable', 'default', 'App', 1757357135, 1),
|
||
(13, '2024-08-25-024534', 'App\\Database\\Migrations\\CreateSupportRequestsTable', 'default', 'App', 1757357135, 1),
|
||
(14, '2024-08-25-024559', 'App\\Database\\Migrations\\CreateUserRolesTable', 'default', 'App', 1757357135, 1),
|
||
(15, '2024-08-25-024826', 'App\\Database\\Migrations\\CreatePasswordResetsTable', 'default', 'App', 1757357135, 1),
|
||
(16, '2024-08-25-024909', 'App\\Database\\Migrations\\CreateStudentClassTable', 'default', 'App', 1757357135, 1),
|
||
(17, '2024-08-25-024951', 'App\\Database\\Migrations\\CreateUsersTable', 'default', 'App', 1757357135, 1),
|
||
(18, '2024-08-25-054908', 'App\\Database\\Migrations\\CreateContactUsTable', 'default', 'App', 1757357135, 1),
|
||
(19, '2024-08-26-040415', 'App\\Database\\Migrations\\CreateTeacherClassTable', 'default', 'App', 1757357135, 1),
|
||
(20, '2024-08-26-045017', 'App\\Database\\Migrations\\CreateEnrollmentsTable', 'default', 'App', 1757357135, 1),
|
||
(21, '2024-08-26-193844', 'App\\Database\\Migrations\\CreateclassSectionTable', 'default', 'App', 1757357135, 1),
|
||
(22, '2024-08-28-062205', 'App\\Database\\Migrations\\CreateMessagesTable', 'default', 'App', 1757357135, 1),
|
||
(23, '2024-09-02-223635', 'App\\Database\\Migrations\\CreateFinalExamTable', 'default', 'App', 1757357135, 1),
|
||
(24, '2024-09-02-223928', 'App\\Database\\Migrations\\CreateMidtermExamTable', 'default', 'App', 1757357135, 1),
|
||
(25, '2024-09-02-224123', 'App\\Database\\Migrations\\CreateQuizTable', 'default', 'App', 1757357135, 1),
|
||
(26, '2024-09-02-224136', 'App\\Database\\Migrations\\CreateHomeworkTable', 'default', 'App', 1757357135, 1),
|
||
(27, '2024-09-02-225747', 'App\\Database\\Migrations\\CreateGradesTable', 'default', 'App', 1757357135, 1),
|
||
(28, '2024-09-04-192530', 'App\\Database\\Migrations\\CreateAttendanceRecordTable', 'default', 'App', 1757357135, 1),
|
||
(29, '2024-09-04-192537', 'App\\Database\\Migrations\\CreateAttendanceDataTable', 'default', 'App', 1757357135, 1),
|
||
(30, '2024-09-05-044617', 'App\\Database\\Migrations\\CreateStudentsTable', 'default', 'App', 1757357135, 1),
|
||
(31, '2024-09-13-192043', 'App\\Database\\Migrations\\CreateInvoicesTable', 'default', 'App', 1757357135, 1),
|
||
(32, '2025-05-04-211451', 'App\\Database\\Migrations\\CreatePaypalTransactions', 'default', 'App', 1757357135, 1),
|
||
(33, '2025-09-05-000002', 'App\\Database\\Migrations\\CreateNavMenuItems', 'default', 'App', 1757357135, 1),
|
||
(34, '2025-09-05-000003', 'App\\Database\\Migrations\\CreateRoleNavItems', 'default', 'App', 1757357135, 1),
|
||
(35, '2025-09-08-000001', 'App\\Database\\Migrations\\CreateSupplyCategories', 'default', 'App', 1757357135, 1),
|
||
(36, '2025-09-08-000002', 'App\\Database\\Migrations\\CreateSupplies', 'default', 'App', 1757357135, 1),
|
||
(37, '2025-09-08-000003', 'App\\Database\\Migrations\\CreateSupplyTransactions', 'default', 'App', 1757357135, 1),
|
||
(38, '2025-09-08-100001', 'App\\Database\\Migrations\\CreateSuppliers', 'default', 'App', 1757359049, 2),
|
||
(39, '2025-09-08-100002', 'App\\Database\\Migrations\\CreatePurchaseOrders', 'default', 'App', 1757359049, 2),
|
||
(40, '2025-09-08-100003', 'App\\Database\\Migrations\\CreatePurchaseOrderItems', 'default', 'App', 1757359049, 2);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `nav_items`
|
||
--
|
||
|
||
CREATE TABLE `nav_items` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`menu_parent_id` int(10) UNSIGNED DEFAULT NULL,
|
||
`label` varchar(100) NOT NULL,
|
||
`url` varchar(255) DEFAULT NULL,
|
||
`icon_class` varchar(100) DEFAULT NULL,
|
||
`target` varchar(20) DEFAULT NULL,
|
||
`sort_order` int(11) NOT NULL DEFAULT 0,
|
||
`is_enabled` tinyint(1) NOT NULL DEFAULT 1,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`deleted_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
--
|
||
-- Dumping data for table `nav_items`
|
||
--
|
||
|
||
INSERT INTO `nav_items` (`id`, `menu_parent_id`, `label`, `url`, `icon_class`, `target`, `sort_order`, `is_enabled`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||
(1, NULL, 'Users', NULL, NULL, NULL, 10, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(2, NULL, 'Roles', NULL, NULL, NULL, 20, 1, '2025-09-05 17:23:56', '2025-09-05 21:57:26', NULL),
|
||
(3, NULL, 'Configuration', NULL, NULL, NULL, 30, 1, '2025-09-05 17:23:56', '2025-09-05 21:58:09', NULL),
|
||
(4, NULL, 'Staffing', NULL, NULL, NULL, 40, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(5, NULL, 'Parents', NULL, NULL, NULL, 50, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(6, NULL, 'Student-Affairs', NULL, NULL, NULL, 60, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(7, NULL, 'Classes', NULL, NULL, NULL, 70, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(8, NULL, 'Communication', NULL, NULL, NULL, 80, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(9, NULL, 'Financial', NULL, NULL, NULL, 90, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(10, NULL, 'Printables', NULL, NULL, NULL, 100, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(11, NULL, 'Event Management', NULL, NULL, NULL, 110, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(12, 1, 'Active Notifications', 'notifications/active', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(13, 1, 'Deleted Notifications', 'notifications/deleted', NULL, NULL, 2, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(14, 1, 'Login Activity', 'user/login_activity', NULL, NULL, 3, 1, '2025-09-05 17:23:56', '2025-09-05 21:57:37', NULL),
|
||
(15, 1, 'User List', 'user/user_list', NULL, NULL, 4, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(16, 2, 'Assign User Role', 'rolepermission/assign_role', NULL, NULL, 1, 1, '2025-09-05 17:23:56', '2025-09-05 21:57:55', NULL),
|
||
(17, 2, 'Role Management', 'rolepermission/roles', NULL, NULL, 2, 1, '2025-09-05 17:23:56', '2025-09-05 21:58:03', NULL),
|
||
(18, 3, 'Add/Edit Configuration', 'configuration/configuration_view', NULL, NULL, 1, 1, '2025-09-05 17:23:56', '2025-09-05 21:58:23', NULL),
|
||
(19, 4, 'Staff Profile', 'staff/index', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(20, 4, 'Teacher Class Assignment', 'administrator/teacher_class_assignment', NULL, NULL, 2, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(21, 5, 'Parent Profile', 'administrator/parent_profiles', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(22, 6, 'Attendance Management', 'administrator/daily_attendance', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(23, 6, 'Attendance Tracking System', 'attendance/violations', NULL, NULL, 2, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(24, 6, 'Attendance Scans', 'rfid_coming_soon', NULL, NULL, 3, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(25, 6, 'Classes List', 'administrator/class_assignment', NULL, NULL, 4, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(26, 6, 'Emergency Contact', 'administrator/emergency_contact', NULL, NULL, 5, 1, '2025-09-05 17:23:56', '2025-09-05 21:59:56', NULL),
|
||
(27, 6, 'Enrollment-Withdrawal', 'enroll_withdraw/enrollment_withdrawal', NULL, NULL, 6, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(28, 6, 'Flags Management', 'flags/flags_management', NULL, NULL, 7, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(29, 6, 'School Calendar', 'administrator/calendar_view', NULL, NULL, 8, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(30, 6, 'Score Analysis', 'report/combined', NULL, NULL, 9, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(31, 6, 'Score Management', 'grading', NULL, NULL, 10, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(32, 6, 'Student Class Assignment', 'administrator/student_class_assignment', NULL, NULL, 11, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(33, 6, 'Student Profile', 'administrator/student_profiles', NULL, NULL, 12, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(34, 7, 'Classes List', 'administrator/class_assignment', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(35, 8, 'Parent Email Extractor', 'emails/parent_email_extractor', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(36, 8, 'Parent Profile', 'administrator/parent_profiles', NULL, NULL, 2, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(37, 8, 'Student Profile', 'administrator/student_profiles', NULL, NULL, 3, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(38, 9, 'Discount Management', 'discounts/list', NULL, NULL, 1, 1, '2025-09-05 17:23:56', '2025-09-05 22:00:41', NULL),
|
||
(39, 9, 'Expenses Management', 'expenses/index', NULL, NULL, 2, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(40, 9, 'Financial Report', 'payment/financial_report', NULL, NULL, 3, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(41, 9, 'Invoices Management', 'invoice_payment/invoice_management', NULL, NULL, 4, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(42, 9, 'Manual Payment', 'payment/manual_pay', NULL, NULL, 5, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(43, 9, 'PaypalTransactions', 'administrator/paypal_transactions', NULL, NULL, 6, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(44, 9, 'Refund Management', 'refunds/list', NULL, NULL, 7, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(45, 9, 'Reimbursement Management', 'reimbursements/index', NULL, NULL, 8, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(46, 10, 'Badges', 'printables_reports/badge_form', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(47, 10, 'Class Prep', 'class-prep', NULL, NULL, 2, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(48, 10, 'Report Cards', 'printables_reports/report_card', NULL, NULL, 3, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(49, 10, 'Stickers', 'printables_reports/stickers', NULL, NULL, 4, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(50, 11, 'Calendar', 'administrator/calendar', NULL, NULL, 1, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(51, 11, 'Events', 'administrator/events', NULL, NULL, 2, 1, '2025-09-05 17:23:56', NULL, NULL),
|
||
(52, 1, 'Navbar Builder', 'nav-builder', NULL, NULL, 5, 1, '2025-09-05 17:34:01', '2025-09-05 21:57:09', NULL),
|
||
(53, 2, 'Permission Management', 'rolepermission/list_permissions', NULL, NULL, 3, 1, '2025-09-08 05:25:02', '2025-09-08 05:26:44', NULL),
|
||
(54, NULL, 'Inventory', NULL, NULL, NULL, 4, 1, '2025-09-08 18:53:03', '2025-09-08 21:41:18', '2025-09-08 21:41:18'),
|
||
(55, 60, 'Display Inventory', 'inventory', NULL, NULL, 1, 1, '2025-09-08 18:56:08', '2025-09-08 21:44:38', NULL),
|
||
(56, 60, 'Categories', 'inventory/categories', NULL, NULL, 2, 1, '2025-09-08 19:13:48', '2025-09-08 21:44:19', NULL),
|
||
(57, 60, 'Supplies', 'inventory/suppliers', NULL, NULL, 3, 1, '2025-09-08 19:14:24', '2025-09-08 21:44:52', NULL),
|
||
(58, 60, 'Purchase Order', 'inventory/po', NULL, '_blank', 4, 1, '2025-09-08 19:14:53', '2025-09-08 21:45:09', NULL),
|
||
(59, 54, 'test', 'test', NULL, NULL, 0, 1, '2025-09-08 21:37:01', '2025-09-08 21:41:50', '2025-09-08 21:41:50'),
|
||
(60, NULL, 'Inventory', NULL, NULL, NULL, 0, 1, '2025-09-08 21:43:25', '2025-09-08 21:43:25', NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `notifications`
|
||
--
|
||
|
||
CREATE TABLE `notifications` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`title` varchar(255) DEFAULT NULL,
|
||
`message` text NOT NULL,
|
||
`target_group` enum('student','parent','teacher','admin','everyone') NOT NULL,
|
||
`delivery_channels` set('in_app','email','sms') NOT NULL,
|
||
`priority` enum('low','normal','high') DEFAULT 'normal',
|
||
`status` enum('pending','sent','failed') DEFAULT 'pending',
|
||
`action_url` varchar(512) DEFAULT NULL,
|
||
`attachment_path` varchar(512) DEFAULT NULL,
|
||
`scheduled_at` datetime DEFAULT current_timestamp(),
|
||
`sent_at` datetime DEFAULT NULL,
|
||
`expires_at` datetime DEFAULT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`deleted_at` datetime DEFAULT NULL,
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `notifications`
|
||
--
|
||
|
||
INSERT INTO `notifications` (`id`, `title`, `message`, `target_group`, `delivery_channels`, `priority`, `status`, `action_url`, `attachment_path`, `scheduled_at`, `sent_at`, `expires_at`, `created_at`, `updated_at`, `deleted_at`, `school_year`, `semester`) VALUES
|
||
(1, 'admission under review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 11:09:21', NULL, NULL, '2025-09-02 15:09:21', '2025-09-02 15:09:21', NULL, NULL, NULL),
|
||
(2, 'admission under review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 11:48:59', NULL, NULL, '2025-09-02 15:48:59', '2025-09-02 15:48:59', NULL, NULL, NULL),
|
||
(3, 'admission under review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 11:50:15', NULL, NULL, '2025-09-02 15:50:15', '2025-09-02 15:50:15', NULL, NULL, NULL),
|
||
(4, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 12:01:50', NULL, NULL, '2025-09-02 16:01:50', '2025-09-02 16:01:50', NULL, NULL, NULL),
|
||
(5, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 12:09:50', NULL, NULL, '2025-09-02 16:09:50', '2025-09-02 16:09:50', NULL, NULL, NULL),
|
||
(6, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 12:33:52', NULL, NULL, '2025-09-02 16:33:52', '2025-09-02 16:33:52', NULL, NULL, NULL),
|
||
(7, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 12:34:51', NULL, NULL, '2025-09-02 16:34:51', '2025-09-02 16:34:51', NULL, NULL, NULL),
|
||
(8, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-02 12:35:57', NULL, NULL, '2025-09-02 16:35:57', '2025-09-02 16:35:57', NULL, NULL, NULL),
|
||
(9, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-03 22:27:00', NULL, NULL, '2025-09-04 02:27:00', '2025-09-04 02:27:00', NULL, NULL, NULL),
|
||
(10, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:30:22', NULL, NULL, '2025-09-04 05:30:22', '2025-09-04 05:30:22', NULL, NULL, NULL),
|
||
(11, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:31:10', NULL, NULL, '2025-09-04 05:31:10', '2025-09-04 05:31:10', NULL, NULL, NULL),
|
||
(12, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:32:05', NULL, NULL, '2025-09-04 05:32:05', '2025-09-04 05:32:05', NULL, NULL, NULL),
|
||
(13, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:34:00', NULL, NULL, '2025-09-04 05:34:00', '2025-09-04 05:34:00', NULL, NULL, NULL),
|
||
(14, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:34:21', NULL, NULL, '2025-09-04 05:34:21', '2025-09-04 05:34:21', NULL, NULL, NULL),
|
||
(15, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:34:32', NULL, NULL, '2025-09-04 05:34:32', '2025-09-04 05:34:32', NULL, NULL, NULL),
|
||
(16, 'Enrollment Confirmed', 'Enrollment confirmed. Please check your email for class details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:35:47', NULL, NULL, '2025-09-04 05:35:47', '2025-09-04 05:35:47', NULL, NULL, NULL),
|
||
(17, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:36:56', NULL, NULL, '2025-09-04 05:36:56', '2025-09-04 05:36:56', NULL, NULL, NULL),
|
||
(18, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:37:34', NULL, NULL, '2025-09-04 05:37:34', '2025-09-04 05:37:34', NULL, NULL, NULL),
|
||
(19, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:38:54', NULL, NULL, '2025-09-04 05:38:54', '2025-09-04 05:38:54', NULL, NULL, NULL),
|
||
(20, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:43:35', NULL, NULL, '2025-09-04 05:43:35', '2025-09-04 05:43:35', NULL, NULL, NULL),
|
||
(21, 'Enrollment Confirmed', 'Enrollment confirmed. Please check your email for class details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 01:53:39', NULL, NULL, '2025-09-04 05:53:39', '2025-09-04 05:53:39', NULL, NULL, NULL),
|
||
(22, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:03:52', NULL, NULL, '2025-09-04 06:03:52', '2025-09-04 06:03:52', NULL, NULL, NULL),
|
||
(23, 'Enrollment Confirmed', 'Enrollment confirmed. Please check your email for class details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:05:06', NULL, NULL, '2025-09-04 06:05:06', '2025-09-04 06:05:06', NULL, NULL, NULL),
|
||
(24, 'Enrollment Confirmed', 'Enrollment confirmed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:09:53', NULL, NULL, '2025-09-04 06:09:53', '2025-09-04 06:09:53', NULL, NULL, NULL),
|
||
(25, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:20:20', NULL, NULL, '2025-09-04 06:20:20', '2025-09-04 06:20:20', NULL, NULL, NULL),
|
||
(26, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:26:54', NULL, NULL, '2025-09-04 06:26:54', '2025-09-04 06:26:54', NULL, NULL, NULL),
|
||
(27, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:29:10', NULL, NULL, '2025-09-04 06:29:10', '2025-09-04 06:29:10', NULL, NULL, NULL),
|
||
(28, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:29:11', NULL, NULL, '2025-09-04 06:29:11', '2025-09-04 06:29:11', NULL, NULL, NULL),
|
||
(29, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:30:51', NULL, NULL, '2025-09-04 06:30:51', '2025-09-04 06:30:51', NULL, NULL, NULL),
|
||
(30, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:31:20', NULL, NULL, '2025-09-04 06:31:20', '2025-09-04 06:31:20', NULL, NULL, NULL),
|
||
(31, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:31:21', NULL, NULL, '2025-09-04 06:31:21', '2025-09-04 06:31:21', NULL, NULL, NULL),
|
||
(32, 'Withdrawal Confirmed', 'Your withdrawal has been completed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:32:02', NULL, NULL, '2025-09-04 06:32:02', '2025-09-04 06:32:02', NULL, NULL, NULL),
|
||
(33, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:33:02', NULL, NULL, '2025-09-04 06:33:02', '2025-09-04 06:33:02', NULL, NULL, NULL),
|
||
(34, 'Enrollment Confirmed', 'Enrollment confirmed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:33:11', NULL, NULL, '2025-09-04 06:33:11', '2025-09-04 06:33:11', NULL, NULL, NULL),
|
||
(35, 'Withdrawal Request Received', 'Your withdrawal request is under review. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:33:20', NULL, NULL, '2025-09-04 06:33:20', '2025-09-04 06:33:20', NULL, NULL, NULL),
|
||
(36, 'Refund Pending', 'A refund is being processed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:33:28', NULL, NULL, '2025-09-04 06:33:28', '2025-09-04 06:33:28', NULL, NULL, NULL),
|
||
(37, 'Refund Pending', 'A refund is being processed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:34:54', NULL, NULL, '2025-09-04 06:34:54', '2025-09-04 06:34:54', NULL, NULL, NULL),
|
||
(38, 'Withdrawal Confirmed', 'Your withdrawal has been completed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:36:58', NULL, NULL, '2025-09-04 06:36:58', '2025-09-04 06:36:58', NULL, NULL, NULL),
|
||
(39, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:37:10', NULL, NULL, '2025-09-04 06:37:10', '2025-09-04 06:37:10', NULL, NULL, NULL),
|
||
(40, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:37:17', NULL, NULL, '2025-09-04 06:37:17', '2025-09-04 06:37:17', NULL, NULL, NULL),
|
||
(41, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 02:58:26', NULL, NULL, '2025-09-04 06:58:26', '2025-09-04 06:58:26', NULL, NULL, NULL),
|
||
(42, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 03:01:45', NULL, NULL, '2025-09-04 07:01:45', '2025-09-04 07:01:45', NULL, NULL, NULL),
|
||
(43, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 03:01:50', NULL, NULL, '2025-09-04 07:01:50', '2025-09-04 07:01:50', NULL, NULL, NULL),
|
||
(44, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 03:02:49', NULL, NULL, '2025-09-04 07:02:49', '2025-09-04 07:02:49', NULL, NULL, NULL),
|
||
(45, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 03:02:57', NULL, NULL, '2025-09-04 07:02:57', '2025-09-04 07:02:57', NULL, NULL, NULL),
|
||
(46, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 03:03:06', NULL, NULL, '2025-09-04 07:03:06', '2025-09-04 07:03:06', NULL, NULL, NULL),
|
||
(47, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 14:20:43', NULL, NULL, '2025-09-04 18:20:43', '2025-09-04 18:20:43', NULL, NULL, NULL),
|
||
(48, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 14:24:55', NULL, NULL, '2025-09-04 18:24:55', '2025-09-04 18:24:55', NULL, NULL, NULL),
|
||
(49, 'Enrollment Confirmed', 'Enrollment confirmed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:38:09', NULL, NULL, '2025-09-04 19:38:09', '2025-09-04 19:38:09', NULL, NULL, NULL),
|
||
(50, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:39:09', NULL, NULL, '2025-09-04 19:39:09', '2025-09-04 19:39:09', NULL, NULL, NULL),
|
||
(51, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:39:25', NULL, NULL, '2025-09-04 19:39:25', '2025-09-04 19:39:25', NULL, NULL, NULL),
|
||
(52, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:39:26', NULL, NULL, '2025-09-04 19:39:26', '2025-09-04 19:39:26', NULL, NULL, NULL),
|
||
(53, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:44:19', NULL, NULL, '2025-09-04 19:44:19', '2025-09-04 19:44:19', NULL, NULL, NULL),
|
||
(54, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:47:21', NULL, NULL, '2025-09-04 19:47:21', '2025-09-04 19:47:21', NULL, NULL, NULL),
|
||
(55, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:47:22', NULL, NULL, '2025-09-04 19:47:22', '2025-09-04 19:47:22', NULL, NULL, NULL),
|
||
(56, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:47:23', NULL, NULL, '2025-09-04 19:47:23', '2025-09-04 19:47:23', NULL, NULL, NULL),
|
||
(57, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:50:31', NULL, NULL, '2025-09-04 19:50:31', '2025-09-04 19:50:31', NULL, NULL, NULL),
|
||
(58, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:52:54', NULL, NULL, '2025-09-04 19:52:54', '2025-09-04 19:52:54', NULL, NULL, NULL),
|
||
(59, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:55:12', NULL, NULL, '2025-09-04 19:55:12', '2025-09-04 19:55:12', NULL, NULL, NULL),
|
||
(60, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:55:30', NULL, NULL, '2025-09-04 19:55:30', '2025-09-04 19:55:30', NULL, NULL, NULL),
|
||
(61, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:55:31', NULL, NULL, '2025-09-04 19:55:31', '2025-09-04 19:55:31', NULL, NULL, NULL),
|
||
(62, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:55:32', NULL, NULL, '2025-09-04 19:55:32', '2025-09-04 19:55:32', NULL, NULL, NULL),
|
||
(63, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:59:01', NULL, NULL, '2025-09-04 19:59:01', '2025-09-04 19:59:01', NULL, NULL, NULL),
|
||
(64, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:59:19', NULL, NULL, '2025-09-04 19:59:19', '2025-09-04 19:59:19', NULL, NULL, NULL),
|
||
(65, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:59:19', NULL, NULL, '2025-09-04 19:59:19', '2025-09-04 19:59:19', NULL, NULL, NULL),
|
||
(66, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:59:20', NULL, NULL, '2025-09-04 19:59:20', '2025-09-04 19:59:20', NULL, NULL, NULL),
|
||
(67, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 15:59:51', NULL, NULL, '2025-09-04 19:59:51', '2025-09-04 19:59:51', NULL, NULL, NULL),
|
||
(68, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 16:00:00', NULL, NULL, '2025-09-04 20:00:00', '2025-09-04 20:00:00', NULL, NULL, NULL),
|
||
(69, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 16:02:00', NULL, NULL, '2025-09-04 20:02:00', '2025-09-04 20:02:00', NULL, NULL, NULL),
|
||
(70, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 16:53:46', NULL, NULL, '2025-09-04 20:53:46', '2025-09-04 20:53:46', NULL, NULL, NULL),
|
||
(71, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 16:58:11', NULL, NULL, '2025-09-04 20:58:11', '2025-09-04 20:58:11', NULL, NULL, NULL),
|
||
(72, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 16:58:45', NULL, NULL, '2025-09-04 20:58:45', '2025-09-04 20:58:45', NULL, NULL, NULL),
|
||
(73, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 16:59:14', NULL, NULL, '2025-09-04 20:59:14', '2025-09-04 20:59:14', NULL, NULL, NULL),
|
||
(74, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 17:01:39', NULL, NULL, '2025-09-04 21:01:39', '2025-09-04 21:01:39', NULL, NULL, NULL),
|
||
(75, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 17:01:40', NULL, NULL, '2025-09-04 21:01:40', '2025-09-04 21:01:40', NULL, NULL, NULL),
|
||
(76, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 17:01:41', NULL, NULL, '2025-09-04 21:01:41', '2025-09-04 21:01:41', NULL, NULL, NULL),
|
||
(77, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 17:10:00', NULL, NULL, '2025-09-04 21:10:00', '2025-09-04 21:10:00', NULL, NULL, NULL),
|
||
(78, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 17:10:09', NULL, NULL, '2025-09-04 21:10:09', '2025-09-04 21:10:09', NULL, NULL, NULL),
|
||
(79, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-04 17:10:20', NULL, NULL, '2025-09-04 21:10:20', '2025-09-04 21:10:20', NULL, NULL, NULL),
|
||
(80, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 00:33:54', NULL, NULL, '2025-09-05 04:33:54', '2025-09-05 04:33:54', NULL, NULL, NULL),
|
||
(81, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 00:34:02', NULL, NULL, '2025-09-05 04:34:02', '2025-09-05 04:34:02', NULL, NULL, NULL),
|
||
(82, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 18:05:59', NULL, NULL, '2025-09-05 22:05:59', '2025-09-05 22:05:59', NULL, NULL, NULL),
|
||
(83, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 18:06:26', NULL, NULL, '2025-09-05 22:06:26', '2025-09-05 22:06:26', NULL, NULL, NULL),
|
||
(84, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 18:10:27', NULL, NULL, '2025-09-05 22:10:27', '2025-09-05 22:10:27', NULL, NULL, NULL),
|
||
(85, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 18:35:53', NULL, NULL, '2025-09-05 22:35:53', '2025-09-05 22:35:53', NULL, NULL, NULL),
|
||
(86, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 18:36:07', NULL, NULL, '2025-09-05 22:36:07', '2025-09-05 22:36:07', NULL, NULL, NULL),
|
||
(87, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:06:45', NULL, NULL, '2025-09-06 03:06:45', '2025-09-06 03:06:45', NULL, NULL, NULL),
|
||
(88, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:08:02', NULL, NULL, '2025-09-06 03:08:02', '2025-09-06 03:08:02', NULL, NULL, NULL),
|
||
(89, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:14:13', NULL, NULL, '2025-09-06 03:14:13', '2025-09-06 03:14:13', NULL, NULL, NULL),
|
||
(90, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:14:27', NULL, NULL, '2025-09-06 03:14:27', '2025-09-06 03:14:27', NULL, NULL, NULL),
|
||
(91, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:16:03', NULL, NULL, '2025-09-06 03:16:03', '2025-09-06 03:16:03', NULL, NULL, NULL),
|
||
(92, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:16:29', NULL, NULL, '2025-09-06 03:16:29', '2025-09-06 03:16:29', NULL, NULL, NULL),
|
||
(93, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:20:52', NULL, NULL, '2025-09-06 03:20:52', '2025-09-06 03:20:52', NULL, NULL, NULL),
|
||
(94, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:21:09', NULL, NULL, '2025-09-06 03:21:09', '2025-09-06 03:21:09', NULL, NULL, NULL),
|
||
(95, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:23:11', NULL, NULL, '2025-09-06 03:23:11', '2025-09-06 03:23:11', NULL, NULL, NULL),
|
||
(96, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:23:31', NULL, NULL, '2025-09-06 03:23:31', '2025-09-06 03:23:31', NULL, NULL, NULL),
|
||
(97, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:27:36', NULL, NULL, '2025-09-06 03:27:36', '2025-09-06 03:27:36', NULL, NULL, NULL),
|
||
(98, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:27:59', NULL, NULL, '2025-09-06 03:27:59', '2025-09-06 03:27:59', NULL, NULL, NULL),
|
||
(99, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:33:22', NULL, NULL, '2025-09-06 03:33:22', '2025-09-06 03:33:22', NULL, NULL, NULL),
|
||
(100, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:33:38', NULL, NULL, '2025-09-06 03:33:38', '2025-09-06 03:33:38', NULL, NULL, NULL),
|
||
(101, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:40:15', NULL, NULL, '2025-09-06 03:40:15', '2025-09-06 03:40:15', NULL, NULL, NULL),
|
||
(102, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:40:27', NULL, NULL, '2025-09-06 03:40:27', '2025-09-06 03:40:27', NULL, NULL, NULL),
|
||
(103, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:44:20', NULL, NULL, '2025-09-06 03:44:20', '2025-09-06 03:44:20', NULL, NULL, NULL),
|
||
(104, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:44:30', NULL, NULL, '2025-09-06 03:44:30', '2025-09-06 03:44:30', NULL, NULL, NULL),
|
||
(105, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:47:32', NULL, NULL, '2025-09-06 03:47:32', '2025-09-06 03:47:32', NULL, NULL, NULL),
|
||
(106, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-05 23:50:18', NULL, NULL, '2025-09-06 03:50:18', '2025-09-06 03:50:18', NULL, NULL, NULL),
|
||
(107, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:00:50', NULL, NULL, '2025-09-06 04:00:50', '2025-09-06 04:00:50', NULL, NULL, NULL),
|
||
(108, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:01:18', NULL, NULL, '2025-09-06 04:01:18', '2025-09-06 04:01:18', NULL, NULL, NULL),
|
||
(109, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:04:36', NULL, NULL, '2025-09-06 04:04:36', '2025-09-06 04:04:36', NULL, NULL, NULL),
|
||
(110, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:05:53', NULL, NULL, '2025-09-06 04:05:53', '2025-09-06 04:05:53', NULL, NULL, NULL),
|
||
(111, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:07:00', NULL, NULL, '2025-09-06 04:07:00', '2025-09-06 04:07:00', NULL, NULL, NULL),
|
||
(112, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:07:21', NULL, NULL, '2025-09-06 04:07:21', '2025-09-06 04:07:21', NULL, NULL, NULL),
|
||
(113, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:08:09', NULL, NULL, '2025-09-06 04:08:09', '2025-09-06 04:08:09', NULL, NULL, NULL),
|
||
(114, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:08:30', NULL, NULL, '2025-09-06 04:08:30', '2025-09-06 04:08:30', NULL, NULL, NULL),
|
||
(115, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:10:05', NULL, NULL, '2025-09-06 04:10:05', '2025-09-06 04:10:05', NULL, NULL, NULL),
|
||
(116, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:14:25', NULL, NULL, '2025-09-06 04:14:25', '2025-09-06 04:14:25', NULL, NULL, NULL),
|
||
(117, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:17:30', NULL, NULL, '2025-09-06 04:17:30', '2025-09-06 04:17:30', NULL, NULL, NULL),
|
||
(118, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:19:34', NULL, NULL, '2025-09-06 04:19:34', '2025-09-06 04:19:34', NULL, NULL, NULL),
|
||
(119, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:20:06', NULL, NULL, '2025-09-06 04:20:06', '2025-09-06 04:20:06', NULL, NULL, NULL),
|
||
(120, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:25:15', NULL, NULL, '2025-09-06 04:25:15', '2025-09-06 04:25:15', NULL, NULL, NULL),
|
||
(121, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:25:46', NULL, NULL, '2025-09-06 04:25:46', '2025-09-06 04:25:46', NULL, NULL, NULL),
|
||
(122, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:27:06', NULL, NULL, '2025-09-06 04:27:06', '2025-09-06 04:27:06', NULL, NULL, NULL),
|
||
(123, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:27:47', NULL, NULL, '2025-09-06 04:27:47', '2025-09-06 04:27:47', NULL, NULL, NULL),
|
||
(124, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:29:04', NULL, NULL, '2025-09-06 04:29:04', '2025-09-06 04:29:04', NULL, NULL, NULL),
|
||
(125, 'Admission Decision', 'We’ve emailed you an update regarding your admission decision.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:31:55', NULL, NULL, '2025-09-06 04:31:55', '2025-09-06 04:31:55', NULL, NULL, NULL),
|
||
(126, 'Waitlist Update', 'Your application is currently on the waitlist. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:31:56', NULL, NULL, '2025-09-06 04:31:56', '2025-09-06 04:31:56', NULL, NULL, NULL),
|
||
(127, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 00:33:28', NULL, NULL, '2025-09-06 04:33:28', '2025-09-06 04:33:28', NULL, NULL, NULL),
|
||
(128, 'Admission Under Review', 'Your admission application is under review. We will notify you once it is approved.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 02:45:58', NULL, NULL, '2025-09-06 06:45:58', '2025-09-06 06:45:58', NULL, NULL, NULL),
|
||
(129, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 02:46:13', NULL, NULL, '2025-09-06 06:46:13', '2025-09-06 06:46:13', NULL, NULL, NULL),
|
||
(130, 'Enrollment Confirmed', 'Enrollment confirmed. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 16:40:16', NULL, NULL, '2025-09-06 20:40:16', '2025-09-06 20:40:16', NULL, NULL, NULL),
|
||
(131, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 16:41:05', NULL, NULL, '2025-09-06 20:41:05', '2025-09-06 20:41:05', NULL, NULL, NULL),
|
||
(132, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 16:41:15', NULL, NULL, '2025-09-06 20:41:15', '2025-09-06 20:41:15', NULL, NULL, NULL),
|
||
(133, 'Payment Pending', 'Your payment is pending. Please check your email for details.', 'student', 'in_app', 'normal', 'pending', NULL, NULL, '2025-09-06 16:41:21', NULL, NULL, '2025-09-06 20:41:21', '2025-09-06 20:41:21', NULL, NULL, NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `notification_recipients`
|
||
--
|
||
|
||
CREATE TABLE `notification_recipients` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`notification_id` int(11) UNSIGNED NOT NULL,
|
||
`user_id` int(11) UNSIGNED NOT NULL,
|
||
`status` enum('unread','read','delivered','failed') DEFAULT 'unread',
|
||
`delivered_at` datetime DEFAULT NULL,
|
||
`read_at` datetime DEFAULT NULL,
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `parents`
|
||
--
|
||
|
||
CREATE TABLE `parents` (
|
||
`id` int(11) NOT NULL,
|
||
`secondparent_firstname` varchar(100) NOT NULL,
|
||
`secondparent_lastname` varchar(100) NOT NULL,
|
||
`secondparent_gender` enum('Male','Female') DEFAULT NULL,
|
||
`secondparent_email` varchar(150) NOT NULL,
|
||
`secondparent_phone` varchar(15) NOT NULL,
|
||
`firstparent_id` int(11) NOT NULL,
|
||
`secondparent_id` int(11) NOT NULL,
|
||
`semester` varchar(10) DEFAULT NULL,
|
||
`school_year` varchar(20) NOT NULL,
|
||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||
`updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `participation`
|
||
--
|
||
|
||
CREATE TABLE `participation` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`score` float DEFAULT NULL,
|
||
`comment` text DEFAULT NULL,
|
||
`semester` varchar(25) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `participation_score`
|
||
--
|
||
|
||
CREATE TABLE `participation_score` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`student_id` int(10) UNSIGNED NOT NULL,
|
||
`school_id` char(100) NOT NULL,
|
||
`class_section_id` int(10) UNSIGNED DEFAULT NULL,
|
||
`teacher_id` int(10) UNSIGNED DEFAULT NULL,
|
||
`score` float DEFAULT NULL,
|
||
`semester` varchar(20) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `password_resets`
|
||
--
|
||
|
||
CREATE TABLE `password_resets` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`email` varchar(255) NOT NULL,
|
||
`token` varchar(255) NOT NULL,
|
||
`created_at` datetime NOT NULL,
|
||
`expires_at` datetime NOT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `password_reset_requests`
|
||
--
|
||
|
||
CREATE TABLE `password_reset_requests` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`ip_address` varchar(45) NOT NULL,
|
||
`requested_at` datetime NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
--
|
||
-- Dumping data for table `password_reset_requests`
|
||
--
|
||
|
||
INSERT INTO `password_reset_requests` (`id`, `ip_address`, `requested_at`) VALUES
|
||
(1, '127.0.0.1', '2025-09-03 21:17:33');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `payments`
|
||
--
|
||
|
||
CREATE TABLE `payments` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`parent_id` int(11) UNSIGNED NOT NULL,
|
||
`invoice_id` int(11) UNSIGNED NOT NULL,
|
||
`total_amount` decimal(10,2) NOT NULL,
|
||
`paid_amount` decimal(10,2) NOT NULL DEFAULT 0.00,
|
||
`balance` decimal(10,2) NOT NULL,
|
||
`number_of_installments` int(11) NOT NULL,
|
||
`transaction_id` varchar(100) DEFAULT NULL,
|
||
`check_file` varchar(255) DEFAULT NULL,
|
||
`check_number` varchar(100) DEFAULT NULL,
|
||
`payment_method` varchar(50) NOT NULL DEFAULT 'Unknown',
|
||
`payment_date` date NOT NULL,
|
||
`semester` varchar(10) DEFAULT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`status` varchar(50) NOT NULL DEFAULT 'Pending',
|
||
`updated_by` int(11) DEFAULT NULL,
|
||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `payments`
|
||
--
|
||
|
||
INSERT INTO `payments` (`id`, `parent_id`, `invoice_id`, `total_amount`, `paid_amount`, `balance`, `number_of_installments`, `transaction_id`, `check_file`, `check_number`, `payment_method`, `payment_date`, `semester`, `school_year`, `status`, `updated_by`, `created_at`, `updated_at`) VALUES
|
||
(12, 2, 15, 810.00, 135.00, 675.00, 1, 'INV-15-1757215193.1984', NULL, NULL, 'cash', '2025-09-07', 'Fall', '2025-2026', 'Partial', 1, '2025-09-07 03:19:53', '2025-09-07 03:19:53'),
|
||
(13, 2, 15, 810.00, 135.00, 540.00, 2, 'INV-15-1757215258.9806', NULL, NULL, 'cash', '2025-09-07', 'Fall', '2025-2026', 'Partial', 1, '2025-09-07 03:20:58', '2025-09-07 03:20:58'),
|
||
(14, 2, 15, 810.00, 135.00, 405.00, 3, 'INV-15-1757215273.1985', NULL, NULL, 'cash', '2025-09-07', 'Fall', '2025-2026', 'Partial', 1, '2025-09-07 03:21:13', '2025-09-07 03:21:13'),
|
||
(15, 2, 15, 810.00, 135.00, 270.00, 4, 'INV-15-1757226977.3544', NULL, NULL, 'cash', '2025-09-07', 'Fall', '2025-2026', 'Partial', 1, '2025-09-07 06:36:17', '2025-09-07 06:36:17');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `payment_error`
|
||
--
|
||
|
||
CREATE TABLE `payment_error` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`payment_id` int(11) NOT NULL,
|
||
`invoice_id` int(11) NOT NULL,
|
||
`parent_id` int(11) NOT NULL,
|
||
`wrong_paid_amount` decimal(10,2) NOT NULL,
|
||
`wrong_payment_method` varchar(50) NOT NULL,
|
||
`wrong_check_file` varchar(255) DEFAULT NULL,
|
||
`error_note` varchar(255) DEFAULT NULL,
|
||
`logged_at` datetime NOT NULL,
|
||
`logged_by` int(11) DEFAULT NULL,
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `payment_transactions`
|
||
--
|
||
|
||
CREATE TABLE `payment_transactions` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`transaction_id` varchar(100) NOT NULL,
|
||
`payment_id` int(11) NOT NULL,
|
||
`transaction_date` datetime DEFAULT current_timestamp(),
|
||
`amount` decimal(10,2) NOT NULL,
|
||
`payment_method` varchar(50) NOT NULL,
|
||
`payment_status` varchar(50) NOT NULL DEFAULT 'Pending',
|
||
`transaction_fee` decimal(10,2) DEFAULT 0.00,
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `paypal_payments`
|
||
--
|
||
|
||
CREATE TABLE `paypal_payments` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`webhook_id` varchar(64) DEFAULT NULL,
|
||
`parent_school_id` varchar(64) DEFAULT NULL,
|
||
`order_id` varchar(64) DEFAULT NULL,
|
||
`transaction_id` varchar(64) DEFAULT NULL,
|
||
`status` varchar(32) DEFAULT NULL,
|
||
`amount` decimal(10,2) DEFAULT NULL,
|
||
`currency` varchar(10) DEFAULT NULL,
|
||
`paypal_fee` decimal(10,2) DEFAULT NULL,
|
||
`net_amount` decimal(10,2) DEFAULT NULL,
|
||
`payer_email` varchar(128) DEFAULT NULL,
|
||
`merchant_id` varchar(64) DEFAULT NULL,
|
||
`event_type` varchar(64) DEFAULT NULL,
|
||
`summary` text DEFAULT NULL,
|
||
`raw_payload` longtext DEFAULT NULL,
|
||
`synced` tinyint(1) NOT NULL DEFAULT 0,
|
||
`sync_attempts` int(11) NOT NULL DEFAULT 0,
|
||
`created_at` datetime DEFAULT current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `paypal_transactions`
|
||
--
|
||
|
||
CREATE TABLE `paypal_transactions` (
|
||
`id` int(11) NOT NULL,
|
||
`transaction_id` varchar(100) NOT NULL,
|
||
`payment_id` int(11) DEFAULT NULL,
|
||
`firstname` varchar(100) DEFAULT NULL,
|
||
`lastname` varchar(100) DEFAULT NULL,
|
||
`event_type` varchar(100) NOT NULL,
|
||
`payer_email` varchar(255) DEFAULT NULL,
|
||
`amount` decimal(10,2) NOT NULL DEFAULT 0.00,
|
||
`currency` varchar(10) NOT NULL,
|
||
`status` varchar(50) NOT NULL DEFAULT 'Pending',
|
||
`payment_method` varchar(50) NOT NULL,
|
||
`transaction_fee` decimal(10,2) NOT NULL DEFAULT 0.00,
|
||
`raw_data` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `permissions`
|
||
--
|
||
|
||
CREATE TABLE `permissions` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`name` varchar(255) NOT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `permissions`
|
||
--
|
||
|
||
INSERT INTO `permissions` (`id`, `name`, `description`, `created_at`, `updated_at`) VALUES
|
||
(2, 'nav-builder', 'Permission to assign roles to users', '2024-09-21 15:57:22', '2024-09-21 15:57:22'),
|
||
(1, 'admin_dashboard', 'Permission to view the admin dashboard', '2024-09-21 15:57:22', '2024-09-21 15:57:22'),
|
||
(6, 'create_permission', 'Permission to assign roles to users', '2024-09-21 15:57:22', '2024-09-21 15:57:22'),
|
||
(7, 'edit_permission', 'Permission to view the admin dashboard', '2024-09-21 15:57:22', '2024-09-21 15:57:22'),
|
||
(8, 'delete_permission', 'Permission to view the parent dashboard', '2024-09-21 17:23:01', '2024-09-21 17:23:01'),
|
||
(9, 'read_permission', 'Permission to assign roles to users', '2024-09-21 15:57:22', '2024-09-21 15:57:22'),
|
||
(10, 'login_activity', 'Permission to assign roles to users', '2024-09-21 15:57:22', '2024-09-21 15:57:22'),
|
||
(115, 'assign_class_teacher', 'permission to assign class to a teacher', '2025-09-08 06:12:34', '2025-09-08 06:12:34'),
|
||
(11, 'create_invoice', 'permission to create invoice', '2025-09-08 05:51:46', '2025-09-08 05:51:46'),
|
||
(116, 'view_invoice', 'permission to view invoices', '2025-09-08 06:15:29', '2025-09-08 06:18:37'),
|
||
(117, 'genereate_invoice', 'permission to generate invoices', '2025-09-08 06:15:49', '2025-09-08 06:15:49'),
|
||
(118, 'guest_dashboard', '', '2025-09-08 06:28:37', '2025-09-08 06:28:37'),
|
||
(119, 'student_dashboard', '', '2025-09-08 06:28:52', '2025-09-08 06:28:52'),
|
||
(120, 'configuration', 'permission to update the config', '2025-09-08 06:43:21', '2025-09-08 06:43:21'),
|
||
(121, 'edit_user', '', '2025-09-08 07:05:05', '2025-09-08 07:09:02'),
|
||
(122, 'read_user', '', '2025-09-08 07:09:34', '2025-09-08 07:09:34'),
|
||
(3, 'parent_dashboard', 'Permission to view the parent dashboard', '2024-09-21 17:23:01', '2024-09-21 17:23:01'),
|
||
(4, 'teacher_dashboard', 'Permission to view teacher dashboard', '2024-09-21 15:57:22', '2024-09-21 15:57:22'),
|
||
(5, 'invoice_pdf', 'Permission to view invoice PDFs', '2025-08-27 16:10:57', '2025-09-01 01:13:00');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `preferences`
|
||
--
|
||
|
||
CREATE TABLE `preferences` (
|
||
`id` int(11) NOT NULL,
|
||
`user_id` int(11) NOT NULL,
|
||
`receive_email_notifications` tinyint(1) DEFAULT 1,
|
||
`receive_sms_notifications` tinyint(1) DEFAULT 0,
|
||
`theme` varchar(50) DEFAULT 'light',
|
||
`language` varchar(10) DEFAULT 'en',
|
||
`timezone` varchar(50) DEFAULT 'UTC',
|
||
`receive_push_notifications` tinyint(1) DEFAULT 0,
|
||
`daily_summary_email` tinyint(1) DEFAULT 1,
|
||
`privacy_mode` tinyint(1) DEFAULT 0,
|
||
`marketing_emails` tinyint(1) DEFAULT 1,
|
||
`account_activity_alerts` tinyint(1) DEFAULT 1,
|
||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||
`updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`school_year` varchar(20) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `project`
|
||
--
|
||
|
||
CREATE TABLE `project` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`project_index` tinyint(4) DEFAULT NULL,
|
||
`score` float DEFAULT NULL,
|
||
`comment` text DEFAULT NULL,
|
||
`semester` varchar(25) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `purchase_orders`
|
||
--
|
||
|
||
CREATE TABLE `purchase_orders` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`po_number` varchar(60) NOT NULL,
|
||
`supplier_id` int(10) UNSIGNED NOT NULL,
|
||
`status` enum('draft','ordered','received','canceled') NOT NULL DEFAULT 'draft',
|
||
`order_date` date DEFAULT NULL,
|
||
`expected_date` date DEFAULT NULL,
|
||
`subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
|
||
`tax` decimal(12,2) NOT NULL DEFAULT 0.00,
|
||
`total` decimal(12,2) NOT NULL DEFAULT 0.00,
|
||
`notes` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`deleted_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `purchase_order_items`
|
||
--
|
||
|
||
CREATE TABLE `purchase_order_items` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`purchase_order_id` int(10) UNSIGNED NOT NULL,
|
||
`supply_id` int(10) UNSIGNED NOT NULL,
|
||
`description` varchar(255) DEFAULT NULL,
|
||
`quantity` int(11) NOT NULL DEFAULT 1,
|
||
`received_qty` int(11) NOT NULL DEFAULT 0,
|
||
`unit_cost` decimal(12,2) NOT NULL DEFAULT 0.00,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `qcmquestions`
|
||
--
|
||
|
||
CREATE TABLE `qcmquestions` (
|
||
`id` int(11) NOT NULL,
|
||
`qcm_question_id` int(11) NOT NULL,
|
||
`question_id` int(11) NOT NULL,
|
||
`answer_a` text NOT NULL,
|
||
`answer_b` text NOT NULL,
|
||
`answer_c` text DEFAULT NULL,
|
||
`answer_d` text DEFAULT NULL,
|
||
`answer_e` text DEFAULT NULL,
|
||
`correct_answer` char(1) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `questions`
|
||
--
|
||
|
||
CREATE TABLE `questions` (
|
||
`id` int(11) NOT NULL,
|
||
`question_id` int(11) NOT NULL,
|
||
`chapter_id` int(11) NOT NULL,
|
||
`question_type_id` int(11) NOT NULL,
|
||
`question_text` text NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `questionstruefalse`
|
||
--
|
||
|
||
CREATE TABLE `questionstruefalse` (
|
||
`id` int(11) NOT NULL,
|
||
`tf_question_id` int(11) NOT NULL,
|
||
`question_id` int(11) NOT NULL,
|
||
`correct_answer` tinyint(1) NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `questiontypes`
|
||
--
|
||
|
||
CREATE TABLE `questiontypes` (
|
||
`id` int(11) NOT NULL,
|
||
`question_type_id` int(11) NOT NULL,
|
||
`question_type_name` varchar(50) NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `quiz`
|
||
--
|
||
|
||
CREATE TABLE `quiz` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) NOT NULL,
|
||
`teacher_id` int(11) NOT NULL,
|
||
`quiz_index` tinyint(11) NOT NULL,
|
||
`score` float DEFAULT NULL,
|
||
`comment` text DEFAULT NULL,
|
||
`semester` varchar(25) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `refunds`
|
||
--
|
||
|
||
CREATE TABLE `refunds` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`parent_id` int(11) UNSIGNED NOT NULL,
|
||
`school_year` varchar(20) NOT NULL,
|
||
`invoice_id` int(11) UNSIGNED DEFAULT NULL,
|
||
`refund_amount` decimal(10,2) NOT NULL,
|
||
`requested_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||
`approved_at` datetime DEFAULT NULL,
|
||
`refunded_at` datetime DEFAULT NULL,
|
||
`status` enum('Pending','Partial','Approved','Rejected','Paid') NOT NULL DEFAULT 'Pending',
|
||
`reason` varchar(255) DEFAULT NULL,
|
||
`refund_paid_amount` decimal(10,2) NOT NULL,
|
||
`request` varchar(25) DEFAULT NULL,
|
||
`note` text DEFAULT NULL,
|
||
`approved_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`updated_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`refund_method` enum('Check','Online','Cash') DEFAULT NULL,
|
||
`check_nbr` varchar(100) DEFAULT NULL,
|
||
`check_file` varchar(255) DEFAULT NULL,
|
||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `refunds`
|
||
--
|
||
|
||
INSERT INTO `refunds` (`id`, `parent_id`, `school_year`, `invoice_id`, `refund_amount`, `requested_at`, `approved_at`, `refunded_at`, `status`, `reason`, `refund_paid_amount`, `request`, `note`, `approved_by`, `updated_by`, `refund_method`, `check_nbr`, `check_file`, `created_at`, `updated_at`, `semester`) VALUES
|
||
(1, 2, '2025-2026', 1, 0.00, '2025-09-04 06:33:28', NULL, NULL, 'Pending', NULL, 0.00, NULL, NULL, NULL, 1, NULL, NULL, NULL, '2025-09-04 10:33:28', '2025-09-04 10:34:54', NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `reimbursements`
|
||
--
|
||
|
||
CREATE TABLE `reimbursements` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`expense_id` int(11) UNSIGNED DEFAULT NULL,
|
||
`amount` decimal(10,2) NOT NULL,
|
||
`reimbursed_to` int(11) UNSIGNED NOT NULL,
|
||
`approved_by` int(11) UNSIGNED DEFAULT NULL,
|
||
`receipt_path` varchar(255) DEFAULT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`status` enum('Pending','Approved','Rejected','Paid') DEFAULT 'Pending',
|
||
`added_by` int(11) UNSIGNED NOT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL,
|
||
`check_number` varchar(100) DEFAULT NULL,
|
||
`reimbursement_method` enum('Cash','Check') DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `roles`
|
||
--
|
||
|
||
CREATE TABLE `roles` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`name` varchar(255) NOT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `roles`
|
||
--
|
||
|
||
INSERT INTO `roles` (`id`, `name`, `description`, `created_at`, `updated_at`) VALUES
|
||
(1, 'administrator', 'Oversees all administrative functions of the school', '2024-07-10 22:11:23', '2024-08-02 03:30:42'),
|
||
(2, 'principal', 'Responsible for overall school management and operations', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(3, 'vice_principal', 'Assists the principal in administrative duties', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(4, 'teacher', 'Delivers classroom instruction', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(5, 'teacher_assistant', 'Supports the lead teacher in instructional duties', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(6, 'student', 'Attends classes and participates in school activities', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(7, 'parent', 'Engages with teachers and school administration about their child', '2024-07-10 22:11:23', '2024-08-02 22:26:11'),
|
||
(8, 'admin', 'Handles administrative tasks and supports school operations', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(9, 'head of department (communication)', 'Oversees the Communication department', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(10, 'head of department (information technology)', 'Oversees the Information Tehcnology department', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(11, 'head of department (education)', 'Oversees the Education department', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(12, 'head of department (finance)', 'Oversees the Financial department', '2024-07-10 22:11:23', '2024-08-02 03:36:31'),
|
||
(13, 'guest', 'Oversees all guest functions of the school', '2024-07-12 16:05:03', '2024-08-02 03:36:31'),
|
||
(18, 'Communication', '', '2025-09-08 02:38:59', '2025-09-08 02:38:59'),
|
||
(19, 'csv', '', '2025-09-08 06:45:46', '2025-09-08 06:45:46');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `role_nav_items`
|
||
--
|
||
|
||
CREATE TABLE `role_nav_items` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`role_id` int(11) UNSIGNED NOT NULL,
|
||
`nav_item_id` int(10) UNSIGNED NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
--
|
||
-- Dumping data for table `role_nav_items`
|
||
--
|
||
|
||
INSERT INTO `role_nav_items` (`id`, `role_id`, `nav_item_id`, `created_at`, `updated_at`) VALUES
|
||
(1, 1, 1, '2025-09-05 17:23:56', NULL),
|
||
(4, 1, 4, '2025-09-05 17:23:56', NULL),
|
||
(5, 1, 5, '2025-09-05 17:23:56', NULL),
|
||
(6, 1, 6, '2025-09-05 17:23:56', NULL),
|
||
(7, 1, 7, '2025-09-05 17:23:56', NULL),
|
||
(8, 1, 8, '2025-09-05 17:23:56', NULL),
|
||
(9, 1, 9, '2025-09-05 17:23:56', NULL),
|
||
(10, 1, 10, '2025-09-05 17:23:56', NULL),
|
||
(11, 1, 11, '2025-09-05 17:23:56', NULL),
|
||
(12, 1, 12, '2025-09-05 17:23:56', NULL),
|
||
(13, 1, 13, '2025-09-05 17:23:56', NULL),
|
||
(15, 1, 15, '2025-09-05 17:23:56', NULL),
|
||
(19, 1, 19, '2025-09-05 17:23:56', NULL),
|
||
(20, 1, 20, '2025-09-05 17:23:56', NULL),
|
||
(21, 1, 21, '2025-09-05 17:23:56', NULL),
|
||
(22, 1, 22, '2025-09-05 17:23:56', NULL),
|
||
(23, 1, 23, '2025-09-05 17:23:56', NULL),
|
||
(24, 1, 24, '2025-09-05 17:23:56', NULL),
|
||
(25, 1, 25, '2025-09-05 17:23:56', NULL),
|
||
(27, 1, 27, '2025-09-05 17:23:56', NULL),
|
||
(28, 1, 28, '2025-09-05 17:23:56', NULL),
|
||
(29, 1, 29, '2025-09-05 17:23:56', NULL),
|
||
(30, 1, 30, '2025-09-05 17:23:56', NULL),
|
||
(31, 1, 31, '2025-09-05 17:23:56', NULL),
|
||
(32, 1, 32, '2025-09-05 17:23:56', NULL),
|
||
(33, 1, 33, '2025-09-05 17:23:56', NULL),
|
||
(34, 1, 34, '2025-09-05 17:23:56', NULL),
|
||
(35, 1, 35, '2025-09-05 17:23:56', NULL),
|
||
(36, 1, 36, '2025-09-05 17:23:56', NULL),
|
||
(37, 1, 37, '2025-09-05 17:23:56', NULL),
|
||
(39, 1, 39, '2025-09-05 17:23:56', NULL),
|
||
(40, 1, 40, '2025-09-05 17:23:56', NULL),
|
||
(41, 1, 41, '2025-09-05 17:23:56', NULL),
|
||
(42, 1, 42, '2025-09-05 17:23:56', NULL),
|
||
(43, 1, 43, '2025-09-05 17:23:56', NULL),
|
||
(44, 1, 44, '2025-09-05 17:23:56', NULL),
|
||
(45, 1, 45, '2025-09-05 17:23:56', NULL),
|
||
(46, 1, 46, '2025-09-05 17:23:56', NULL),
|
||
(47, 1, 47, '2025-09-05 17:23:56', NULL),
|
||
(48, 1, 48, '2025-09-05 17:23:56', NULL),
|
||
(49, 1, 49, '2025-09-05 17:23:56', NULL),
|
||
(50, 1, 50, '2025-09-05 17:23:56', NULL),
|
||
(51, 1, 51, '2025-09-05 17:23:56', NULL),
|
||
(64, 2, 1, '2025-09-05 17:23:56', NULL),
|
||
(67, 2, 4, '2025-09-05 17:23:56', NULL),
|
||
(68, 2, 5, '2025-09-05 17:23:56', NULL),
|
||
(69, 2, 6, '2025-09-05 17:23:56', NULL),
|
||
(70, 2, 7, '2025-09-05 17:23:56', NULL),
|
||
(71, 2, 8, '2025-09-05 17:23:56', NULL),
|
||
(72, 2, 9, '2025-09-05 17:23:56', NULL),
|
||
(73, 2, 10, '2025-09-05 17:23:56', NULL),
|
||
(74, 2, 11, '2025-09-05 17:23:56', NULL),
|
||
(75, 2, 12, '2025-09-05 17:23:56', NULL),
|
||
(76, 2, 13, '2025-09-05 17:23:56', NULL),
|
||
(78, 2, 15, '2025-09-05 17:23:56', NULL),
|
||
(82, 2, 19, '2025-09-05 17:23:56', NULL),
|
||
(83, 2, 20, '2025-09-05 17:23:56', NULL),
|
||
(84, 2, 21, '2025-09-05 17:23:56', NULL),
|
||
(85, 2, 22, '2025-09-05 17:23:56', NULL),
|
||
(86, 2, 23, '2025-09-05 17:23:56', NULL),
|
||
(87, 2, 24, '2025-09-05 17:23:56', NULL),
|
||
(88, 2, 25, '2025-09-05 17:23:56', NULL),
|
||
(90, 2, 27, '2025-09-05 17:23:56', NULL),
|
||
(91, 2, 28, '2025-09-05 17:23:56', NULL),
|
||
(92, 2, 29, '2025-09-05 17:23:56', NULL),
|
||
(93, 2, 30, '2025-09-05 17:23:56', NULL),
|
||
(94, 2, 31, '2025-09-05 17:23:56', NULL),
|
||
(95, 2, 32, '2025-09-05 17:23:56', NULL),
|
||
(96, 2, 33, '2025-09-05 17:23:56', NULL),
|
||
(97, 2, 34, '2025-09-05 17:23:56', NULL),
|
||
(98, 2, 35, '2025-09-05 17:23:56', NULL),
|
||
(99, 2, 36, '2025-09-05 17:23:56', NULL),
|
||
(100, 2, 37, '2025-09-05 17:23:56', NULL),
|
||
(102, 2, 39, '2025-09-05 17:23:56', NULL),
|
||
(103, 2, 40, '2025-09-05 17:23:56', NULL),
|
||
(104, 2, 41, '2025-09-05 17:23:56', NULL),
|
||
(105, 2, 42, '2025-09-05 17:23:56', NULL),
|
||
(106, 2, 43, '2025-09-05 17:23:56', NULL),
|
||
(107, 2, 44, '2025-09-05 17:23:56', NULL),
|
||
(108, 2, 45, '2025-09-05 17:23:56', NULL),
|
||
(109, 2, 46, '2025-09-05 17:23:56', NULL),
|
||
(110, 2, 47, '2025-09-05 17:23:56', NULL),
|
||
(111, 2, 48, '2025-09-05 17:23:56', NULL),
|
||
(112, 2, 49, '2025-09-05 17:23:56', NULL),
|
||
(113, 2, 50, '2025-09-05 17:23:56', NULL),
|
||
(114, 2, 51, '2025-09-05 17:23:56', NULL),
|
||
(127, 3, 1, '2025-09-05 17:23:56', NULL),
|
||
(130, 3, 4, '2025-09-05 17:23:56', NULL),
|
||
(131, 3, 5, '2025-09-05 17:23:56', NULL),
|
||
(132, 3, 6, '2025-09-05 17:23:56', NULL),
|
||
(133, 3, 7, '2025-09-05 17:23:56', NULL),
|
||
(134, 3, 8, '2025-09-05 17:23:56', NULL),
|
||
(135, 3, 9, '2025-09-05 17:23:56', NULL),
|
||
(136, 3, 10, '2025-09-05 17:23:56', NULL),
|
||
(137, 3, 11, '2025-09-05 17:23:56', NULL),
|
||
(138, 3, 12, '2025-09-05 17:23:56', NULL),
|
||
(139, 3, 13, '2025-09-05 17:23:56', NULL),
|
||
(141, 3, 15, '2025-09-05 17:23:56', NULL),
|
||
(145, 3, 19, '2025-09-05 17:23:56', NULL),
|
||
(146, 3, 20, '2025-09-05 17:23:56', NULL),
|
||
(147, 3, 21, '2025-09-05 17:23:56', NULL),
|
||
(148, 3, 22, '2025-09-05 17:23:56', NULL),
|
||
(149, 3, 23, '2025-09-05 17:23:56', NULL),
|
||
(150, 3, 24, '2025-09-05 17:23:56', NULL),
|
||
(151, 3, 25, '2025-09-05 17:23:56', NULL),
|
||
(153, 3, 27, '2025-09-05 17:23:56', NULL),
|
||
(154, 3, 28, '2025-09-05 17:23:56', NULL),
|
||
(155, 3, 29, '2025-09-05 17:23:56', NULL),
|
||
(156, 3, 30, '2025-09-05 17:23:56', NULL),
|
||
(157, 3, 31, '2025-09-05 17:23:56', NULL),
|
||
(158, 3, 32, '2025-09-05 17:23:56', NULL),
|
||
(159, 3, 33, '2025-09-05 17:23:56', NULL),
|
||
(160, 3, 34, '2025-09-05 17:23:56', NULL),
|
||
(161, 3, 35, '2025-09-05 17:23:56', NULL),
|
||
(162, 3, 36, '2025-09-05 17:23:56', NULL),
|
||
(163, 3, 37, '2025-09-05 17:23:56', NULL),
|
||
(165, 3, 39, '2025-09-05 17:23:56', NULL),
|
||
(166, 3, 40, '2025-09-05 17:23:56', NULL),
|
||
(167, 3, 41, '2025-09-05 17:23:56', NULL),
|
||
(168, 3, 42, '2025-09-05 17:23:56', NULL),
|
||
(169, 3, 43, '2025-09-05 17:23:56', NULL),
|
||
(170, 3, 44, '2025-09-05 17:23:56', NULL),
|
||
(171, 3, 45, '2025-09-05 17:23:56', NULL),
|
||
(172, 3, 46, '2025-09-05 17:23:56', NULL),
|
||
(173, 3, 47, '2025-09-05 17:23:56', NULL),
|
||
(174, 3, 48, '2025-09-05 17:23:56', NULL),
|
||
(175, 3, 49, '2025-09-05 17:23:56', NULL),
|
||
(176, 3, 50, '2025-09-05 17:23:56', NULL),
|
||
(177, 3, 51, '2025-09-05 17:23:56', NULL),
|
||
(190, 8, 27, '2025-09-05 17:23:56', NULL),
|
||
(191, 8, 41, '2025-09-05 17:23:56', NULL),
|
||
(192, 9, 8, '2025-09-05 17:23:56', NULL),
|
||
(193, 9, 35, '2025-09-05 17:23:56', NULL),
|
||
(194, 9, 36, '2025-09-05 17:23:56', NULL),
|
||
(195, 9, 37, '2025-09-05 17:23:56', NULL),
|
||
(199, 11, 6, '2025-09-05 17:23:56', NULL),
|
||
(200, 11, 22, '2025-09-05 17:23:56', NULL),
|
||
(201, 11, 23, '2025-09-05 17:23:56', NULL),
|
||
(202, 11, 24, '2025-09-05 17:23:56', NULL),
|
||
(203, 11, 25, '2025-09-05 17:23:56', NULL),
|
||
(205, 11, 27, '2025-09-05 17:23:56', NULL),
|
||
(206, 11, 28, '2025-09-05 17:23:56', NULL),
|
||
(207, 11, 29, '2025-09-05 17:23:56', NULL),
|
||
(208, 11, 30, '2025-09-05 17:23:56', NULL),
|
||
(209, 11, 31, '2025-09-05 17:23:56', NULL),
|
||
(210, 11, 32, '2025-09-05 17:23:56', NULL),
|
||
(211, 11, 33, '2025-09-05 17:23:56', NULL),
|
||
(214, 10, 31, '2025-09-05 17:23:57', NULL),
|
||
(218, 1, 52, '2025-09-05 21:57:09', '2025-09-05 21:57:09'),
|
||
(219, 1, 2, '2025-09-05 21:57:26', '2025-09-05 21:57:26'),
|
||
(220, 1, 14, '2025-09-05 21:57:37', '2025-09-05 21:57:37'),
|
||
(221, 1, 16, '2025-09-05 21:57:55', '2025-09-05 21:57:55'),
|
||
(222, 1, 17, '2025-09-05 21:58:03', '2025-09-05 21:58:03'),
|
||
(223, 1, 3, '2025-09-05 21:58:09', '2025-09-05 21:58:09'),
|
||
(224, 1, 18, '2025-09-05 21:58:23', '2025-09-05 21:58:23'),
|
||
(225, 1, 26, '2025-09-05 21:59:56', '2025-09-05 21:59:56'),
|
||
(226, 2, 26, '2025-09-05 21:59:56', '2025-09-05 21:59:56'),
|
||
(227, 3, 26, '2025-09-05 21:59:56', '2025-09-05 21:59:56'),
|
||
(228, 1, 38, '2025-09-05 22:00:41', '2025-09-05 22:00:41'),
|
||
(229, 2, 38, '2025-09-05 22:00:41', '2025-09-05 22:00:41'),
|
||
(232, 1, 53, '2025-09-08 05:26:44', '2025-09-08 05:26:44'),
|
||
(235, 1, 54, '2025-09-08 18:55:00', '2025-09-08 18:55:00'),
|
||
(245, 1, 59, '2025-09-08 21:41:12', '2025-09-08 21:41:12'),
|
||
(246, 1, 60, '2025-09-08 21:43:25', '2025-09-08 21:43:25'),
|
||
(247, 1, 56, '2025-09-08 21:44:19', '2025-09-08 21:44:19'),
|
||
(248, 1, 55, '2025-09-08 21:44:38', '2025-09-08 21:44:38'),
|
||
(249, 1, 57, '2025-09-08 21:44:52', '2025-09-08 21:44:52'),
|
||
(250, 1, 58, '2025-09-08 21:45:09', '2025-09-08 21:45:09');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `role_permissions`
|
||
--
|
||
|
||
CREATE TABLE `role_permissions` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`role_id` int(11) NOT NULL,
|
||
`permission_id` int(11) NOT NULL,
|
||
`can_create` tinyint(1) DEFAULT 0,
|
||
`can_read` tinyint(1) DEFAULT 0,
|
||
`can_update` tinyint(1) DEFAULT 0,
|
||
`can_delete` tinyint(1) DEFAULT 0,
|
||
`can_manage` tinyint(1) DEFAULT 0,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `role_permissions`
|
||
--
|
||
|
||
INSERT INTO `role_permissions` (`id`, `role_id`, `permission_id`, `can_create`, `can_read`, `can_update`, `can_delete`, `can_manage`, `created_at`, `updated_at`) VALUES
|
||
(156, 1, 122, 1, 1, 1, 1, 0, '2025-09-08 07:09:47', '2025-09-08 07:09:47'),
|
||
(155, 1, 121, 1, 1, 1, 1, 0, '2025-09-08 07:05:37', '2025-09-08 07:09:47'),
|
||
(154, 1, 120, 1, 1, 1, 1, 0, '2025-09-08 07:05:37', '2025-09-08 07:09:47'),
|
||
(153, 1, 119, 1, 1, 1, 1, 0, '2025-09-08 07:05:37', '2025-09-08 07:09:47'),
|
||
(152, 1, 118, 1, 1, 1, 1, 0, '2025-09-08 07:05:37', '2025-09-08 07:09:47'),
|
||
(151, 1, 11, 1, 1, 1, 1, 0, '2025-09-08 07:05:37', '2025-09-08 07:09:47'),
|
||
(150, 2, 5, 0, 1, 1, 0, 0, '2025-09-08 06:32:24', '2025-09-08 06:32:24'),
|
||
(149, 2, 117, 0, 1, 1, 0, 0, '2025-09-08 06:32:24', '2025-09-08 06:32:24'),
|
||
(148, 2, 116, 0, 1, 1, 0, 0, '2025-09-08 06:32:24', '2025-09-08 06:32:24'),
|
||
(147, 2, 11, 0, 1, 1, 0, 0, '2025-09-08 06:32:24', '2025-09-08 06:32:24'),
|
||
(146, 2, 115, 0, 1, 1, 0, 0, '2025-09-08 06:32:24', '2025-09-08 06:32:24'),
|
||
(145, 2, 1, 0, 1, 1, 0, 0, '2025-09-08 06:32:24', '2025-09-08 06:32:24'),
|
||
(144, 6, 119, 1, 1, 1, 0, 0, '2025-09-08 06:31:34', '2025-09-08 06:31:34'),
|
||
(143, 13, 118, 1, 1, 1, 1, 0, '2025-09-08 06:31:23', '2025-09-08 06:31:23'),
|
||
(142, 5, 4, 1, 1, 1, 0, 0, '2025-09-08 06:31:07', '2025-09-08 06:31:07'),
|
||
(141, 7, 5, 1, 1, 1, 0, 0, '2025-09-08 06:29:57', '2025-09-08 06:29:57'),
|
||
(140, 7, 3, 1, 1, 1, 0, 0, '2025-09-08 06:29:57', '2025-09-08 06:29:57'),
|
||
(137, 1, 117, 1, 1, 1, 1, 0, '2025-09-08 06:16:38', '2025-09-08 07:09:47'),
|
||
(138, 1, 116, 1, 1, 1, 1, 0, '2025-09-08 06:19:19', '2025-09-08 07:09:47'),
|
||
(139, 4, 4, 1, 1, 1, 0, 0, '2025-09-08 06:27:28', '2025-09-08 06:27:28'),
|
||
(134, 1, 115, 1, 1, 1, 1, 0, '2025-09-08 06:13:18', '2025-09-08 07:09:47'),
|
||
(10, 1, 10, 1, 1, 1, 1, 0, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(9, 1, 9, 1, 1, 1, 1, 0, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(8, 1, 8, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(7, 1, 7, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(6, 1, 6, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(5, 1, 5, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(4, 1, 4, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(3, 1, 3, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(2, 1, 2, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47'),
|
||
(1, 1, 1, 1, 1, 1, 1, 1, '2024-07-19 17:27:01', '2025-09-08 07:09:47');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `scan_log`
|
||
--
|
||
|
||
CREATE TABLE `scan_log` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`user_id` int(11) NOT NULL,
|
||
`card_id` varchar(255) DEFAULT NULL,
|
||
`scan_time` datetime DEFAULT current_timestamp(),
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `score_comments`
|
||
--
|
||
|
||
CREATE TABLE `score_comments` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) UNSIGNED NOT NULL,
|
||
`subject_id` int(11) NOT NULL,
|
||
`score_type` varchar(50) NOT NULL,
|
||
`semester` varchar(20) NOT NULL,
|
||
`school_year` varchar(20) NOT NULL,
|
||
`comment` text NOT NULL,
|
||
`commented_by` int(11) DEFAULT NULL,
|
||
`created_at` timestamp NULL DEFAULT current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `sections`
|
||
--
|
||
|
||
CREATE TABLE `sections` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`section_name` varchar(100) NOT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`updated_by` int(11) DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `sections`
|
||
--
|
||
|
||
INSERT INTO `sections` (`id`, `section_name`, `description`, `updated_at`, `updated_by`) VALUES
|
||
(1, '', 'No-Section', '2024-08-16 01:06:30', 1),
|
||
(2, 'A', 'Section A', '2024-08-16 01:06:30', 1),
|
||
(3, 'B', 'Section B', '2024-08-16 01:06:30', 1),
|
||
(4, 'C', 'Section C', '2024-08-16 01:06:30', 1),
|
||
(5, 'D', 'Section D', '2024-08-16 01:06:30', 1),
|
||
(6, 'E', 'Section E', '2024-08-16 01:06:30', 1);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `semester_scores`
|
||
--
|
||
|
||
CREATE TABLE `semester_scores` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`school_id` char(36) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) DEFAULT NULL,
|
||
`homework_avg` float DEFAULT NULL,
|
||
`quiz_avg` float DEFAULT NULL,
|
||
`project_avg` float DEFAULT NULL,
|
||
`midterm_exam_score` float DEFAULT NULL,
|
||
`final_exam_score` float DEFAULT NULL,
|
||
`attendance_score` float DEFAULT NULL,
|
||
`ptap_score` decimal(5,2) DEFAULT NULL,
|
||
`test_avg` float DEFAULT NULL,
|
||
`semester_score` float DEFAULT NULL,
|
||
`semester` varchar(20) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `settings`
|
||
--
|
||
|
||
CREATE TABLE `settings` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`name` varchar(255) NOT NULL,
|
||
`timezone` varchar(255) NOT NULL,
|
||
`updated_by` int(11) DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `shortanswerquestions`
|
||
--
|
||
|
||
CREATE TABLE `shortanswerquestions` (
|
||
`id` int(11) NOT NULL,
|
||
`sa_question_id` int(11) NOT NULL,
|
||
`question_id` int(11) NOT NULL,
|
||
`correct_answer` text NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `staff`
|
||
--
|
||
|
||
CREATE TABLE `staff` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`firstname` varchar(100) NOT NULL,
|
||
`lastname` varchar(100) NOT NULL,
|
||
`email` varchar(150) NOT NULL,
|
||
`phone` varchar(20) DEFAULT NULL,
|
||
`role_name` varchar(100) NOT NULL,
|
||
`school_year` varchar(9) NOT NULL,
|
||
`active_role` varchar(100) DEFAULT 'Active',
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`user_id` int(11) UNSIGNED NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `staff`
|
||
--
|
||
|
||
INSERT INTO `staff` (`id`, `firstname`, `lastname`, `email`, `phone`, `role_name`, `school_year`, `active_role`, `created_at`, `updated_at`, `user_id`) VALUES
|
||
(1, 'Larbi', 'Elabidi', 'lelabidi@alrahmaisgl.org', '123-654-7895', 'teacher_assistant, parent, principal', '2025-2026', 'principal', '2025-09-06 04:14:11', '2025-09-08 06:39:16', 2),
|
||
(2, 'Lhaj', 'elabidi', 'lhelabidi@alrahmaisgl.org', '(617)-309-6743', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:08:57', '2025-09-06 09:08:57', 108),
|
||
(3, 'Ahmed', 'Rachidi', 'arachidi@alrahmaisgl.org', '(123)-456-7890', 'teacher, principal', '2025-2026', 'principal', '2025-09-06 05:09:03', '2025-09-08 06:32:46', 109),
|
||
(4, 'Imran', 'Elma', 'ielma@alrahmaisgl.org', '(617)-309-6743', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:09:08', '2025-09-06 09:09:08', 110),
|
||
(5, 'Jj', 'Cj', 'jcj@alrahmaisgl.org', '(617)-309-6743', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:09:13', '2025-09-06 09:09:13', 111),
|
||
(6, 'Moulay', 'Elabidi', 'melabidi@alrahmaisgl.org', '(617)-309-6743', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:09:19', '2025-09-06 09:09:19', 114),
|
||
(7, 'Doah', 'Imran', 'dimran@alrahmaisgl.org', '(876)-892-7893', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:09:25', '2025-09-06 09:09:25', 115),
|
||
(8, 'Abdessamad ', 'Koukou', 'akoukou@alrahmaisgl.org', '(617)-953-7463', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:09:31', '2025-09-06 09:09:31', 118),
|
||
(9, 'Ebad', 'Rahman', 'erahman@alrahmaisgl.org', '(603)-860-2854', 'teacher, parent', '2025-2026', 'teacher', '2025-09-06 05:09:37', '2025-09-08 06:47:43', 119),
|
||
(10, 'Hicham', 'Youssuf', 'hyoussuf@alrahmaisgl.org', '(123)-456-7890', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:09:43', '2025-09-06 09:09:43', 120),
|
||
(11, 'Nawal', 'Mahmoud', 'nmahmoud@alrahmaisgl.org', '(123)-456-7890', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:09:49', '2025-09-06 09:09:49', 121),
|
||
(12, 'Myhfid', 'Benouallad', 'mbenouallad@alrahmaisgl.org', '(781)-267-3118', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:09:55', '2025-09-06 09:09:55', 131),
|
||
(13, 'Outmane', 'Lemtiri Chlieh', 'olemtirichlieh@alrahmaisgl.org', '4049998888', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:10:04', '2025-09-06 09:10:04', 142),
|
||
(14, 'Iman', 'Imimi', 'iimimi@alrahmaisgl.org', '2468875432', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:10:10', '2025-09-06 09:10:10', 145),
|
||
(15, 'Testname', 'Testlast', 'ttestlast@alrahmaisgl.org', '(012)-365-4789', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:10:17', '2025-09-06 09:10:17', 148),
|
||
(16, 'Dad', 'Parents', 'dparents@alrahmaisgl.org', '(014)-563-4889', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:10:22', '2025-09-06 09:10:22', 149),
|
||
(17, 'Amjad', 'Abdalaoui', 'aabdalaoui@alrahmaisgl.org', '(617)-415-3666', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:10:27', '2025-09-06 09:10:27', 150),
|
||
(18, 'Faisal', 'Qabba', 'fqabba@alrahmaisgl.org', '(617)-669-3076', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:10:33', '2025-09-06 09:10:33', 151),
|
||
(19, 'Abdelhak', 'Elmalki', 'aelmalki@alrahmaisgl.org', '(351)-220-3163', 'teacher_assistant', '2025-2026', 'teacher_assistant', '2025-09-06 05:10:39', '2025-09-06 09:10:39', 152),
|
||
(20, 'Test', 'Emailsending', 'temailsending@alrahmaisgl.org', '(123)-654-7895', 'teacher', '2025-2026', 'teacher', '2025-09-06 05:10:45', '2025-09-06 09:10:45', 153);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `students`
|
||
--
|
||
|
||
CREATE TABLE `students` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`school_id` char(100) NOT NULL,
|
||
`firstname` varchar(255) NOT NULL,
|
||
`lastname` varchar(255) NOT NULL,
|
||
`dob` date DEFAULT NULL,
|
||
`age` int(11) NOT NULL,
|
||
`gender` varchar(10) NOT NULL,
|
||
`registration_grade` varchar(50) DEFAULT NULL,
|
||
`photo_consent` tinyint(1) NOT NULL,
|
||
`parent_id` int(11) NOT NULL,
|
||
`registration_date` datetime DEFAULT NULL,
|
||
`tuition_paid` tinyint(1) NOT NULL DEFAULT 0,
|
||
`year_of_registration` varchar(25) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`rfid_tag` varchar(100) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL,
|
||
`is_new` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = new student, 0 = returning student'
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `students`
|
||
--
|
||
|
||
INSERT INTO `students` (`id`, `school_id`, `firstname`, `lastname`, `dob`, `age`, `gender`, `registration_grade`, `photo_consent`, `parent_id`, `registration_date`, `tuition_paid`, `year_of_registration`, `school_year`, `rfid_tag`, `semester`, `is_new`) VALUES
|
||
(15, 'STU2500002', 'Samir', 'Mahmoud', '2020-12-31', 4, 'Male', 'K', 1, 2, '2025-09-05 00:00:00', 0, '2025', '2025-2026', NULL, 'Fall', 0),
|
||
(16, 'STU2500003', 'Bnbnb', 'Nbnb', '2020-12-31', 5, 'Male', 'KG', 1, 2, '2025-09-05 00:00:00', 0, '2025', '2025-2026', NULL, 'Fall', 0),
|
||
(17, 'STU2500004', 'Sss', 'Ssss', '2007-12-31', 18, 'Male', 'KG', 1, 2, '2025-09-05 00:00:00', 0, '2025', '2025-2026', NULL, 'Fall', 0);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `student_allergies`
|
||
--
|
||
|
||
CREATE TABLE `student_allergies` (
|
||
`id` int(11) NOT NULL,
|
||
`student_id` int(10) UNSIGNED NOT NULL,
|
||
`allergy` varchar(100) NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `student_allergies`
|
||
--
|
||
|
||
INSERT INTO `student_allergies` (`id`, `student_id`, `allergy`) VALUES
|
||
(14, 16, 'Antibiotics'),
|
||
(15, 17, 'Bee stings'),
|
||
(18, 15, 'Antibiotics');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `student_class`
|
||
--
|
||
|
||
CREATE TABLE `student_class` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`student_id` int(11) NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(25) DEFAULT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`updated_by` int(11) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `student_class`
|
||
--
|
||
|
||
INSERT INTO `student_class` (`id`, `student_id`, `class_section_id`, `semester`, `school_year`, `description`, `created_at`, `updated_at`, `updated_by`) VALUES
|
||
(22, 15, 10, 'Fall', '2025-2026', NULL, '2025-09-06 21:04:42', '2025-09-06 21:04:42', 1),
|
||
(23, 16, 1, 'Fall', '2025-2026', NULL, '2025-09-06 21:04:46', '2025-09-08 06:59:06', 1),
|
||
(24, 17, 120, 'Fall', '2025-2026', NULL, '2025-09-06 21:04:49', '2025-09-08 06:59:16', 1);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `student_medical_conditions`
|
||
--
|
||
|
||
CREATE TABLE `student_medical_conditions` (
|
||
`id` int(11) NOT NULL,
|
||
`student_id` int(10) UNSIGNED NOT NULL,
|
||
`condition_name` varchar(100) NOT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `student_medical_conditions`
|
||
--
|
||
|
||
INSERT INTO `student_medical_conditions` (`id`, `student_id`, `condition_name`) VALUES
|
||
(14, 16, 'Anxiety or Emotional Disorders'),
|
||
(15, 17, 'Asthma'),
|
||
(18, 15, 'ADHD (Attention-Deficit/Hyperactivity Disorder)');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `suppliers`
|
||
--
|
||
|
||
CREATE TABLE `suppliers` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`name` varchar(180) NOT NULL,
|
||
`email` varchar(180) DEFAULT NULL,
|
||
`phone` varchar(60) DEFAULT NULL,
|
||
`address` varchar(255) DEFAULT NULL,
|
||
`notes` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`deleted_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `supplies`
|
||
--
|
||
|
||
CREATE TABLE `supplies` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`name` varchar(180) NOT NULL,
|
||
`sku` varchar(80) DEFAULT NULL,
|
||
`category_id` int(10) UNSIGNED DEFAULT NULL,
|
||
`unit` varchar(30) NOT NULL DEFAULT 'pcs',
|
||
`qty_on_hand` int(11) NOT NULL DEFAULT 0,
|
||
`reorder_level` int(11) NOT NULL DEFAULT 0,
|
||
`location` varchar(120) DEFAULT NULL,
|
||
`cost_price` decimal(10,2) NOT NULL DEFAULT 0.00,
|
||
`notes` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`deleted_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `supplies`
|
||
--
|
||
|
||
INSERT INTO `supplies` (`id`, `name`, `sku`, `category_id`, `unit`, `qty_on_hand`, `reorder_level`, `location`, `cost_price`, `notes`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||
(1, 'Grade-1 Islamic Study Book', '', 2, 'pcs', 8, 0, 'office', 100.00, '', '2025-09-08 19:41:55', '2025-09-08 20:00:59', '2025-09-08 20:00:59'),
|
||
(2, 'Grade-1 Islamic Study Book', '', 2, 'pcs', 57, 0, '', 600.00, '', '2025-09-08 20:01:42', '2025-09-08 20:30:04', NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `supply_categories`
|
||
--
|
||
|
||
CREATE TABLE `supply_categories` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`name` varchar(120) NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`deleted_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `supply_categories`
|
||
--
|
||
|
||
INSERT INTO `supply_categories` (`id`, `name`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||
(1, 'Book Islamic Study', '2025-09-08 19:19:04', '2025-09-08 19:23:14', '2025-09-08 19:23:14'),
|
||
(2, 'Grade-1 Islamic Study Book ', '2025-09-08 19:23:41', '2025-09-08 19:23:41', NULL),
|
||
(3, 'Grade-2 Islamic Study Book', '2025-09-08 19:24:16', '2025-09-08 19:24:16', NULL),
|
||
(4, 'Grade-3 Islamic Study Book', '2025-09-08 19:24:32', '2025-09-08 19:24:32', NULL),
|
||
(5, 'Grade-4 Islamic Study Book', '2025-09-08 19:24:38', '2025-09-08 19:24:38', NULL),
|
||
(6, 'Grade-5 Islamic Study Book', '2025-09-08 19:24:45', '2025-09-08 19:24:45', NULL),
|
||
(7, 'Grade-6 Islamic Study Book', '2025-09-08 19:24:51', '2025-09-08 19:24:51', NULL),
|
||
(8, 'Grade-7 Islamic Study Book', '2025-09-08 19:24:57', '2025-09-08 19:24:57', NULL),
|
||
(9, 'Grade-8 Islamic Study Book', '2025-09-08 19:25:04', '2025-09-08 19:25:04', NULL),
|
||
(10, 'Grade-9 Islamic Study Book', '2025-09-08 19:25:09', '2025-09-08 19:25:09', NULL),
|
||
(11, 'Grade-1 Work Book', '2025-09-08 19:25:38', '2025-09-08 19:25:38', NULL),
|
||
(12, 'Grade-2 Work Book', '2025-09-08 19:25:46', '2025-09-08 19:25:46', NULL),
|
||
(13, 'Grade-3 Work Book', '2025-09-08 19:25:53', '2025-09-08 19:25:53', NULL),
|
||
(14, 'Grade-4 Work Book', '2025-09-08 19:25:59', '2025-09-08 19:25:59', NULL),
|
||
(15, 'Grade-5 Work Book', '2025-09-08 19:26:07', '2025-09-08 19:26:07', NULL),
|
||
(16, 'Grade-6 Work Book', '2025-09-08 19:26:14', '2025-09-08 19:26:14', NULL),
|
||
(17, 'Grade-7 Work Book', '2025-09-08 19:26:19', '2025-09-08 19:26:19', NULL),
|
||
(18, 'Grade-8 Work Book', '2025-09-08 19:26:24', '2025-09-08 19:26:24', NULL),
|
||
(19, 'Grade-9 Work Book', '2025-09-08 19:26:29', '2025-09-08 19:26:29', NULL),
|
||
(20, 'Juz\' Amma', '2025-09-08 19:27:52', '2025-09-08 19:28:20', '2025-09-08 19:28:20'),
|
||
(21, 'Juz Tabarak', '2025-09-08 19:28:09', '2025-09-08 19:28:09', NULL),
|
||
(22, 'Juz Amma', '2025-09-08 19:28:30', '2025-09-08 19:28:30', NULL),
|
||
(23, 'Juz Amma Workbook Vol.1', '2025-09-08 19:29:41', '2025-09-08 19:29:41', NULL),
|
||
(24, 'Juz Amma Workbook Vol.2', '2025-09-08 19:30:31', '2025-09-08 19:30:31', NULL),
|
||
(25, 'Juz Tabarak Workbook Vol.1', '2025-09-08 19:31:01', '2025-09-08 19:31:01', NULL),
|
||
(26, 'Juz Tabarak Workbook Vol.2', '2025-09-08 19:31:16', '2025-09-08 19:31:16', NULL),
|
||
(27, 'test for edit', '2025-09-08 19:40:47', '2025-09-08 19:41:03', '2025-09-08 19:41:03');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `supply_transactions`
|
||
--
|
||
|
||
CREATE TABLE `supply_transactions` (
|
||
`id` int(10) UNSIGNED NOT NULL,
|
||
`supply_id` int(10) UNSIGNED NOT NULL,
|
||
`type` enum('in','out','adjust') NOT NULL DEFAULT 'in',
|
||
`quantity` int(11) NOT NULL,
|
||
`ref` varchar(120) DEFAULT NULL,
|
||
`issued_to` varchar(180) DEFAULT NULL,
|
||
`issued_by` varchar(120) DEFAULT NULL,
|
||
`notes` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `supply_transactions`
|
||
--
|
||
|
||
INSERT INTO `supply_transactions` (`id`, `supply_id`, `type`, `quantity`, `ref`, `issued_to`, `issued_by`, `notes`, `created_at`, `updated_at`) VALUES
|
||
(1, 1, 'out', 2, 'STU2500002', 'Student', 'system', '', '2025-09-08 19:42:43', '2025-09-08 19:42:43'),
|
||
(2, 2, 'in', 10, '0', '', 'system', '', '2025-09-08 20:02:24', '2025-09-08 20:02:24'),
|
||
(3, 2, 'out', 1, 'STU2500003', '', 'system', '', '2025-09-08 20:04:15', '2025-09-08 20:04:15'),
|
||
(4, 2, 'out', 1, '2500002', 'principal', 'system', '', '2025-09-08 20:27:20', '2025-09-08 20:27:20'),
|
||
(5, 2, 'out', 1, '2500003', 'teacher', 'system', '', '2025-09-08 20:30:04', '2025-09-08 20:30:04');
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `support_requests`
|
||
--
|
||
|
||
CREATE TABLE `support_requests` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`user_id` int(11) NOT NULL,
|
||
`subject` varchar(255) NOT NULL,
|
||
`message` text NOT NULL,
|
||
`status` varchar(25) NOT NULL DEFAULT 'open',
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `teacher_class`
|
||
--
|
||
|
||
CREATE TABLE `teacher_class` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`class_section_id` int(11) DEFAULT NULL,
|
||
`teacher_id` int(11) DEFAULT NULL,
|
||
`position` enum('main','ta') DEFAULT 'main',
|
||
`semester` varchar(25) NOT NULL,
|
||
`school_year` varchar(25) DEFAULT NULL,
|
||
`description` text DEFAULT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`updated_by` int(11) DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `teacher_class`
|
||
--
|
||
|
||
INSERT INTO `teacher_class` (`id`, `class_section_id`, `teacher_id`, `position`, `semester`, `school_year`, `description`, `created_at`, `updated_at`, `updated_by`) VALUES
|
||
(53, 12, 120, 'ta', 'Fall', '2025-2026', NULL, '2025-09-08 06:52:47', '2025-09-08 06:52:47', 1),
|
||
(52, 12, 118, 'ta', 'Fall', '2025-2026', NULL, '2025-09-08 06:52:36', '2025-09-08 06:52:36', 1);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `users`
|
||
--
|
||
|
||
CREATE TABLE `users` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`school_id` int(11) UNSIGNED DEFAULT NULL,
|
||
`firstname` varchar(255) NOT NULL,
|
||
`lastname` varchar(255) NOT NULL,
|
||
`gender` enum('Male','Female') DEFAULT NULL,
|
||
`cellphone` varchar(25) NOT NULL,
|
||
`email` varchar(255) NOT NULL,
|
||
`address_street` varchar(255) NOT NULL,
|
||
`apt` varchar(25) DEFAULT NULL,
|
||
`city` varchar(255) NOT NULL,
|
||
`state` varchar(25) NOT NULL,
|
||
`zip` varchar(25) NOT NULL,
|
||
`accept_school_policy` tinyint(1) NOT NULL,
|
||
`is_verified` tinyint(1) NOT NULL DEFAULT 0,
|
||
`status` varchar(10) NOT NULL DEFAULT 'Inactive',
|
||
`is_suspended` tinyint(1) NOT NULL DEFAULT 0,
|
||
`failed_attempts` int(11) DEFAULT 0,
|
||
`password` varchar(255) NOT NULL,
|
||
`created_at` datetime DEFAULT NULL,
|
||
`updated_at` datetime DEFAULT NULL,
|
||
`token` varchar(255) DEFAULT NULL,
|
||
`account_id` varchar(255) DEFAULT NULL,
|
||
`user_type` enum('primary','secondary','tertiary') DEFAULT 'primary',
|
||
`semester` varchar(255) NOT NULL,
|
||
`school_year` varchar(9) DEFAULT NULL,
|
||
`rfid_tag` varchar(100) DEFAULT NULL,
|
||
`last_failed_at` datetime DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `users`
|
||
--
|
||
|
||
INSERT INTO `users` (`id`, `school_id`, `firstname`, `lastname`, `gender`, `cellphone`, `email`, `address_street`, `apt`, `city`, `state`, `zip`, `accept_school_policy`, `is_verified`, `status`, `is_suspended`, `failed_attempts`, `password`, `created_at`, `updated_at`, `token`, `account_id`, `user_type`, `semester`, `school_year`, `rfid_tag`, `last_failed_at`) VALUES
|
||
(1, 2500001, 'AdminFirstName', 'AdminLastName', 'Male', '0001234569', 'administrator@gmail.com', '2 bfbg', '', 'lowell', 'ma', '0000', 1, 1, 'Active', 0, 0, 'sha256$100000$c754c0c1d5926b6961c8d1eb3e5453b0$b1da71cea3e52b1669f15434136242e3a73019174a503d5fe1744ea57c1a0d4f65b566c198fd9389b4c6f6b702597644e2509f921df36083b058bed92493c583', '2024-08-02 00:24:41', '2025-09-08 21:42:13', NULL, 'ACC00000001', 'primary', '', '2024-2025', '000000001', NULL),
|
||
(2, 2500002, 'Larbi', 'Elabidi', 'Male', '123-654-7895', 'alrahma.isgl@gmail.com', '23 Fndfhdfb', '1', 'Lokol', 'ME', '12365', 1, 1, 'Active', 0, 0, 'sha256$100000$c754c0c1d5926b6961c8d1eb3e5453b0$b1da71cea3e52b1669f15434136242e3a73019174a503d5fe1744ea57c1a0d4f65b566c198fd9389b4c6f6b702597644e2509f921df36083b058bed92493c583', '2025-09-02 14:54:15', '2025-09-08 06:32:56', NULL, 'ACC00000002', 'primary', 'Fall', '2025-2026', NULL, NULL),
|
||
(108, 2500003, 'Lhaj', 'elabidi', 'Male', '(617)-309-6743', 'moulay.elabidi@gmail.com', '90 swan st', '', 'lowell', 'MA', '01852', 1, 1, 'Active', 0, 0, 'sha256$100000$51373caaf8c1fc2f86f195c5203ae3c7$47e7eb5e74e1ae8a654393ca5d97e9f1e0af3494ae6daf932d8f0ae45a685da745f44a05496f00b2c2ce2f443ecd20c24fad4e2869a8f63330126d9dc72e1b65', '2025-05-13 22:22:11', '2025-08-24 17:51:58', NULL, 'ACC00000108', 'primary', '', '2024-2025', NULL, NULL),
|
||
(109, 2500002, 'Ahmed', 'Rachidi', 'Male', '(123)-456-7890', 'alrahma.isgl1@gmail.com', '5 courthouse', '23', 'Checlmsford', 'MA', '01824', 1, 1, 'Active', 0, 0, 'sha256$100000$09beb0cfd26f321135ee1f7db3550851$879e93f04235de6502cc476c6184aee0937fe5d632aa9ea6a30b32c74483d51499aa436064adc7f7180d49b24ba309f51fe6a12666f3a5fc3faf08cbe931d093', '2025-05-13 22:43:00', '2025-09-08 06:33:00', '', 'ACC00000109', 'primary', 'Fall', '2024-2025', '', NULL),
|
||
(110, 2500004, 'Imran', 'Elma', 'Male', '(617)-309-6743', 'badrimranelma@gmail.com', '90swan st', '201', 'Lowell', 'OK', '01852', 1, 1, 'Active', 0, 0, 'sha256$100000$14b097396501bd9dc009ccdbd7d40013$42e930820ad62eeb043d6300053aa5ce77dee86c1c63253daad41dbf3d225699cb3a2181c233f7770e85b9b09b9fa0fd4b2c869aab8afa0dc09cd9818caa2a51', '2025-05-14 00:50:25', '2025-05-14 00:52:49', NULL, 'ACC00000110', 'primary', '', '2024-2025', NULL, NULL),
|
||
(111, 0, 'ahmed', 'godda', '', '6523652144', 'jesschagfgfgfgf04@gmail.com', '', '', '', '', '', 0, 0, '', 0, NULL, 'sha256$100000$d04af3943fc88aa51311bb6c3fd15245$6981676908173ba86ddb06efc190bb37beff5bc63bdbc5b8beda4466ab6e888a4de831c2933219a8572453ec88330e71c8e731bec2bd16d65c42b123f2eae50b', NULL, NULL, '', '', '', '', '', '', NULL),
|
||
(118, 2500020, 'Abdessamad', 'Koukou lala', 'Male', '(617)-953-7463', 'kousami@gmail.com', '797 Varnum Ave', '344', 'Lowell', 'MA', '01854', 1, 1, 'Active', 0, 0, 'sha256$100000$2f93a6c0fbb43725c8e1727808cf70f1$a3d10cd418ef82322f8f5d087941daf078b38a69b6d3c5209a04987cc8ceb4977c6e01456b667c089d73d689d211bd1497889f910280ea6d534691caedbbb6bc', '2025-06-28 04:42:00', '2025-06-28 04:43:00', '', 'ACC00000118', 'primary', 'Fall', '2024-2025', '', NULL),
|
||
(114, 2500007, 'Moulay', 'Elabidi', 'Male', '(617)-309-6743', 'larbi.elabidi@gmail.com', '90 swan st', 'WE3', 'Lowell', 'MA', '01852', 1, 1, 'Active', 0, 1, 'sha256$100000$35bf3b6177d4b43c7703fe76a29f0893$de5d2a25629e018d3276d8d5148a03dc1e2bd47c7870bbec505f20748f02fb9d94c1db79a3041776adc6cd2ae0011876f58027422ee1cfed566d88e8c2a7a362', '2025-05-18 03:44:46', '2025-05-24 03:36:51', NULL, 'ACC00000114', 'primary', '', '2024-2025', NULL, '2025-05-24 03:36:51'),
|
||
(115, 2500008, 'Doah', 'Imran', 'Male', '(876)-892-7893', 'doahimran@gmail.com', '90 swan st ', '201', 'Lowell', 'MA', '09239', 1, 1, 'Active', 0, 0, 'sha256$100000$924f4d507059284b682a48d766a61c53$5c77369cfaf3a4f4fd17ce7232b1acd66630325429f422c18c93caca812727206c71de1856e9de69ba699b8c5dfedab3377ac62e2f6ab5b93cd7a8364fc6d8e6', '2025-05-20 00:32:21', '2025-05-20 01:20:30', NULL, 'ACC00000115', 'primary', '', '2024-2025', NULL, NULL),
|
||
(119, 0, 'Ebad mohamed', 'Rahman', '', '(603)-860-2854', 'rahmanek@gmail.com', '', '', '', '', '', 0, 0, '', 0, NULL, 'sha256$100000$d1ca5c509d419a1899898ae72c0bb01b$aa86c422d033756aae241ec7b7723eb1103ac123b2e64e16435999e2ec80eec27491a9b5f1b4fa5002ed53286e2b9cbe04a306b44e3e68cda766cf9485818811', NULL, NULL, '', '', '', '', '', '', NULL),
|
||
(120, 2500023, 'Hicham', 'Youssuf', 'Female', '(123)-456-7890', 'teacher@gmail.com', '5 courthouse', '', 'Checlmsford', 'MA', '01824', 1, 1, 'Active', 0, 0, 'sha256$100000$c754c0c1d5926b6961c8d1eb3e5453b0$b1da71cea3e52b1669f15434136242e3a73019174a503d5fe1744ea57c1a0d4f65b566c198fd9389b4c6f6b702597644e2509f921df36083b058bed92493c583', '2025-05-13 22:43:03', '2025-07-25 05:04:40', NULL, 'ACC00000122', 'primary', '', '2024-2025', NULL, NULL),
|
||
(121, 2500024, 'Nawal', 'Mahmoud', 'Female', '(123)-456-7890', 'parent@gmail.com', '5 courthouse', '', 'Checlmsford', 'MA', '01824', 1, 1, 'Active', 0, 0, 'sha256$100000$09beb0cfd26f321135ee1f7db3550851$879e93f04235de6502cc476c6184aee0937fe5d632aa9ea6a30b32c74483d51499aa436064adc7f7180d49b24ba309f51fe6a12666f3a5fc3faf08cbe931d093', '2025-05-13 22:43:03', '2025-08-11 04:02:16', NULL, 'ACC00000123', 'primary', '', '2024-2025', NULL, NULL),
|
||
(131, 2500026, 'Myhfid', 'Benouallad', 'Male', '(781)-267-3118', 'benouallad@gmail.com', '147 Rangeway Rd', '1412', 'North Billerica', 'MA', '01862', 1, 1, 'Active', 0, 0, 'sha256$100000$c651b79606a38cdc170735fe6670ea2d$0bc51bb9a61497e406dc3cb884446329067f6d9c65413315347b5c6da099dc09f54ee4c73cdbeb79a37e68681d79faea57c08eafd06bf7c8b0c224f89cf4c57a', '2025-07-12 01:35:57', '2025-07-12 01:38:32', NULL, 'ACC00000131', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(145, 2500030, 'Iman', 'Imimi', 'Female', '2468875432', 'imane.lassfar@gmail.com', '90 Swan', '234', 'Lowell', 'MA', '19528', 1, 1, 'Active', 0, 0, 'sha256$100000$338c772010cc6d48d40cac5e3d88b1c8$0486250b1770cda56cace00795c4457fd5c66c49e465b6710aaba564ee22b13046d708225388850c8355cc05ef9e5c5893f9e3057fd99098fc573062a09cb13c', '2025-07-17 04:05:04', '2025-07-17 04:08:34', NULL, 'ACC00000145', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(142, 2500029, 'Outmane', 'Lemtiri Chlieh', 'Male', '4049998888', 'olemtiri@hotmail.com', '255 Main Street', '6', 'Lowell', 'MA', '01854', 1, 1, 'Active', 0, 0, 'sha256$100000$0b8d825805da1011fcff00e2f3b7772b$fa407cc600285747951b8cf0912dba9d14da15cfcfd6362b5245d66340766ad10ae0b47ab4d4719f763d70c70371064abf93022b1f3dae74cbff1738172dcdc3', '2025-07-17 03:15:27', '2025-07-19 01:44:25', NULL, 'ACC00000142', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(149, 2500033, 'Dad', 'Parents', 'Male', '(014)-563-4889', 'moltadalti@necub.com', 'Gf 45', '5', 'Lowell', 'MA', '07526', 1, 1, 'Active', 0, 0, 'sha256$100000$74db12e96583912f3702d7355ef461a3$4cab0e4f5cfebc44cfcf2dde52def440eb9374bf176d547230ddd6aaeda26de8a4acd0b74e502b95c6f79a16c5ee8d716765c9eda71712a11cb2ddd196e3575a', '2025-07-21 23:42:45', '2025-07-21 23:49:04', NULL, 'ACC00000149', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(148, 2500032, 'Testname', 'Testlast', 'Male', '(012)-365-4789', 'malrahma.isgl@gmail.com', '123 Test Address', '', 'Boston', 'MA', '01236', 1, 1, 'Active', 0, 0, 'sha256$100000$4af5f8bdd469c54b1a0d8a74ca40c31a$d6b0aface87a8ddb87c8386d78f3333ca4ed373971322f953bb0daacc8a910e0e215c0315b59bc236c2edfc273e40e7e1edd08d4e695d72674eab883544554e4', '2025-07-21 22:47:54', '2025-08-19 03:17:41', NULL, 'ACC00000148', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(150, 2500034, 'Amjad', 'Abdalaoui', 'Male', '(617)-415-3666', 'ahmedabdalaoui@gmail.com', '1260 Westford St', '5', 'Lowell', 'MA', '01851', 1, 1, 'Active', 0, 0, 'sha256$100000$ae3680ad62af17833bf51092bc62fd5b$75f7f74fa1e2c37428d50fed6fade3ef0b9c3eee7233d6f569d70390f4817512d5308f61b6cf4545bc0d5ccbb575554cecbc500566dd9cc4ed76764ee01c3852', '2025-07-22 21:22:30', '2025-07-22 21:27:07', NULL, 'ACC00000150', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(151, 2500036, 'Faisal', 'Qabba', 'Male', '(617)-669-3076', 'fqabba242@gmail.com', '29 Pratt Avenue', 'APRT 5', 'Lowell', 'MA', '08151', 1, 1, 'Active', 0, 0, 'sha256$100000$471d7e865cd34c543fcd01d308582e9c$85f6a669a3e2c9b991e7b61dcd1511c3b3288671362d2e58f32bde168872c9ce2df379e997ed446a9af6febc26d5c5bdb6259f393a04dcea9f19dce55d1f93e4', '2025-07-22 22:37:57', '2025-07-22 22:39:46', NULL, 'ACC00000151', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(152, 2500037, 'Abdelhak', 'Elmalki', 'Male', '(351)-220-3163', 'abdelhaklmlk@gmail.com', '1 Tech Valley Dr', '2321', 'Westford', 'MA', '01886', 1, 1, 'Active', 0, 0, 'sha256$100000$24117a56ebd7cca0f7350a4b820193e2$8412607a8b5a0ac5fd77bd2d8f9c6c4e6dd4b949e0b31db48c8584b45ad1fdc8e5b483dee45f494d9afb0bb1dfd1b2be30274d1107b6b72010858218672c6881', '2025-07-23 11:26:40', '2025-07-23 11:32:11', NULL, 'ACC00000152', 'primary', 'Fall', '2024-2025', NULL, NULL),
|
||
(153, 2500038, 'Test', 'Emailsending', 'Male', '(123)-654-7895', 'alrahma.isgl@gmail.com', '15 Sdnjsnhfs', '14', 'Lowell', 'MA', '01236', 1, 1, 'Active', 0, 0, 'sha256$100000$8d187e0a413011b4117ebd401ee50d92$db3532f1c72d0fc03181e1e3b0858cd30fc6b130242c55c2ad6f086be6878e01abe9e28e6bee04517a2c2271ae2cd3af266d00e9b23ab699afd98647d5fc52de', '2025-08-20 03:00:34', '2025-08-20 03:03:38', NULL, 'ACC00000153', 'primary', 'Fall', '2025-2026', NULL, NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `user_notifications`
|
||
--
|
||
|
||
CREATE TABLE `user_notifications` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`notification_id` int(11) NOT NULL,
|
||
`user_id` int(11) NOT NULL,
|
||
`is_read` tinyint(1) DEFAULT 0,
|
||
`delivered` tinyint(1) DEFAULT 0,
|
||
`delivered_at` datetime DEFAULT NULL,
|
||
`school_year` varchar(20) DEFAULT NULL,
|
||
`semester` varchar(10) DEFAULT NULL
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `user_notifications`
|
||
--
|
||
|
||
INSERT INTO `user_notifications` (`id`, `notification_id`, `user_id`, `is_read`, `delivered`, `delivered_at`, `school_year`, `semester`) VALUES
|
||
(1, 1, 2, 0, 0, NULL, NULL, NULL),
|
||
(2, 2, 2, 0, 0, NULL, NULL, NULL),
|
||
(3, 3, 2, 0, 0, NULL, NULL, NULL),
|
||
(4, 4, 2, 0, 0, NULL, NULL, NULL),
|
||
(5, 5, 2, 0, 0, NULL, NULL, NULL),
|
||
(6, 6, 2, 0, 0, NULL, NULL, NULL),
|
||
(7, 7, 2, 0, 0, NULL, NULL, NULL),
|
||
(8, 8, 2, 0, 0, NULL, NULL, NULL),
|
||
(9, 9, 2, 0, 0, NULL, NULL, NULL),
|
||
(10, 10, 2, 0, 0, NULL, NULL, NULL),
|
||
(11, 11, 2, 0, 0, NULL, NULL, NULL),
|
||
(12, 12, 2, 0, 0, NULL, NULL, NULL),
|
||
(13, 13, 2, 0, 0, NULL, NULL, NULL),
|
||
(14, 14, 2, 0, 0, NULL, NULL, NULL),
|
||
(15, 15, 2, 0, 0, NULL, NULL, NULL),
|
||
(16, 16, 2, 0, 0, NULL, NULL, NULL),
|
||
(17, 17, 2, 0, 0, NULL, NULL, NULL),
|
||
(18, 18, 2, 0, 0, NULL, NULL, NULL),
|
||
(19, 19, 2, 0, 0, NULL, NULL, NULL),
|
||
(20, 20, 2, 0, 0, NULL, NULL, NULL),
|
||
(21, 21, 2, 0, 0, NULL, NULL, NULL),
|
||
(22, 22, 2, 0, 0, NULL, NULL, NULL),
|
||
(23, 23, 2, 0, 0, NULL, NULL, NULL),
|
||
(24, 24, 2, 0, 0, NULL, NULL, NULL),
|
||
(25, 25, 2, 0, 0, NULL, NULL, NULL),
|
||
(26, 26, 2, 0, 0, NULL, NULL, NULL),
|
||
(27, 27, 2, 0, 0, NULL, NULL, NULL),
|
||
(28, 28, 2, 0, 0, NULL, NULL, NULL),
|
||
(29, 29, 2, 0, 0, NULL, NULL, NULL),
|
||
(30, 30, 2, 0, 0, NULL, NULL, NULL),
|
||
(31, 31, 2, 0, 0, NULL, NULL, NULL),
|
||
(32, 32, 2, 0, 0, NULL, NULL, NULL),
|
||
(33, 33, 2, 0, 0, NULL, NULL, NULL),
|
||
(34, 34, 2, 0, 0, NULL, NULL, NULL),
|
||
(35, 35, 2, 0, 0, NULL, NULL, NULL),
|
||
(36, 36, 2, 0, 0, NULL, NULL, NULL),
|
||
(37, 37, 2, 0, 0, NULL, NULL, NULL),
|
||
(38, 38, 2, 0, 0, NULL, NULL, NULL),
|
||
(39, 39, 2, 0, 0, NULL, NULL, NULL),
|
||
(40, 40, 2, 0, 0, NULL, NULL, NULL),
|
||
(41, 41, 2, 0, 0, NULL, NULL, NULL),
|
||
(42, 42, 2, 0, 0, NULL, NULL, NULL),
|
||
(43, 43, 2, 0, 0, NULL, NULL, NULL),
|
||
(44, 44, 2, 0, 0, NULL, NULL, NULL),
|
||
(45, 45, 2, 0, 0, NULL, NULL, NULL),
|
||
(46, 46, 2, 0, 0, NULL, NULL, NULL),
|
||
(47, 47, 2, 0, 0, NULL, NULL, NULL),
|
||
(48, 48, 2, 0, 0, NULL, NULL, NULL),
|
||
(49, 49, 2, 0, 0, NULL, NULL, NULL),
|
||
(50, 50, 2, 0, 0, NULL, NULL, NULL),
|
||
(51, 51, 2, 0, 0, NULL, NULL, NULL),
|
||
(52, 52, 2, 0, 0, NULL, NULL, NULL),
|
||
(53, 53, 2, 0, 0, NULL, NULL, NULL),
|
||
(54, 54, 2, 0, 0, NULL, NULL, NULL),
|
||
(55, 55, 2, 0, 0, NULL, NULL, NULL),
|
||
(56, 56, 2, 0, 0, NULL, NULL, NULL),
|
||
(57, 57, 2, 0, 0, NULL, NULL, NULL),
|
||
(58, 58, 2, 0, 0, NULL, NULL, NULL),
|
||
(59, 59, 2, 0, 0, NULL, NULL, NULL),
|
||
(60, 60, 2, 0, 0, NULL, NULL, NULL),
|
||
(61, 61, 2, 0, 0, NULL, NULL, NULL),
|
||
(62, 62, 2, 0, 0, NULL, NULL, NULL),
|
||
(63, 63, 2, 0, 0, NULL, NULL, NULL),
|
||
(64, 64, 2, 0, 0, NULL, NULL, NULL),
|
||
(65, 65, 2, 0, 0, NULL, NULL, NULL),
|
||
(66, 66, 2, 0, 0, NULL, NULL, NULL),
|
||
(67, 67, 2, 0, 0, NULL, NULL, NULL),
|
||
(68, 68, 2, 0, 0, NULL, NULL, NULL),
|
||
(69, 69, 2, 0, 0, NULL, NULL, NULL),
|
||
(70, 70, 2, 0, 0, NULL, NULL, NULL),
|
||
(71, 71, 2, 0, 0, NULL, NULL, NULL),
|
||
(72, 72, 2, 0, 0, NULL, NULL, NULL),
|
||
(73, 73, 2, 0, 0, NULL, NULL, NULL),
|
||
(74, 74, 2, 0, 0, NULL, NULL, NULL),
|
||
(75, 75, 2, 0, 0, NULL, NULL, NULL),
|
||
(76, 76, 2, 0, 0, NULL, NULL, NULL),
|
||
(77, 77, 2, 0, 0, NULL, NULL, NULL),
|
||
(78, 78, 2, 0, 0, NULL, NULL, NULL),
|
||
(79, 79, 2, 0, 0, NULL, NULL, NULL),
|
||
(80, 80, 2, 0, 0, NULL, NULL, NULL),
|
||
(81, 81, 2, 0, 0, NULL, NULL, NULL),
|
||
(82, 82, 2, 0, 0, NULL, NULL, NULL),
|
||
(83, 83, 2, 0, 0, NULL, NULL, NULL),
|
||
(84, 84, 2, 0, 0, NULL, NULL, NULL),
|
||
(85, 85, 2, 0, 0, NULL, NULL, NULL),
|
||
(86, 86, 2, 0, 0, NULL, NULL, NULL),
|
||
(87, 87, 2, 0, 0, NULL, NULL, NULL),
|
||
(88, 88, 2, 0, 0, NULL, NULL, NULL),
|
||
(89, 89, 2, 0, 0, NULL, NULL, NULL),
|
||
(90, 90, 2, 0, 0, NULL, NULL, NULL),
|
||
(91, 91, 2, 0, 0, NULL, NULL, NULL),
|
||
(92, 92, 2, 0, 0, NULL, NULL, NULL),
|
||
(93, 93, 2, 0, 0, NULL, NULL, NULL),
|
||
(94, 94, 2, 0, 0, NULL, NULL, NULL),
|
||
(95, 95, 2, 0, 0, NULL, NULL, NULL),
|
||
(96, 96, 2, 0, 0, NULL, NULL, NULL),
|
||
(97, 97, 2, 0, 0, NULL, NULL, NULL),
|
||
(98, 98, 2, 0, 0, NULL, NULL, NULL),
|
||
(99, 99, 2, 0, 0, NULL, NULL, NULL),
|
||
(100, 100, 2, 0, 0, NULL, NULL, NULL),
|
||
(101, 101, 2, 0, 0, NULL, NULL, NULL),
|
||
(102, 102, 2, 0, 0, NULL, NULL, NULL),
|
||
(103, 103, 2, 0, 0, NULL, NULL, NULL),
|
||
(104, 104, 2, 0, 0, NULL, NULL, NULL),
|
||
(105, 105, 2, 0, 0, NULL, NULL, NULL),
|
||
(106, 106, 2, 0, 0, NULL, NULL, NULL),
|
||
(107, 107, 2, 0, 0, NULL, NULL, NULL),
|
||
(108, 108, 2, 0, 0, NULL, NULL, NULL),
|
||
(109, 109, 2, 0, 0, NULL, NULL, NULL),
|
||
(110, 110, 2, 0, 0, NULL, NULL, NULL),
|
||
(111, 111, 2, 0, 0, NULL, NULL, NULL),
|
||
(112, 112, 2, 0, 0, NULL, NULL, NULL),
|
||
(113, 113, 2, 0, 0, NULL, NULL, NULL),
|
||
(114, 114, 2, 0, 0, NULL, NULL, NULL),
|
||
(115, 115, 2, 0, 0, NULL, NULL, NULL),
|
||
(116, 116, 2, 0, 0, NULL, NULL, NULL),
|
||
(117, 117, 2, 0, 0, NULL, NULL, NULL),
|
||
(118, 118, 2, 0, 0, NULL, NULL, NULL),
|
||
(119, 119, 2, 0, 0, NULL, NULL, NULL),
|
||
(120, 120, 2, 0, 0, NULL, NULL, NULL),
|
||
(121, 121, 2, 0, 0, NULL, NULL, NULL),
|
||
(122, 122, 2, 0, 0, NULL, NULL, NULL),
|
||
(123, 123, 2, 0, 0, NULL, NULL, NULL),
|
||
(124, 124, 2, 0, 0, NULL, NULL, NULL),
|
||
(125, 125, 2, 0, 0, NULL, NULL, NULL),
|
||
(126, 126, 2, 0, 0, NULL, NULL, NULL),
|
||
(127, 127, 2, 0, 0, NULL, NULL, NULL),
|
||
(128, 128, 2, 0, 0, NULL, NULL, NULL),
|
||
(129, 129, 2, 0, 0, NULL, NULL, NULL),
|
||
(130, 130, 2, 0, 0, NULL, NULL, NULL),
|
||
(131, 131, 2, 0, 0, NULL, NULL, NULL),
|
||
(132, 132, 2, 0, 0, NULL, NULL, NULL),
|
||
(133, 133, 2, 0, 0, NULL, NULL, NULL);
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `user_preferences`
|
||
--
|
||
|
||
CREATE TABLE `user_preferences` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`user_id` int(11) NOT NULL,
|
||
`notification_email` tinyint(1) DEFAULT 1,
|
||
`notification_sms` tinyint(1) DEFAULT 1,
|
||
`theme` varchar(50) DEFAULT 'light',
|
||
`language` varchar(50) DEFAULT 'en',
|
||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||
`updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||
|
||
-- --------------------------------------------------------
|
||
|
||
--
|
||
-- Table structure for table `user_roles`
|
||
--
|
||
|
||
CREATE TABLE `user_roles` (
|
||
`id` int(11) UNSIGNED NOT NULL,
|
||
`user_id` int(11) UNSIGNED NOT NULL,
|
||
`role_id` int(11) UNSIGNED NOT NULL,
|
||
`created_at` datetime DEFAULT current_timestamp(),
|
||
`updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
`deleted_at` datetime DEFAULT NULL,
|
||
`updated_by` int(11) DEFAULT NULL
|
||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
||
--
|
||
-- Dumping data for table `user_roles`
|
||
--
|
||
|
||
INSERT INTO `user_roles` (`id`, `user_id`, `role_id`, `created_at`, `updated_at`, `deleted_at`, `updated_by`) VALUES
|
||
(1, 1, 1, '2025-09-01 01:36:34', '2025-09-01 01:36:34', NULL, NULL),
|
||
(13, 108, 4, '2025-09-06 09:08:57', '2025-09-06 09:08:57', NULL, 1),
|
||
(3, 3, 13, '2025-09-03 13:47:00', '2025-09-03 13:47:00', NULL, NULL),
|
||
(4, 4, 7, '2025-09-03 13:47:44', '2025-09-03 13:47:44', NULL, NULL),
|
||
(5, 5, 13, '2025-09-03 15:02:57', '2025-09-03 15:02:57', NULL, NULL),
|
||
(6, 6, 13, '2025-09-03 15:42:26', '2025-09-03 15:42:26', NULL, NULL),
|
||
(7, 7, 7, '2025-09-03 15:54:48', '2025-09-03 15:54:48', NULL, NULL),
|
||
(8, 8, 7, '2025-09-04 02:24:32', '2025-09-04 02:24:32', NULL, NULL),
|
||
(9, 9, 13, '2025-09-04 02:25:18', '2025-09-04 02:25:18', NULL, NULL),
|
||
(36, 2, 7, '2025-09-08 06:39:16', '2025-09-08 06:39:16', NULL, 1),
|
||
(34, 109, 2, '2025-09-08 06:32:46', '2025-09-08 06:32:46', NULL, 1),
|
||
(15, 110, 4, '2025-09-06 09:09:08', '2025-09-06 09:09:08', NULL, 1),
|
||
(16, 111, 4, '2025-09-06 09:09:13', '2025-09-06 09:09:13', NULL, 1),
|
||
(17, 114, 4, '2025-09-06 09:09:19', '2025-09-06 09:09:19', NULL, 1),
|
||
(18, 115, 5, '2025-09-06 09:09:25', '2025-09-06 09:09:25', NULL, 1),
|
||
(19, 118, 5, '2025-09-06 09:09:31', '2025-09-06 09:09:31', NULL, 1),
|
||
(37, 119, 4, '2025-09-08 06:47:43', '2025-09-08 06:47:43', NULL, 1),
|
||
(21, 120, 5, '2025-09-06 09:09:43', '2025-09-06 09:09:43', NULL, 1),
|
||
(22, 121, 4, '2025-09-06 09:09:49', '2025-09-06 09:09:49', NULL, 1),
|
||
(23, 131, 5, '2025-09-06 09:09:55', '2025-09-06 09:09:55', NULL, 1),
|
||
(24, 142, 5, '2025-09-06 09:10:04', '2025-09-06 09:10:04', NULL, 1),
|
||
(25, 145, 4, '2025-09-06 09:10:10', '2025-09-06 09:10:10', NULL, 1),
|
||
(26, 148, 4, '2025-09-06 09:10:17', '2025-09-06 09:10:17', NULL, 1),
|
||
(27, 149, 5, '2025-09-06 09:10:22', '2025-09-06 09:10:22', NULL, 1),
|
||
(28, 150, 5, '2025-09-06 09:10:27', '2025-09-06 09:10:27', NULL, 1),
|
||
(29, 151, 4, '2025-09-06 09:10:33', '2025-09-06 09:10:33', NULL, 1),
|
||
(30, 152, 5, '2025-09-06 09:10:39', '2025-09-06 09:10:39', NULL, 1),
|
||
(31, 153, 4, '2025-09-06 09:10:45', '2025-09-06 09:10:45', NULL, 1),
|
||
(35, 2, 2, '2025-09-08 06:39:16', '2025-09-08 06:39:16', NULL, 1),
|
||
(38, 119, 7, '2025-09-08 06:47:43', '2025-09-08 06:47:43', NULL, 1);
|
||
|
||
--
|
||
-- Indexes for dumped tables
|
||
--
|
||
|
||
--
|
||
-- Indexes for table `attendance_data`
|
||
--
|
||
ALTER TABLE `attendance_data`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `attendance_record`
|
||
--
|
||
ALTER TABLE `attendance_record`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `attendance_tracking`
|
||
--
|
||
ALTER TABLE `attendance_tracking`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `student_id` (`student_id`);
|
||
|
||
--
|
||
-- Indexes for table `authorized_users`
|
||
--
|
||
ALTER TABLE `authorized_users`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `calendar_events`
|
||
--
|
||
ALTER TABLE `calendar_events`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `chapters`
|
||
--
|
||
ALTER TABLE `chapters`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `classes`
|
||
--
|
||
ALTER TABLE `classes`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `classSection`
|
||
--
|
||
ALTER TABLE `classSection`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `class_preparation_log`
|
||
--
|
||
ALTER TABLE `class_preparation_log`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `class_section`
|
||
--
|
||
ALTER TABLE `class_section`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `class_id_section_id` (`class_id`,`section_id`);
|
||
|
||
--
|
||
-- Indexes for table `configuration`
|
||
--
|
||
ALTER TABLE `configuration`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `contactus`
|
||
--
|
||
ALTER TABLE `contactus`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `current_flag`
|
||
--
|
||
ALTER TABLE `current_flag`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `discount_usages`
|
||
--
|
||
ALTER TABLE `discount_usages`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `discount_vouchers`
|
||
--
|
||
ALTER TABLE `discount_vouchers`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `emergency_contacts`
|
||
--
|
||
ALTER TABLE `emergency_contacts`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `enrollments`
|
||
--
|
||
ALTER TABLE `enrollments`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `student_id` (`student_id`),
|
||
ADD KEY `class_section_id` (`class_section_id`),
|
||
ADD KEY `parent_id` (`parent_id`),
|
||
ADD KEY `idx_enrollment_lookup` (`student_id`,`semester`,`school_year`);
|
||
|
||
--
|
||
-- Indexes for table `events`
|
||
--
|
||
ALTER TABLE `events`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `event_charges`
|
||
--
|
||
ALTER TABLE `event_charges`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `examquestiondistribution`
|
||
--
|
||
ALTER TABLE `examquestiondistribution`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `examquestions`
|
||
--
|
||
ALTER TABLE `examquestions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `exams`
|
||
--
|
||
ALTER TABLE `exams`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `expenses`
|
||
--
|
||
ALTER TABLE `expenses`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `final_exam`
|
||
--
|
||
ALTER TABLE `final_exam`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `final_score`
|
||
--
|
||
ALTER TABLE `final_score`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `flag`
|
||
--
|
||
ALTER TABLE `flag`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `grades`
|
||
--
|
||
ALTER TABLE `grades`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `student_id` (`student_id`),
|
||
ADD KEY `teacher_id` (`teacher_id`),
|
||
ADD KEY `class_section_id` (`class_section_id`);
|
||
|
||
--
|
||
-- Indexes for table `homework`
|
||
--
|
||
ALTER TABLE `homework`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `invoices`
|
||
--
|
||
ALTER TABLE `invoices`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `invoice_event`
|
||
--
|
||
ALTER TABLE `invoice_event`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `invoice_students_list`
|
||
--
|
||
ALTER TABLE `invoice_students_list`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `ip_attempts`
|
||
--
|
||
ALTER TABLE `ip_attempts`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `login_activity`
|
||
--
|
||
ALTER TABLE `login_activity`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `longanswerquestions`
|
||
--
|
||
ALTER TABLE `longanswerquestions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `manual_payments`
|
||
--
|
||
ALTER TABLE `manual_payments`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `messages`
|
||
--
|
||
ALTER TABLE `messages`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `midterm_exam`
|
||
--
|
||
ALTER TABLE `midterm_exam`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `migrations`
|
||
--
|
||
ALTER TABLE `migrations`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `nav_items`
|
||
--
|
||
ALTER TABLE `nav_items`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `uq_parent_label` (`menu_parent_id`,`label`),
|
||
ADD KEY `idx_nav_items_menu_parent` (`menu_parent_id`),
|
||
ADD KEY `idx_nav_items_enabled` (`is_enabled`),
|
||
ADD KEY `idx_nav_items_sort` (`sort_order`);
|
||
|
||
--
|
||
-- Indexes for table `notifications`
|
||
--
|
||
ALTER TABLE `notifications`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `notification_recipients`
|
||
--
|
||
ALTER TABLE `notification_recipients`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `parents`
|
||
--
|
||
ALTER TABLE `parents`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `participation`
|
||
--
|
||
ALTER TABLE `participation`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `participation_score`
|
||
--
|
||
ALTER TABLE `participation_score`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `idx_student_id` (`student_id`),
|
||
ADD KEY `idx_class_section_id` (`class_section_id`),
|
||
ADD KEY `idx_teacher_id` (`teacher_id`);
|
||
|
||
--
|
||
-- Indexes for table `password_resets`
|
||
--
|
||
ALTER TABLE `password_resets`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `password_reset_requests`
|
||
--
|
||
ALTER TABLE `password_reset_requests`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `payments`
|
||
--
|
||
ALTER TABLE `payments`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `payment_error`
|
||
--
|
||
ALTER TABLE `payment_error`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `payment_transactions`
|
||
--
|
||
ALTER TABLE `payment_transactions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `paypal_payments`
|
||
--
|
||
ALTER TABLE `paypal_payments`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `paypal_transactions`
|
||
--
|
||
ALTER TABLE `paypal_transactions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `permissions`
|
||
--
|
||
ALTER TABLE `permissions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `preferences`
|
||
--
|
||
ALTER TABLE `preferences`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `project`
|
||
--
|
||
ALTER TABLE `project`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `purchase_orders`
|
||
--
|
||
ALTER TABLE `purchase_orders`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `po_number` (`po_number`),
|
||
ADD KEY `purchase_orders_supplier_id_foreign` (`supplier_id`);
|
||
|
||
--
|
||
-- Indexes for table `purchase_order_items`
|
||
--
|
||
ALTER TABLE `purchase_order_items`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `purchase_order_items_purchase_order_id_foreign` (`purchase_order_id`),
|
||
ADD KEY `purchase_order_items_supply_id_foreign` (`supply_id`);
|
||
|
||
--
|
||
-- Indexes for table `qcmquestions`
|
||
--
|
||
ALTER TABLE `qcmquestions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `questions`
|
||
--
|
||
ALTER TABLE `questions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `questionstruefalse`
|
||
--
|
||
ALTER TABLE `questionstruefalse`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `questiontypes`
|
||
--
|
||
ALTER TABLE `questiontypes`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `quiz`
|
||
--
|
||
ALTER TABLE `quiz`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `refunds`
|
||
--
|
||
ALTER TABLE `refunds`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `reimbursements`
|
||
--
|
||
ALTER TABLE `reimbursements`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `roles`
|
||
--
|
||
ALTER TABLE `roles`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `uq_roles_name` (`name`);
|
||
|
||
--
|
||
-- Indexes for table `role_nav_items`
|
||
--
|
||
ALTER TABLE `role_nav_items`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `uq_role_nav` (`role_id`,`nav_item_id`),
|
||
ADD KEY `idx_rni_role` (`role_id`),
|
||
ADD KEY `idx_rni_nav` (`nav_item_id`);
|
||
|
||
--
|
||
-- Indexes for table `role_permissions`
|
||
--
|
||
ALTER TABLE `role_permissions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `scan_log`
|
||
--
|
||
ALTER TABLE `scan_log`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `score_comments`
|
||
--
|
||
ALTER TABLE `score_comments`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `sections`
|
||
--
|
||
ALTER TABLE `sections`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `semester_scores`
|
||
--
|
||
ALTER TABLE `semester_scores`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `idx_student_id` (`student_id`),
|
||
ADD KEY `idx_semester_school_year` (`semester`,`school_year`);
|
||
|
||
--
|
||
-- Indexes for table `settings`
|
||
--
|
||
ALTER TABLE `settings`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `shortanswerquestions`
|
||
--
|
||
ALTER TABLE `shortanswerquestions`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `staff`
|
||
--
|
||
ALTER TABLE `staff`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `email` (`email`),
|
||
ADD UNIQUE KEY `user_id` (`user_id`);
|
||
|
||
--
|
||
-- Indexes for table `students`
|
||
--
|
||
ALTER TABLE `students`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `student_allergies`
|
||
--
|
||
ALTER TABLE `student_allergies`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `student_id` (`student_id`);
|
||
|
||
--
|
||
-- Indexes for table `student_class`
|
||
--
|
||
ALTER TABLE `student_class`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `uq_student_semester_year` (`student_id`,`semester`,`school_year`);
|
||
|
||
--
|
||
-- Indexes for table `student_medical_conditions`
|
||
--
|
||
ALTER TABLE `student_medical_conditions`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `student_id` (`student_id`);
|
||
|
||
--
|
||
-- Indexes for table `suppliers`
|
||
--
|
||
ALTER TABLE `suppliers`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `supplies`
|
||
--
|
||
ALTER TABLE `supplies`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `supplies_category_id_foreign` (`category_id`),
|
||
ADD KEY `name_sku` (`name`,`sku`);
|
||
|
||
--
|
||
-- Indexes for table `supply_categories`
|
||
--
|
||
ALTER TABLE `supply_categories`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD UNIQUE KEY `name` (`name`);
|
||
|
||
--
|
||
-- Indexes for table `supply_transactions`
|
||
--
|
||
ALTER TABLE `supply_transactions`
|
||
ADD PRIMARY KEY (`id`),
|
||
ADD KEY `supply_id_type` (`supply_id`,`type`);
|
||
|
||
--
|
||
-- Indexes for table `support_requests`
|
||
--
|
||
ALTER TABLE `support_requests`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `teacher_class`
|
||
--
|
||
ALTER TABLE `teacher_class`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `users`
|
||
--
|
||
ALTER TABLE `users`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `user_notifications`
|
||
--
|
||
ALTER TABLE `user_notifications`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `user_preferences`
|
||
--
|
||
ALTER TABLE `user_preferences`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- Indexes for table `user_roles`
|
||
--
|
||
ALTER TABLE `user_roles`
|
||
ADD PRIMARY KEY (`id`);
|
||
|
||
--
|
||
-- AUTO_INCREMENT for dumped tables
|
||
--
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `attendance_data`
|
||
--
|
||
ALTER TABLE `attendance_data`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `attendance_record`
|
||
--
|
||
ALTER TABLE `attendance_record`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `attendance_tracking`
|
||
--
|
||
ALTER TABLE `attendance_tracking`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `authorized_users`
|
||
--
|
||
ALTER TABLE `authorized_users`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `calendar_events`
|
||
--
|
||
ALTER TABLE `calendar_events`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `chapters`
|
||
--
|
||
ALTER TABLE `chapters`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `classes`
|
||
--
|
||
ALTER TABLE `classes`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `classSection`
|
||
--
|
||
ALTER TABLE `classSection`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `class_preparation_log`
|
||
--
|
||
ALTER TABLE `class_preparation_log`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `class_section`
|
||
--
|
||
ALTER TABLE `class_section`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `configuration`
|
||
--
|
||
ALTER TABLE `configuration`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `contactus`
|
||
--
|
||
ALTER TABLE `contactus`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `current_flag`
|
||
--
|
||
ALTER TABLE `current_flag`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `discount_usages`
|
||
--
|
||
ALTER TABLE `discount_usages`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `discount_vouchers`
|
||
--
|
||
ALTER TABLE `discount_vouchers`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `emergency_contacts`
|
||
--
|
||
ALTER TABLE `emergency_contacts`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `enrollments`
|
||
--
|
||
ALTER TABLE `enrollments`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=104;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `events`
|
||
--
|
||
ALTER TABLE `events`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `event_charges`
|
||
--
|
||
ALTER TABLE `event_charges`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `examquestiondistribution`
|
||
--
|
||
ALTER TABLE `examquestiondistribution`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `examquestions`
|
||
--
|
||
ALTER TABLE `examquestions`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `exams`
|
||
--
|
||
ALTER TABLE `exams`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `expenses`
|
||
--
|
||
ALTER TABLE `expenses`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `final_exam`
|
||
--
|
||
ALTER TABLE `final_exam`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `final_score`
|
||
--
|
||
ALTER TABLE `final_score`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `flag`
|
||
--
|
||
ALTER TABLE `flag`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `grades`
|
||
--
|
||
ALTER TABLE `grades`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `homework`
|
||
--
|
||
ALTER TABLE `homework`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `invoices`
|
||
--
|
||
ALTER TABLE `invoices`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `invoice_event`
|
||
--
|
||
ALTER TABLE `invoice_event`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `invoice_students_list`
|
||
--
|
||
ALTER TABLE `invoice_students_list`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `ip_attempts`
|
||
--
|
||
ALTER TABLE `ip_attempts`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `login_activity`
|
||
--
|
||
ALTER TABLE `login_activity`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `longanswerquestions`
|
||
--
|
||
ALTER TABLE `longanswerquestions`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `manual_payments`
|
||
--
|
||
ALTER TABLE `manual_payments`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `messages`
|
||
--
|
||
ALTER TABLE `messages`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `midterm_exam`
|
||
--
|
||
ALTER TABLE `midterm_exam`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `migrations`
|
||
--
|
||
ALTER TABLE `migrations`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `nav_items`
|
||
--
|
||
ALTER TABLE `nav_items`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `notifications`
|
||
--
|
||
ALTER TABLE `notifications`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=134;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `notification_recipients`
|
||
--
|
||
ALTER TABLE `notification_recipients`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `parents`
|
||
--
|
||
ALTER TABLE `parents`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `participation`
|
||
--
|
||
ALTER TABLE `participation`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `password_resets`
|
||
--
|
||
ALTER TABLE `password_resets`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `password_reset_requests`
|
||
--
|
||
ALTER TABLE `password_reset_requests`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `payments`
|
||
--
|
||
ALTER TABLE `payments`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `payment_error`
|
||
--
|
||
ALTER TABLE `payment_error`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `payment_transactions`
|
||
--
|
||
ALTER TABLE `payment_transactions`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `paypal_payments`
|
||
--
|
||
ALTER TABLE `paypal_payments`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `paypal_transactions`
|
||
--
|
||
ALTER TABLE `paypal_transactions`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `permissions`
|
||
--
|
||
ALTER TABLE `permissions`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=123;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `preferences`
|
||
--
|
||
ALTER TABLE `preferences`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `project`
|
||
--
|
||
ALTER TABLE `project`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `purchase_orders`
|
||
--
|
||
ALTER TABLE `purchase_orders`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `purchase_order_items`
|
||
--
|
||
ALTER TABLE `purchase_order_items`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `qcmquestions`
|
||
--
|
||
ALTER TABLE `qcmquestions`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `questions`
|
||
--
|
||
ALTER TABLE `questions`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `questionstruefalse`
|
||
--
|
||
ALTER TABLE `questionstruefalse`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `questiontypes`
|
||
--
|
||
ALTER TABLE `questiontypes`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `quiz`
|
||
--
|
||
ALTER TABLE `quiz`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `refunds`
|
||
--
|
||
ALTER TABLE `refunds`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `reimbursements`
|
||
--
|
||
ALTER TABLE `reimbursements`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `roles`
|
||
--
|
||
ALTER TABLE `roles`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `role_nav_items`
|
||
--
|
||
ALTER TABLE `role_nav_items`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=251;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `role_permissions`
|
||
--
|
||
ALTER TABLE `role_permissions`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=157;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `scan_log`
|
||
--
|
||
ALTER TABLE `scan_log`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `score_comments`
|
||
--
|
||
ALTER TABLE `score_comments`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `sections`
|
||
--
|
||
ALTER TABLE `sections`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `semester_scores`
|
||
--
|
||
ALTER TABLE `semester_scores`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `settings`
|
||
--
|
||
ALTER TABLE `settings`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `shortanswerquestions`
|
||
--
|
||
ALTER TABLE `shortanswerquestions`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `staff`
|
||
--
|
||
ALTER TABLE `staff`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `students`
|
||
--
|
||
ALTER TABLE `students`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `student_allergies`
|
||
--
|
||
ALTER TABLE `student_allergies`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `student_class`
|
||
--
|
||
ALTER TABLE `student_class`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `student_medical_conditions`
|
||
--
|
||
ALTER TABLE `student_medical_conditions`
|
||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `suppliers`
|
||
--
|
||
ALTER TABLE `suppliers`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `supplies`
|
||
--
|
||
ALTER TABLE `supplies`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `supply_categories`
|
||
--
|
||
ALTER TABLE `supply_categories`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `supply_transactions`
|
||
--
|
||
ALTER TABLE `supply_transactions`
|
||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `support_requests`
|
||
--
|
||
ALTER TABLE `support_requests`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `teacher_class`
|
||
--
|
||
ALTER TABLE `teacher_class`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `users`
|
||
--
|
||
ALTER TABLE `users`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=154;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `user_notifications`
|
||
--
|
||
ALTER TABLE `user_notifications`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=134;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `user_preferences`
|
||
--
|
||
ALTER TABLE `user_preferences`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||
|
||
--
|
||
-- AUTO_INCREMENT for table `user_roles`
|
||
--
|
||
ALTER TABLE `user_roles`
|
||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
|
||
|
||
--
|
||
-- Constraints for dumped tables
|
||
--
|
||
|
||
--
|
||
-- Constraints for table `attendance_tracking`
|
||
--
|
||
ALTER TABLE `attendance_tracking`
|
||
ADD CONSTRAINT `attendance_tracking_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||
|
||
--
|
||
-- Constraints for table `nav_items`
|
||
--
|
||
ALTER TABLE `nav_items`
|
||
ADD CONSTRAINT `fk_nav_items_menu_parent` FOREIGN KEY (`menu_parent_id`) REFERENCES `nav_items` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||
|
||
--
|
||
-- Constraints for table `purchase_orders`
|
||
--
|
||
ALTER TABLE `purchase_orders`
|
||
ADD CONSTRAINT `purchase_orders_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||
|
||
--
|
||
-- Constraints for table `purchase_order_items`
|
||
--
|
||
ALTER TABLE `purchase_order_items`
|
||
ADD CONSTRAINT `purchase_order_items_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||
ADD CONSTRAINT `purchase_order_items_supply_id_foreign` FOREIGN KEY (`supply_id`) REFERENCES `supplies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||
|
||
--
|
||
-- Constraints for table `role_nav_items`
|
||
--
|
||
ALTER TABLE `role_nav_items`
|
||
ADD CONSTRAINT `fk_rni_nav` FOREIGN KEY (`nav_item_id`) REFERENCES `nav_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||
ADD CONSTRAINT `fk_rni_role` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||
|
||
--
|
||
-- Constraints for table `student_allergies`
|
||
--
|
||
ALTER TABLE `student_allergies`
|
||
ADD CONSTRAINT `student_allergies_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE;
|
||
|
||
--
|
||
-- Constraints for table `student_medical_conditions`
|
||
--
|
||
ALTER TABLE `student_medical_conditions`
|
||
ADD CONSTRAINT `student_medical_conditions_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE;
|
||
|
||
--
|
||
-- Constraints for table `supplies`
|
||
--
|
||
ALTER TABLE `supplies`
|
||
ADD CONSTRAINT `supplies_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `supply_categories` (`id`) ON DELETE CASCADE ON UPDATE SET NULL;
|
||
|
||
--
|
||
-- Constraints for table `supply_transactions`
|
||
--
|
||
ALTER TABLE `supply_transactions`
|
||
ADD CONSTRAINT `supply_transactions_supply_id_foreign` FOREIGN KEY (`supply_id`) REFERENCES `supplies` (`id`) ON DELETE CASCADE ON UPDATE 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 */;
|