text: -- phpMyAdmin SQL Dump
  -- version 4.9.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost:3306
  -- Generation Time: Feb 03, 2020 at 11:02 AM
  -- Server version: 10.4.8-MariaDB-log
  -- PHP Version: 7.3.11
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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: `cbtcandy27`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `berita`
  --
  
  CREATE TABLE `berita` (
    `id_berita` int(10) NOT NULL,
    `id_mapel` int(10) NOT NULL,
    `sesi` varchar(10) NOT NULL,
    `ruang` varchar(20) NOT NULL,
    `jenis` varchar(30) NOT NULL,
    `ikut` varchar(10) DEFAULT NULL,
    `susulan` varchar(10) DEFAULT NULL,
    `no_susulan` text DEFAULT NULL,
    `mulai` varchar(10) DEFAULT NULL,
    `selesai` varchar(10) DEFAULT NULL,
    `nama_proktor` varchar(50) DEFAULT NULL,
    `nip_proktor` varchar(50) DEFAULT NULL,
    `nama_pengawas` varchar(50) DEFAULT NULL,
    `nip_pengawas` varchar(50) DEFAULT NULL,
    `catatan` text DEFAULT NULL,
    `tgl_ujian` varchar(20) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `berita`
  --
  
  INSERT INTO `berita` (`id_berita`, `id_mapel`, `sesi`, `ruang`, `jenis`, `ikut`, `susulan`, `no_susulan`, `mulai`, `selesai`, `nama_proktor`, `nip_proktor`, `nama_pengawas`, `nip_pengawas`, `catatan`, `tgl_ujian`) VALUES
  (1, 9, '1', 'R1', 'PH', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
  (2, 9, '1', 'R2', 'PH', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `file_pendukung`
  --
  
  CREATE TABLE `file_pendukung` (
    `id_file` int(11) NOT NULL,
    `id_mapel` int(11) DEFAULT 0,
    `nama_file` varchar(50) DEFAULT NULL,
    `status_file` int(1) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `file_pendukung`
  --
  
  INSERT INTO `file_pendukung` (`id_file`, `id_mapel`, `nama_file`, `status_file`) VALUES
  (101, 5, '15738521848.png', NULL),
  (102, 5, '15738521844.png', NULL),
  (103, 5, '15738521848.png', NULL),
  (104, 5, '15738521841.png', NULL),
  (105, 5, '157385218412.png', NULL),
  (106, 5, '157385218411.png', NULL),
  (107, 5, '15738521849.png', NULL),
  (108, 5, '15738521845.png', NULL),
  (109, 5, '15738521842.png', NULL),
  (110, 5, '157385218413.png', NULL),
  (111, 5, '157385218410.png', NULL),
  (112, 5, '15738521847.png', NULL),
  (113, 5, '15738521846.png', NULL),
  (114, 5, '15738521843.png', NULL),
  (115, 67, '1_1_1.jpg', NULL),
  (116, 67, '1_2_1.png', NULL),
  (117, 67, '1_1_E1.png', NULL),
  (118, 67, '1_2_E1.png', NULL),
  (119, 10, 'gambar4.jpg', NULL),
  (120, 10, 'gambar1.png', NULL),
  (121, 10, 'gambar1.png', NULL),
  (122, 10, 'gambar1.png', NULL),
  (123, 10, 'gambar1.png', NULL),
  (124, 10, 'gambar1.png', NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `jawaban`
  --
  
  CREATE TABLE `jawaban` (
    `id_jawaban` int(11) NOT NULL,
    `id_siswa` int(11) NOT NULL,
    `id_mapel` int(11) NOT NULL,
    `id_soal` int(11) NOT NULL,
    `id_ujian` int(11) NOT NULL,
    `jawaban` char(1) DEFAULT NULL,
    `jawabx` char(1) DEFAULT NULL,
    `jenis` int(1) NOT NULL,
    `esai` text DEFAULT NULL,
    `nilai_esai` int(5) NOT NULL DEFAULT 0,
    `ragu` int(1) NOT NULL DEFAULT 0
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `jenis`
  --
  
  CREATE TABLE `jenis` (
    `id_jenis` varchar(30) NOT NULL,
    `nama` varchar(50) NOT NULL,
    `status` varchar(20) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `jenis`
  --
  
  INSERT INTO `jenis` (`id_jenis`, `nama`, `status`) VALUES
  ('PH', '', 'aktif');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `jurusan`
  --
  
  CREATE TABLE `jurusan` (
    `jurusan_id` varchar(25) NOT NULL,
    `nama_jurusan_sp` varchar(100) DEFAULT NULL,
    `kurikulum` varchar(120) DEFAULT NULL,
    `jurusan_sp_id` varchar(50) DEFAULT NULL,
    `kurikulum_id` varchar(20) DEFAULT NULL,
    `sekolah_id` varchar(50) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `jurusan`
  --
  
  INSERT INTO `jurusan` (`jurusan_id`, `nama_jurusan_sp`, `kurikulum`, `jurusan_sp_id`, `kurikulum_id`, `sekolah_id`) VALUES
  ('10024', 'Teknik Mesin', 'SMP', '3c800d8b-1214-4bf5-b9b2-e46547f7c96e', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('10024210', 'Teknik Pemesinan', 'SMP', '6d94b928-63dc-48c2-b213-41ef0d60f127', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('10042270', 'Teknik Kendaraan Ringan Otomotif', 'SMP', 'd0c87641-a9db-4669-9c1c-96aca0e97af0', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('10044', 'Teknik Otomotif', 'SMP', 'e598f57f-3df9-4571-a2c4-25f3124090db', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('10044400', 'Teknik Kendaraan Ringan', 'SMP', 'd1d23270-f4a7-4fab-b6c0-99ae05d5262d', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('15052', 'Teknik Komputer dan Informatika', 'SMP', '1af78482-4246-4d90-839c-bbc215c19639', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('15052515', 'Teknik Komputer dan Jaringan', 'SMP', '676b9393-4fbf-41b1-ba25-3db356d71baf', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('35088750', 'Administrasi Perkantoran', 'SMP', '9c29bd66-a5c0-4fef-bb0f-020062fd5557', NULL, '8cce47df-aae7-4274-83cb-5af3093eab56'),
  ('SMP0000', 'Reguler', 'SMP', '66361a62-6622-11e4-900b-87e57f70ef1b', NULL, '80f33dc6-0d26-e111-8958-61d7211127e4'),
  ('SMP0001', 'Terbuka', 'SMP', '664b2920-6622-11e4-a3db-2b18c6ae1a9b', NULL, '80f33dc6-0d26-e111-8958-61d7211127e4'),
  ('SMP0002', 'kelas jauh', 'SMP', '664d8a80-6622-11e4-a91e-d3dfd5eeefe9', NULL, '80f33dc6-0d26-e111-8958-61d7211127e4'),
  ('SMP0003', 'Akselerasi', 'SMP', 'ef762a2a-361f-11e4-a111-57dea713b49c', NULL, '80f33dc6-0d26-e111-8958-61d7211127e4');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `kelas`
  --
  
  CREATE TABLE `kelas` (
    `id_kelas` varchar(11) NOT NULL,
    `level` varchar(20) NOT NULL,
    `nama` varchar(30) NOT NULL,
    `rombongan_belajar_id` varchar(50) DEFAULT NULL,
    `semester_id` varchar(10) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `level`
  --
  
  CREATE TABLE `level` (
    `kode_level` varchar(5) NOT NULL,
    `keterangan` varchar(50) NOT NULL,
    `rombongan_belajar_id` varchar(50) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `log`
  --
  
  CREATE TABLE `log` (
    `id_log` int(11) NOT NULL,
    `id_siswa` int(11) NOT NULL,
    `type` varchar(20) NOT NULL,
    `text` varchar(20) NOT NULL,
    `date` varchar(20) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `mapel`
  --
  
  CREATE TABLE `mapel` (
    `id_mapel` int(11) NOT NULL,
    `idpk` varchar(10) NOT NULL,
    `idguru` varchar(3) NOT NULL,
    `nama` varchar(50) NOT NULL,
    `jml_soal` int(5) NOT NULL,
    `jml_esai` int(5) NOT NULL,
    `tampil_pg` int(5) NOT NULL,
    `tampil_esai` int(5) NOT NULL,
    `bobot_pg` int(5) NOT NULL,
    `bobot_esai` int(5) NOT NULL,
    `level` varchar(5) NOT NULL,
    `opsi` int(1) NOT NULL,
    `kelas` varchar(255) NOT NULL,
    `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
    `status` varchar(2) NOT NULL,
    `statusujian` int(11) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `mata_pelajaran`
  --
  
  CREATE TABLE `mata_pelajaran` (
    `kode_mapel` varchar(20) NOT NULL,
    `nama_mapel` varchar(50) NOT NULL,
    `mata_pelajaran_id` varchar(10) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `nilai`
  --
  
  CREATE TABLE `nilai` (
    `id_nilai` int(11) NOT NULL,
    `id_ujian` int(11) NOT NULL,
    `id_mapel` int(11) NOT NULL,
    `id_siswa` int(11) NOT NULL,
    `kode_ujian` varchar(30) NOT NULL,
    `ujian_mulai` varchar(20) NOT NULL,
    `ujian_berlangsung` varchar(20) DEFAULT NULL,
    `ujian_selesai` varchar(20) DEFAULT NULL,
    `jml_benar` int(10) DEFAULT NULL,
    `jml_salah` int(10) DEFAULT NULL,
    `nilai_esai` varchar(10) DEFAULT NULL,
    `skor` varchar(10) DEFAULT NULL,
    `total` varchar(10) DEFAULT NULL,
    `status` int(1) DEFAULT NULL,
    `ipaddress` varchar(20) DEFAULT NULL,
    `hasil` int(2) NOT NULL,
    `jawaban` text DEFAULT NULL,
    `jawaban_esai` longtext DEFAULT NULL,
    `online` int(1) NOT NULL DEFAULT 0,
    `id_soal` longtext DEFAULT NULL,
    `id_opsi` longtext DEFAULT NULL,
    `id_esai` text DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pengawas`
  --
  
  CREATE TABLE `pengawas` (
    `id_pengawas` int(11) NOT NULL,
    `nip` varchar(50) DEFAULT NULL,
    `nama` varchar(50) DEFAULT NULL,
    `jabatan` varchar(50) DEFAULT NULL,
    `username` varchar(30) DEFAULT NULL,
    `password` text DEFAULT NULL,
    `level` varchar(10) DEFAULT NULL,
    `no_ktp` varchar(16) DEFAULT NULL,
    `tempat_lahir` varchar(30) DEFAULT NULL,
    `tgl_lahir` date DEFAULT NULL,
    `jenis_kelamin` varchar(10) DEFAULT NULL,
    `agama` varchar(10) DEFAULT NULL,
    `no_hp` varchar(13) DEFAULT NULL,
    `email` varchar(50) DEFAULT NULL,
    `alamat_jalan` varchar(255) DEFAULT NULL,
    `rt_rw` varchar(8) DEFAULT NULL,
    `dusun` varchar(50) DEFAULT NULL,
    `kelurahan` varchar(50) DEFAULT NULL,
    `kecamatan` varchar(30) DEFAULT NULL,
    `kode_pos` int(6) DEFAULT NULL,
    `nuptk` varchar(20) DEFAULT NULL,
    `bidang_studi` varchar(50) DEFAULT NULL,
    `jenis_ptk` varchar(50) DEFAULT NULL,
    `tgs_tambahan` varchar(50) DEFAULT NULL,
    `status_pegawai` varchar(50) DEFAULT NULL,
    `status_aktif` varchar(20) DEFAULT NULL,
    `status_nikah` varchar(20) DEFAULT NULL,
    `sumber_gaji` varchar(30) DEFAULT NULL,
    `ahli_lab` varchar(10) DEFAULT NULL,
    `nama_ibu` varchar(40) DEFAULT NULL,
    `nama_suami` varchar(50) DEFAULT NULL,
    `nik_suami` varchar(20) DEFAULT NULL,
    `pekerjaan` varchar(20) DEFAULT NULL,
    `tmt` date DEFAULT NULL,
    `keahlian_isyarat` varchar(10) DEFAULT NULL,
    `kewarganegaraan` varchar(10) DEFAULT NULL,
    `npwp` varchar(16) DEFAULT NULL,
    `foto` varchar(50) DEFAULT NULL,
    `ptk_id` varchar(50) DEFAULT NULL,
    `password2` text DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `pengawas`
  --
  
  INSERT INTO `pengawas` (`id_pengawas`, `nip`, `nama`, `jabatan`, `username`, `password`, `level`, `no_ktp`, `tempat_lahir`, `tgl_lahir`, `jenis_kelamin`, `agama`, `no_hp`, `email`, `alamat_jalan`, `rt_rw`, `dusun`, `kelurahan`, `kecamatan`, `kode_pos`, `nuptk`, `bidang_studi`, `jenis_ptk`, `tgs_tambahan`, `status_pegawai`, `status_aktif`, `status_nikah`, `sumber_gaji`, `ahli_lab`, `nama_ibu`, `nama_suami`, `nik_suami`, `pekerjaan`, `tmt`, `keahlian_isyarat`, `kewarganegaraan`, `npwp`, `foto`, `ptk_id`, `password2`) VALUES
  (1, '-', 'administrator', '', 'admin', '$2y$10$3fVC8VJfm8ElEv6PNLT2R.XalOF.sFq7TOgJE54p5KQm2oL/0N1Im', 'admin', '', '', '0000-00-00', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '0000-00-00', '', '', '', '', NULL, NULL),
  (227, '-', 'PAJAR SIDIK N', NULL, 'pajarsidikn', '12345', 'guru', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
  (228, '-', 'Masniah, S.Pd', NULL, 'masniah', '123456', 'guru', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pengumuman`
  --
  
  CREATE TABLE `pengumuman` (
    `id_pengumuman` int(5) NOT NULL,
    `type` varchar(30) NOT NULL,
    `judul` varchar(255) NOT NULL,
    `user` int(3) NOT NULL,
    `text` longtext NOT NULL,
    `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `pengumuman`
  --
  
  INSERT INTO `pengumuman` (`id_pengumuman`, `type`, `judul`, `user`, `text`, `date`) VALUES
  (1, 'internal', 'SELAMAT DATANG DI CANDY SCHOOL', 1, '<p>Silahkan pelajari aplikasi ini untuk keperluan Ujian Berbasis Digital. Semoga dengan aplikasi ini bisa bermanfaat untuk pendidikan.</p>\r\n<p>Jika ingin support pengembangan silahkan bisa <strong>berdonasi</strong> di web <a href=\"http://candycbt.id\">Candy CBT</a></p>\r\n<p>SALAM CANDY</p>', '2020-02-03 10:50:12');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pk`
  --
  
  CREATE TABLE `pk` (
    `id_pk` varchar(10) NOT NULL,
    `program_keahlian` varchar(50) NOT NULL,
    `jurusan_id` varchar(10) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `referensi_jurusan`
  --
  
  CREATE TABLE `referensi_jurusan` (
    `jurusan_id` varchar(10) NOT NULL,
    `nama_jurusan` varchar(100) DEFAULT NULL,
    `untuk_sma` int(1) NOT NULL,
    `untuk_smk` int(1) NOT NULL,
    `jenjang_pendidikan_id` int(1) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `ruang`
  --
  
  CREATE TABLE `ruang` (
    `kode_ruang` varchar(10) NOT NULL,
    `keterangan` varchar(30) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `savsoft_options`
  --
  
  CREATE TABLE `savsoft_options` (
    `oid` int(11) NOT NULL,
    `qid` int(11) NOT NULL,
    `q_option` text NOT NULL,
    `q_option_match` varchar(1000) DEFAULT NULL,
    `score` float NOT NULL DEFAULT 0
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `savsoft_qbank`
  --
  
  CREATE TABLE `savsoft_qbank` (
    `qid` int(11) NOT NULL,
    `question_type` varchar(100) NOT NULL DEFAULT 'Multiple Choice Single Answer',
    `question` text NOT NULL,
    `description` text NOT NULL,
    `cid` int(11) NOT NULL,
    `lid` int(11) NOT NULL,
    `no_time_served` int(11) NOT NULL DEFAULT 0,
    `no_time_corrected` int(11) NOT NULL DEFAULT 0,
    `no_time_incorrected` int(11) NOT NULL DEFAULT 0,
    `no_time_unattempted` int(11) NOT NULL DEFAULT 0
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `semester`
  --
  
  CREATE TABLE `semester` (
    `semester_id` varchar(5) NOT NULL,
    `tahun_ajaran_id` varchar(4) NOT NULL,
    `nama_semester` varchar(50) NOT NULL,
    `semester` int(1) NOT NULL,
    `periode_aktif` enum('1','0') NOT NULL,
    `tanggal_mulai` date NOT NULL,
    `tanggal_selesai` date NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `server`
  --
  
  CREATE TABLE `server` (
    `kode_server` varchar(20) NOT NULL,
    `nama_server` varchar(30) NOT NULL,
    `status` varchar(15) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `server`
  --
  
  INSERT INTO `server` (`kode_server`, `nama_server`, `status`) VALUES
  ('R1', 'SERVER R1', 'aktif'),
  ('R2', 'SERVER R2', 'aktif'),
  ('ONLINE', 'ONLINE', 'aktif'),
  ('SR01', 'SR01', 'aktif'),
  ('SR02', 'SR02', 'aktif');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `sesi`
  --
  
  CREATE TABLE `sesi` (
    `kode_sesi` varchar(10) NOT NULL,
    `nama_sesi` varchar(30) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `session`
  --
  
  CREATE TABLE `session` (
    `id` int(11) NOT NULL,
    `session_time` varchar(10) NOT NULL,
    `session_hash` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `setting`
  --
  
  CREATE TABLE `setting` (
    `id_setting` int(11) NOT NULL,
    `aplikasi` varchar(100) DEFAULT NULL,
    `kode_sekolah` varchar(10) DEFAULT NULL,
    `sekolah` varchar(50) DEFAULT NULL,
    `jenjang` varchar(5) DEFAULT NULL,
    `kepsek` varchar(50) DEFAULT NULL,
    `nip` varchar(30) DEFAULT NULL,
    `alamat` text DEFAULT NULL,
    `kecamatan` varchar(50) DEFAULT NULL,
    `kota` varchar(30) DEFAULT NULL,
    `telp` varchar(20) DEFAULT NULL,
    `fax` varchar(20) DEFAULT NULL,
    `web` varchar(50) DEFAULT NULL,
    `email` varchar(50) DEFAULT NULL,
    `logo` text DEFAULT NULL,
    `header` text DEFAULT NULL,
    `header_kartu` text DEFAULT NULL,
    `nama_ujian` text DEFAULT NULL,
    `versi` varchar(10) DEFAULT NULL,
    `ip_server` varchar(100) DEFAULT NULL,
    `waktu` varchar(50) DEFAULT NULL,
    `server` varchar(50) DEFAULT NULL,
    `id_server` varchar(50) DEFAULT NULL,
    `db_folder` varchar(50) DEFAULT NULL,
    `db_host` varchar(50) DEFAULT NULL,
    `db_user` varchar(50) DEFAULT NULL,
    `db_pass` varchar(50) DEFAULT NULL,
    `db_name` varchar(50) DEFAULT NULL,
    `sekolah_id` varchar(50) DEFAULT NULL,
    `npsn` varchar(10) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `setting`
  --
  
  INSERT INTO `setting` (`id_setting`, `aplikasi`, `kode_sekolah`, `sekolah`, `jenjang`, `kepsek`, `nip`, `alamat`, `kecamatan`, `kota`, `telp`, `fax`, `web`, `email`, `logo`, `header`, `header_kartu`, `nama_ujian`, `versi`, `ip_server`, `waktu`, `server`, `id_server`, `db_folder`, `db_host`, `db_user`, `db_pass`, `db_name`, `sekolah_id`, `npsn`) VALUES
  (1, 'CANDY SCHOOL', 'SR0', 'CANDY SCHOOL', 'SMK', 'Dedi Baidillah, S.Pd, M.Pd', '-', 'IO : 503.15/015/IV/SK-SMK/BPMPPT/2013; NPSN: 69787351 ; NSS : 402022210005<br />\r\nJL.Buyut Kaipah .Pulo Bambu Karang Bahagia Kec.Karang Bahagia Kab. Bekasi <br />\r\n', 'Karang Bahagia      ', 'Bekasi', '021 123 123 123', '021 95878050', 'smkhsagung.sch.id', 'smkhsagung@gmail.com', 'dist/img/logo6.png', '', 'KARTU PESERTA\nUJIAN SEKOLAH BERBASIS KOMPUTER', 'PENILAIAN HARIAN', '2.5', 'http://192.168.0.200/candycbt', 'Asia/Jakarta', 'pusat', 'SR01', '', 'localhost', 'root', '', 'cbtcandy27v', '8cce47df-aae7-4274-83cb-5af3093eab56', '69787351');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `sinkron`
  --
  
  CREATE TABLE `sinkron` (
    `nama_data` varchar(50) NOT NULL,
    `jumlah` varchar(50) DEFAULT NULL,
    `tanggal` varchar(50) DEFAULT NULL,
    `status_sinkron` int(11) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `sinkron`
  --
  
  INSERT INTO `sinkron` (`nama_data`, `jumlah`, `tanggal`, `status_sinkron`) VALUES
  ('DATA1', '', '', 0),
  ('DATA2', '', '', 0),
  ('DATA3', '', '', 0),
  ('DATA4', '', '', 0),
  ('DATA5', '', '', 0),
  ('DATA6', '', '', 0);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `siswa`
  --
  
  CREATE TABLE `siswa` (
    `id_siswa` int(11) NOT NULL,
    `id_kelas` varchar(11) DEFAULT NULL,
    `idpk` varchar(10) DEFAULT NULL,
    `nis` varchar(30) DEFAULT NULL,
    `no_peserta` varchar(30) DEFAULT NULL,
    `nama` varchar(50) DEFAULT NULL,
    `level` varchar(5) DEFAULT NULL,
    `ruang` varchar(10) DEFAULT NULL,
    `sesi` int(2) DEFAULT NULL,
    `username` varchar(50) DEFAULT NULL,
    `password` text DEFAULT NULL,
    `foto` varchar(255) DEFAULT NULL,
    `server` varchar(255) DEFAULT NULL,
    `jenis_kelamin` varchar(30) DEFAULT NULL,
    `tempat_lahir` varchar(100) DEFAULT NULL,
    `tanggal_lahir` date DEFAULT NULL,
    `agama` varchar(10) DEFAULT NULL,
    `kebutuhan_khusus` varchar(20) DEFAULT NULL,
    `alamat` text DEFAULT NULL,
    `rt` varchar(5) DEFAULT NULL,
    `rw` varchar(5) DEFAULT NULL,
    `dusun` varchar(100) DEFAULT NULL,
    `kelurahan` varchar(100) DEFAULT NULL,
    `kecamatan` varchar(100) DEFAULT NULL,
    `kode_pos` int(10) DEFAULT NULL,
    `jenis_tinggal` varchar(100) DEFAULT NULL,
    `alat_transportasi` varchar(100) DEFAULT NULL,
    `hp` varchar(15) DEFAULT NULL,
    `email` varchar(150) DEFAULT NULL,
    `skhun` int(11) DEFAULT NULL,
    `no_kps` varchar(50) DEFAULT NULL,
    `nama_ayah` varchar(150) DEFAULT NULL,
    `tahun_lahir_ayah` int(4) DEFAULT NULL,
    `pendidikan_ayah` varchar(50) DEFAULT NULL,
    `pekerjaan_ayah` varchar(100) DEFAULT NULL,
    `penghasilan_ayah` varchar(100) DEFAULT NULL,
    `nohp_ayah` varchar(15) DEFAULT NULL,
    `nama_ibu` varchar(150) DEFAULT NULL,
    `tahun_lahir_ibu` int(4) DEFAULT NULL,
    `pendidikan_ibu` varchar(50) DEFAULT NULL,
    `pekerjaan_ibu` varchar(100) DEFAULT NULL,
    `penghasilan_ibu` varchar(100) DEFAULT NULL,
    `nohp_ibu` int(15) DEFAULT NULL,
    `nama_wali` varchar(150) DEFAULT NULL,
    `tahun_lahir_wali` int(4) DEFAULT NULL,
    `pendidikan_wali` varchar(50) DEFAULT NULL,
    `pekerjaan_wali` varchar(100) DEFAULT NULL,
    `penghasilan_wali` varchar(50) DEFAULT NULL,
    `angkatan` int(5) DEFAULT NULL,
    `nisn` varchar(50) DEFAULT NULL,
    `peserta_didik_id` varchar(50) DEFAULT NULL,
    `semester_id` varchar(10) DEFAULT NULL,
    `rombongan_belajar_id` varchar(50) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `soal`
  --
  
  CREATE TABLE `soal` (
    `id_soal` int(11) NOT NULL,
    `id_mapel` int(11) NOT NULL,
    `nomor` int(5) DEFAULT NULL,
    `soal` longtext DEFAULT NULL,
    `jenis` int(1) DEFAULT NULL,
    `pilA` longtext DEFAULT NULL,
    `pilB` longtext DEFAULT NULL,
    `pilC` longtext DEFAULT NULL,
    `pilD` longtext DEFAULT NULL,
    `pilE` longtext DEFAULT NULL,
    `jawaban` varchar(1) DEFAULT NULL,
    `file` mediumtext DEFAULT NULL,
    `file1` mediumtext DEFAULT NULL,
    `fileA` mediumtext DEFAULT NULL,
    `fileB` mediumtext DEFAULT NULL,
    `fileC` mediumtext DEFAULT NULL,
    `fileD` mediumtext DEFAULT NULL,
    `fileE` mediumtext DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `token`
  --
  
  CREATE TABLE `token` (
    `id_token` int(11) NOT NULL,
    `token` varchar(6) NOT NULL,
    `time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
    `masa_berlaku` time NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `token`
  --
  
  INSERT INTO `token` (`id_token`, `token`, `time`, `masa_berlaku`) VALUES
  (1, 'GQESKH', '2020-02-02 19:09:56', '00:15:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `ujian`
  --
  
  CREATE TABLE `ujian` (
    `id_ujian` int(5) NOT NULL,
    `id_pk` varchar(10) NOT NULL,
    `id_guru` int(5) NOT NULL,
    `id_mapel` int(5) NOT NULL,
    `kode_ujian` varchar(30) DEFAULT NULL,
    `nama` varchar(30) NOT NULL,
    `jml_soal` int(5) NOT NULL,
    `jml_esai` int(5) NOT NULL,
    `bobot_pg` int(5) NOT NULL,
    `opsi` int(1) NOT NULL,
    `bobot_esai` int(5) NOT NULL,
    `tampil_pg` int(5) NOT NULL,
    `tampil_esai` int(5) NOT NULL,
    `lama_ujian` int(5) NOT NULL,
    `tgl_ujian` datetime NOT NULL,
    `tgl_selesai` datetime NOT NULL,
    `waktu_ujian` time DEFAULT NULL,
    `selesai_ujian` time DEFAULT NULL,
    `level` varchar(5) NOT NULL,
    `kelas` varchar(255) NOT NULL,
    `sesi` varchar(1) DEFAULT NULL,
    `acak` int(1) NOT NULL,
    `token` int(1) NOT NULL,
    `status` int(1) DEFAULT NULL,
    `hasil` int(1) DEFAULT NULL,
    `kkm` varchar(128) DEFAULT NULL,
    `ulang` int(2) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `berita`
  --
  ALTER TABLE `berita`
    ADD PRIMARY KEY (`id_berita`);
  
  --
  -- Indexes for table `file_pendukung`
  --
  ALTER TABLE `file_pendukung`
    ADD PRIMARY KEY (`id_file`);
  
  --
  -- Indexes for table `jawaban`
  --
  ALTER TABLE `jawaban`
    ADD PRIMARY KEY (`id_jawaban`);
  
  --
  -- Indexes for table `jenis`
  --
  ALTER TABLE `jenis`
    ADD PRIMARY KEY (`id_jenis`);
  
  --
  -- Indexes for table `jurusan`
  --
  ALTER TABLE `jurusan`
    ADD PRIMARY KEY (`jurusan_id`);
  
  --
  -- Indexes for table `kelas`
  --
  ALTER TABLE `kelas`
    ADD PRIMARY KEY (`id_kelas`);
  
  --
  -- Indexes for table `level`
  --
  ALTER TABLE `level`
    ADD PRIMARY KEY (`kode_level`);
  
  --
  -- Indexes for table `log`
  --
  ALTER TABLE `log`
    ADD PRIMARY KEY (`id_log`);
  
  --
  -- Indexes for table `mapel`
  --
  ALTER TABLE `mapel`
    ADD PRIMARY KEY (`id_mapel`);
  
  --
  -- Indexes for table `mata_pelajaran`
  --
  ALTER TABLE `mata_pelajaran`
    ADD PRIMARY KEY (`kode_mapel`);
  
  --
  -- Indexes for table `nilai`
  --
  ALTER TABLE `nilai`
    ADD PRIMARY KEY (`id_nilai`);
  
  --
  -- Indexes for table `pengawas`
  --
  ALTER TABLE `pengawas`
    ADD PRIMARY KEY (`id_pengawas`);
  
  --
  -- Indexes for table `pengumuman`
  --
  ALTER TABLE `pengumuman`
    ADD PRIMARY KEY (`id_pengumuman`);
  
  --
  -- Indexes for table `pk`
  --
  ALTER TABLE `pk`
    ADD PRIMARY KEY (`id_pk`);
  
  --
  -- Indexes for table `referensi_jurusan`
  --
  ALTER TABLE `referensi_jurusan`
    ADD PRIMARY KEY (`jurusan_id`);
  
  --
  -- Indexes for table `ruang`
  --
  ALTER TABLE `ruang`
    ADD PRIMARY KEY (`kode_ruang`);
  
  --
  -- Indexes for table `savsoft_options`
  --
  ALTER TABLE `savsoft_options`
    ADD PRIMARY KEY (`oid`);
  
  --
  -- Indexes for table `savsoft_qbank`
  --
  ALTER TABLE `savsoft_qbank`
    ADD PRIMARY KEY (`qid`);
  
  --
  -- Indexes for table `semester`
  --
  ALTER TABLE `semester`
    ADD PRIMARY KEY (`semester_id`);
  
  --
  -- Indexes for table `sesi`
  --
  ALTER TABLE `sesi`
    ADD PRIMARY KEY (`kode_sesi`);
  
  --
  -- Indexes for table `session`
  --
  ALTER TABLE `session`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `setting`
  --
  ALTER TABLE `setting`
    ADD PRIMARY KEY (`id_setting`);
  
  --
  -- Indexes for table `sinkron`
  --
  ALTER TABLE `sinkron`
    ADD PRIMARY KEY (`nama_data`);
  
  --
  -- Indexes for table `siswa`
  --
  ALTER TABLE `siswa`
    ADD PRIMARY KEY (`id_siswa`);
  
  --
  -- Indexes for table `soal`
  --
  ALTER TABLE `soal`
    ADD PRIMARY KEY (`id_soal`);
  
  --
  -- Indexes for table `token`
  --
  ALTER TABLE `token`
    ADD PRIMARY KEY (`id_token`);
  
  --
  -- Indexes for table `ujian`
  --
  ALTER TABLE `ujian`
    ADD PRIMARY KEY (`id_ujian`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `berita`
  --
  ALTER TABLE `berita`
    MODIFY `id_berita` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `file_pendukung`
  --
  ALTER TABLE `file_pendukung`
    MODIFY `id_file` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=125;
  
  --
  -- AUTO_INCREMENT for table `jawaban`
  --
  ALTER TABLE `jawaban`
    MODIFY `id_jawaban` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `log`
  --
  ALTER TABLE `log`
    MODIFY `id_log` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `mapel`
  --
  ALTER TABLE `mapel`
    MODIFY `id_mapel` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `nilai`
  --
  ALTER TABLE `nilai`
    MODIFY `id_nilai` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `pengawas`
  --
  ALTER TABLE `pengawas`
    MODIFY `id_pengawas` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=229;
  
  --
  -- AUTO_INCREMENT for table `pengumuman`
  --
  ALTER TABLE `pengumuman`
    MODIFY `id_pengumuman` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `savsoft_options`
  --
  ALTER TABLE `savsoft_options`
    MODIFY `oid` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `savsoft_qbank`
  --
  ALTER TABLE `savsoft_qbank`
    MODIFY `qid` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `session`
  --
  ALTER TABLE `session`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `setting`
  --
  ALTER TABLE `setting`
    MODIFY `id_setting` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `siswa`
  --
  ALTER TABLE `siswa`
    MODIFY `id_siswa` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `soal`
  --
  ALTER TABLE `soal`
    MODIFY `id_soal` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `token`
  --
  ALTER TABLE `token`
    MODIFY `id_token` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `ujian`
  --
  ALTER TABLE `ujian`
    MODIFY `id_ujian` int(5) NOT NULL AUTO_INCREMENT;
  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 */;
  