-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- 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),
(57, 'EDUC', 'Bachelor of Secondary Education', 'Filipino', 0),
(58, 'BSBA', 'Bachelor of Science in Business Administration', 'Marketing Management', 0),
(59, 'BSED', 'Bachelor of Secondary Education', 'Math', 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', 2000, 'No'),
(27, 'Internet Fee', 1000, 'Yes'),
(29, 'Other Comlab Fee', 2000, 'No'),
(31, 'sf', 3, 'No');

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

--
-- 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', 1, 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, ''),
(285, 'history', 'Hekasi', 0, 3, 0, 3, '');

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

--
-- 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` int(255) 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
(4, 'China Bank1', 912379041, 'Jap Lei Janna1', 0x313736343033353732322e6a7067);

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

--
-- 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'),
(496, '53', '284', '2nd', '3rd');

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

--
-- 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
(41, 70, 52, 23, '1', '', '2026-03-30 03:18:38', 'Enrolled'),
(42, 70, 52, 23, '1', '', '2026-03-30 03:18:45', 'Enrolled'),
(43, 70, 52, 23, '1', '', '2026-03-30 03:18:51', 'Enrolled'),
(44, 70, 52, 23, '1', '', '2026-03-30 03:18:59', 'Enrolled'),
(45, 70, 52, 23, '1', '', '2026-03-30 03:19:07', 'Enrolled'),
(46, 70, 52, 23, '1', '', '2026-03-30 03:19:13', 'Enrolled'),
(47, 70, 52, 23, '1', '', '2026-03-30 03:19:20', 'Enrolled'),
(48, 71, 52, 23, '1', '', '2026-03-30 03:28:09', 'Enrolled'),
(49, 72, 52, 23, '1', '', '2026-03-30 03:35:27', 'Enrolled'),
(50, 73, 52, 23, '1', '', '2026-03-30 03:37:19', 'Enrolled'),
(51, 74, 52, 23, '1', '', '2026-03-30 03:39:56', 'Enrolled'),
(52, 76, 52, 23, '1', '', '2026-03-30 03:53:49', 'Enrolled'),
(53, 76, 52, 23, '1', '', '2026-03-30 03:54:38', 'Enrolled'),
(54, 75, 52, 23, '1', '', '2026-03-30 03:58:14', 'Enrolled'),
(55, 77, 52, 23, '1', '', '2026-03-30 04:18:38', 'Enrolled'),
(56, 78, 52, 23, '1', '', '2026-03-30 06:46:57', 'Enrolled'),
(57, 79, 52, 23, '1', '', '2026-03-30 06:48:15', 'Enrolled'),
(58, 80, 52, 23, '1', '', '2026-03-30 06:54:04', 'Enrolled');

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

--
-- 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)
) 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`) VALUES
(23, '2025', '2026', '1st Semester', 1, '2026-03-22 17:49:30.349233');

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

