-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 10 Mar 2022 pada 10.53
-- Versi server: 10.4.22-MariaDB
-- Versi PHP: 7.4.27

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

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

--
-- Struktur dari tabel `attendance_form`
--

CREATE TABLE `attendance_form` (
  `id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `attendance_id` varchar(255) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `class` varchar(255) DEFAULT NULL,
  `day` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Struktur dari tabel `attendance_list`
--

CREATE TABLE `attendance_list` (
  `id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `nim` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `day_1` varchar(255) DEFAULT 'F',
  `day_2` varchar(255) DEFAULT 'F',
  `day_3` varchar(255) DEFAULT 'F',
  `day_4` varchar(255) DEFAULT 'F',
  `day_5` varchar(255) DEFAULT 'F',
  `day_6` varchar(255) DEFAULT 'F',
  `day_7` varchar(255) DEFAULT 'F',
  `day_8` varchar(255) DEFAULT 'F',
  `day_9` varchar(255) DEFAULT 'F',
  `day_10` varchar(255) DEFAULT 'F',
  `day_11` varchar(255) DEFAULT 'F',
  `day_12` varchar(255) DEFAULT 'F',
  `day_13` varchar(255) DEFAULT 'F',
  `day_14` varchar(255) DEFAULT 'F',
  `day_15` varchar(255) DEFAULT 'F',
  `day_16` varchar(255) DEFAULT 'F',
  `total` int(11) DEFAULT 0,
  `class` varchar(255) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Struktur dari tabel `class`
--

CREATE TABLE `class` (
  `id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `username` varchar(255) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `class` varchar(255) DEFAULT '0',
  `day_1` varchar(255) DEFAULT 'F',
  `day_2` varchar(255) DEFAULT 'F',
  `day_3` varchar(255) DEFAULT 'F',
  `day_4` varchar(255) DEFAULT 'F',
  `day_5` varchar(255) DEFAULT 'F',
  `day_6` varchar(255) DEFAULT 'F',
  `day_7` varchar(255) DEFAULT 'F',
  `day_8` varchar(255) DEFAULT 'F',
  `day_9` varchar(255) DEFAULT 'F',
  `day_10` varchar(255) DEFAULT 'F',
  `day_11` varchar(255) DEFAULT 'F',
  `day_12` varchar(255) DEFAULT 'F',
  `day_13` varchar(255) DEFAULT 'F',
  `day_14` varchar(255) DEFAULT 'F',
  `day_15` varchar(255) DEFAULT 'F',
  `day_16` varchar(255) DEFAULT 'F'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Struktur dari tabel `users`
--

CREATE TABLE `users` (
  `id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `username` varchar(255) DEFAULT NULL,
  `fullname` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `cookie` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Indexes for dumped tables
--

--
-- Indeks untuk tabel `attendance_form`
--
ALTER TABLE `attendance_form`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `attendance_list`
--
ALTER TABLE `attendance_list`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `class`
--
ALTER TABLE `class`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT untuk tabel yang dibuang
--

--
-- AUTO_INCREMENT untuk tabel `attendance_form`
--
ALTER TABLE `attendance_form`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `attendance_list`
--
ALTER TABLE `attendance_list`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `class`
--
ALTER TABLE `class`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
  MODIFY `id` int(10) UNSIGNED 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 */;
