text: -- phpMyAdmin SQL Dump
  -- version 5.1.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jul 17, 2021 at 11:43 AM
  -- Server version: 10.4.19-MariaDB
  -- PHP Version: 8.0.7
  
  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: `db_satu`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_pasien`
  --
  
  CREATE TABLE `tb_pasien` (
    `id_pasien` int(11) NOT NULL,
    `provinsi` varchar(255) NOT NULL,
    `positif` int(11) NOT NULL,
    `rawat` int(11) NOT NULL,
    `sembuh` int(11) NOT NULL,
    `meninggal` int(11) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `tb_pasien`
  --
  
  INSERT INTO `tb_pasien` (`id_pasien`, `provinsi`, `positif`, `rawat`, `sembuh`, `meninggal`, `created_at`) VALUES
  (4, 'Banten', 2, 4, 3, 6, '2021-07-16 18:14:53'),
  (5, 'Jawa Barat', 1, 4, 3, 6, '2021-07-16 18:47:15'),
  (6, 'Jakarta', 1, 3, 2, 4, '2021-07-16 20:16:57');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_provinsi`
  --
  
  CREATE TABLE `tb_provinsi` (
    `id_provinsi` int(11) NOT NULL,
    `provinsi` varchar(255) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `tb_provinsi`
  --
  
  INSERT INTO `tb_provinsi` (`id_provinsi`, `provinsi`, `created_at`) VALUES
  (1, 'Banten', '2021-07-16 15:04:55'),
  (2, 'Jakarta', '2021-07-16 15:04:55'),
  (4, 'Jawa Barat', '2021-07-16 18:46:01'),
  (5, 'Jawa Timur', '2021-07-16 18:46:40'),
  (7, 'Jawa Tengah', '2021-07-16 19:01:49');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_relawan`
  --
  
  CREATE TABLE `tb_relawan` (
    `id_relawan` int(11) NOT NULL,
    `nama` varchar(255) NOT NULL,
    `alamat` varchar(255) NOT NULL,
    `provinsi` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `nohp` varchar(255) NOT NULL,
    `keahlian` varchar(255) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `tb_relawan`
  --
  
  INSERT INTO `tb_relawan` (`id_relawan`, `nama`, `alamat`, `provinsi`, `email`, `nohp`, `keahlian`, `created_at`) VALUES
  (1, 'user', 'Komplek Griya Asri Pamulang Blok E10 No.8', 'Banten', 'user@mail.com', '081299791599', 'TI', '2021-07-17 09:23:54');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tb_user`
  --
  
  CREATE TABLE `tb_user` (
    `id_user` int(11) NOT NULL,
    `nama_user` varchar(255) NOT NULL,
    `nim` int(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `tb_user`
  --
  
  INSERT INTO `tb_user` (`id_user`, `nama_user`, `nim`, `email`, `password`, `created_at`) VALUES
  (4, 'apa', 5343, 'user@mail.com', '$2y$10$DQ5bXuTHxDqbPyAH3p2zr.AVIX.n89NwstfPGplahUMsa6lzyxiHq', '2021-07-16 20:39:55');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `tb_pasien`
  --
  ALTER TABLE `tb_pasien`
    ADD PRIMARY KEY (`id_pasien`);
  
  --
  -- Indexes for table `tb_provinsi`
  --
  ALTER TABLE `tb_provinsi`
    ADD PRIMARY KEY (`id_provinsi`);
  
  --
  -- Indexes for table `tb_relawan`
  --
  ALTER TABLE `tb_relawan`
    ADD PRIMARY KEY (`id_relawan`);
  
  --
  -- Indexes for table `tb_user`
  --
  ALTER TABLE `tb_user`
    ADD PRIMARY KEY (`id_user`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `tb_pasien`
  --
  ALTER TABLE `tb_pasien`
    MODIFY `id_pasien` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `tb_provinsi`
  --
  ALTER TABLE `tb_provinsi`
    MODIFY `id_provinsi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `tb_user`
  --
  ALTER TABLE `tb_user`
    MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  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 */;
  