text: -- --------------------------------------------------------
  -- Host:                         localhost
  -- Server version:               5.7.19 - MySQL Community Server (GPL)
  -- Server OS:                    Win64
  -- HeidiSQL Version:             9.4.0.5125
  -- --------------------------------------------------------
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET NAMES utf8 */;
  /*!50503 SET NAMES utf8mb4 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  
  
  -- Dumping database structure for dingon
  CREATE DATABASE IF NOT EXISTS `dingon` /*!40100 DEFAULT CHARACTER SET latin1 */;
  USE `dingon`;
  
  -- Dumping structure for table dingon.comments
  CREATE TABLE IF NOT EXISTS `comments` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `user_id` int(10) unsigned NOT NULL,
    `target_donation_id` int(10) unsigned NOT NULL,
    `isi_komen` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `comments_user_id_foreign` (`user_id`),
    KEY `comments_target_donation_id_foreign` (`target_donation_id`),
    CONSTRAINT `comments_target_donation_id_foreign` FOREIGN KEY (`target_donation_id`) REFERENCES `target_donations` (`id`) ON DELETE CASCADE,
    CONSTRAINT `comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- Dumping data for table dingon.comments: ~0 rows (approximately)
  DELETE FROM `comments`;
  /*!40000 ALTER TABLE `comments` DISABLE KEYS */;
  /*!40000 ALTER TABLE `comments` ENABLE KEYS */;
  
  -- Dumping structure for table dingon.donations
  CREATE TABLE IF NOT EXISTS `donations` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `user_id` int(10) unsigned NOT NULL,
    `target_donation_id` int(10) unsigned NOT NULL,
    `nominal` int(11) NOT NULL,
    `no_rek` int(11) NOT NULL,
    `rekening` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- Dumping data for table dingon.donations: ~1 rows (approximately)
  DELETE FROM `donations`;
  /*!40000 ALTER TABLE `donations` DISABLE KEYS */;
  INSERT INTO `donations` (`id`, `user_id`, `target_donation_id`, `nominal`, `no_rek`, `rekening`, `created_at`, `updated_at`) VALUES
  	(1, 1, 1, 100000, 621231341, 'BCA', NULL, NULL);
  /*!40000 ALTER TABLE `donations` ENABLE KEYS */;
  
  -- Dumping structure for table dingon.migrations
  CREATE TABLE IF NOT EXISTS `migrations` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- Dumping data for table dingon.migrations: ~6 rows (approximately)
  DELETE FROM `migrations`;
  /*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
  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, '2018_04_27_153225_create_profiles_table', 1),
  	(4, '2018_04_27_153747_create_donations_table', 1),
  	(5, '2018_04_27_153936_create_target_donation_table', 1),
  	(6, '2018_04_27_160559_create_comments_table', 1);
  /*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
  
  -- Dumping structure for table dingon.password_resets
  CREATE TABLE IF NOT EXISTS `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,
    KEY `password_resets_email_index` (`email`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- Dumping data for table dingon.password_resets: ~0 rows (approximately)
  DELETE FROM `password_resets`;
  /*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
  /*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
  
  -- Dumping structure for table dingon.profiles
  CREATE TABLE IF NOT EXISTS `profiles` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `user_id` int(10) unsigned NOT NULL,
    `domisili` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `no_telp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `profiles_user_id_foreign` (`user_id`),
    CONSTRAINT `profiles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- Dumping data for table dingon.profiles: ~0 rows (approximately)
  DELETE FROM `profiles`;
  /*!40000 ALTER TABLE `profiles` DISABLE KEYS */;
  /*!40000 ALTER TABLE `profiles` ENABLE KEYS */;
  
  -- Dumping structure for table dingon.target_donations
  CREATE TABLE IF NOT EXISTS `target_donations` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `nama_target` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `umur` int(11) NOT NULL,
    `pekerjaan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `foto` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `gender` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `no_telp` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `domisili` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alamat_lengkap` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `deskripsi` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `latitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `longitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- Dumping data for table dingon.target_donations: ~0 rows (approximately)
  DELETE FROM `target_donations`;
  /*!40000 ALTER TABLE `target_donations` DISABLE KEYS */;
  INSERT INTO `target_donations` (`id`, `nama_target`, `umur`, `pekerjaan`, `foto`, `gender`, `no_telp`, `domisili`, `alamat_lengkap`, `deskripsi`, `latitude`, `longitude`, `created_at`, `updated_at`) VALUES
  	(1, 'Ibu Mina', 107, 'Jualan', 'foto.jpg', 'Perempuan', '08788123', 'Depok', 'Jl Mekarjaya Samping Alpa', 'Ibu Mina adalah seorang parubaya yang masih berjualan roti yang umurnya sudah tidak lagi muda, barang kali ada yang mau membantunya, terimakasih', '-', '-', NULL, NULL);
  /*!40000 ALTER TABLE `target_donations` ENABLE KEYS */;
  
  -- Dumping structure for table dingon.users
  CREATE TABLE IF NOT EXISTS `users` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `role` 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,
    PRIMARY KEY (`id`),
    UNIQUE KEY `users_email_unique` (`email`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- Dumping data for table dingon.users: ~1 rows (approximately)
  DELETE FROM `users`;
  /*!40000 ALTER TABLE `users` DISABLE KEYS */;
  INSERT INTO `users` (`id`, `name`, `email`, `password`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
  	(1, 'Irvan Fathul Huda', 'irvanfathul@gmail.com', '$2y$10$jl6W4dypPcvyA5JsfsBAnOS1X9XLqqX3/YtsiAClqIEPYDV8TpbTS', 'Pendonasi', NULL, '2018-04-28 17:42:36', '2018-04-28 17:42:36');
  /*!40000 ALTER TABLE `users` ENABLE KEYS */;
  
  /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
  /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  