-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 17, 2026 at 06:18 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

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: `wsas`
--

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

--
-- Table structure for table `admincourse`
--

CREATE TABLE `admincourse` (
  `course_id` int(255) NOT NULL,
  `course_code` varchar(255) NOT NULL,
  `course_name` varchar(255) NOT NULL,
  `major` varchar(255) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admincourse`
--

INSERT INTO `admincourse` (`course_id`, `course_code`, `course_name`, `major`, `is_active`) VALUES
(52, 'BSCS', 'Bachelor of Science in Computer Science', '', 0),
(53, 'BSBA', 'Bachelor of Science in Business Administration', 'Financial Management', 0),
(54, '', '', '', 0),
(55, '', '', '', 0),
(56, '', '', '', 0),
(57, 'EDUC', 'Bachelor of Secondary Education', 'Filipino', 0),
(58, 'BSBA', 'Bachelor of Science in Business Administration', 'Marketing Management', 0);

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

--
-- Table structure for table `admindiscount`
--

CREATE TABLE `admindiscount` (
  `discount_id` int(255) NOT NULL,
  `discount_name` varchar(255) NOT NULL,
  `discount_amount` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admindiscount`
--

INSERT INTO `admindiscount` (`discount_id`, `discount_name`, `discount_amount`) VALUES
(8, 'Senior High School Alumni', 10),
(9, 'Full Payment', 20),
(10, 'Faculty/Staff Relatives', 15);

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

--
-- Table structure for table `adminfee`
--

CREATE TABLE `adminfee` (
  `fee_id` int(255) NOT NULL,
  `fee_name` varchar(255) NOT NULL,
  `fee_amount` int(255) NOT NULL,
  `subject_fee` enum('Yes','No','Special') NOT NULL DEFAULT 'No'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `adminfee`
--

INSERT INTO `adminfee` (`fee_id`, `fee_name`, `fee_amount`, `subject_fee`) VALUES
(22, 'Tuition Fee', 200, 'No'),
(23, 'Miscellaneous Fee', 6000, 'No'),
(24, 'Computer Laboratory Fee', 2850, 'Yes'),
(25, 'CWTS', 1000, 'Special'),
(26, 'MINIMUM DOWN PAYMENT', 2500, 'No'),
(27, 'Internet Fee', 1000, 'Yes'),
(29, 'Other Comlab Fee', 2000, 'No'),
(30, 'SHS Alumni TF', 6000, 'No');

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

--
-- Table structure for table `adminstudent`
--

CREATE TABLE `adminstudent` (
  `student_id` int(255) NOT NULL,
  `student_id_num` varchar(255) NOT NULL,
  `f_name` varchar(255) NOT NULL,
  `l_name` varchar(255) NOT NULL,
  `m_name` varchar(255) NOT NULL,
  `suffix` varchar(10) NOT NULL,
  `sex` varchar(255) NOT NULL,
  `course_id` varchar(255) NOT NULL,
  `e_status` varchar(255) NOT NULL,
  `status_type` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `pword` varchar(255) NOT NULL,
  `sy_id` int(11) NOT NULL,
  `image` varchar(255) NOT NULL,
  `first_login` tinyint(1) DEFAULT 1,
  `student_date_added` datetime NOT NULL DEFAULT current_timestamp(),
  `is_active` tinyint(1) NOT NULL DEFAULT 0,
  `accepted_terms` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `adminstudent`
--

INSERT INTO `adminstudent` (`student_id`, `student_id_num`, `f_name`, `l_name`, `m_name`, `suffix`, `sex`, `course_id`, `e_status`, `status_type`, `email`, `pword`, `sy_id`, `image`, `first_login`, `student_date_added`, `is_active`, `accepted_terms`) VALUES
(117, '2025-001', 'Ja', 'Abe', 'P.', '', 'Female', '52', 'Regular', '', 'jannamaeprado@gmail.co', '$2y$10$4teBOvBkdIsnjUVujjmdN.09bKhUdYQbJYZts.u4el5UqURfdnBWO', 43, '', 0, '2026-04-17 17:58:40', 0, 1);

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

--
-- Table structure for table `adminsubject`
--

CREATE TABLE `adminsubject` (
  `subject_id` int(255) NOT NULL,
  `subject_code` varchar(255) NOT NULL,
  `subject_name` varchar(255) NOT NULL,
  `is_major` tinyint(1) NOT NULL DEFAULT 0,
  `lecture_unit` int(255) NOT NULL,
  `lab_unit` int(255) NOT NULL,
  `total_unit` int(255) NOT NULL,
  `pre_req` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `adminsubject`
--

INSERT INTO `adminsubject` (`subject_id`, `subject_code`, `subject_name`, `is_major`, `lecture_unit`, `lab_unit`, `total_unit`, `pre_req`) VALUES
(268, 'GenEd1', 'Understanding the Self', 0, 3, 0, 3, ''),
(269, 'CSCC01', 'Introduction to Computing ', 1, 2, 1, 3, ''),
(270, 'CSCC02', 'Fundamentals of Programming', 1, 2, 1, 3, ''),
(271, 'CWTS 1', 'Civic Welfare Training Services 1', 0, 2, 0, 2, ''),
(272, 'GenEd3', 'Science, Technology & Society ', 0, 3, 0, 3, ''),
(273, 'GenEd4 ', 'Ethics', 0, 3, 0, 3, ''),
(274, 'CSPC101', 'Discrete Structures 1', 1, 3, 0, 3, ''),
(275, 'CSCC03', 'Intermediate Programming', 0, 2, 1, 3, ''),
(276, 'CWTS 2', 'Civic Welfare Training Services 2', 0, 3, 0, 3, ''),
(277, 'CSCC04', 'Data Structres and Algorithms', 0, 2, 1, 3, ''),
(278, 'CSPC103', 'Object Oriented Programming', 0, 2, 1, 3, ''),
(279, 'Internet', 'Fundamentals of Internet', 0, 2, 1, 3, ''),
(280, 'CSPC105', 'aDdfdf', 1, 2, 1, 3, ''),
(284, 'history', 'Hekasi', 0, 6, 0, 6, '');

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

--
-- Table structure for table `admin_login`
--

CREATE TABLE `admin_login` (
  `login_id` int(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `passwrod` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admin_login`
--

INSERT INTO `admin_login` (`login_id`, `email`, `passwrod`) VALUES
(3, 'admin@gmail.com', 'adminpass123');

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

--
-- Table structure for table `admin_payment_account`
--

CREATE TABLE `admin_payment_account` (
  `payment_id` int(255) NOT NULL,
  `platform_type` varchar(255) NOT NULL,
  `payment_number` varchar(20) NOT NULL,
  `payment_name` varchar(255) NOT NULL,
  `payment_qr` blob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admin_payment_account`
--

INSERT INTO `admin_payment_account` (`payment_id`, `platform_type`, `payment_number`, `payment_name`, `payment_qr`) VALUES
(5, 'CHINABANK', '16640000307', 'COLEGIO DE LOS BANOS, INC.', 0x71722e6a7067);

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

--
-- Table structure for table `alumni`
--

CREATE TABLE `alumni` (
  `alumni_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `alumni`
--

INSERT INTO `alumni` (`alumni_id`, `student_id`) VALUES
(5, 80),
(6, 81),
(7, 82),
(8, 83),
(9, 84),
(10, 86),
(11, 87),
(12, 97),
(13, 99),
(14, 100);

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

--
-- Table structure for table `course_subject`
--

CREATE TABLE `course_subject` (
  `corsub_id` int(255) NOT NULL,
  `course_id` varchar(255) NOT NULL,
  `subject_id` varchar(255) NOT NULL,
  `semester` varchar(255) NOT NULL,
  `year_level` enum('1st','2nd','3rd','4th') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `course_subject`
--

INSERT INTO `course_subject` (`corsub_id`, `course_id`, `subject_id`, `semester`, `year_level`) VALUES
(478, '52', '268', '1st', '1st'),
(479, '52', '269', '1st', '1st'),
(480, '52', '270', '1st', '1st'),
(481, '52', '271', '1st', '1st'),
(482, '53', '268', '1st', '1st'),
(483, '53', '271', '1st', '1st'),
(484, '52', '272', '2nd', '1st'),
(485, '52', '273', '2nd', '1st'),
(486, '52', '274', '2nd', '1st'),
(487, '52', '275', '2nd', '1st'),
(488, '52', '276', '2nd', '1st'),
(489, '57', '268', '1st', '1st'),
(490, '57', '271', '1st', '1st'),
(491, '58', '268', '1st', '1st'),
(492, '52', '277', '1st', '2nd'),
(493, '52', '278', '1st', '2nd'),
(494, '52', '279', '1st', '2nd'),
(495, '52', '280', '1st', '2nd');

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

--
-- Table structure for table `enroll_student`
--

CREATE TABLE `enroll_student` (
  `enroll_id` int(255) NOT NULL,
  `student_id` int(255) NOT NULL,
  `course_id` int(255) NOT NULL,
  `sy_id` int(255) NOT NULL,
  `semester` varchar(255) NOT NULL,
  `year_level` enum('1st','2nd','3rd','4th') NOT NULL,
  `date_enrolled` datetime NOT NULL DEFAULT current_timestamp(),
  `student_status` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `enroll_student`
--

INSERT INTO `enroll_student` (`enroll_id`, `student_id`, `course_id`, `sy_id`, `semester`, `year_level`, `date_enrolled`, `student_status`) VALUES
(94, 117, 52, 39, '1', '', '2026-04-17 18:00:08', 'Enrolled');

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

--
-- Table structure for table `exam_period`
--

CREATE TABLE `exam_period` (
  `ep_id` int(11) NOT NULL,
  `sy_id` int(11) NOT NULL,
  `semester` varchar(50) NOT NULL,
  `exam_period` enum('midterm','final') NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

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

CREATE TABLE `password_resets` (
  `id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `reset_token_hash` varchar(64) NOT NULL,
  `reset_token_expires_at` datetime NOT NULL,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `password_resets`
--

INSERT INTO `password_resets` (`id`, `student_id`, `reset_token_hash`, `reset_token_expires_at`, `created_at`) VALUES
(37, 95, 'dbca3ce53149827377159b049b0156481a09cbbb889bbb3aaa533df455aaccab', '2026-04-11 15:13:43', '2026-04-11 21:03:43'),
(38, 95, 'cb95cd4a572e661df8672690f3a41b214d7cc1e8da4a8f331f785594ff520495', '2026-04-11 15:17:37', '2026-04-11 21:07:37'),
(39, 95, '3a30a21f01b2ed5264e6350de9eba172b7065dbcc0877bfa0f41cff777b68bf8', '2026-04-11 16:00:22', '2026-04-11 21:50:22'),
(40, 95, 'd8f88fa3994864952d84e191f4a360b9ec233b4fbb90dd2de3ae6f11242142e4', '2026-04-11 16:02:05', '2026-04-11 21:52:05');

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

--
-- Table structure for table `print_logs`
--

CREATE TABLE `print_logs` (
  `id` int(11) NOT NULL,
  `student_id` varchar(50) DEFAULT NULL,
  `semester` varchar(50) DEFAULT NULL,
  `printed_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `school_year`
--

CREATE TABLE `school_year` (
  `sy_id` int(255) NOT NULL,
  `sy_begin` varchar(255) NOT NULL,
  `sy_end` varchar(255) NOT NULL,
  `semester` varchar(255) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 0,
  `sy_history` datetime(6) NOT NULL DEFAULT current_timestamp(6),
  `semester_start_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `school_year`
--

INSERT INTO `school_year` (`sy_id`, `sy_begin`, `sy_end`, `semester`, `is_active`, `sy_history`, `semester_start_date`) VALUES
(39, '2025', '2026', '1st Semester', 1, '2026-04-17 16:51:44.946814', '2026-04-17'),
(43, '2025', '2026', '2nd Semester', 0, '2026-04-17 17:05:19.764418', '2026-04-17');

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

--
-- Table structure for table `soa`
--

CREATE TABLE `soa` (
  `soa_id` int(255) NOT NULL,
  `enroll_id` int(255) NOT NULL,
  `subject_total_units` int(11) NOT NULL,
  `tuition_fee` int(255) NOT NULL,
  `discount_id` int(11) NOT NULL,
  `discounted_tuition_fee` decimal(10,2) NOT NULL,
  `misc_fee` int(255) NOT NULL,
  `special_fee` int(255) NOT NULL,
  `subj_fee` int(255) NOT NULL,
  `total_fee` int(255) NOT NULL,
  `down_payment` int(255) NOT NULL,
  `balance_fee` int(255) NOT NULL,
  `monthly_fee` int(255) NOT NULL,
  `soa_date` datetime(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `soa`
--

INSERT INTO `soa` (`soa_id`, `enroll_id`, `subject_total_units`, `tuition_fee`, `discount_id`, `discounted_tuition_fee`, `misc_fee`, `special_fee`, `subj_fee`, `total_fee`, `down_payment`, `balance_fee`, `monthly_fee`, `soa_date`) VALUES
(75, 94, 11, 1800, 0, 1800.00, 6000, 1000, 2850, 11650, 2500, 9150, 2288, '2026-04-17 00:00:00.000000');

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

--
-- Table structure for table `student_curriculum`
--

CREATE TABLE `student_curriculum` (
  `sc_id` int(255) NOT NULL,
  `student_id` int(255) NOT NULL,
  `subject_id` int(255) NOT NULL,
  `sc_status` enum('not_taken','enrolled','completed') NOT NULL,
  `sc_remark` enum('passed','failed') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `student_curriculum`
--

INSERT INTO `student_curriculum` (`sc_id`, `student_id`, `subject_id`, `sc_status`, `sc_remark`) VALUES
(308, 80, 268, 'enrolled', 'passed'),
(309, 80, 269, 'enrolled', 'passed'),
(310, 80, 270, 'enrolled', 'passed'),
(311, 80, 271, 'enrolled', 'passed'),
(312, 80, 272, 'not_taken', 'passed'),
(313, 80, 273, 'not_taken', 'passed'),
(314, 80, 274, 'not_taken', 'passed'),
(315, 80, 275, 'not_taken', 'passed'),
(316, 80, 276, 'not_taken', 'passed'),
(317, 80, 277, 'not_taken', 'passed'),
(318, 80, 278, 'not_taken', 'passed'),
(319, 80, 279, 'not_taken', 'passed'),
(320, 80, 280, 'not_taken', 'passed'),
(321, 81, 268, 'enrolled', 'passed'),
(322, 81, 269, 'enrolled', 'passed'),
(323, 81, 270, 'enrolled', 'passed'),
(324, 81, 271, 'enrolled', 'passed'),
(325, 81, 272, 'not_taken', 'passed'),
(326, 81, 273, 'not_taken', 'passed'),
(327, 81, 274, 'not_taken', 'passed'),
(328, 81, 275, 'not_taken', 'passed'),
(329, 81, 276, 'not_taken', 'passed'),
(330, 81, 277, 'not_taken', 'passed'),
(331, 81, 278, 'not_taken', 'passed'),
(332, 81, 279, 'not_taken', 'passed'),
(333, 81, 280, 'not_taken', 'passed'),
(334, 82, 268, 'enrolled', 'passed'),
(335, 82, 269, 'enrolled', 'passed'),
(336, 82, 270, 'enrolled', 'passed'),
(337, 82, 271, 'enrolled', 'passed'),
(338, 82, 272, 'not_taken', 'passed'),
(339, 82, 273, 'not_taken', 'passed'),
(340, 82, 274, 'not_taken', 'passed'),
(341, 82, 275, 'not_taken', 'passed'),
(342, 82, 276, 'not_taken', 'passed'),
(343, 82, 277, 'not_taken', 'passed'),
(344, 82, 278, 'not_taken', 'passed'),
(345, 82, 279, 'not_taken', 'passed'),
(346, 82, 280, 'not_taken', 'passed'),
(347, 83, 268, 'enrolled', 'passed'),
(348, 83, 269, 'enrolled', 'passed'),
(349, 83, 270, 'enrolled', 'passed'),
(350, 83, 271, 'enrolled', 'passed'),
(351, 83, 272, 'not_taken', 'passed'),
(352, 83, 273, 'not_taken', 'passed'),
(353, 83, 274, 'not_taken', 'passed'),
(354, 83, 275, 'not_taken', 'passed'),
(355, 83, 276, 'not_taken', 'passed'),
(356, 83, 277, 'not_taken', 'passed'),
(357, 83, 278, 'not_taken', 'passed'),
(358, 83, 279, 'not_taken', 'passed'),
(359, 83, 280, 'not_taken', 'passed'),
(360, 84, 268, 'enrolled', 'passed'),
(361, 84, 269, 'enrolled', 'passed'),
(362, 84, 270, 'enrolled', 'passed'),
(363, 84, 271, 'enrolled', 'passed'),
(364, 84, 272, 'not_taken', 'passed'),
(365, 84, 273, 'not_taken', 'passed'),
(366, 84, 274, 'not_taken', 'passed'),
(367, 84, 275, 'not_taken', 'passed'),
(368, 84, 276, 'not_taken', 'passed'),
(369, 84, 277, 'not_taken', 'passed'),
(370, 84, 278, 'not_taken', 'passed'),
(371, 84, 279, 'not_taken', 'passed'),
(372, 84, 280, 'not_taken', 'passed'),
(373, 85, 268, 'enrolled', 'passed'),
(374, 85, 269, 'enrolled', 'passed'),
(375, 85, 270, 'enrolled', 'passed'),
(376, 85, 271, 'enrolled', 'passed'),
(377, 85, 272, 'not_taken', 'passed'),
(378, 85, 273, 'not_taken', 'passed'),
(379, 85, 274, 'not_taken', 'passed'),
(380, 85, 275, 'not_taken', 'passed'),
(381, 85, 276, 'not_taken', 'passed'),
(382, 85, 277, 'not_taken', 'passed'),
(383, 85, 278, 'not_taken', 'passed'),
(384, 85, 279, 'not_taken', 'passed'),
(385, 85, 280, 'not_taken', 'passed'),
(386, 86, 268, 'enrolled', 'passed'),
(387, 86, 269, 'enrolled', 'passed'),
(388, 86, 270, 'enrolled', 'passed'),
(389, 86, 271, 'enrolled', 'passed'),
(390, 86, 272, 'not_taken', 'passed'),
(391, 86, 273, 'not_taken', 'passed'),
(392, 86, 274, 'not_taken', 'passed'),
(393, 86, 275, 'not_taken', 'passed'),
(394, 86, 276, 'not_taken', 'passed'),
(395, 86, 277, 'not_taken', 'passed'),
(396, 86, 278, 'not_taken', 'passed'),
(397, 86, 279, 'not_taken', 'passed'),
(398, 86, 280, 'not_taken', 'passed'),
(399, 87, 268, 'enrolled', 'passed'),
(400, 87, 269, 'enrolled', 'passed'),
(401, 87, 270, 'enrolled', 'passed'),
(402, 87, 271, 'enrolled', 'passed'),
(403, 87, 272, 'not_taken', 'passed'),
(404, 87, 273, 'not_taken', 'passed'),
(405, 87, 274, 'not_taken', 'passed'),
(406, 87, 275, 'not_taken', 'passed'),
(407, 87, 276, 'not_taken', 'passed'),
(408, 87, 277, 'not_taken', 'passed'),
(409, 87, 278, 'not_taken', 'passed'),
(410, 87, 279, 'not_taken', 'passed'),
(411, 87, 280, 'not_taken', 'passed'),
(412, 88, 268, 'enrolled', 'passed'),
(413, 88, 269, 'enrolled', 'passed'),
(414, 88, 270, 'enrolled', 'passed'),
(415, 88, 271, 'enrolled', 'passed'),
(416, 88, 272, 'not_taken', 'passed'),
(417, 88, 273, 'not_taken', 'passed'),
(418, 88, 274, 'not_taken', 'passed'),
(419, 88, 275, 'not_taken', 'passed'),
(420, 88, 276, 'not_taken', 'passed'),
(421, 88, 277, 'not_taken', 'passed'),
(422, 88, 278, 'not_taken', 'passed'),
(423, 88, 279, 'not_taken', 'passed'),
(424, 88, 280, 'not_taken', 'passed'),
(425, 89, 268, 'enrolled', 'passed'),
(426, 89, 269, 'enrolled', 'passed'),
(427, 89, 270, 'enrolled', 'passed'),
(428, 89, 271, 'enrolled', 'passed'),
(429, 89, 272, 'not_taken', 'passed'),
(430, 89, 273, 'not_taken', 'passed'),
(431, 89, 274, 'not_taken', 'passed'),
(432, 89, 275, 'not_taken', 'passed'),
(433, 89, 276, 'not_taken', 'passed'),
(434, 89, 277, 'not_taken', 'passed'),
(435, 89, 278, 'not_taken', 'passed'),
(436, 89, 279, 'not_taken', 'passed'),
(437, 89, 280, 'not_taken', 'passed'),
(438, 90, 268, 'enrolled', 'passed'),
(439, 90, 269, 'enrolled', 'passed'),
(440, 90, 270, 'enrolled', 'passed'),
(441, 90, 271, 'enrolled', 'passed'),
(442, 90, 272, 'not_taken', 'passed'),
(443, 90, 273, 'not_taken', 'passed'),
(444, 90, 274, 'not_taken', 'passed'),
(445, 90, 275, 'not_taken', 'passed'),
(446, 90, 276, 'not_taken', 'passed'),
(447, 90, 277, 'not_taken', 'passed'),
(448, 90, 278, 'not_taken', 'passed'),
(449, 90, 279, 'not_taken', 'passed'),
(450, 90, 280, 'not_taken', 'passed'),
(451, 91, 268, 'enrolled', 'passed'),
(452, 91, 269, 'enrolled', 'passed'),
(453, 91, 270, 'enrolled', 'passed'),
(454, 91, 271, 'enrolled', 'passed'),
(455, 91, 272, 'not_taken', 'passed'),
(456, 91, 273, 'not_taken', 'passed'),
(457, 91, 274, 'not_taken', 'passed'),
(458, 91, 275, 'not_taken', 'passed'),
(459, 91, 276, 'not_taken', 'passed'),
(460, 91, 277, 'not_taken', 'passed'),
(461, 91, 278, 'not_taken', 'passed'),
(462, 91, 279, 'not_taken', 'passed'),
(463, 91, 280, 'not_taken', 'passed'),
(464, 92, 268, 'enrolled', 'passed'),
(465, 92, 269, 'enrolled', 'passed'),
(466, 92, 270, 'enrolled', 'passed'),
(467, 92, 271, 'enrolled', 'passed'),
(468, 92, 272, 'not_taken', 'passed'),
(469, 92, 273, 'not_taken', 'passed'),
(470, 92, 274, 'not_taken', 'passed'),
(471, 92, 275, 'not_taken', 'passed'),
(472, 92, 276, 'not_taken', 'passed'),
(473, 92, 277, 'not_taken', 'passed'),
(474, 92, 278, 'not_taken', 'passed'),
(475, 92, 279, 'not_taken', 'passed'),
(476, 92, 280, 'not_taken', 'passed'),
(477, 93, 268, 'enrolled', 'passed'),
(478, 93, 269, 'enrolled', 'passed'),
(479, 93, 270, 'enrolled', 'passed'),
(480, 93, 271, 'enrolled', 'passed'),
(481, 93, 272, 'not_taken', 'passed'),
(482, 93, 273, 'not_taken', 'passed'),
(483, 93, 274, 'not_taken', 'passed'),
(484, 93, 275, 'not_taken', 'passed'),
(485, 93, 276, 'not_taken', 'passed'),
(486, 93, 277, 'not_taken', 'passed'),
(487, 93, 278, 'not_taken', 'passed'),
(488, 93, 279, 'not_taken', 'passed'),
(489, 93, 280, 'not_taken', 'passed'),
(490, 94, 268, 'enrolled', 'passed'),
(491, 94, 269, 'enrolled', 'passed'),
(492, 94, 270, 'enrolled', 'passed'),
(493, 94, 271, 'enrolled', 'passed'),
(494, 94, 272, 'not_taken', 'passed'),
(495, 94, 273, 'not_taken', 'passed'),
(496, 94, 274, 'not_taken', 'passed'),
(497, 94, 275, 'not_taken', 'passed'),
(498, 94, 276, 'not_taken', 'passed'),
(499, 94, 277, 'not_taken', 'passed'),
(500, 94, 278, 'not_taken', 'passed'),
(501, 94, 279, 'not_taken', 'passed'),
(502, 94, 280, 'not_taken', 'passed'),
(503, 95, 268, 'enrolled', 'passed'),
(504, 95, 269, 'enrolled', 'passed'),
(505, 95, 270, 'enrolled', 'passed'),
(506, 95, 271, 'enrolled', 'passed'),
(507, 95, 272, 'not_taken', 'passed'),
(508, 95, 273, 'not_taken', 'passed'),
(509, 95, 274, 'not_taken', 'passed'),
(510, 95, 275, 'not_taken', 'passed'),
(511, 95, 276, 'not_taken', 'passed'),
(512, 95, 277, 'not_taken', 'passed'),
(513, 95, 278, 'not_taken', 'passed'),
(514, 95, 279, 'not_taken', 'passed'),
(515, 95, 280, 'not_taken', 'passed'),
(516, 96, 268, '', 'passed'),
(517, 96, 269, 'completed', 'passed'),
(518, 96, 270, '', 'passed'),
(519, 96, 271, 'completed', 'passed'),
(520, 96, 272, 'not_taken', 'passed'),
(521, 96, 273, 'not_taken', 'passed'),
(522, 96, 274, 'not_taken', 'passed'),
(523, 96, 275, 'not_taken', 'passed'),
(524, 96, 276, 'not_taken', 'passed'),
(525, 96, 277, 'not_taken', 'passed'),
(526, 96, 278, 'not_taken', 'passed'),
(527, 96, 279, 'not_taken', 'passed'),
(528, 96, 280, 'not_taken', 'passed'),
(529, 97, 268, 'enrolled', 'passed'),
(530, 97, 269, 'enrolled', 'passed'),
(531, 97, 270, 'enrolled', 'passed'),
(532, 97, 271, 'enrolled', 'passed'),
(533, 97, 272, 'not_taken', 'passed'),
(534, 97, 273, 'not_taken', 'passed'),
(535, 97, 274, 'not_taken', 'passed'),
(536, 97, 275, 'not_taken', 'passed'),
(537, 97, 276, 'not_taken', 'passed'),
(538, 97, 277, 'not_taken', 'passed'),
(539, 97, 278, 'not_taken', 'passed'),
(540, 97, 279, 'not_taken', 'passed'),
(541, 97, 280, 'not_taken', 'passed'),
(542, 98, 268, 'enrolled', 'passed'),
(543, 98, 269, 'enrolled', 'passed'),
(544, 98, 270, 'enrolled', 'passed'),
(545, 98, 271, 'enrolled', 'passed'),
(546, 98, 272, 'not_taken', 'passed'),
(547, 98, 273, 'not_taken', 'passed'),
(548, 98, 274, 'not_taken', 'passed'),
(549, 98, 275, 'not_taken', 'passed'),
(550, 98, 276, 'not_taken', 'passed'),
(551, 98, 277, 'not_taken', 'passed'),
(552, 98, 278, 'not_taken', 'passed'),
(553, 98, 279, 'not_taken', 'passed'),
(554, 98, 280, 'not_taken', 'passed'),
(555, 99, 268, 'enrolled', 'passed'),
(556, 99, 269, 'enrolled', 'passed'),
(557, 99, 270, 'enrolled', 'passed'),
(558, 99, 271, 'enrolled', 'passed'),
(559, 99, 272, 'not_taken', 'passed'),
(560, 99, 273, 'not_taken', 'passed'),
(561, 99, 274, 'not_taken', 'passed'),
(562, 99, 275, 'not_taken', 'passed'),
(563, 99, 276, 'not_taken', 'passed'),
(564, 99, 277, 'not_taken', 'passed'),
(565, 99, 278, 'not_taken', 'passed'),
(566, 99, 279, 'not_taken', 'passed'),
(567, 99, 280, 'not_taken', 'passed'),
(568, 100, 268, 'enrolled', 'passed'),
(569, 100, 269, 'enrolled', 'passed'),
(570, 100, 270, 'enrolled', 'passed'),
(571, 100, 271, 'enrolled', 'passed'),
(572, 100, 272, 'not_taken', 'passed'),
(573, 100, 273, 'not_taken', 'passed'),
(574, 100, 274, 'not_taken', 'passed'),
(575, 100, 275, 'not_taken', 'passed'),
(576, 100, 276, 'not_taken', 'passed'),
(577, 100, 277, 'not_taken', 'passed'),
(578, 100, 278, 'not_taken', 'passed'),
(579, 100, 279, 'not_taken', 'passed'),
(580, 100, 280, 'not_taken', 'passed'),
(581, 101, 268, 'enrolled', 'passed'),
(582, 101, 269, 'enrolled', 'passed'),
(583, 101, 270, 'enrolled', 'passed'),
(584, 101, 271, 'enrolled', 'passed'),
(585, 101, 272, 'not_taken', 'passed'),
(586, 101, 273, 'not_taken', 'passed'),
(587, 101, 274, 'not_taken', 'passed'),
(588, 101, 275, 'not_taken', 'passed'),
(589, 101, 276, 'not_taken', 'passed'),
(590, 101, 277, 'not_taken', 'passed'),
(591, 101, 278, 'not_taken', 'passed'),
(592, 101, 279, 'not_taken', 'passed'),
(593, 101, 280, 'not_taken', 'passed'),
(594, 102, 268, 'enrolled', 'passed'),
(595, 102, 269, 'enrolled', 'passed'),
(596, 102, 270, 'enrolled', 'passed'),
(597, 102, 271, 'enrolled', 'passed'),
(598, 102, 272, 'not_taken', 'passed'),
(599, 102, 273, 'not_taken', 'passed'),
(600, 102, 274, 'not_taken', 'passed'),
(601, 102, 275, 'not_taken', 'passed'),
(602, 102, 276, 'not_taken', 'passed'),
(603, 102, 277, 'not_taken', 'passed'),
(604, 102, 278, 'not_taken', 'passed'),
(605, 102, 279, 'not_taken', 'passed'),
(606, 102, 280, 'not_taken', 'passed'),
(607, 103, 268, 'enrolled', 'passed'),
(608, 103, 269, 'enrolled', 'passed'),
(609, 103, 270, 'enrolled', 'passed'),
(610, 103, 271, 'enrolled', 'passed'),
(611, 103, 272, 'not_taken', 'passed'),
(612, 103, 273, 'not_taken', 'passed'),
(613, 103, 274, 'not_taken', 'passed'),
(614, 103, 275, 'not_taken', 'passed'),
(615, 103, 276, 'not_taken', 'passed'),
(616, 103, 277, 'not_taken', 'passed'),
(617, 103, 278, 'not_taken', 'passed'),
(618, 103, 279, 'not_taken', 'passed'),
(619, 103, 280, 'not_taken', 'passed'),
(620, 104, 268, 'enrolled', 'passed'),
(621, 104, 269, 'enrolled', 'passed'),
(622, 104, 270, 'enrolled', 'passed'),
(623, 104, 271, 'enrolled', 'passed'),
(624, 104, 272, 'not_taken', 'passed'),
(625, 104, 273, 'not_taken', 'passed'),
(626, 104, 274, 'not_taken', 'passed'),
(627, 104, 275, 'not_taken', 'passed'),
(628, 104, 276, 'not_taken', 'passed'),
(629, 104, 277, 'not_taken', 'passed'),
(630, 104, 278, 'not_taken', 'passed'),
(631, 104, 279, 'not_taken', 'passed'),
(632, 104, 280, 'not_taken', 'passed'),
(633, 105, 268, 'enrolled', 'passed'),
(634, 105, 269, 'enrolled', 'passed'),
(635, 105, 270, 'enrolled', 'passed'),
(636, 105, 271, 'enrolled', 'passed'),
(637, 105, 272, 'not_taken', 'passed'),
(638, 105, 273, 'not_taken', 'passed'),
(639, 105, 274, 'not_taken', 'passed'),
(640, 105, 275, 'not_taken', 'passed'),
(641, 105, 276, 'not_taken', 'passed'),
(642, 105, 277, 'not_taken', 'passed'),
(643, 105, 278, 'not_taken', 'passed'),
(644, 105, 279, 'not_taken', 'passed'),
(645, 105, 280, 'not_taken', 'passed'),
(646, 106, 268, 'not_taken', 'passed'),
(647, 106, 269, 'not_taken', 'passed'),
(648, 106, 270, 'not_taken', 'passed'),
(649, 106, 271, 'not_taken', 'passed'),
(650, 106, 272, 'not_taken', 'passed'),
(651, 106, 273, 'not_taken', 'passed'),
(652, 106, 274, 'not_taken', 'passed'),
(653, 106, 275, 'not_taken', 'passed'),
(654, 106, 276, 'not_taken', 'passed'),
(655, 106, 277, 'not_taken', 'passed'),
(656, 106, 278, 'not_taken', 'passed'),
(657, 106, 279, 'not_taken', 'passed'),
(658, 106, 280, 'not_taken', 'passed'),
(659, 107, 268, 'enrolled', 'passed'),
(660, 107, 269, 'enrolled', 'passed'),
(661, 107, 270, 'enrolled', 'passed'),
(662, 107, 271, 'enrolled', 'passed'),
(663, 107, 272, 'not_taken', 'passed'),
(664, 107, 273, 'not_taken', 'passed'),
(665, 107, 274, 'not_taken', 'passed'),
(666, 107, 275, 'not_taken', 'passed'),
(667, 107, 276, 'not_taken', 'passed'),
(668, 107, 277, 'not_taken', 'passed'),
(669, 107, 278, 'not_taken', 'passed'),
(670, 107, 279, 'not_taken', 'passed'),
(671, 107, 280, 'not_taken', 'passed'),
(672, 108, 268, 'enrolled', 'passed'),
(673, 108, 269, 'enrolled', 'passed'),
(674, 108, 270, 'enrolled', 'passed'),
(675, 108, 271, 'enrolled', 'passed'),
(676, 108, 272, 'not_taken', 'passed'),
(677, 108, 273, 'not_taken', 'passed'),
(678, 108, 274, 'not_taken', 'passed'),
(679, 108, 275, 'not_taken', 'passed'),
(680, 108, 276, 'not_taken', 'passed'),
(681, 108, 277, 'not_taken', 'passed'),
(682, 108, 278, 'not_taken', 'passed'),
(683, 108, 279, 'not_taken', 'passed'),
(684, 108, 280, 'not_taken', 'passed'),
(685, 109, 268, 'enrolled', 'passed'),
(686, 109, 269, 'enrolled', 'passed'),
(687, 109, 270, 'enrolled', 'passed'),
(688, 109, 271, 'enrolled', 'passed'),
(689, 109, 272, 'not_taken', 'passed'),
(690, 109, 273, 'not_taken', 'passed'),
(691, 109, 274, 'not_taken', 'passed'),
(692, 109, 275, 'not_taken', 'passed'),
(693, 109, 276, 'not_taken', 'passed'),
(694, 109, 277, 'not_taken', 'passed'),
(695, 109, 278, 'not_taken', 'passed'),
(696, 109, 279, 'not_taken', 'passed'),
(697, 109, 280, 'not_taken', 'passed'),
(698, 110, 268, 'enrolled', 'passed'),
(699, 110, 269, 'enrolled', 'passed'),
(700, 110, 270, 'enrolled', 'passed'),
(701, 110, 271, 'enrolled', 'passed'),
(702, 110, 272, 'not_taken', 'passed'),
(703, 110, 273, 'not_taken', 'passed'),
(704, 110, 274, 'not_taken', 'passed'),
(705, 110, 275, 'not_taken', 'passed'),
(706, 110, 276, 'not_taken', 'passed'),
(707, 110, 277, 'not_taken', 'passed'),
(708, 110, 278, 'not_taken', 'passed'),
(709, 110, 279, 'not_taken', 'passed'),
(710, 110, 280, 'not_taken', 'passed'),
(711, 111, 268, 'enrolled', 'passed'),
(712, 111, 269, 'enrolled', 'passed'),
(713, 111, 270, 'enrolled', 'passed'),
(714, 111, 271, 'enrolled', 'passed'),
(715, 111, 272, 'not_taken', 'passed'),
(716, 111, 273, 'not_taken', 'passed'),
(717, 111, 274, 'not_taken', 'passed'),
(718, 111, 275, 'not_taken', 'passed'),
(719, 111, 276, 'not_taken', 'passed'),
(720, 111, 277, 'not_taken', 'passed'),
(721, 111, 278, 'not_taken', 'passed'),
(722, 111, 279, 'not_taken', 'passed'),
(723, 111, 280, 'not_taken', 'passed'),
(724, 112, 268, 'enrolled', 'passed'),
(725, 112, 269, 'enrolled', 'passed'),
(726, 112, 270, 'enrolled', 'passed'),
(727, 112, 271, 'enrolled', 'passed'),
(728, 112, 272, 'not_taken', 'passed'),
(729, 112, 273, 'not_taken', 'passed'),
(730, 112, 274, 'not_taken', 'passed'),
(731, 112, 275, 'not_taken', 'passed'),
(732, 112, 276, 'not_taken', 'passed'),
(733, 112, 277, 'not_taken', 'passed'),
(734, 112, 278, 'not_taken', 'passed'),
(735, 112, 279, 'not_taken', 'passed'),
(736, 112, 280, 'not_taken', 'passed'),
(737, 113, 268, 'enrolled', 'passed'),
(738, 113, 269, 'enrolled', 'passed'),
(739, 113, 270, 'enrolled', 'passed'),
(740, 113, 271, 'enrolled', 'passed'),
(741, 113, 272, 'not_taken', 'passed'),
(742, 113, 273, 'not_taken', 'passed'),
(743, 113, 274, 'not_taken', 'passed'),
(744, 113, 275, 'not_taken', 'passed'),
(745, 113, 276, 'not_taken', 'passed'),
(746, 113, 277, 'not_taken', 'passed'),
(747, 113, 278, 'not_taken', 'passed'),
(748, 113, 279, 'not_taken', 'passed'),
(749, 113, 280, 'not_taken', 'passed'),
(750, 114, 268, 'enrolled', 'passed'),
(751, 114, 269, 'enrolled', 'passed'),
(752, 114, 270, 'enrolled', 'passed'),
(753, 114, 271, 'enrolled', 'passed'),
(754, 114, 272, 'not_taken', 'passed'),
(755, 114, 273, 'not_taken', 'passed'),
(756, 114, 274, 'not_taken', 'passed'),
(757, 114, 275, 'not_taken', 'passed'),
(758, 114, 276, 'not_taken', 'passed'),
(759, 114, 277, 'not_taken', 'passed'),
(760, 114, 278, 'not_taken', 'passed'),
(761, 114, 279, 'not_taken', 'passed'),
(762, 114, 280, 'not_taken', 'passed'),
(763, 115, 268, 'enrolled', 'passed'),
(764, 115, 269, 'enrolled', 'passed'),
(765, 115, 270, 'enrolled', 'passed'),
(766, 115, 271, 'enrolled', 'passed'),
(767, 115, 272, 'not_taken', 'passed'),
(768, 115, 273, 'not_taken', 'passed'),
(769, 115, 274, 'not_taken', 'passed'),
(770, 115, 275, 'not_taken', 'passed'),
(771, 115, 276, 'not_taken', 'passed'),
(772, 115, 277, 'not_taken', 'passed'),
(773, 115, 278, 'not_taken', 'passed'),
(774, 115, 279, 'not_taken', 'passed'),
(775, 115, 280, 'not_taken', 'passed'),
(776, 116, 268, 'enrolled', 'passed'),
(777, 116, 269, 'enrolled', 'passed'),
(778, 116, 270, 'enrolled', 'passed'),
(779, 116, 271, 'enrolled', 'passed'),
(780, 116, 272, 'not_taken', 'passed'),
(781, 116, 273, 'not_taken', 'passed'),
(782, 116, 274, 'not_taken', 'passed'),
(783, 116, 275, 'not_taken', 'passed'),
(784, 116, 276, 'not_taken', 'passed'),
(785, 116, 277, 'not_taken', 'passed'),
(786, 116, 278, 'not_taken', 'passed'),
(787, 116, 279, 'not_taken', 'passed'),
(788, 116, 280, 'not_taken', 'passed'),
(789, 117, 268, 'enrolled', 'passed'),
(790, 117, 269, 'enrolled', 'passed'),
(791, 117, 270, 'enrolled', 'passed'),
(792, 117, 271, 'enrolled', 'passed'),
(793, 117, 272, 'not_taken', 'passed'),
(794, 117, 273, 'not_taken', 'passed'),
(795, 117, 274, 'not_taken', 'passed'),
(796, 117, 275, 'not_taken', 'passed'),
(797, 117, 276, 'not_taken', 'passed'),
(798, 117, 277, 'not_taken', 'passed'),
(799, 117, 278, 'not_taken', 'passed'),
(800, 117, 279, 'not_taken', 'passed'),
(801, 117, 280, 'not_taken', 'passed');

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

--
-- Table structure for table `student_discount`
--

CREATE TABLE `student_discount` (
  `sd_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `discount_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `student_discount`
--

INSERT INTO `student_discount` (`sd_id`, `student_id`, `discount_id`) VALUES
(1, 92, 9),
(2, 93, 9),
(3, 96, 9);

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

--
-- Table structure for table `student_monthly_payment`
--

CREATE TABLE `student_monthly_payment` (
  `smp_id` int(11) NOT NULL,
  `soa_id` int(11) NOT NULL,
  `installment_no` int(11) NOT NULL,
  `payment_type` enum('Downpayment','Monthly') NOT NULL,
  `amount_due` decimal(10,2) NOT NULL,
  `due_date` date DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `payment_status` varchar(20) DEFAULT 'UNPAID',
  `amount_paid` decimal(10,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `student_payment`
--

CREATE TABLE `student_payment` (
  `sp_id` int(255) NOT NULL,
  `spay_amount` decimal(10,2) DEFAULT NULL,
  `spay_image` varchar(255) DEFAULT NULL,
  `spay_status` varchar(255) NOT NULL,
  `payment_type` varchar(50) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `sy_id` int(255) NOT NULL,
  `spay_method` varchar(50) NOT NULL DEFAULT 'N/A',
  `student_id` int(11) NOT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `verified_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `student_payment`
--

INSERT INTO `student_payment` (`sp_id`, `spay_amount`, `spay_image`, `spay_status`, `payment_type`, `description`, `sy_id`, `spay_method`, `student_id`, `created_at`, `verified_at`) VALUES
(96, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'Cash', 117, '2026-04-17 18:00:08', NULL),
(97, 2288.00, 'Abe_2025-001.jpg', 'Verified', 'Tuition', 'Tuition Fee - May', 0, 'Online', 117, '2026-04-17 19:12:58', '2026-04-17 13:13:47'),
(103, 3000.00, '-', 'Verified', 'Tuition', 'Tuition Fee - July', 39, 'Cash', 117, '2026-04-17 23:46:39', NULL);

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

--
-- Table structure for table `student_subject`
--

CREATE TABLE `student_subject` (
  `student_subject_id` int(255) NOT NULL,
  `student_id` int(255) NOT NULL,
  `subject_id` int(255) NOT NULL,
  `subject_status` varchar(255) NOT NULL,
  `sy_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `student_subject`
--

INSERT INTO `student_subject` (`student_subject_id`, `student_id`, `subject_id`, `subject_status`, `sy_id`) VALUES
(373, 117, 270, 'Enrolled', 39),
(374, 117, 271, 'Enrolled', 39),
(375, 117, 268, 'Enrolled', 39),
(376, 117, 269, 'Enrolled', 39);

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

--
-- Table structure for table `subject_fee`
--

CREATE TABLE `subject_fee` (
  `subfee_id` int(255) NOT NULL,
  `subject_id` int(255) NOT NULL,
  `fee_id` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `subject_fee`
--

INSERT INTO `subject_fee` (`subfee_id`, `subject_id`, `fee_id`) VALUES
(6, 270, 24),
(7, 271, 25),
(8, 275, 24),
(9, 276, 25),
(10, 277, 24),
(11, 278, 24),
(12, 279, 27),
(13, 280, 24);

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

--
-- Table structure for table `subject_prerequisite`
--

CREATE TABLE `subject_prerequisite` (
  `prereq_id` int(255) NOT NULL,
  `subject_id` int(255) NOT NULL,
  `prerequisite_id` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admincourse`
--
ALTER TABLE `admincourse`
  ADD PRIMARY KEY (`course_id`);

--
-- Indexes for table `admindiscount`
--
ALTER TABLE `admindiscount`
  ADD PRIMARY KEY (`discount_id`);

--
-- Indexes for table `adminfee`
--
ALTER TABLE `adminfee`
  ADD PRIMARY KEY (`fee_id`);

--
-- Indexes for table `adminstudent`
--
ALTER TABLE `adminstudent`
  ADD PRIMARY KEY (`student_id`);

--
-- Indexes for table `adminsubject`
--
ALTER TABLE `adminsubject`
  ADD PRIMARY KEY (`subject_id`);

--
-- Indexes for table `admin_login`
--
ALTER TABLE `admin_login`
  ADD PRIMARY KEY (`login_id`);

--
-- Indexes for table `admin_payment_account`
--
ALTER TABLE `admin_payment_account`
  ADD PRIMARY KEY (`payment_id`);

--
-- Indexes for table `alumni`
--
ALTER TABLE `alumni`
  ADD PRIMARY KEY (`alumni_id`);

--
-- Indexes for table `course_subject`
--
ALTER TABLE `course_subject`
  ADD PRIMARY KEY (`corsub_id`),
  ADD UNIQUE KEY `unique_assignment` (`course_id`,`subject_id`);

--
-- Indexes for table `enroll_student`
--
ALTER TABLE `enroll_student`
  ADD PRIMARY KEY (`enroll_id`);

--
-- Indexes for table `exam_period`
--
ALTER TABLE `exam_period`
  ADD PRIMARY KEY (`ep_id`),
  ADD KEY `fk_exam_period_sy` (`sy_id`);

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

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

--
-- Indexes for table `school_year`
--
ALTER TABLE `school_year`
  ADD PRIMARY KEY (`sy_id`);

--
-- Indexes for table `soa`
--
ALTER TABLE `soa`
  ADD PRIMARY KEY (`soa_id`);

--
-- Indexes for table `student_curriculum`
--
ALTER TABLE `student_curriculum`
  ADD PRIMARY KEY (`sc_id`);

--
-- Indexes for table `student_discount`
--
ALTER TABLE `student_discount`
  ADD PRIMARY KEY (`sd_id`);

--
-- Indexes for table `student_monthly_payment`
--
ALTER TABLE `student_monthly_payment`
  ADD PRIMARY KEY (`smp_id`),
  ADD KEY `fk_smp_soa` (`soa_id`);

--
-- Indexes for table `student_payment`
--
ALTER TABLE `student_payment`
  ADD PRIMARY KEY (`sp_id`);

--
-- Indexes for table `student_subject`
--
ALTER TABLE `student_subject`
  ADD PRIMARY KEY (`student_subject_id`),
  ADD KEY `fk_student_subject_sy` (`sy_id`);

--
-- Indexes for table `subject_fee`
--
ALTER TABLE `subject_fee`
  ADD PRIMARY KEY (`subfee_id`);

--
-- Indexes for table `subject_prerequisite`
--
ALTER TABLE `subject_prerequisite`
  ADD PRIMARY KEY (`prereq_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admincourse`
--
ALTER TABLE `admincourse`
  MODIFY `course_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59;

--
-- AUTO_INCREMENT for table `admindiscount`
--
ALTER TABLE `admindiscount`
  MODIFY `discount_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `adminfee`
--
ALTER TABLE `adminfee`
  MODIFY `fee_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `adminstudent`
--
ALTER TABLE `adminstudent`
  MODIFY `student_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=118;

--
-- AUTO_INCREMENT for table `adminsubject`
--
ALTER TABLE `adminsubject`
  MODIFY `subject_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=285;

--
-- AUTO_INCREMENT for table `admin_login`
--
ALTER TABLE `admin_login`
  MODIFY `login_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `admin_payment_account`
--
ALTER TABLE `admin_payment_account`
  MODIFY `payment_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `alumni`
--
ALTER TABLE `alumni`
  MODIFY `alumni_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `course_subject`
--
ALTER TABLE `course_subject`
  MODIFY `corsub_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=496;

--
-- AUTO_INCREMENT for table `enroll_student`
--
ALTER TABLE `enroll_student`
  MODIFY `enroll_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=95;

--
-- AUTO_INCREMENT for table `exam_period`
--
ALTER TABLE `exam_period`
  MODIFY `ep_id` int(11) NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `school_year`
--
ALTER TABLE `school_year`
  MODIFY `sy_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `soa`
--
ALTER TABLE `soa`
  MODIFY `soa_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=76;

--
-- AUTO_INCREMENT for table `student_curriculum`
--
ALTER TABLE `student_curriculum`
  MODIFY `sc_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=802;

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

--
-- AUTO_INCREMENT for table `student_monthly_payment`
--
ALTER TABLE `student_monthly_payment`
  MODIFY `smp_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;

--
-- AUTO_INCREMENT for table `student_payment`
--
ALTER TABLE `student_payment`
  MODIFY `sp_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=104;

--
-- AUTO_INCREMENT for table `student_subject`
--
ALTER TABLE `student_subject`
  MODIFY `student_subject_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=377;

--
-- AUTO_INCREMENT for table `subject_fee`
--
ALTER TABLE `subject_fee`
  MODIFY `subfee_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `subject_prerequisite`
--
ALTER TABLE `subject_prerequisite`
  MODIFY `prereq_id` int(255) NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `exam_period`
--
ALTER TABLE `exam_period`
  ADD CONSTRAINT `fk_exam_period_sy` FOREIGN KEY (`sy_id`) REFERENCES `school_year` (`sy_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `student_monthly_payment`
--
ALTER TABLE `student_monthly_payment`
  ADD CONSTRAINT `fk_smp_soa` FOREIGN KEY (`soa_id`) REFERENCES `soa` (`soa_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `student_subject`
--
ALTER TABLE `student_subject`
  ADD CONSTRAINT `fk_student_subject_sy` FOREIGN KEY (`sy_id`) REFERENCES `school_year` (`sy_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 */;
