text: -- phpMyAdmin SQL Dump
  -- version 4.9.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jan 03, 2020 at 05:48 AM
  -- Server version: 10.4.8-MariaDB
  -- PHP Version: 7.3.11
  
  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: `helpdesk`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `incidents`
  --
  
  CREATE TABLE `incidents` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `text` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `location` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `phone` varchar(14) COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `stage_id` int(11) NOT NULL,
    `resolve_text` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `resolve_date` date 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 `incidents`
  --
  
  INSERT INTO `incidents` (`id`, `text`, `location`, `phone`, `user_key`, `stage_id`, `resolve_text`, `resolve_date`, `created_at`, `updated_at`) VALUES
  (1, 'Test incident', 'Office plant 2', '7878', '1', 1, NULL, NULL, '2020-01-02 21:14:55', '2020-01-02 21:14:55'),
  (2, 'Test Incident 1', 'Office Plan 2', '7898', '1', 1, NULL, NULL, '2020-01-02 21:24:16', '2020-01-02 21:24:16'),
  (3, 'Test Incident 1', 'Office Plan 2', '7898', '1', 1, NULL, NULL, '2020-01-02 21:24:43', '2020-01-02 21:24:43'),
  (4, 'Test Incident 2', 'Office Plan 2', '7898', '1', 1, NULL, NULL, '2020-01-02 21:27:41', '2020-01-02 21:27:41'),
  (5, 'Test Incident 3', 'Office Plan 2', '7898', '1', 1, NULL, NULL, '2020-01-02 21:30:42', '2020-01-02 21:30:42');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `incident_attachments`
  --
  
  CREATE TABLE `incident_attachments` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `file_location` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alias` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `incident_id` int(11) 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 `incident_attachments`
  --
  
  INSERT INTO `incident_attachments` (`id`, `file_name`, `file_location`, `alias`, `incident_id`, `created_at`, `updated_at`) VALUES
  (1, '030120200414551cuti.xlsx', 'files/030120200414551cuti.xlsx', 'cuti.xlsx', 1, '2020-01-02 21:14:55', '2020-01-02 21:14:55'),
  (2, '030120200424171cuti (1).xlsx', 'files/030120200424171cuti (1).xlsx', 'cuti (1).xlsx', 2, '2020-01-02 21:24:17', '2020-01-02 21:24:17'),
  (3, '030120200424431cuti (1).xlsx', 'files/030120200424431cuti (1).xlsx', 'cuti (1).xlsx', 3, '2020-01-02 21:24:43', '2020-01-02 21:24:43'),
  (4, '030120200427411Template Salary Manual.xlsx', 'files/030120200427411Template Salary Manual.xlsx', 'Template Salary Manual.xlsx', 4, '2020-01-02 21:27:41', '2020-01-02 21:27:41'),
  (5, '030120200430421cuti (1).xlsx', 'files/030120200430421cuti (1).xlsx', 'cuti (1).xlsx', 5, '2020-01-02 21:30:42', '2020-01-02 21:30:42'),
  (6, '030120200430421cuti.xlsx', 'files/030120200430421cuti.xlsx', 'cuti.xlsx', 5, '2020-01-02 21:30:42', '2020-01-02 21:30:42');
  
  -- --------------------------------------------------------
  
  --
  -- 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_12_21_072327_create_helpdesk_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- 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 `requests`
  --
  
  CREATE TABLE `requests` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `business_need` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `business_requirment` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `business_value` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `phone` varchar(12) COLLATE utf8mb4_unicode_ci NOT NULL,
    `stage_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `resolve_date` date NOT 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 `request_attachments`
  --
  
  CREATE TABLE `request_attachments` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `file_location` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `request_id` int(11) NOT 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 `stages`
  --
  
  CREATE TABLE `stages` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `text` varchar(255) COLLATE utf8mb4_unicode_ci 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 `stages`
  --
  
  INSERT INTO `stages` (`id`, `text`, `description`, `created_at`, `updated_at`) VALUES
  (1, 'Open', 'Incident sedang ditangani', '2020-01-02 17:00:00', '2020-01-02 17:00:00'),
  (2, 'Close', 'Incident selesai ditangani', '2020-01-02 17:00:00', '2020-01-02 17:00:00');
  
  -- --------------------------------------------------------
  
  --
  -- 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
  (1, 'admin', 'admin@test.com', NULL, '$2y$10$cgwNUUbrW5dMceKZTs/jT.e2qb.COhtE0n43mVt4rewI2F.rSvLUG', NULL, '2020-01-01 19:05:46', '2020-01-01 21:23:02');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `incidents`
  --
  ALTER TABLE `incidents`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `incident_attachments`
  --
  ALTER TABLE `incident_attachments`
    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 `requests`
  --
  ALTER TABLE `requests`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `request_attachments`
  --
  ALTER TABLE `request_attachments`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `stages`
  --
  ALTER TABLE `stages`
    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 `incidents`
  --
  ALTER TABLE `incidents`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `incident_attachments`
  --
  ALTER TABLE `incident_attachments`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `requests`
  --
  ALTER TABLE `requests`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `request_attachments`
  --
  ALTER TABLE `request_attachments`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `stages`
  --
  ALTER TABLE `stages`
    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=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 */;
  