text: -- phpMyAdmin SQL Dump
  -- version 5.1.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jul 05, 2021 at 06:24 PM
  -- Server version: 10.4.18-MariaDB
  -- PHP Version: 7.4.18
  
  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: `simi_igd`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE `admin` (
    `id` int(11) NOT NULL,
    `username` varchar(255) DEFAULT NULL,
    `password` varchar(255) DEFAULT NULL,
    `name` varchar(255) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `admin`
  --
  
  INSERT INTO `admin` (`id`, `username`, `password`, `name`) VALUES
  (1, 'admin', 'admin', NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pasien`
  --
  
  CREATE TABLE `pasien` (
    `id` int(11) NOT NULL,
    `no_rm` varchar(255) DEFAULT NULL,
    `nama` varchar(255) DEFAULT NULL,
    `no_identitas` varchar(255) DEFAULT NULL,
    `tempat_lahir` varchar(255) DEFAULT NULL,
    `tanggal_lahir` varchar(255) DEFAULT NULL,
    `jenis_kelamin` varchar(255) DEFAULT NULL,
    `kebangsaan` varchar(255) DEFAULT NULL,
    `agama` varchar(255) DEFAULT NULL,
    `status_menikah` varchar(255) DEFAULT NULL,
    `pekerjaan` varchar(255) DEFAULT NULL,
    `alamat` varchar(255) DEFAULT NULL,
    `no_telp` varchar(255) DEFAULT NULL,
    `jenis_pasien` varchar(255) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `penanggung_jawab`
  --
  
  CREATE TABLE `penanggung_jawab` (
    `id` int(11) NOT NULL,
    `pasien_id` int(11) DEFAULT NULL,
    `nama` varchar(255) DEFAULT NULL,
    `no_identitas` varchar(255) DEFAULT NULL,
    `alamat` varchar(255) DEFAULT NULL,
    `no_telp` varchar(255) DEFAULT NULL,
    `hubungan` varchar(255) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `admin`
  --
  ALTER TABLE `admin`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `pasien`
  --
  ALTER TABLE `pasien`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `penanggung_jawab`
  --
  ALTER TABLE `penanggung_jawab`
    ADD PRIMARY KEY (`id`),
    ADD KEY `pasien_id` (`pasien_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `admin`
  --
  ALTER TABLE `admin`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `pasien`
  --
  ALTER TABLE `pasien`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `penanggung_jawab`
  --
  ALTER TABLE `penanggung_jawab`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `penanggung_jawab`
  --
  ALTER TABLE `penanggung_jawab`
    ADD CONSTRAINT `penanggung_jawab_ibfk_1` FOREIGN KEY (`pasien_id`) REFERENCES `pasien` (`id`);
  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 */;
  