text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Sep 15, 2021 at 10:15 PM
  -- Server version: 10.4.13-MariaDB
  -- PHP Version: 7.4.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: `attendance-db`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `absensis`
  --
  
  CREATE TABLE `absensis` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `id_employee` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `absen_date` date NOT NULL,
    `check_in` time DEFAULT NULL,
    `check_out` time DEFAULT NULL,
    `id_shift` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `absensis`
  --
  
  INSERT INTO `absensis` (`id`, `id_employee`, `absen_date`, `check_in`, `check_out`, `id_shift`, `status`, `created_at`, `updated_at`) VALUES
  (4, '10', '2021-09-15', '08:00:00', '21:00:00', '2', 'Valid', '2021-09-15 10:15:32', '2021-09-15 10:17:55'),
  (6, '10', '2021-09-16', '07:50:00', '17:00:00', '2', 'Early', '2021-09-15 10:20:26', '2021-09-15 10:20:35');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `assignments`
  --
  
  CREATE TABLE `assignments` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `date` date NOT NULL,
    `id_employee` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `id_shift` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `assignments`
  --
  
  INSERT INTO `assignments` (`id`, `date`, `id_employee`, `id_shift`, `created_at`, `updated_at`) VALUES
  (5, '2021-09-15', '10', '2', '2021-09-14 23:20:37', '2021-09-14 23:20:37'),
  (7, '2021-09-16', '10', '2', '2021-09-14 23:20:37', '2021-09-14 23:20:37'),
  (8, '2021-09-19', '10', '2', '2021-09-15 10:45:39', '2021-09-15 10:45:39');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `cutis`
  --
  
  CREATE TABLE `cutis` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `id_employee` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `cuti_date` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `cutis`
  --
  
  INSERT INTO `cutis` (`id`, `id_employee`, `cuti_date`, `description`, `created_at`, `updated_at`) VALUES
  (2, '10', '2021-09-20', 'Cuti Upacara Agama', '2021-09-14 23:36:41', '2021-09-14 23:36:41'),
  (3, '10', '2021-09-21', 'Cuti Upacara Agama', '2021-09-14 23:50:07', '2021-09-14 23:50:07'),
  (4, '10', '2021-09-23', 'Acara Pernikahan', '2021-09-15 10:58:56', '2021-09-15 10:58:56');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `employees`
  --
  
  CREATE TABLE `employees` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `gender` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `religion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `address` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `employees`
  --
  
  INSERT INTO `employees` (`id`, `first_name`, `last_name`, `gender`, `religion`, `address`, `email`, `phone`, `created_at`, `updated_at`) VALUES
  (10, 'ady', 'rachmadi', 'men', NULL, 'dalung permai blok 1', 'rachmadi@gmail.com', '089', '2021-09-14 06:40:35', '2021-09-14 06:40:54'),
  (11, 'donny', 'damara', 'men', NULL, 'badung', 'donny@gmail.com', '082', '2021-09-14 07:44:45', '2021-09-14 07:44:45');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `holidays`
  --
  
  CREATE TABLE `holidays` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `holiday_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `holiday_date` date NOT NULL,
    `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `holidays`
  --
  
  INSERT INTO `holidays` (`id`, `holiday_name`, `holiday_date`, `description`, `created_at`, `updated_at`) VALUES
  (2, 'Hari Idul Fitri', '2021-09-10', 'Libur Umat Islam', '2021-09-14 08:45:39', '2021-09-14 08:45:39'),
  (3, 'Hari Kemeredekaan RI', '2021-08-17', 'Libur Nasional', '2021-09-14 08:54:30', '2021-09-14 08:54:30');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (1, '2014_10_12_000000_create_users_table', 1),
  (2, '2014_10_12_100000_create_password_resets_table', 1),
  (3, '2019_08_19_000000_create_failed_jobs_table', 1),
  (4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
  (5, '2021_09_14_025017_create_employee_models_table', 2),
  (6, '2021_09_14_034403_create_employees_table', 3),
  (7, '2021_09_14_144309_create_shifts_table', 4),
  (8, '2021_09_14_154809_create_assignments_table', 5),
  (9, '2021_09_14_163236_create_holidays_table', 6),
  (10, '2021_09_14_170938_create_cutis_table', 7),
  (11, '2021_09_15_130421_create_absensis_table', 8);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `personal_access_tokens`
  --
  
  CREATE TABLE `personal_access_tokens` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `tokenable_id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
    `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `last_used_at` timestamp NULL DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `personal_access_tokens`
  --
  
  INSERT INTO `personal_access_tokens` (`id`, `tokenable_type`, `tokenable_id`, `name`, `token`, `abilities`, `last_used_at`, `created_at`, `updated_at`) VALUES
  (13, 'App\\Models\\User', 3, 'token', '9b2cfdfe55573d6f27d5dcf606df7e57db8fdde9487d48df97769aad4c515ff4', '[\"server:update\"]', '2021-09-14 04:51:09', '2021-09-13 18:37:47', '2021-09-14 04:51:09'),
  (15, 'App\\Models\\User', 3, 'token', '1011fa8f7de39767f8f00f8346364c4edbad68bd0bea430089e07fce545e5c37', '[\"server:update\"]', '2021-09-15 11:31:27', '2021-09-14 04:52:45', '2021-09-15 11:31:27');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `shifts`
  --
  
  CREATE TABLE `shifts` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `shift_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `time_in` time NOT NULL,
    `time_out` time NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `shifts`
  --
  
  INSERT INTO `shifts` (`id`, `shift_name`, `time_in`, `time_out`, `created_at`, `updated_at`) VALUES
  (2, 'Pagi', '08:00:00', '17:00:00', '2021-09-14 07:37:10', '2021-09-14 07:37:10');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (3, 'ady', 'ady@gmail.com', NULL, '$2y$10$BF0caSvF9EpMRuZfrTvo8eC4PkMD/QobA5jK41bpvBg2LVGCqSlbC', NULL, '2021-09-12 23:19:37', '2021-09-12 23:19:37'),
  (4, 'Rachmadi Putra', 'rachmadiputra@gmail.com', NULL, '$2y$10$rVyGAdFipNjL6SEXzfKfFegxj0hJ6dWJnPxg7q4/FCyKOJl8BDRzS', NULL, '2021-09-12 23:50:57', '2021-09-12 23:50:57');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `absensis`
  --
  ALTER TABLE `absensis`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `assignments`
  --
  ALTER TABLE `assignments`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `cutis`
  --
  ALTER TABLE `cutis`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `employees`
  --
  ALTER TABLE `employees`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
  
  --
  -- Indexes for table `holidays`
  --
  ALTER TABLE `holidays`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indexes for table `personal_access_tokens`
  --
  ALTER TABLE `personal_access_tokens`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
    ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
  
  --
  -- Indexes for table `shifts`
  --
  ALTER TABLE `shifts`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `absensis`
  --
  ALTER TABLE `absensis`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `assignments`
  --
  ALTER TABLE `assignments`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `cutis`
  --
  ALTER TABLE `cutis`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `employees`
  --
  ALTER TABLE `employees`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
  
  --
  -- AUTO_INCREMENT for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `holidays`
  --
  ALTER TABLE `holidays`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
  
  --
  -- AUTO_INCREMENT for table `personal_access_tokens`
  --
  ALTER TABLE `personal_access_tokens`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
  
  --
  -- AUTO_INCREMENT for table `shifts`
  --
  ALTER TABLE `shifts`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED 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 */;
  