text: -- phpMyAdmin SQL Dump
  -- version 4.6.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost:3306
  -- Generation Time: Aug 01, 2017 at 04:24 AM
  -- Server version: 10.1.9-MariaDB-log
  -- PHP Version: 7.0.10
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `relasi_imam`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `anaks`
  --
  
  CREATE TABLE `anaks` (
    `id` int(10) UNSIGNED NOT NULL,
    `nama` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `orangtua_id` int(10) UNSIGNED NOT NULL,
    `umur` varchar(12) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alamat` 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 `anaks`
  --
  
  INSERT INTO `anaks` (`id`, `nama`, `orangtua_id`, `umur`, `alamat`, `created_at`, `updated_at`) VALUES
  (1, 'indah', 1, '17 thn', 'Ciodeng Kaler', NULL, '2017-07-31 20:58:29'),
  (2, 'Sherina', 2, '17 thn', 'Sayuran', NULL, NULL),
  (3, 'Sheila', 1, '20 thn', 'Bojong', NULL, NULL),
  (4, 'Risma', 2, '17 thn', 'Ciguriang', NULL, NULL),
  (9, 'windi', 1, '17 thn', 'Bojong Sayang', NULL, NULL),
  (10, 'nadiah', 2, '21 thn', 'Cibedug', NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- 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
  (1, '2014_10_12_000000_create_users_table', 1),
  (2, '2014_10_12_100000_create_password_resets_table', 1),
  (3, '2017_07_29_015925_create_orangtuas_table', 1),
  (4, '2017_07_29_020511_create_anaks_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `orangtuas`
  --
  
  CREATE TABLE `orangtuas` (
    `id` int(10) UNSIGNED NOT NULL,
    `nama_ibu` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `nama_ayah` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `umur_ibu` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `umur_ayah` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `alamat` varchar(191) 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 `orangtuas`
  --
  
  INSERT INTO `orangtuas` (`id`, `nama_ibu`, `nama_ayah`, `umur_ibu`, `umur_ayah`, `alamat`, `created_at`, `updated_at`) VALUES
  (1, 'Sumarni', 'Sukardi', '67 thn', '87 thn', 'Bandung', NULL, '2017-07-31 18:30:55'),
  (2, 'nining', 'asep', '35 thn', '12 thn', 'cibogo', NULL, '2017-07-31 19:41:15');
  
  -- --------------------------------------------------------
  
  --
  -- 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;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `anaks`
  --
  ALTER TABLE `anaks`
    ADD PRIMARY KEY (`id`),
    ADD KEY `anaks_orangtua_id_foreign` (`orangtua_id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `orangtuas`
  --
  ALTER TABLE `orangtuas`
    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 `anaks`
  --
  ALTER TABLE `anaks`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  --
  -- AUTO_INCREMENT for table `orangtuas`
  --
  ALTER TABLE `orangtuas`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `anaks`
  --
  ALTER TABLE `anaks`
    ADD CONSTRAINT `anaks_orangtua_id_foreign` FOREIGN KEY (`orangtua_id`) REFERENCES `orangtuas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
  
  /*!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 */;
  