-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 20, 2026 at 06:35 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', 7000, '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
(118, '2025-002', 'Lei', 'Landicho', 'Ann', '', 'Female', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$w5xS7ReAK9SW9RH9b4fWtOCrUo6FO5uWUp2yKvLqMwOZf6xRG77dO', 39, '', 1, '2026-04-19 10:14:31', 0, 0),
(119, '2025-003', 'Lei', 'Crux', '', '', 'Female', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$5JKummXG6mmH/1j/VGaFCev38ABjL.DKOiK5ozT.Z5SORDoRFiv.K', 39, '', 1, '2026-04-19 10:23:37', 0, 0),
(120, '2025-004', 'Lei', 'Landicho', 'Bading', '', 'Female', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$mHTV8FPyQ3MAV1b9o30CqurFTm6I85rBy96ryyJ2FKDO59bvRWgOe', 39, '', 1, '2026-04-19 10:31:40', 0, 0),
(121, '2025-005', 'Jhap', 'Crux', '', '', 'Male', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$0UI/DRowW3wgq35yD9ERFuk3DTtV2XMeJHNB7b0E7fu7TtFtJ8RBy', 39, '', 1, '2026-04-19 10:36:33', 0, 0),
(122, '2025-006', 'Lei', 'Delacruz', '', '', 'Female', '52', 'Irregular', '', 'admin@gmail.com', 'delacruz-006', 43, '', 1, '2026-04-20 06:36:59', 0, 0),
(123, '2025-007', 'Lei', 'Aquino', 'Ann', '', 'Female', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$TwwwQEU5i5EEeerqWDQBve1z/S2bGB6IkaBqeO/oQGYMZvE8ZHzxe', 39, '', 1, '2026-04-20 07:07:31', 0, 0),
(124, '2025-008', 'Lei', 'Landicho', 'P.', '', 'Female', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$Kl.suRcZcZJiV8XqY8XdTu3OETUbhGB2/8ZkOHQ0kwOONn3rFCFk2', 39, '', 1, '2026-04-20 07:48:20', 0, 0),
(125, '2025-009', 'Jhap', 'Batungbakal', '', '', 'Male', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$4OF1/Q/3a3TXy/.X2ZTaAeviRqzp9YaV4tntvyIU9SS4n6Yo5358S', 39, '', 1, '2026-04-20 08:05:45', 0, 0),
(126, '2025-010', 'Lei', 'lulu', '', '', 'Female', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$tKD56a7DEljvylgvanOV2ehfqxhxLO167.iBHKVvIOdk8W1b40gNe', 43, '', 1, '2026-04-20 08:19:09', 0, 0),
(127, '2025-011', 'Jhap', 'lulu', '', '', 'Male', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$Laca7bOHuP8aiyP.Ls9Tr.71ofE5Vzfjs6ulGg4z8kbz6vQRAwHNS', 43, '', 1, '2026-04-20 08:20:39', 0, 0),
(128, '2025-012', 'Lei', 'Landicho', 'meme', '', 'Female', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$qWbPqZVDKKih4I/2Pxfx6.dXW6jYZcpgF/C0hhxG1EvJwUzttnnR2', 39, '', 1, '2026-04-20 08:21:13', 0, 0),
(129, '2025-013', 'Lei', 'lulu', 'Ann', '', 'Male', '52', 'Regular', '', 'admin@gmail.com', '$2y$10$f.sOSpCYjETxpN6qdvgXI.RxZQH68SstCPv/fckgVE6DqeCa2TamG', 39, '', 1, '2026-04-20 08:34:10', 0, 0),
(130, '2025-014', 'Lili', 'Crux', '', '', 'Female', '52', 'Irregular', '', 'admin@gmail.com', 'crux-014', 39, '', 1, '2026-04-20 11:33:29', 0, 0),
(131, '2025-015', 'Lei', 'Landicho', 'Beth', '', 'Female', '52', 'Irregular', '', 'admin@gmail.com', 'landicho-015', 39, '', 1, '2026-04-20 11:36:32', 0, 0),
(132, '2025-016', 'Lei', 'Landicho', 'Beth', '', 'Female', '52', 'Irregular', '', 'admin@gmail.com', 'landicho-015', 39, '', 1, '2026-04-20 11:36:51', 0, 0),
(133, '2025-017', 'Lei', 'Landicho', 'Beth', '', 'Female', '52', 'Irregular', '', 'admin@gmail.com', 'landicho-015', 39, '', 1, '2026-04-20 11:38:33', 0, 0),
(134, '2025-018', 'Lei', 'Landicho', 'Beth', '', 'Female', '52', 'Irregular', '', 'admin@gmail.com', 'landicho-015', 39, '', 1, '2026-04-20 11:38:52', 0, 0),
(135, '2025-019', 'Jaja', 'Riota', 'L.', '', 'Female', '52', 'Regular', '', 'jannamaeprado@gmail.co', '$2y$10$mtFu1xSEZYSvw3fB.daDMuD8Wy95lIJFe.iLVVf0tAw5WxfA9oe0O', 39, '', 0, '2026-04-20 12:14:58', 0, 1),
(139, '2025-020', 'Ja', 'Abe', 'P.', '', 'Female', '52', 'Regular', '', 'wsas.cdlb@gmail.co', '$2y$10$XzZgatjokre9v1m9wAyHie1px9uPYtdLQSvWHiGoMoN8nv.tZI/.K', 39, '', 0, '2026-04-20 12:41:57', 0, 1),
(142, '2025-021', 'Sha', 'Mys', 'T.', '', 'Female', '52', 'Regular', '', 'wsas.cdlb@gmail.c', '$2y$10$9BXhdWBB/41fnSupCkM2he2MhtSk5.unFEvVyId/a4Sik08/WyOwu', 39, '', 0, '2026-04-20 21:45:03', 0, 1),
(143, '2025-022', 'Jaja', 'Riota', 'L.', '', 'Female', '52', 'Regular', '', 'jannamaeprado@gmail.co', '$2y$10$6EUBvMzDwFq.Z2Olc7WQ6.gT12CmumqPtmDq3r/y6dxuhnxPLx6AS', 39, '', 1, '2026-04-20 22:18:44', 0, 0);

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

--
-- 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
(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, '');

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

--
-- 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,
  `alumni_tf` 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`, `alumni_tf`) VALUES
(15, 118, 6000),
(16, 119, 7000),
(17, 120, 7000),
(18, 121, 7000),
(19, 123, 7000),
(20, 124, 7000),
(21, 125, 7000),
(22, 127, 7000),
(23, 129, 7000),
(24, 136, 0),
(25, 137, 7000),
(26, 138, 0),
(27, 139, 0),
(28, 140, 0),
(29, 141, 7000),
(30, 142, 7000);

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

--
-- 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'),
(95, 118, 52, 39, '1', '', '2026-04-19 10:24:13', 'Enrolled'),
(96, 119, 52, 39, '1', '', '2026-04-19 10:24:35', 'Enrolled'),
(97, 120, 52, 39, '1', '', '2026-04-19 10:34:45', 'Enrolled'),
(98, 121, 52, 39, '1', '', '2026-04-19 10:47:23', 'Enrolled'),
(99, 117, 52, 43, '2', '', '2026-04-20 06:35:36', 'Enrolled'),
(100, 123, 52, 39, '1', '', '2026-04-20 07:08:14', 'Enrolled'),
(101, 124, 52, 39, '1', '', '2026-04-20 07:48:31', 'Enrolled'),
(102, 125, 52, 39, '1', '', '2026-04-20 08:05:56', 'Enrolled'),
(103, 125, 52, 43, '2', '', '2026-04-20 08:18:18', 'Enrolled'),
(104, 128, 52, 39, '1', '', '2026-04-20 08:22:54', 'Enrolled'),
(105, 126, 52, 39, '1', '', '2026-04-20 08:23:54', 'Enrolled'),
(106, 127, 52, 39, '1', '', '2026-04-20 08:28:50', 'Enrolled'),
(107, 129, 52, 39, '1', '', '2026-04-20 11:23:34', 'Enrolled'),
(108, 135, 52, 39, '1', '', '2026-04-20 12:15:37', 'Enrolled'),
(113, 139, 52, 39, '1', '', '2026-04-20 12:42:16', 'Enrolled'),
(116, 142, 52, 39, '1', '', '2026-04-20 21:45:32', 'Enrolled'),
(117, 143, 52, 39, '1', '', '2026-04-20 22:19:02', '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;

--
-- Dumping data for table `exam_period`
--

INSERT INTO `exam_period` (`ep_id`, `sy_id`, `semester`, `exam_period`, `start_date`, `end_date`, `is_active`, `created_at`) VALUES
(1, 43, '2nd Semester', 'midterm', '2026-04-20', '0000-00-00', 0, '2026-04-20 06:35:00'),
(2, 43, '2nd Semester', 'final', '2026-04-20', '0000-00-00', 0, '2026-04-20 06:35:00'),
(3, 39, '1st Semester', 'midterm', '2026-04-20', '0000-00-00', 1, '2026-04-20 07:06:05'),
(4, 39, '1st Semester', 'final', '2026-04-20', '0000-00-00', 0, '2026-04-20 07:06:05');

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

--
-- 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-20'),
(43, '2025', '2026', '2nd Semester', 0, '2026-04-17 17:05:19.764418', '2026-04-20');

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

--
-- 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'),
(76, 95, 11, 6000, 0, 6000.00, 6000, 1000, 2850, 15850, 6000, 9850, 2463, '2026-04-19 00:00:00.000000'),
(77, 96, 11, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 0, 16850, 4213, '2026-04-19 00:00:00.000000'),
(78, 97, 11, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 0, 16850, 4213, '2026-04-19 00:00:00.000000'),
(79, 98, 11, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-19 00:00:00.000000'),
(80, 99, 15, 2400, 0, 2400.00, 6000, 1000, 2850, 12250, 2500, 9750, 2438, '2026-04-20 00:00:00.000000'),
(81, 100, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(82, 101, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(83, 102, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(84, 103, 15, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(85, 104, 8, 1200, 10, 1020.00, 6000, 1000, 2850, 10870, 2500, 8370, 2093, '2026-04-20 00:00:00.000000'),
(86, 105, 8, 1200, 8, 1080.00, 6000, 1000, 2850, 10930, 2500, 8430, 2108, '2026-04-20 00:00:00.000000'),
(87, 106, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(88, 107, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(89, 108, 8, 1200, 0, 1200.00, 6000, 1000, 2850, 11050, 2500, 8550, 2138, '2026-04-20 00:00:00.000000'),
(91, 110, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(92, 111, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(93, 112, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(94, 113, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(95, 114, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(96, 115, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(97, 116, 8, 7000, 0, 7000.00, 6000, 1000, 2850, 16850, 2500, 14350, 3588, '2026-04-20 00:00:00.000000'),
(98, 117, 8, 1200, 0, 1200.00, 6000, 1000, 2850, 11050, 2500, 8550, 2138, '2026-04-20 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, 'completed', 'passed'),
(791, 117, 270, 'completed', 'passed'),
(792, 117, 271, 'completed', 'passed'),
(793, 117, 272, 'enrolled', 'passed'),
(794, 117, 273, 'enrolled', 'passed'),
(795, 117, 274, 'enrolled', 'passed'),
(796, 117, 275, 'enrolled', 'passed'),
(797, 117, 276, 'enrolled', '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'),
(802, 118, 268, 'enrolled', 'passed'),
(803, 118, 269, 'enrolled', 'passed'),
(804, 118, 270, 'enrolled', 'passed'),
(805, 118, 271, 'enrolled', 'passed'),
(806, 118, 272, 'not_taken', 'passed'),
(807, 118, 273, 'not_taken', 'passed'),
(808, 118, 274, 'not_taken', 'passed'),
(809, 118, 275, 'not_taken', 'passed'),
(810, 118, 276, 'not_taken', 'passed'),
(811, 118, 277, 'not_taken', 'passed'),
(812, 118, 278, 'not_taken', 'passed'),
(813, 118, 279, 'not_taken', 'passed'),
(814, 118, 280, 'not_taken', 'passed'),
(815, 119, 268, 'enrolled', 'passed'),
(816, 119, 269, 'enrolled', 'passed'),
(817, 119, 270, 'enrolled', 'passed'),
(818, 119, 271, 'enrolled', 'passed'),
(819, 119, 272, 'not_taken', 'passed'),
(820, 119, 273, 'not_taken', 'passed'),
(821, 119, 274, 'not_taken', 'passed'),
(822, 119, 275, 'not_taken', 'passed'),
(823, 119, 276, 'not_taken', 'passed'),
(824, 119, 277, 'not_taken', 'passed'),
(825, 119, 278, 'not_taken', 'passed'),
(826, 119, 279, 'not_taken', 'passed'),
(827, 119, 280, 'not_taken', 'passed'),
(828, 120, 268, 'enrolled', 'passed'),
(829, 120, 269, 'enrolled', 'passed'),
(830, 120, 270, 'enrolled', 'passed'),
(831, 120, 271, 'enrolled', 'passed'),
(832, 120, 272, 'not_taken', 'passed'),
(833, 120, 273, 'not_taken', 'passed'),
(834, 120, 274, 'not_taken', 'passed'),
(835, 120, 275, 'not_taken', 'passed'),
(836, 120, 276, 'not_taken', 'passed'),
(837, 120, 277, 'not_taken', 'passed'),
(838, 120, 278, 'not_taken', 'passed'),
(839, 120, 279, 'not_taken', 'passed'),
(840, 120, 280, 'not_taken', 'passed'),
(841, 121, 268, 'enrolled', 'passed'),
(842, 121, 269, 'completed', 'passed'),
(843, 121, 270, 'completed', 'passed'),
(844, 121, 271, 'completed', 'passed'),
(845, 121, 272, 'not_taken', 'passed'),
(846, 121, 273, 'not_taken', 'passed'),
(847, 121, 274, 'not_taken', 'passed'),
(848, 121, 275, 'not_taken', 'passed'),
(849, 121, 276, 'not_taken', 'passed'),
(850, 121, 277, 'not_taken', 'passed'),
(851, 121, 278, 'not_taken', 'passed'),
(852, 121, 279, 'not_taken', 'passed'),
(853, 121, 280, 'not_taken', 'passed'),
(854, 123, 268, 'not_taken', 'passed'),
(855, 123, 269, 'enrolled', 'passed'),
(856, 123, 270, 'enrolled', 'passed'),
(857, 123, 271, 'enrolled', 'passed'),
(858, 123, 272, 'not_taken', 'passed'),
(859, 123, 273, 'not_taken', 'passed'),
(860, 123, 274, 'not_taken', 'passed'),
(861, 123, 275, 'not_taken', 'passed'),
(862, 123, 276, 'not_taken', 'passed'),
(863, 123, 277, 'not_taken', 'passed'),
(864, 123, 278, 'not_taken', 'passed'),
(865, 123, 279, 'not_taken', 'passed'),
(866, 123, 280, 'not_taken', 'passed'),
(867, 124, 268, 'not_taken', 'passed'),
(868, 124, 269, 'completed', 'passed'),
(869, 124, 270, 'completed', 'passed'),
(870, 124, 271, 'completed', 'passed'),
(871, 124, 272, 'not_taken', 'passed'),
(872, 124, 273, 'not_taken', 'passed'),
(873, 124, 274, 'not_taken', 'passed'),
(874, 124, 275, 'not_taken', 'passed'),
(875, 124, 276, 'not_taken', 'passed'),
(876, 124, 277, 'not_taken', 'passed'),
(877, 124, 278, 'not_taken', 'passed'),
(878, 124, 279, 'not_taken', 'passed'),
(879, 124, 280, 'not_taken', 'passed'),
(880, 125, 268, 'not_taken', 'passed'),
(881, 125, 269, 'completed', 'passed'),
(882, 125, 270, 'completed', 'passed'),
(883, 125, 271, 'completed', 'passed'),
(884, 125, 272, 'enrolled', 'passed'),
(885, 125, 273, 'enrolled', 'passed'),
(886, 125, 274, 'enrolled', 'passed'),
(887, 125, 275, 'enrolled', 'passed'),
(888, 125, 276, 'enrolled', 'passed'),
(889, 125, 277, 'not_taken', 'passed'),
(890, 125, 278, 'not_taken', 'passed'),
(891, 125, 279, 'not_taken', 'passed'),
(892, 125, 280, 'not_taken', 'passed'),
(893, 126, 268, 'not_taken', 'passed'),
(894, 126, 269, 'enrolled', 'passed'),
(895, 126, 270, 'enrolled', 'passed'),
(896, 126, 271, 'enrolled', 'passed'),
(897, 126, 272, 'not_taken', 'passed'),
(898, 126, 273, 'not_taken', 'passed'),
(899, 126, 274, 'not_taken', 'passed'),
(900, 126, 275, 'not_taken', 'passed'),
(901, 126, 276, 'not_taken', 'passed'),
(902, 126, 277, 'not_taken', 'passed'),
(903, 126, 278, 'not_taken', 'passed'),
(904, 126, 279, 'not_taken', 'passed'),
(905, 126, 280, 'not_taken', 'passed'),
(906, 127, 268, 'not_taken', 'passed'),
(907, 127, 269, 'enrolled', 'passed'),
(908, 127, 270, 'enrolled', 'passed'),
(909, 127, 271, 'enrolled', 'passed'),
(910, 127, 272, 'not_taken', 'passed'),
(911, 127, 273, 'not_taken', 'passed'),
(912, 127, 274, 'not_taken', 'passed'),
(913, 127, 275, 'not_taken', 'passed'),
(914, 127, 276, 'not_taken', 'passed'),
(915, 127, 277, 'not_taken', 'passed'),
(916, 127, 278, 'not_taken', 'passed'),
(917, 127, 279, 'not_taken', 'passed'),
(918, 127, 280, 'not_taken', 'passed'),
(919, 128, 268, 'not_taken', 'passed'),
(920, 128, 269, 'enrolled', 'passed'),
(921, 128, 270, 'enrolled', 'passed'),
(922, 128, 271, 'enrolled', 'passed'),
(923, 128, 272, 'not_taken', 'passed'),
(924, 128, 273, 'not_taken', 'passed'),
(925, 128, 274, 'not_taken', 'passed'),
(926, 128, 275, 'not_taken', 'passed'),
(927, 128, 276, 'not_taken', 'passed'),
(928, 128, 277, 'not_taken', 'passed'),
(929, 128, 278, 'not_taken', 'passed'),
(930, 128, 279, 'not_taken', 'passed'),
(931, 128, 280, 'not_taken', 'passed'),
(932, 129, 268, 'not_taken', 'passed'),
(933, 129, 269, 'enrolled', 'passed'),
(934, 129, 270, 'enrolled', 'passed'),
(935, 129, 271, 'enrolled', 'passed'),
(936, 129, 272, 'not_taken', 'passed'),
(937, 129, 273, 'not_taken', 'passed'),
(938, 129, 274, 'not_taken', 'passed'),
(939, 129, 275, 'not_taken', 'passed'),
(940, 129, 276, 'not_taken', 'passed'),
(941, 129, 277, 'not_taken', 'passed'),
(942, 129, 278, 'not_taken', 'passed'),
(943, 129, 279, 'not_taken', 'passed'),
(944, 129, 280, 'not_taken', 'passed'),
(945, 135, 268, 'not_taken', 'passed'),
(946, 135, 269, 'enrolled', 'passed'),
(947, 135, 270, 'enrolled', 'passed'),
(948, 135, 271, 'enrolled', 'passed'),
(949, 135, 272, 'not_taken', 'passed'),
(950, 135, 273, 'not_taken', 'passed'),
(951, 135, 274, 'not_taken', 'passed'),
(952, 135, 275, 'not_taken', 'passed'),
(953, 135, 276, 'not_taken', 'passed'),
(954, 135, 277, 'not_taken', 'passed'),
(955, 135, 278, 'not_taken', 'passed'),
(956, 135, 279, 'not_taken', 'passed'),
(957, 135, 280, 'not_taken', 'passed'),
(958, 136, 268, 'not_taken', 'passed'),
(959, 136, 269, 'enrolled', 'passed'),
(960, 136, 270, 'enrolled', 'passed'),
(961, 136, 271, 'enrolled', 'passed'),
(962, 136, 272, 'not_taken', 'passed'),
(963, 136, 273, 'not_taken', 'passed'),
(964, 136, 274, 'not_taken', 'passed'),
(965, 136, 275, 'not_taken', 'passed'),
(966, 136, 276, 'not_taken', 'passed'),
(967, 136, 277, 'not_taken', 'passed'),
(968, 136, 278, 'not_taken', 'passed'),
(969, 136, 279, 'not_taken', 'passed'),
(970, 136, 280, 'not_taken', 'passed'),
(971, 137, 268, 'not_taken', 'passed'),
(972, 137, 269, 'enrolled', 'passed'),
(973, 137, 270, 'enrolled', 'passed'),
(974, 137, 271, 'enrolled', 'passed'),
(975, 137, 272, 'not_taken', 'passed'),
(976, 137, 273, 'not_taken', 'passed'),
(977, 137, 274, 'not_taken', 'passed'),
(978, 137, 275, 'not_taken', 'passed'),
(979, 137, 276, 'not_taken', 'passed'),
(980, 137, 277, 'not_taken', 'passed'),
(981, 137, 278, 'not_taken', 'passed'),
(982, 137, 279, 'not_taken', 'passed'),
(983, 137, 280, 'not_taken', 'passed'),
(984, 138, 268, 'not_taken', 'passed'),
(985, 138, 269, 'enrolled', 'passed'),
(986, 138, 270, 'enrolled', 'passed'),
(987, 138, 271, 'enrolled', 'passed'),
(988, 138, 272, 'not_taken', 'passed'),
(989, 138, 273, 'not_taken', 'passed'),
(990, 138, 274, 'not_taken', 'passed'),
(991, 138, 275, 'not_taken', 'passed'),
(992, 138, 276, 'not_taken', 'passed'),
(993, 138, 277, 'not_taken', 'passed'),
(994, 138, 278, 'not_taken', 'passed'),
(995, 138, 279, 'not_taken', 'passed'),
(996, 138, 280, 'not_taken', 'passed'),
(997, 139, 268, 'not_taken', 'passed'),
(998, 139, 269, 'enrolled', 'passed'),
(999, 139, 270, 'enrolled', 'passed'),
(1000, 139, 271, 'enrolled', 'passed'),
(1001, 139, 272, 'not_taken', 'passed'),
(1002, 139, 273, 'not_taken', 'passed'),
(1003, 139, 274, 'not_taken', 'passed'),
(1004, 139, 275, 'not_taken', 'passed'),
(1005, 139, 276, 'not_taken', 'passed'),
(1006, 139, 277, 'not_taken', 'passed'),
(1007, 139, 278, 'not_taken', 'passed'),
(1008, 139, 279, 'not_taken', 'passed'),
(1009, 139, 280, 'not_taken', 'passed'),
(1010, 140, 268, 'not_taken', 'passed'),
(1011, 140, 269, 'enrolled', 'passed'),
(1012, 140, 270, 'enrolled', 'passed'),
(1013, 140, 271, 'enrolled', 'passed'),
(1014, 140, 272, 'not_taken', 'passed'),
(1015, 140, 273, 'not_taken', 'passed'),
(1016, 140, 274, 'not_taken', 'passed'),
(1017, 140, 275, 'not_taken', 'passed'),
(1018, 140, 276, 'not_taken', 'passed'),
(1019, 140, 277, 'not_taken', 'passed'),
(1020, 140, 278, 'not_taken', 'passed'),
(1021, 140, 279, 'not_taken', 'passed'),
(1022, 140, 280, 'not_taken', 'passed'),
(1023, 141, 268, 'not_taken', 'passed'),
(1024, 141, 269, 'enrolled', 'passed'),
(1025, 141, 270, 'enrolled', 'passed'),
(1026, 141, 271, 'enrolled', 'passed'),
(1027, 141, 272, 'not_taken', 'passed'),
(1028, 141, 273, 'not_taken', 'passed'),
(1029, 141, 274, 'not_taken', 'passed'),
(1030, 141, 275, 'not_taken', 'passed'),
(1031, 141, 276, 'not_taken', 'passed'),
(1032, 141, 277, 'not_taken', 'passed'),
(1033, 141, 278, 'not_taken', 'passed'),
(1034, 141, 279, 'not_taken', 'passed'),
(1035, 141, 280, 'not_taken', 'passed'),
(1036, 142, 268, 'not_taken', 'passed'),
(1037, 142, 269, 'enrolled', 'passed'),
(1038, 142, 270, 'enrolled', 'passed'),
(1039, 142, 271, 'enrolled', 'passed'),
(1040, 142, 272, 'not_taken', 'passed'),
(1041, 142, 273, 'not_taken', 'passed'),
(1042, 142, 274, 'not_taken', 'passed'),
(1043, 142, 275, 'not_taken', 'passed'),
(1044, 142, 276, 'not_taken', 'passed'),
(1045, 142, 277, 'not_taken', 'passed'),
(1046, 142, 278, 'not_taken', 'passed'),
(1047, 142, 279, 'not_taken', 'passed'),
(1048, 142, 280, 'not_taken', 'passed'),
(1049, 143, 268, 'not_taken', 'passed'),
(1050, 143, 269, 'enrolled', 'passed'),
(1051, 143, 270, 'enrolled', 'passed'),
(1052, 143, 271, 'enrolled', 'passed'),
(1053, 143, 272, 'not_taken', 'passed'),
(1054, 143, 273, 'not_taken', 'passed'),
(1055, 143, 274, 'not_taken', 'passed'),
(1056, 143, 275, 'not_taken', 'passed'),
(1057, 143, 276, 'not_taken', 'passed'),
(1058, 143, 277, 'not_taken', 'passed'),
(1059, 143, 278, 'not_taken', 'passed'),
(1060, 143, 279, 'not_taken', 'passed'),
(1061, 143, 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),
(4, 128, 10),
(5, 126, 8);

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

--
-- 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),
(104, 6000.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 118, '2026-04-19 10:24:13', NULL),
(105, 0.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 119, '2026-04-19 10:24:35', NULL),
(106, 0.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 120, '2026-04-19 10:34:45', NULL),
(107, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 121, '2026-04-19 10:47:23', NULL),
(108, 1362.00, '-', 'Verified', 'Tuition', 'Tuition Fee - August', 39, '0', 117, '2026-04-19 13:09:40', NULL),
(109, 11850.00, '-', 'Verified', 'Tuition', 'Tuition Fee', 39, '0', 121, '2026-04-20 06:31:56', NULL),
(110, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 43, 'N/A', 117, '2026-04-20 06:35:36', NULL),
(111, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 123, '2026-04-20 07:08:14', NULL),
(112, 11850.00, '-', 'Verified', 'Tuition', 'Tuition Fee', 39, '0', 123, '2026-04-20 07:09:08', NULL),
(113, 16850.00, '-', 'Verified', 'Tuition', 'Tuition Fee', 39, '0', 119, '2026-04-20 07:20:18', NULL),
(114, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 124, '2026-04-20 07:48:31', NULL),
(115, 11850.00, '-', 'Verified', 'Tuition', 'Tuition Fee - August', 39, '0', 124, '2026-04-20 07:49:05', NULL),
(116, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 125, '2026-04-20 08:05:56', NULL),
(117, 14350.00, '-', 'Verified', 'Tuition', 'Tuition Fee', 39, '0', 125, '2026-04-20 08:06:33', NULL),
(125, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 0, 'N/A', 139, '2026-04-20 12:42:44', NULL),
(126, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 0, 'N/A', 135, '2026-04-20 12:47:10', NULL),
(127, 2000.00, NULL, 'Verified', 'Tuition', NULL, 0, 'Cash', 139, '2026-04-20 13:50:57', '2026-04-20 13:50:57'),
(128, 2000.00, 'Abe_2025-020.jpeg', 'Verified', 'Tuition', 'Tuition Fee - May', 0, 'Online', 139, '2026-04-20 13:51:36', '2026-04-20 13:52:04'),
(129, 2000.00, 'Abe_2025-020.jpeg', 'Pending', '', NULL, 0, 'Online', 139, '2026-04-20 13:52:07', NULL),
(132, 1000.00, 'Abe_2025-020.jpeg', 'Pending', '', NULL, 0, 'Online', 139, '2026-04-20 13:57:06', NULL),
(133, 500.00, 'Abe_2025-020.jpeg', 'Pending', '', NULL, 0, 'Online', 139, '2026-04-20 13:58:18', NULL),
(135, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 0, 'N/A', 140, '2026-04-20 14:20:46', NULL),
(136, 1000.00, NULL, 'Verified', 'Tuition', NULL, 0, 'Cash', 140, '2026-04-20 14:43:07', '2026-04-20 14:43:07'),
(137, 2000.00, 'Mys_2025-021.jpg', 'Verified', 'Tuition', 'Tuition Fee - May', 0, 'Online', 140, '2026-04-20 15:36:12', '2026-04-20 15:36:45'),
(142, 1000.00, 'Mys_2025-021.jpg', 'Pending', '', NULL, 0, 'Online', 140, '2026-04-20 17:24:52', NULL),
(143, 500.00, 'Mys_2025-021.jpg', 'Pending', '', NULL, 0, 'Online', 140, '2026-04-20 17:26:03', NULL),
(144, 500.00, 'Mys_2025-021.jpeg', 'Pending', '', NULL, 0, 'Online', 140, '2026-04-20 17:27:27', NULL),
(145, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 141, '2026-04-20 21:27:45', NULL),
(146, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 142, '2026-04-20 21:45:32', NULL),
(147, 2500.00, NULL, 'Verified', 'Downpayment', NULL, 39, 'N/A', 143, '2026-04-20 22:19:02', 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),
(377, 118, 270, 'Enrolled', 39),
(378, 118, 271, 'Enrolled', 39),
(379, 118, 268, 'Enrolled', 39),
(380, 118, 269, 'Enrolled', 39),
(381, 119, 270, 'Enrolled', 39),
(382, 119, 271, 'Enrolled', 39),
(383, 119, 268, 'Enrolled', 39),
(384, 119, 269, 'Enrolled', 39),
(385, 120, 270, 'Enrolled', 39),
(386, 120, 271, 'Enrolled', 39),
(387, 120, 268, 'Enrolled', 39),
(388, 120, 269, 'Enrolled', 39),
(389, 121, 270, 'Enrolled', 39),
(390, 121, 271, 'Enrolled', 39),
(391, 121, 268, 'Enrolled', 39),
(392, 121, 269, 'Enrolled', 39),
(393, 117, 275, 'Enrolled', 43),
(394, 117, 276, 'Enrolled', 43),
(395, 117, 272, 'Enrolled', 43),
(396, 117, 273, 'Enrolled', 43),
(397, 117, 274, 'Enrolled', 43),
(398, 123, 269, 'Enrolled', 39),
(399, 123, 270, 'Enrolled', 39),
(400, 123, 271, 'Enrolled', 39),
(401, 124, 269, 'Enrolled', 39),
(402, 124, 270, 'Enrolled', 39),
(403, 124, 271, 'Enrolled', 39),
(404, 125, 270, 'Enrolled', 39),
(405, 125, 271, 'Enrolled', 39),
(406, 125, 269, 'Enrolled', 39),
(407, 125, 275, 'Enrolled', 43),
(408, 125, 276, 'Enrolled', 43),
(409, 125, 272, 'Enrolled', 43),
(410, 125, 273, 'Enrolled', 43),
(411, 125, 274, 'Enrolled', 43),
(412, 128, 270, 'Enrolled', 39),
(413, 128, 271, 'Enrolled', 39),
(414, 128, 269, 'Enrolled', 39),
(415, 126, 270, 'Enrolled', 39),
(416, 126, 271, 'Enrolled', 39),
(417, 126, 269, 'Enrolled', 39),
(418, 127, 270, 'Enrolled', 39),
(419, 127, 271, 'Enrolled', 39),
(420, 127, 269, 'Enrolled', 39),
(421, 129, 270, 'Enrolled', 39),
(422, 129, 271, 'Enrolled', 39),
(423, 129, 269, 'Enrolled', 39),
(424, 135, 271, 'Enrolled', 39),
(425, 135, 269, 'Enrolled', 39),
(426, 135, 270, 'Enrolled', 39),
(427, 136, 270, 'Enrolled', 39),
(428, 136, 271, 'Enrolled', 39),
(429, 136, 269, 'Enrolled', 39),
(430, 137, 271, 'Enrolled', 39),
(431, 137, 269, 'Enrolled', 39),
(432, 137, 270, 'Enrolled', 39),
(433, 138, 271, 'Enrolled', 39),
(434, 138, 269, 'Enrolled', 39),
(435, 138, 270, 'Enrolled', 39),
(436, 138, 271, 'Enrolled', 39),
(437, 138, 269, 'Enrolled', 39),
(438, 138, 270, 'Enrolled', 39),
(439, 139, 271, 'Enrolled', 39),
(440, 139, 269, 'Enrolled', 39),
(441, 139, 270, 'Enrolled', 39),
(442, 140, 271, 'Enrolled', 39),
(443, 140, 269, 'Enrolled', 39),
(444, 140, 270, 'Enrolled', 39),
(445, 141, 269, 'Enrolled', 39),
(446, 141, 270, 'Enrolled', 39),
(447, 141, 271, 'Enrolled', 39),
(448, 142, 270, 'Enrolled', 39),
(449, 142, 271, 'Enrolled', 39),
(450, 142, 269, 'Enrolled', 39),
(451, 143, 270, 'Enrolled', 39),
(452, 143, 271, 'Enrolled', 39),
(453, 143, 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=144;

--
-- 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=31;

--
-- 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=118;

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

--
-- 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=99;

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

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

--
-- 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=148;

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

--
-- 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 */;
