text: -- phpMyAdmin SQL Dump
  -- version 5.0.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Feb 13, 2022 at 09:33 AM
  -- Server version: 10.4.11-MariaDB
  -- PHP Version: 7.4.3
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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: `penjadwalan_app`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `divisions`
  --
  
  CREATE TABLE `divisions` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `divisions`
  --
  
  INSERT INTO `divisions` (`id`, `name`) VALUES
  (1, 'Bagian Umum dan Kepegawaian'),
  (2, 'Bagian Perencanaan dan Pelaporan'),
  (3, 'Bagian Keuangan'),
  (4, 'Bidang Pengelolaan Informasi Publik'),
  (5, 'Bidang Pengelolaan Komunikasi Publik'),
  (6, 'Bidang Teknologi, Informasi, dan Komunikasi'),
  (7, 'Bidang Persandian');
  
  -- --------------------------------------------------------
  
  --
  -- 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
  (22, '2014_10_12_000000_create_users_table', 1),
  (23, '2019_12_14_000001_create_personal_access_tokens_table', 1),
  (24, '2022_02_03_143032_create_divisions_table', 1),
  (25, '2022_02_03_144023_create_roles_table', 1),
  (26, '2022_02_03_144327_create_notes_table', 1),
  (27, '2022_02_03_144353_create_schedules_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `notes`
  --
  
  CREATE TABLE `notes` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `content_file` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `content_image` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `content_text` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `schedule_id` bigint(20) UNSIGNED NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) 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;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `roles`
  --
  
  CREATE TABLE `roles` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `roles`
  --
  
  INSERT INTO `roles` (`id`, `name`) VALUES
  (1, 'Administrator'),
  (2, 'Petugas'),
  (3, 'Peminjam');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `schedules`
  --
  
  CREATE TABLE `schedules` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `date` date NOT NULL,
    `start` time NOT NULL,
    `end` time NOT NULL,
    `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_borrower_id` bigint(20) UNSIGNED NOT NULL,
    `user_officer_id` bigint(20) UNSIGNED DEFAULT NULL,
    `requested_at` datetime DEFAULT NULL,
    `approved_at` datetime 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 `schedules`
  --
  
  INSERT INTO `schedules` (`id`, `date`, `start`, `end`, `description`, `status`, `user_borrower_id`, `user_officer_id`, `requested_at`, `approved_at`, `created_at`, `updated_at`) VALUES
  (1, '2022-02-10', '09:00:00', '10:00:00', 'Penting', 'pending', 3, 0, '2022-02-07 16:38:35', NULL, NULL, NULL),
  (3, '2022-02-11', '09:00:00', '21:59:13', 'Smart City', 'decline', 3, 0, '2022-02-07 16:41:56', NULL, NULL, NULL),
  (4, '2022-02-12', '11:00:00', '15:00:00', 'Damamaya', 'active', 3, 1, '2022-02-07 16:44:04', '2022-02-11 21:18:56', NULL, NULL),
  (6, '2022-02-12', '15:00:00', '16:00:00', 'Contoh Rapat', 'pending', 3, 0, '2022-02-11 18:02:44', NULL, NULL, NULL),
  (7, '2022-02-12', '08:00:00', '11:00:00', 'Cukup Penting', 'pending', 3, 0, '2022-02-11 18:05:36', NULL, NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `username` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
    `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `phone` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
    `gender` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
    `role_id` bigint(20) UNSIGNED NOT NULL,
    `division_id` bigint(20) UNSIGNED 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`, `username`, `name`, `email`, `password`, `phone`, `gender`, `role_id`, `division_id`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'Administrator', 'ariesetiadi.sm@gmail.com', '$2y$10$9zhBgSoUAtQT4h85z3KpN.M9pVMyDe7QT3iJ/jsqRlLN/.Bx9Pkua', '082146335727', 'Pria', 1, 4, NULL, '2022-02-03 08:11:23', '2022-02-03 08:11:23'),
  (2, 'petugas', 'Petugas', 'tuarimb29@gmail.com', '$2y$10$UxbmkPwJFyale3SpOHorZ.5vpoo0AfCe5dCb0xzDrxhS0y1JmDL2u', '089671800585', 'Wanita', 2, 5, NULL, '2022-02-03 08:11:23', '2022-02-03 08:11:23'),
  (3, 'peminjam', 'Suastra Setiadi', 'tuarimb11@gmail.com', '$2y$10$Cy1XY6Mpls0ct7vCQ0QkreI6jKCeuXu2AD7cgEzciCZj3Gvc3WJey', '089671800585', 'Pria', 3, 6, NULL, '2022-02-03 08:11:23', '2022-02-03 08:11:23'),
  (10, 'tuarie', 'Arie Setiadi', 'tuarie@gmail.com', '$2y$10$EBAykXQSIz3viFN6.3A61uHIlPHa3cA1avb426meB6deYnqPy5vGy', '082146335727', 'Pria', 2, 1, NULL, '2022-02-05 18:15:53', '2022-02-05 18:15:53');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `divisions`
  --
  ALTER TABLE `divisions`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `notes`
  --
  ALTER TABLE `notes`
    ADD PRIMARY KEY (`id`);
  
  --
  -- 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 `roles`
  --
  ALTER TABLE `roles`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `schedules`
  --
  ALTER TABLE `schedules`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_username_unique` (`username`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `divisions`
  --
  ALTER TABLE `divisions`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
  
  --
  -- AUTO_INCREMENT for table `notes`
  --
  ALTER TABLE `notes`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `personal_access_tokens`
  --
  ALTER TABLE `personal_access_tokens`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `roles`
  --
  ALTER TABLE `roles`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `schedules`
  --
  ALTER TABLE `schedules`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  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 */;
  