-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Jul 13, 2026 at 12:25 AM
-- Server version: 11.8.8-MariaDB-log
-- PHP Version: 7.2.34

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

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

--
-- Table structure for table `drpp`
--

CREATE TABLE `drpp` (
  `Idrpp` int(11) NOT NULL,
  `Idtapel` varchar(10) NOT NULL,
  `Iduser` int(11) NOT NULL,
  `Idkelas` varchar(5) NOT NULL,
  `Idmapel` int(11) NOT NULL,
  `kaldik` varchar(255) NOT NULL,
  `rpe` varchar(255) NOT NULL,
  `alokasiwaktu` varchar(255) NOT NULL,
  `cp` varchar(255) NOT NULL,
  `atp` varchar(255) NOT NULL,
  `prota` varchar(255) NOT NULL,
  `promes` varchar(255) NOT NULL,
  `kktp` varchar(255) NOT NULL,
  `modulrpp` varchar(255) NOT NULL,
  `peta_cp` varchar(255) DEFAULT NULL,
  `tglkirim` date DEFAULT NULL,
  `tglvalidasi` date DEFAULT NULL,
  `catatan` varchar(255) NOT NULL,
  `catat_pengawas` varchar(255) DEFAULT NULL,
  `validasi` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `drpp`
--


-- Table structure for table `kelas`
--

CREATE TABLE `kelas` (
  `Idkelas` varchar(5) NOT NULL,
  `nama` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `kelas`
--

INSERT INTO `kelas` (`Idkelas`, `nama`) VALUES
('7', 'VII'),
('8', 'VIII'),
('9', 'IX');

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

--
-- Table structure for table `mapel`
--

CREATE TABLE `mapel` (
  `Idmapel` int(11) NOT NULL,
  `kode` varchar(5) NOT NULL,
  `nama` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `mapel`
--

INSERT INTO `mapel` (`Idmapel`, `kode`, `nama`) VALUES
(27, 'QH', 'Al Qur`an Hadis'),
(28, 'AA', 'Akidah Akhlak'),
(29, 'FKH', 'Fikih'),
(30, 'SKI', 'Sejarah Kebudayaan Islam'),
(31, 'BA', 'Bahasa Arab'),
(32, 'PKN', 'Pendidikan Pancasila'),
(33, 'BI', 'Bahasa Indonesia'),
(34, 'MM', 'Matematika'),
(35, 'IPA', 'Ilmu Pengetahuan Alam'),
(36, 'IPS', 'Ilmu Pengetahuan Sosial'),
(37, 'BIG', 'Bahasa Inggris'),
(38, 'PJOK', 'Pendidikan Jasmani, Olahraga dan Kesehatan'),
(39, 'TIK', 'Informatika'),
(40, 'SBDP', 'Seni Budaya Prakarya'),
(41, 'BD', 'Bahasa Jawa'),
(42, 'BK', 'Bimbingan Konseling');

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

--
-- Table structure for table `print`
--

CREATE TABLE `print` (
  `Idcetak` varchar(10) NOT NULL,
  `kop1` varchar(200) NOT NULL,
  `kop2` varchar(200) NOT NULL,
  `kop3` varchar(200) NOT NULL,
  `kop4` varchar(200) NOT NULL,
  `kepala` varchar(100) NOT NULL,
  `logo` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `print`
--

INSERT INTO `print` (`Idcetak`, `kop1`, `kop2`, `kop3`, `kop4`, `kepala`, `logo`) VALUES
('C1', 'KEMENTERIAN AGAMA REPUBLIK INDONESIA', 'KANTOR KEMENTERIAN AGAMA KABUPATEN KEDIRI', 'MADRASAH TSANAWIYAH NEGERI 6 Kediri', 'Jalan Pare - Wates KM.06 Sidomulyo Kecamatan Puncu Kabupaten Kediri', 'Saiful Ali', 'logo.png');

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

--
-- Table structure for table `tapel`
--

CREATE TABLE `tapel` (
  `Idtapel` varchar(10) NOT NULL,
  `nama` varchar(20) NOT NULL,
  `semester` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tapel`
--

INSERT INTO `tapel` (`Idtapel`, `nama`, `semester`) VALUES
('25261', '2025/2026', 1),
('25262', '2025/2026', 2),
('26271', '2026/2027', 1),
('26272', '2026/2027', 2),
('27281', '2027/2028', 1),
('27282', '2027/2028', 2),
('28291', '2028/2029', 1),
('28292', '2028/2029', 2),
('29301', '2029/2030', 1),
('29302', '2029/2030', 2);

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

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `Iduser` int(19) NOT NULL,
  `nama` varchar(50) NOT NULL,
  `userguru` varchar(19) NOT NULL,
  `password` varchar(19) NOT NULL,
  `madrasah` varchar(100) NOT NULL,
  `level` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`Iduser`, `nama`, `userguru`, `password`, `madrasah`, `level`) VALUES
(1, 'MTs', 'Admin', 'super', 'MTsN', 0);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `drpp`
--
ALTER TABLE `drpp`
  ADD PRIMARY KEY (`Idrpp`);

--
-- Indexes for table `kelas`
--
ALTER TABLE `kelas`
  ADD PRIMARY KEY (`Idkelas`);

--
-- Indexes for table `mapel`
--
ALTER TABLE `mapel`
  ADD PRIMARY KEY (`Idmapel`);

--
-- Indexes for table `print`
--
ALTER TABLE `print`
  ADD PRIMARY KEY (`Idcetak`);

--
-- Indexes for table `tapel`
--
ALTER TABLE `tapel`
  ADD PRIMARY KEY (`Idtapel`);

--
-- Indexes for table `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`Iduser`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `drpp`
--
ALTER TABLE `drpp`
  MODIFY `Idrpp` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=237;

--
-- AUTO_INCREMENT for table `mapel`
--
ALTER TABLE `mapel`
  MODIFY `Idmapel` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
  MODIFY `Iduser` int(19) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=167;
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 */;
