text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jan 08, 2021 at 10:56 AM
  -- Server version: 10.4.14-MariaDB
  -- PHP Version: 7.4.10
  
  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: `bioskop`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE `admin` (
    `id_admin` int(11) NOT NULL,
    `nama` varchar(40) NOT NULL,
    `password` varchar(40) NOT NULL,
    `foto` varchar(255) NOT NULL,
    `level` varchar(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `dtl_pemesan`
  --
  
  CREATE TABLE `dtl_pemesan` (
    `id_dtl_pemesan` int(11) NOT NULL,
    `kursi` int(11) NOT NULL,
    `id_tiket` varchar(11) NOT NULL,
    `id_pemesan` varchar(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `film`
  --
  
  CREATE TABLE `film` (
    `id_film` int(11) NOT NULL,
    `judul` varchar(40) NOT NULL,
    `genre` varchar(40) NOT NULL,
    `rating` varchar(5) NOT NULL,
    `durasi` time NOT NULL,
    `id_jadwal` varchar(10) NOT NULL,
    `sinopsis` text NOT NULL,
    `score` int(11) NOT NULL,
    `rilis` year(4) NOT NULL,
    `gambar` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `jadwal`
  --
  
  CREATE TABLE `jadwal` (
    `id_jadwal` int(10) NOT NULL,
    `tgl_mulai` date NOT NULL,
    `tgl_berhenti` date NOT NULL,
    `id_sesi` varchar(10) NOT NULL,
    `id_ruang` varchar(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `member`
  --
  
  CREATE TABLE `member` (
    `id_member` int(11) NOT NULL,
    `nama` varchar(30) NOT NULL,
    `email` varchar(30) NOT NULL,
    `password` varchar(35) NOT NULL,
    `jk` varchar(10) NOT NULL,
    `tgl_lahir` date NOT NULL,
    `foto` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pemesan`
  --
  
  CREATE TABLE `pemesan` (
    `id_pemesan` varchar(11) NOT NULL,
    `id_member` varchar(11) NOT NULL,
    `jml_tiket_pesan` int(11) NOT NULL,
    `total_harga` varchar(100) NOT NULL,
    `tgl_pesan` date NOT NULL,
    `status` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `ruang`
  --
  
  CREATE TABLE `ruang` (
    `id_ruang` int(10) NOT NULL,
    `nama` varchar(20) NOT NULL,
    `jm_kursi` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `sesi`
  --
  
  CREATE TABLE `sesi` (
    `id_sesi` int(11) NOT NULL,
    `sesi` int(11) NOT NULL,
    `mulai` time NOT NULL,
    `selesai` time NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tiket`
  --
  
  CREATE TABLE `tiket` (
    `id_tiket` int(11) NOT NULL,
    `harga` varchar(255) NOT NULL,
    `stok` int(11) NOT NULL,
    `id_film` varchar(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `admin`
  --
  ALTER TABLE `admin`
    ADD PRIMARY KEY (`id_admin`);
  
  --
  -- Indexes for table `dtl_pemesan`
  --
  ALTER TABLE `dtl_pemesan`
    ADD PRIMARY KEY (`id_dtl_pemesan`);
  
  --
  -- Indexes for table `film`
  --
  ALTER TABLE `film`
    ADD PRIMARY KEY (`id_film`);
  
  --
  -- Indexes for table `jadwal`
  --
  ALTER TABLE `jadwal`
    ADD PRIMARY KEY (`id_jadwal`);
  
  --
  -- Indexes for table `member`
  --
  ALTER TABLE `member`
    ADD PRIMARY KEY (`id_member`);
  
  --
  -- Indexes for table `pemesan`
  --
  ALTER TABLE `pemesan`
    ADD PRIMARY KEY (`id_pemesan`);
  
  --
  -- Indexes for table `ruang`
  --
  ALTER TABLE `ruang`
    ADD PRIMARY KEY (`id_ruang`);
  
  --
  -- Indexes for table `sesi`
  --
  ALTER TABLE `sesi`
    ADD PRIMARY KEY (`id_sesi`);
  
  --
  -- Indexes for table `tiket`
  --
  ALTER TABLE `tiket`
    ADD PRIMARY KEY (`id_tiket`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `admin`
  --
  ALTER TABLE `admin`
    MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `dtl_pemesan`
  --
  ALTER TABLE `dtl_pemesan`
    MODIFY `id_dtl_pemesan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
  
  --
  -- AUTO_INCREMENT for table `film`
  --
  ALTER TABLE `film`
    MODIFY `id_film` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `jadwal`
  --
  ALTER TABLE `jadwal`
    MODIFY `id_jadwal` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `member`
  --
  ALTER TABLE `member`
    MODIFY `id_member` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
  
  --
  -- AUTO_INCREMENT for table `ruang`
  --
  ALTER TABLE `ruang`
    MODIFY `id_ruang` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `sesi`
  --
  ALTER TABLE `sesi`
    MODIFY `id_sesi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `tiket`
  --
  ALTER TABLE `tiket`
    MODIFY `id_tiket` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
  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 */;
  