--
-- 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` int(11) 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
(42, 48, 11, 1800, 0, 0, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(43, 49, 11, 1800, 0, 0, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(44, 50, 11, 1800, 0, 0, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(45, 51, 11, 1800, 0, 0, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(46, 54, 11, 1800, 0, 1800, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(47, 55, 11, 1800, 0, 1800, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(48, 56, 11, 1800, 0, 1800, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(49, 57, 11, 1800, 0, 1800, 6000, 1000, 2850, 11650, 0, 11650, 2913, '2026-03-30 00:00:00.000000'),
(50, 58, 11, 1800, 9, 1440, 6000, 1000, 2850, 11290, 0, 11290, 2823, '2026-03-30 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
(1, 50, 268, 'not_taken', 'passed'),
(2, 50, 269, 'not_taken', 'passed'),
(3, 50, 270, 'not_taken', 'passed'),
(4, 50, 271, 'not_taken', 'passed'),
(5, 51, 268, 'not_taken', 'passed'),
(6, 51, 269, 'not_taken', 'passed'),
(7, 51, 270, 'not_taken', 'passed'),
(8, 51, 271, 'not_taken', 'passed'),
(9, 52, 268, 'enrolled', 'passed'),
(10, 52, 269, 'enrolled', 'passed'),
(11, 52, 270, 'enrolled', 'passed'),
(12, 52, 271, 'enrolled', 'passed'),
(13, 52, 272, 'enrolled', 'passed'),
(14, 52, 273, 'enrolled', 'passed'),
(15, 52, 274, 'enrolled', 'passed'),
(16, 52, 275, 'enrolled', 'passed'),
(17, 52, 276, 'enrolled', 'passed'),
(18, 55, 268, 'completed', 'passed'),
(19, 55, 269, 'completed', 'passed'),
(20, 55, 270, 'completed', 'passed'),
(21, 55, 271, 'completed', 'passed'),
(22, 55, 272, 'completed', 'passed'),
(23, 55, 268, 'completed', 'passed'),
(24, 55, 269, 'completed', 'passed'),
(25, 55, 270, 'completed', 'passed'),
(26, 55, 271, 'completed', 'passed'),
(27, 55, 272, 'completed', 'passed'),
(28, 55, 268, 'completed', 'passed'),
(29, 55, 269, 'completed', 'passed'),
(30, 55, 270, 'completed', 'passed'),
(31, 55, 271, 'completed', 'passed'),
(32, 55, 272, 'completed', 'passed'),
(33, 56, 268, 'completed', 'passed'),
(34, 56, 269, 'completed', 'passed'),
(35, 56, 270, 'completed', 'passed'),
(36, 56, 271, 'completed', 'passed'),
(37, 56, 272, 'completed', 'passed'),
(38, 56, 273, 'completed', 'passed'),
(39, 56, 274, 'completed', 'passed'),
(40, 56, 275, 'not_taken', 'passed'),
(41, 56, 276, 'not_taken', 'passed'),
(42, 57, 268, 'enrolled', 'passed'),
(43, 57, 271, 'enrolled', 'passed'),
(44, 58, 268, 'enrolled', 'passed'),
(45, 59, 268, 'not_taken', 'passed'),
(46, 59, 269, 'not_taken', 'passed'),
(47, 59, 270, 'not_taken', 'passed'),
(48, 59, 271, 'not_taken', 'passed'),
(49, 59, 272, 'not_taken', 'passed'),
(50, 59, 273, 'not_taken', 'passed'),
(51, 59, 274, 'not_taken', 'passed'),
(52, 59, 275, 'not_taken', 'passed'),
(53, 59, 276, 'not_taken', 'passed'),
(54, 59, 277, 'enrolled', 'passed'),
(55, 59, 278, 'enrolled', 'passed'),
(56, 59, 279, 'enrolled', 'passed'),
(57, 60, 268, 'not_taken', 'passed'),
(58, 60, 269, 'not_taken', 'passed'),
(59, 60, 270, 'not_taken', 'passed'),
(60, 60, 271, 'not_taken', 'passed'),
(61, 60, 272, 'not_taken', 'passed'),
(62, 60, 273, 'not_taken', 'passed'),
(63, 60, 274, 'not_taken', 'passed'),
(64, 60, 275, 'not_taken', 'passed'),
(65, 60, 276, 'not_taken', 'passed'),
(66, 60, 277, 'enrolled', 'passed'),
(67, 60, 278, 'enrolled', 'passed'),
(68, 60, 279, 'enrolled', 'passed'),
(69, 61, 268, 'not_taken', 'passed'),
(70, 61, 269, 'not_taken', 'passed'),
(71, 61, 270, 'not_taken', 'passed'),
(72, 61, 271, 'not_taken', 'passed'),
(73, 61, 272, 'not_taken', 'passed'),
(74, 61, 273, 'not_taken', 'passed'),
(75, 61, 274, 'not_taken', 'passed'),
(76, 61, 275, 'not_taken', 'passed'),
(77, 61, 276, 'not_taken', 'passed'),
(78, 61, 277, 'enrolled', 'passed'),
(79, 61, 278, 'enrolled', 'passed'),
(80, 61, 279, 'enrolled', 'passed'),
(81, 62, 268, 'not_taken', 'passed'),
(82, 62, 269, 'not_taken', 'passed'),
(83, 62, 270, 'not_taken', 'passed'),
(84, 62, 271, 'not_taken', 'passed'),
(85, 62, 272, 'not_taken', 'passed'),
(86, 62, 273, 'not_taken', 'passed'),
(87, 62, 274, 'not_taken', 'passed'),
(88, 62, 275, 'not_taken', 'passed'),
(89, 62, 276, 'not_taken', 'passed'),
(90, 62, 277, 'enrolled', 'passed'),
(91, 62, 278, 'enrolled', 'passed'),
(92, 62, 279, 'enrolled', 'passed'),
(93, 63, 268, 'completed', 'passed'),
(94, 63, 269, 'completed', 'passed'),
(95, 63, 270, 'completed', 'passed'),
(96, 63, 271, 'completed', 'passed'),
(97, 63, 272, 'completed', 'passed'),
(98, 63, 273, 'completed', 'passed'),
(99, 63, 274, 'not_taken', 'passed'),
(100, 63, 275, 'not_taken', 'passed'),
(101, 63, 276, 'not_taken', 'passed'),
(102, 63, 277, 'enrolled', 'passed'),
(103, 63, 278, 'enrolled', 'passed'),
(104, 63, 279, 'enrolled', 'passed'),
(105, 64, 268, 'not_taken', 'passed'),
(106, 64, 269, 'not_taken', 'passed'),
(107, 64, 270, 'not_taken', 'passed'),
(108, 64, 271, 'not_taken', 'passed'),
(109, 64, 272, 'not_taken', 'passed'),
(110, 64, 273, 'not_taken', 'passed'),
(111, 64, 274, 'not_taken', 'passed'),
(112, 64, 275, 'not_taken', 'passed'),
(113, 64, 276, 'not_taken', 'passed'),
(114, 64, 277, 'enrolled', 'passed'),
(115, 64, 278, 'enrolled', 'passed'),
(116, 64, 279, 'enrolled', 'passed'),
(117, 65, 268, 'completed', 'passed'),
(118, 65, 269, 'completed', 'passed'),
(119, 65, 270, 'completed', 'passed'),
(120, 65, 271, 'completed', 'passed'),
(121, 65, 272, 'completed', 'passed'),
(122, 65, 273, 'not_taken', 'passed'),
(123, 65, 274, 'not_taken', 'passed'),
(124, 65, 275, 'not_taken', 'passed'),
(125, 65, 276, 'not_taken', 'passed'),
(126, 65, 277, 'enrolled', 'passed'),
(127, 65, 278, 'enrolled', 'passed'),
(128, 65, 279, 'enrolled', 'passed'),
(129, 66, 268, 'enrolled', 'passed'),
(130, 66, 269, 'enrolled', 'passed'),
(131, 66, 270, 'enrolled', 'passed'),
(132, 66, 271, 'enrolled', 'passed'),
(133, 66, 272, 'not_taken', 'passed'),
(134, 66, 273, 'not_taken', 'passed'),
(135, 66, 274, 'not_taken', 'passed'),
(136, 66, 275, 'not_taken', 'passed'),
(137, 66, 276, 'not_taken', 'passed'),
(138, 66, 277, 'not_taken', 'passed'),
(139, 66, 278, 'not_taken', 'passed'),
(140, 66, 279, 'not_taken', 'passed'),
(141, 67, 268, 'not_taken', 'passed'),
(142, 67, 269, 'not_taken', 'passed'),
(143, 67, 270, 'not_taken', 'passed'),
(144, 67, 271, 'not_taken', 'passed'),
(145, 67, 272, 'not_taken', 'passed'),
(146, 67, 273, 'not_taken', 'passed'),
(147, 67, 274, 'not_taken', 'passed'),
(148, 67, 275, 'not_taken', 'passed'),
(149, 67, 276, 'not_taken', 'passed'),
(150, 67, 277, 'not_taken', 'passed'),
(151, 67, 278, 'not_taken', 'passed'),
(152, 67, 279, 'not_taken', 'passed'),
(153, 68, 268, 'not_taken', 'passed'),
(154, 68, 269, 'not_taken', 'passed'),
(155, 68, 270, 'not_taken', 'passed'),
(156, 68, 271, 'not_taken', 'passed'),
(157, 68, 272, 'not_taken', 'passed'),
(158, 68, 273, 'not_taken', 'passed'),
(159, 68, 274, 'not_taken', 'passed'),
(160, 68, 275, 'not_taken', 'passed'),
(161, 68, 276, 'not_taken', 'passed'),
(162, 68, 277, 'not_taken', 'passed'),
(163, 68, 278, 'not_taken', 'passed'),
(164, 68, 279, 'not_taken', 'passed'),
(165, 69, 268, 'not_taken', 'passed'),
(166, 69, 269, 'not_taken', 'passed'),
(167, 69, 270, 'not_taken', 'passed'),
(168, 69, 271, 'not_taken', 'passed'),
(169, 69, 272, 'not_taken', 'passed'),
(170, 69, 273, 'not_taken', 'passed'),
(171, 69, 274, 'not_taken', 'passed'),
(172, 69, 275, 'not_taken', 'passed'),
(173, 69, 276, 'not_taken', 'passed'),
(174, 69, 277, 'not_taken', 'passed'),
(175, 69, 278, 'not_taken', 'passed'),
(176, 69, 279, 'not_taken', 'passed'),
(177, 69, 280, 'not_taken', 'passed'),
(178, 70, 268, 'enrolled', 'passed'),
(179, 70, 269, 'enrolled', 'passed'),
(180, 70, 270, 'enrolled', 'passed'),
(181, 70, 271, 'enrolled', 'passed'),
(182, 70, 272, 'not_taken', 'passed'),
(183, 70, 273, 'not_taken', 'passed'),
(184, 70, 274, 'not_taken', 'passed'),
(185, 70, 275, 'not_taken', 'passed'),
(186, 70, 276, 'not_taken', 'passed'),
(187, 70, 277, 'not_taken', 'passed'),
(188, 70, 278, 'not_taken', 'passed'),
(189, 70, 279, 'not_taken', 'passed'),
(190, 70, 280, 'not_taken', 'passed'),
(191, 71, 268, 'enrolled', 'passed'),
(192, 71, 269, 'enrolled', 'passed'),
(193, 71, 270, 'enrolled', 'passed'),
(194, 71, 271, 'enrolled', 'passed'),
(195, 71, 272, 'not_taken', 'passed'),
(196, 71, 273, 'not_taken', 'passed'),
(197, 71, 274, 'not_taken', 'passed'),
(198, 71, 275, 'not_taken', 'passed'),
(199, 71, 276, 'not_taken', 'passed'),
(200, 71, 277, 'not_taken', 'passed'),
(201, 71, 278, 'not_taken', 'passed'),
(202, 71, 279, 'not_taken', 'passed'),
(203, 71, 280, 'not_taken', 'passed'),
(204, 72, 268, 'enrolled', 'passed'),
(205, 72, 269, 'enrolled', 'passed'),
(206, 72, 270, 'enrolled', 'passed'),
(207, 72, 271, 'enrolled', 'passed'),
(208, 72, 272, 'not_taken', 'passed'),
(209, 72, 273, 'not_taken', 'passed'),
(210, 72, 274, 'not_taken', 'passed'),
(211, 72, 275, 'not_taken', 'passed'),
(212, 72, 276, 'not_taken', 'passed'),
(213, 72, 277, 'not_taken', 'passed'),
(214, 72, 278, 'not_taken', 'passed'),
(215, 72, 279, 'not_taken', 'passed'),
(216, 72, 280, 'not_taken', 'passed'),
(217, 73, 268, 'enrolled', 'passed'),
(218, 73, 269, 'enrolled', 'passed'),
(219, 73, 270, 'enrolled', 'passed'),
(220, 73, 271, 'enrolled', 'passed'),
(221, 73, 272, 'not_taken', 'passed'),
(222, 73, 273, 'not_taken', 'passed'),
(223, 73, 274, 'not_taken', 'passed'),
(224, 73, 275, 'not_taken', 'passed'),
(225, 73, 276, 'not_taken', 'passed'),
(226, 73, 277, 'not_taken', 'passed'),
(227, 73, 278, 'not_taken', 'passed'),
(228, 73, 279, 'not_taken', 'passed'),
(229, 73, 280, 'not_taken', 'passed'),
(230, 74, 268, 'enrolled', 'passed'),
(231, 74, 269, 'enrolled', 'passed'),
(232, 74, 270, 'enrolled', 'passed'),
(233, 74, 271, 'enrolled', 'passed'),
(234, 74, 272, 'not_taken', 'passed'),
(235, 74, 273, 'not_taken', 'passed'),
(236, 74, 274, 'not_taken', 'passed'),
(237, 74, 275, 'not_taken', 'passed'),
(238, 74, 276, 'not_taken', 'passed'),
(239, 74, 277, 'not_taken', 'passed'),
(240, 74, 278, 'not_taken', 'passed'),
(241, 74, 279, 'not_taken', 'passed'),
(242, 74, 280, 'not_taken', 'passed'),
(243, 75, 268, 'enrolled', 'passed'),
(244, 75, 269, 'enrolled', 'passed'),
(245, 75, 270, 'enrolled', 'passed'),
(246, 75, 271, 'enrolled', 'passed'),
(247, 75, 272, 'not_taken', 'passed'),
(248, 75, 273, 'not_taken', 'passed'),
(249, 75, 274, 'not_taken', 'passed'),
(250, 75, 275, 'not_taken', 'passed'),
(251, 75, 276, 'not_taken', 'passed'),
(252, 75, 277, 'not_taken', 'passed'),
(253, 75, 278, 'not_taken', 'passed'),
(254, 75, 279, 'not_taken', 'passed'),
(255, 75, 280, 'not_taken', 'passed'),
(256, 76, 268, 'enrolled', 'passed'),
(257, 76, 269, 'enrolled', 'passed'),
(258, 76, 270, 'enrolled', 'passed'),
(259, 76, 271, 'enrolled', 'passed'),
(260, 76, 272, 'not_taken', 'passed'),
(261, 76, 273, 'not_taken', 'passed'),
(262, 76, 274, 'not_taken', 'passed'),
(263, 76, 275, 'not_taken', 'passed'),
(264, 76, 276, 'not_taken', 'passed'),
(265, 76, 277, 'not_taken', 'passed'),
(266, 76, 278, 'not_taken', 'passed'),
(267, 76, 279, 'not_taken', 'passed'),
(268, 76, 280, 'not_taken', 'passed'),
(269, 77, 268, 'enrolled', 'passed'),
(270, 77, 269, 'enrolled', 'passed'),
(271, 77, 270, 'enrolled', 'passed'),
(272, 77, 271, 'enrolled', 'passed'),
(273, 77, 272, 'not_taken', 'passed'),
(274, 77, 273, 'not_taken', 'passed'),
(275, 77, 274, 'not_taken', 'passed'),
(276, 77, 275, 'not_taken', 'passed'),
(277, 77, 276, 'not_taken', 'passed'),
(278, 77, 277, 'not_taken', 'passed'),
(279, 77, 278, 'not_taken', 'passed'),
(280, 77, 279, 'not_taken', 'passed'),
(281, 77, 280, 'not_taken', 'passed'),
(282, 78, 268, 'enrolled', 'passed'),
(283, 78, 269, 'enrolled', 'passed'),
(284, 78, 270, 'enrolled', 'passed'),
(285, 78, 271, 'enrolled', 'passed'),
(286, 78, 272, 'not_taken', 'passed'),
(287, 78, 273, 'not_taken', 'passed'),
(288, 78, 274, 'not_taken', 'passed'),
(289, 78, 275, 'not_taken', 'passed'),
(290, 78, 276, 'not_taken', 'passed'),
(291, 78, 277, 'not_taken', 'passed'),
(292, 78, 278, 'not_taken', 'passed'),
(293, 78, 279, 'not_taken', 'passed'),
(294, 78, 280, 'not_taken', 'passed'),
(295, 79, 268, 'enrolled', 'passed'),
(296, 79, 269, 'enrolled', 'passed'),
(297, 79, 270, 'enrolled', 'passed'),
(298, 79, 271, 'enrolled', 'passed'),
(299, 79, 272, 'not_taken', 'passed'),
(300, 79, 273, 'not_taken', 'passed'),
(301, 79, 274, 'not_taken', 'passed'),
(302, 79, 275, 'not_taken', 'passed'),
(303, 79, 276, 'not_taken', 'passed'),
(304, 79, 277, 'not_taken', 'passed'),
(305, 79, 278, 'not_taken', 'passed'),
(306, 79, 279, 'not_taken', 'passed'),
(307, 79, 280, 'not_taken', 'passed'),
(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, 'not_taken', 'passed'),
(322, 81, 269, 'not_taken', 'passed'),
(323, 81, 270, 'not_taken', 'passed'),
(324, 81, 271, 'not_taken', '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');

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

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

CREATE TABLE `student_discount` (
  `studisc_id` int(255) NOT NULL,
  `student_id` int(11) NOT NULL,
  `discount_id` int(11) NOT NULL,
  `sy_id` int(11) NOT NULL,
  `studisc_history` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `student_discount` (`studisc_id`, `student_id`, `discount_id`, `sy_id`, `studisc_history`) VALUES
(1, 26, 8, 0, '2026-03-18 00:21:55'),
(2, 49, 9, 0, '2026-03-22 13:14:47'),
(3, 50, 8, 0, '2026-03-22 13:41:34'),
(4, 59, 8, 0, '2026-03-22 19:32:24'),
(5, 67, 8, 0, '2026-03-27 03:40:00'),
(6, 75, 9, 0, '2026-03-30 09:40:58'),
(7, 76, 9, 0, '2026-03-30 09:49:56'),
(8, 77, 9, 0, '2026-03-30 10:14:52'),
(9, 79, 9, 0, '2026-03-30 12:47:57'),
(10, 80, 9, 0, '2026-03-30 12:53:40'),
(11, 81, 8, 0, '2026-03-30 13:05:47');

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

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

CREATE TABLE `student_monthly_payment` (
  `payment_id` int(255) NOT NULL,
  `soa_id` int(255) NOT NULL,
  `payment_amount` int(255) NOT NULL,
  `payment_date` datetime(6) NOT NULL
) 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` int(255) NOT NULL,
  `spay_image` blob NOT NULL,
  `spay_status` varchar(255) NOT NULL,
  `sy_id` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- 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
