text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Nov 03, 2021 at 01:35 AM
  -- Server version: 10.4.14-MariaDB
  -- PHP Version: 7.4.10
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `dbfoto`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `galeri`
  --
  
  CREATE TABLE `galeri` (
    `id_galeri` int(11) NOT NULL,
    `gambar` varchar(50) NOT NULL,
    `author` varchar(50) NOT NULL,
    `updated_at` timestamp(6) NULL DEFAULT current_timestamp(6),
    `created_at` datetime(6) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `galeri`
  --
  
  INSERT INTO `galeri` (`id_galeri`, `gambar`, `author`, `updated_at`, `created_at`) VALUES
  (36, 'user foto keluarga.jpg', 'admin', '2021-10-27 22:01:25.000000', '2021-10-28 04:54:02.000000'),
  (37, '20211028045418.jpg', 'admin', '2021-10-27 21:54:18.000000', '2021-10-28 04:54:18.000000'),
  (39, '20211101133849.jpg', 'admin', '2021-11-01 06:38:49.000000', '2021-11-01 13:38:49.000000');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `laporan`
  --
  
  CREATE TABLE `laporan` (
    `id` int(11) NOT NULL,
    `id_produk` int(11) NOT NULL,
    `id_paket` int(11) NOT NULL,
    `namapemesanan` varchar(100) NOT NULL,
    `totaltransaksi` int(11) NOT NULL,
    `tgltransaksi` date NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
    `updated_at` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- 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_08_19_000000_create_failed_jobs_table', 1),
  (4, '2019_12_14_000001_create_personal_access_tokens_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `paketfoto`
  --
  
  CREATE TABLE `paketfoto` (
    `id` int(11) NOT NULL,
    `nama_produk` varchar(255) NOT NULL,
    `gambar` varchar(255) NOT NULL,
    `jenispaket` varchar(255) NOT NULL,
    `harga` int(11) NOT NULL,
    `keterangan` text NOT NULL,
    `author` varchar(50) NOT NULL,
    `updated_at` timestamp NOT NULL DEFAULT current_timestamp(),
    `created_at` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `paketfoto`
  --
  
  INSERT INTO `paketfoto` (`id`, `nama_produk`, `gambar`, `jenispaket`, `harga`, `keterangan`, `author`, `updated_at`, `created_at`) VALUES
  (22, 'Wisuda', 'foto wisuda.jpg', 'Paket Foto Wisuda', 300000, 'Bonus CD', 'admin', '2021-10-29 00:13:28', '2021-10-29 07:13:28'),
  (23, 'wedding', 'foto wedding.jpg', 'Paket Foto Wedding', 300000, 'Bonus CD', 'admin', '2021-10-30 06:37:57', '2021-10-30 13:37:57'),
  (24, 'Foto keluarga', 'foto keluarga.jpg', 'Paket Foto Keluarga', 300000, 'Bonus CD', 'admin', '2021-10-30 06:38:34', '2021-10-30 13:38:34');
  
  -- --------------------------------------------------------
  
  --
  -- 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 `pembayaran`
  --
  
  CREATE TABLE `pembayaran` (
    `id` int(11) NOT NULL,
    `id_produk` int(11) NOT NULL,
    `id_user` int(11) NOT NULL,
    `namapemesan` varchar(100) NOT NULL,
    `jumlahpesanan` int(11) NOT NULL,
    `foto` varchar(100) NOT NULL,
    `keterangan` text NOT NULL,
    `alamat` text NOT NULL,
    `status` varchar(50) NOT NULL,
    `buktitransfer` varchar(50) NOT NULL,
    `author` varchar(50) NOT NULL,
    `updated_at` timestamp(6) NOT NULL DEFAULT current_timestamp(6),
    `created_at` datetime(6) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `pembayaran`
  --
  
  INSERT INTO `pembayaran` (`id`, `id_produk`, `id_user`, `namapemesan`, `jumlahpesanan`, `foto`, `keterangan`, `alamat`, `status`, `buktitransfer`, `author`, `updated_at`, `created_at`) VALUES
  (32, 2, 7, 'liana', 1, 'foto wisuda.jpg', 'cetak foto', 'jakarta', 'Proses', 'IMG20211011161449.jpg', 'liana', '2021-11-02 00:18:46.000000', '2021-11-02 07:18:46.000000');
  
  -- --------------------------------------------------------
  
  --
  -- 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 `pesanan`
  --
  
  CREATE TABLE `pesanan` (
    `id` int(11) NOT NULL,
    `id_paket` int(11) NOT NULL,
    `id_user` int(11) NOT NULL,
    `namapemesan` varchar(100) NOT NULL,
    `author` varchar(100) NOT NULL,
    `keterangan` text NOT NULL,
    `alamat` text NOT NULL,
    `no_telp` varchar(20) NOT NULL,
    `tglpesanan` date NOT NULL,
    `status` varchar(100) NOT NULL,
    `buktipembayaran` text NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
    `updated_at` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `produk`
  --
  
  CREATE TABLE `produk` (
    `id` int(11) NOT NULL,
    `gambar` varchar(100) NOT NULL,
    `nama` varchar(50) NOT NULL,
    `harga` int(11) NOT NULL,
    `keterangan` text NOT NULL,
    `stok` int(11) NOT NULL,
    `author` varchar(50) NOT NULL,
    `updated_at` timestamp(6) NULL DEFAULT current_timestamp(6),
    `created_at` datetime(6) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `produk`
  --
  
  INSERT INTO `produk` (`id`, `gambar`, `nama`, `harga`, `keterangan`, `stok`, `author`, `updated_at`, `created_at`) VALUES
  (2, '4r3.jpg', 'Bingkai foto', 20000, '4r', 97, 'admin', '2021-11-02 08:12:31.000000', '2021-10-21 08:09:00.000000');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `role` varchar(50) 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`, `role`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'admin', 'admin@admin.com', NULL, '$2y$10$JunKFzAzZGOXNJoURwitCejwneY723re.8QAypfOZ6sUS/a5HJptW', NULL, '2021-10-09 03:15:23', '2021-10-09 03:15:23'),
  (2, 'user', 'user', 'user@user.com', NULL, '$2y$10$SinrOKRzL0Ub8ldkooWZ7.P3oeU6HtrMCxTa3iYGWX6yDoZSceR9S', NULL, '2021-10-09 03:42:37', '2021-10-09 03:42:37'),
  (3, 'user', 'user', 'user1@user.com', NULL, '$2y$10$Mxc2r7d/x3bhGwLhdxZWWul2PK.JORi5HV9XpopF1zKKpMigNmMe2', NULL, '2021-10-09 03:43:18', '2021-10-09 03:43:18'),
  (4, 'user2', 'user', 'user2@user.com', NULL, '$2y$10$4NZDHPA.oobQBgFyjkDl4.HuTFKUvd6UjfXiiRe18JGfPV8Ta9QUu', NULL, '2021-10-09 06:15:32', '2021-10-09 06:15:32'),
  (7, 'liana', 'user', 'liana@gmail.com', NULL, '$2y$10$6bkhJl.k4qpqm9ez6/s9YuCRMUVBdLbViiiX/2WDPndnx28foTXNO', NULL, '2021-10-21 07:05:43', '2021-10-21 07:05:43');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
  
  --
  -- Indexes for table `galeri`
  --
  ALTER TABLE `galeri`
    ADD PRIMARY KEY (`id_galeri`);
  
  --
  -- Indexes for table `laporan`
  --
  ALTER TABLE `laporan`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `paketfoto`
  --
  ALTER TABLE `paketfoto`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indexes for table `pembayaran`
  --
  ALTER TABLE `pembayaran`
    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 `pesanan`
  --
  ALTER TABLE `pesanan`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `produk`
  --
  ALTER TABLE `produk`
    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 `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `galeri`
  --
  ALTER TABLE `galeri`
    MODIFY `id_galeri` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;
  
  --
  -- AUTO_INCREMENT for table `laporan`
  --
  ALTER TABLE `laporan`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `paketfoto`
  --
  ALTER TABLE `paketfoto`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
  
  --
  -- AUTO_INCREMENT for table `pembayaran`
  --
  ALTER TABLE `pembayaran`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
  
  --
  -- 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 `pesanan`
  --
  ALTER TABLE `pesanan`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
  
  --
  -- AUTO_INCREMENT for table `produk`
  --
  ALTER TABLE `produk`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  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 */;
  