text: -- phpMyAdmin SQL Dump
  -- version 4.7.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Dec 13, 2018 at 11:49 AM
  -- Server version: 10.1.30-MariaDB
  -- PHP Version: 7.2.1
  
  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: `uts_cms`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `blogs`
  --
  
  CREATE TABLE `blogs` (
    `id` int(10) UNSIGNED NOT NULL,
    `judul` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `konten` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `gambar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `kategori_id` int(10) UNSIGNED NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    `deleted` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `blogs`
  --
  
  INSERT INTO `blogs` (`id`, `judul`, `konten`, `gambar`, `kategori_id`, `created_at`, `updated_at`, `deleted`) VALUES
  (1, 'aaa', '<p>aa&nbsp;&nbsp;&nbsp;&nbsp;<p><br></p></p>', '/opt/lampp/temp/php5t6Pm2', 2, '2018-05-27 16:20:38', '2018-05-27 20:46:20', 1),
  (2, 'Why', 'Drop The <b>Beat</b><br>', 'uploads/92772.jpg', 1, '2018-05-27 16:35:09', '2018-05-27 21:22:51', 0),
  (3, 'babab', '<p>babab&nbsp;&nbsp;&nbsp;&nbsp;<p><br></p></p>', 'uploads/67978.jpg', 2, '2018-05-27 16:35:47', '2018-05-27 16:35:47', 0),
  (4, 'babab', '<p>babab&nbsp;&nbsp;&nbsp;&nbsp;<p><br></p></p>', 'uploads/62809.jpg', 2, '2018-05-27 16:36:36', '2018-05-27 16:36:36', 0);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `configs`
  --
  
  CREATE TABLE `configs` (
    `id` int(10) UNSIGNED NOT NULL,
    `nama_perusahaan` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `deskripsi` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `telepon` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alamat` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
    `kota` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `kode_pos` varchar(6) COLLATE utf8mb4_unicode_ci NOT NULL,
    `facebook` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `instagram` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `logo` 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 `configs`
  --
  
  INSERT INTO `configs` (`id`, `nama_perusahaan`, `deskripsi`, `email`, `telepon`, `alamat`, `kota`, `kode_pos`, `facebook`, `instagram`, `logo`, `created_at`, `updated_at`) VALUES
  (1, 'Masjid', 'Masjid ini berdiri sejak th 1990&nbsp;', 'masjid@gmail.com', '+62 82378737387', 'Jl Ir.Soekarno no.12', 'Tegal', '522899', 'kknxlk', 'lnlkn', 'logo.png', '2018-04-01 08:28:56', '2018-12-13 03:30:19');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `galleries`
  --
  
  CREATE TABLE `galleries` (
    `id` int(10) UNSIGNED NOT NULL,
    `judul` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
    `kategori_id` int(10) UNSIGNED NOT NULL,
    `gambar` 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 `galleries`
  --
  
  INSERT INTO `galleries` (`id`, `judul`, `kategori_id`, `gambar`, `created_at`, `updated_at`) VALUES
  (1, 'aaa', 1, 'uploads/gallery/86536.jpg', '2018-05-27 23:08:00', '2018-05-27 23:08:00'),
  (2, 'coba', 2, 'uploads/gallery/98361.jpg', '2018-06-05 18:10:21', '2018-06-05 18:10:21'),
  (3, 'pengajian', 1, 'uploads/gallery/90123.jpg', '2018-12-13 03:34:58', '2018-12-13 03:34:58');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `kategoris`
  --
  
  CREATE TABLE `kategoris` (
    `id` int(10) UNSIGNED NOT NULL,
    `kategori` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    `deleted` int(1) NOT NULL DEFAULT '0'
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `kategoris`
  --
  
  INSERT INTO `kategoris` (`id`, `kategori`, `created_at`, `updated_at`, `deleted`) VALUES
  (1, 'Event', '2018-04-01 22:32:35', '2018-05-27 21:28:20', 0),
  (2, 'Tutorial', '2018-04-03 00:48:55', '2018-04-03 00:48:55', 0),
  (3, 'Seminar Nasional', '2018-05-27 21:36:55', '2018-05-27 23:18:31', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `komentars`
  --
  
  CREATE TABLE `komentars` (
    `id` int(10) UNSIGNED NOT NULL,
    `blog_id` int(10) UNSIGNED NOT NULL,
    `nama` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
    `telepon` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
    `pesan` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` int(10) UNSIGNED 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 `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(191) 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
  (39, '2014_10_12_000000_create_users_table', 1),
  (40, '2014_10_12_100000_create_password_resets_table', 1),
  (41, '2018_03_30_091400_create_configs_table', 1),
  (42, '2018_03_30_091622_create_galleries_table', 1),
  (43, '2018_03_30_091637_create_blogs_table', 1),
  (44, '2018_03_30_091653_create_kategoris_table', 1),
  (45, '2018_03_30_091713_create_komentars_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(191) 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 `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(191) 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`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'Admin', 'admin@mail.com', '$2y$10$RIW36fOu4ZZ32f3SL7db5OPPXmak0GpR7SH0zTJR569QplUBmMTs6', 'LcKETASJJOXs6oIEp7wKWYFcnmWIzRUgxy8G6bcJUwy9tujOZo6CI7KHKvEd', '2018-04-03 00:29:10', '2018-04-03 00:29:10'),
  (2, 'Bayu Adi Prasetiyo', 'bayu@gmail.com', '$2y$10$3bRR8zWX3twhJUUeI2nXee3OfkSLxwjVpTeGJFAioQ.4gcclej8Ga', 'm51nxfq9lgtWFXvpAMVlCC73D8TW3VwmmguDlgw1yVul4pR2IbDaBOGo213u', '2018-05-27 15:11:49', '2018-05-27 15:11:49'),
  (3, 'fiki', 'fiki@gmail.com', '$2y$10$GUO6q3m47wdOmBSbZfO/9utHqLhSyVvlCkuES98t2ZMXqvzvtS1c.', NULL, '2018-12-13 02:33:43', '2018-12-13 02:33:43');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `blogs`
  --
  ALTER TABLE `blogs`
    ADD PRIMARY KEY (`id`),
    ADD KEY `blogs_kategori_id_foreign` (`kategori_id`);
  
  --
  -- Indexes for table `configs`
  --
  ALTER TABLE `configs`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `galleries`
  --
  ALTER TABLE `galleries`
    ADD PRIMARY KEY (`id`),
    ADD KEY `galleries_kategori_id_foreign` (`kategori_id`);
  
  --
  -- Indexes for table `kategoris`
  --
  ALTER TABLE `kategoris`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `komentars`
  --
  ALTER TABLE `komentars`
    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 `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `blogs`
  --
  ALTER TABLE `blogs`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `configs`
  --
  ALTER TABLE `configs`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `galleries`
  --
  ALTER TABLE `galleries`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `kategoris`
  --
  ALTER TABLE `kategoris`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `komentars`
  --
  ALTER TABLE `komentars`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `blogs`
  --
  ALTER TABLE `blogs`
    ADD CONSTRAINT `blogs_kategori_id_foreign` FOREIGN KEY (`kategori_id`) REFERENCES `kategoris` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  
  --
  -- Constraints for table `galleries`
  --
  ALTER TABLE `galleries`
    ADD CONSTRAINT `galleries_kategori_id_foreign` FOREIGN KEY (`kategori_id`) REFERENCES `kategoris` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  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 */;
  