(189, 71, 270, 'Enrolled', 23),
(190, 71, 271, 'Enrolled', 23),
(191, 71, 268, 'Enrolled', 23),
(192, 71, 269, 'Enrolled', 23),
(193, 72, 271, 'Enrolled', 23),
(194, 72, 268, 'Enrolled', 23),
(195, 72, 269, 'Enrolled', 23),
(196, 72, 270, 'Enrolled', 23),
(197, 73, 268, 'Enrolled', 23),
(198, 73, 269, 'Enrolled', 23),
(199, 73, 270, 'Enrolled', 23),
(200, 73, 271, 'Enrolled', 23),
(201, 74, 268, 'Enrolled', 23),
(202, 74, 269, 'Enrolled', 23),
(203, 74, 270, 'Enrolled', 23),
(204, 74, 271, 'Enrolled', 23),
(205, 76, 268, 'Enrolled', 23),
(206, 76, 269, 'Enrolled', 23),
(207, 76, 270, 'Enrolled', 23),
(208, 76, 271, 'Enrolled', 23),
(209, 76, 268, 'Enrolled', 23),
(210, 76, 269, 'Enrolled', 23),
(211, 76, 270, 'Enrolled', 23),
(212, 76, 271, 'Enrolled', 23),
(213, 75, 268, 'Enrolled', 23),
(214, 75, 269, 'Enrolled', 23),
(215, 75, 270, 'Enrolled', 23),
(216, 75, 271, 'Enrolled', 23),
(217, 77, 268, 'Enrolled', 23),
(218, 77, 269, 'Enrolled', 23),
(219, 77, 270, 'Enrolled', 23),
(220, 77, 271, 'Enrolled', 23),
(221, 78, 270, 'Enrolled', 23),
(222, 78, 271, 'Enrolled', 23),
(223, 78, 268, 'Enrolled', 23),
(224, 78, 269, 'Enrolled', 23),
(225, 79, 270, 'Enrolled', 23),
(226, 79, 271, 'Enrolled', 23),
(227, 79, 268, 'Enrolled', 23),
(228, 79, 269, 'Enrolled', 23),
(229, 80, 270, 'Enrolled', 23),
(230, 80, 271, 'Enrolled', 23),
(231, 80, 268, 'Enrolled', 23),
(232, 80, 269, 'Enrolled', 23);

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

