-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 18 Okt 2021 pada 06.17
-- Versi server: 10.4.11-MariaDB
-- Versi PHP: 7.4.6

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

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

--
-- Struktur dari tabel `tb_indikator_mutu`
--

CREATE TABLE `tb_indikator_mutu` (
  `id_im` int(11) NOT NULL,
  `id_pasien` int(12) NOT NULL,
  `tanggal` datetime DEFAULT NULL,
  `register` int(12) NOT NULL,
  `question1` varchar(30) NOT NULL,
  `question2` varchar(11) NOT NULL,
  `kunjungan` int(11) NOT NULL,
  `tranfusi` varchar(11) NOT NULL,
  `identifikasi` varchar(20) NOT NULL,
  `paps` varchar(60) NOT NULL,
  `los` varchar(12) NOT NULL,
  `ktd` varchar(11) NOT NULL,
  `knc` varchar(11) NOT NULL,
  `inf_con` varchar(11) NOT NULL,
  `site_mark` varchar(11) NOT NULL,
  `sc_pre` datetime DEFAULT NULL,
  `sc_post` datetime DEFAULT NULL,
  `timeinterval` int(11) DEFAULT NULL,
  `keterangan` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Struktur dari tabel `tb_logactivity`
--

CREATE TABLE `tb_logactivity` (
  `id_login` int(11) NOT NULL,
  `id_perawat` int(11) NOT NULL,
  `time_login` timestamp NOT NULL DEFAULT current_timestamp(),
  `activity` text NOT NULL,
  `masalah` text NOT NULL,
  `nama_perawat` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Struktur dari tabel `tb_perawat`
--

CREATE TABLE `tb_perawat` (
  `id_perawat` int(11) NOT NULL,
  `nip` varchar(50) NOT NULL,
  `nama_perawat` varchar(60) NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(50) NOT NULL,
  `auth` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data untuk tabel `tb_perawat`
--

INSERT INTO `tb_perawat` (`id_perawat`, `nip`, `nama_perawat`, `username`, `password`, `auth`) VALUES
(1, '19800125 200501 1 013', 'MOKHAMAD RIZA SYARIF SKep.Ns', 'mokhamadrizasyarif@gmail.com', 'emeres1980', 'user');

--
-- Indexes for dumped tables
--

--
-- Indeks untuk tabel `tb_indikator_mutu`
--
ALTER TABLE `tb_indikator_mutu`
  ADD PRIMARY KEY (`id_im`);

--
-- Indeks untuk tabel `tb_logactivity`
--
ALTER TABLE `tb_logactivity`
  ADD PRIMARY KEY (`id_login`);

--
-- Indeks untuk tabel `tb_perawat`
--
ALTER TABLE `tb_perawat`
  ADD PRIMARY KEY (`id_perawat`);

--
-- AUTO_INCREMENT untuk tabel yang dibuang
--

--
-- AUTO_INCREMENT untuk tabel `tb_indikator_mutu`
--
ALTER TABLE `tb_indikator_mutu`
  MODIFY `id_im` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `tb_logactivity`
--
ALTER TABLE `tb_logactivity`
  MODIFY `id_login` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `tb_perawat`
--
ALTER TABLE `tb_perawat`
  MODIFY `id_perawat` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
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 */;