--
-- Table structure for table `student_transactions`
--

CREATE TABLE `student_transactions` (
  `id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `payment_method` varchar(50) DEFAULT NULL,
  `status` varchar(50) DEFAULT NULL,
  `verified_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

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

--
-- Dumping data for table `subject_prerequisite`
--

INSERT INTO `subject_prerequisite` (`prereq_id`, `subject_id`, `prerequisite_id`) VALUES
(1, 275, 269),
(2, 275, 270),
(3, 277, 275);

--
-- 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 `adminsubject`
--
ALTER TABLE `adminsubject`
  ADD PRIMARY KEY (`subject_id`);

--
-- Indexes for table `admin_payment_account`
--
ALTER TABLE `admin_payment_account`
  ADD PRIMARY KEY (`payment_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 `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 (`studisc_id`);

--
-- Indexes for table `student_monthly_payment`
--
ALTER TABLE `student_monthly_payment`
  ADD PRIMARY KEY (`payment_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 `student_transactions`
--
ALTER TABLE `student_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `student_id` (`student_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=60;

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `student_discount`
--
ALTER TABLE `student_discount`
  MODIFY `studisc_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `student_monthly_payment`
--
ALTER TABLE `student_monthly_payment`
  MODIFY `payment_id` int(255) NOT NULL AUTO_INCREMENT;

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

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

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

--
-- 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, AUTO_INCREMENT=4;

--
-- Constraints for dumped tables
--

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

--
-- Constraints for table `student_transactions`
--
ALTER TABLE `student_transactions`
  ADD CONSTRAINT `student_transactions_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `adminstudent` (`student_id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;

