text: -- phpMyAdmin SQL Dump
  -- version 5.1.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: May 11, 2021 at 11:36 AM
  -- Server version: 10.4.18-MariaDB
  -- PHP Version: 8.0.5
  
  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: `livewire_pos`
  --
  
  -- --------------------------------------------------------
  
  --
  -- 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 `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, '2021_05_06_141135_create_products_table', 2),
  (17, '2021_05_11_065349_create_transactions_table', 3),
  (18, '2021_05_11_065430_create_product_transaction', 3);
  
  -- --------------------------------------------------------
  
  --
  -- 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 `products`
  --
  
  CREATE TABLE `products` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `qty` int(11) NOT NULL,
    `price` 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 `products`
  --
  
  INSERT INTO `products` (`id`, `name`, `image`, `description`, `qty`, `price`, `created_at`, `updated_at`) VALUES
  (3, 'Baju Anak', 'b2e3d881fb0dd719eef1adc310b5b9af', 'Baju Anak', 20, 50000, '2021-05-06 23:13:10', '2021-05-06 23:13:10'),
  (4, 'Kemeja Pria', '21fc56df3e2125c8edc2152720679472', 'Kemeja pria lengan pendek', 5, 125000, '2021-05-06 23:19:51', '2021-05-11 02:33:39'),
  (5, 'Baju Muslim Wanita', '3aa6bedad12256a8e13425597ab69e64', 'Baju muslim kimora', 12, 175000, '2021-05-07 04:44:41', '2021-05-07 04:44:41'),
  (6, 'Baju Batik wanita', '9949a42c749f6729a52db4afdd8ce21a', 'Baju batik wanita warna biru gelap', 8, 85000, '2021-05-07 04:45:34', '2021-05-07 04:45:34'),
  (7, 'Kemeja Biru pria', '1cf3a7e38958670bc8076be2bf28e412', 'Kemeja Benhil Wanra biru', 10, 150000, '2021-05-07 06:22:14', '2021-05-07 06:22:14'),
  (8, 'Kaos windows', 'd6e80d92425aa4242cdee566d2d8caae', 'Kaos windows', 12, 80000, '2021-05-07 06:29:44', '2021-05-07 06:29:44'),
  (9, 'Baju Muslim Pria', 'cf9b86f242499dfecb8f0780f4adad8a', 'baju muslim pria putih', 15, 120000, '2021-05-07 07:06:42', '2021-05-07 07:06:42'),
  (10, 'Jaket denim pria', '6b881a5b79b4b84d28714ad54f11191f', 'jaket denim pria hijau', 5, 240000, '2021-05-07 07:08:58', '2021-05-07 07:08:58'),
  (11, 'Baju muslim wanita kimora', 'd5ded2b28ec159be3833854789af800f', 'Baju muslim kimora merah kuning', 6, 180000, '2021-05-07 07:09:58', '2021-05-11 02:25:35'),
  (12, 'Baju anak perempuan', 'c2409ea1c47df9b22b35e1538bb303f2', 'Baju anak perempuan warna pink', 0, 75000, '2021-05-07 23:36:06', '2021-05-11 00:41:46'),
  (13, 'Jaket Parasut army', 'aaa1d05e0cf4ef6d2172ca0b91a32076', 'jaket parasut army', 7, 123000, '2021-05-08 00:06:24', '2021-05-11 02:22:24');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `product_transactions`
  --
  
  CREATE TABLE `product_transactions` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `product_id` bigint(20) UNSIGNED NOT NULL,
    `invoice_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `qty` bigint(20) UNSIGNED 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 `product_transactions`
  --
  
  INSERT INTO `product_transactions` (`id`, `product_id`, `invoice_number`, `qty`, `created_at`, `updated_at`) VALUES
  (1, 4, 'INV0000001', 1, '2021-05-11 02:33:39', '2021-05-11 02:33:39');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transactions`
  --
  
  CREATE TABLE `transactions` (
    `invoice_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_id` bigint(20) UNSIGNED NOT NULL,
    `pay` int(11) NOT NULL,
    `total` 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 `transactions`
  --
  
  INSERT INTO `transactions` (`invoice_number`, `user_id`, `pay`, `total`, `created_at`, `updated_at`) VALUES
  ('INV0000001', 1, 139000, 125000, '2021-05-11 02:33:39', '2021-05-11 02:33:39');
  
  -- --------------------------------------------------------
  
  --
  -- 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, 'Administrator', 'admin@gmail.com', NULL, '$2y$10$DdV.p.jb9GehXVQ4K.vPruKC2JbOKtFQqMWFA9NlyTx60xqzjXNwy', NULL, '2021-05-06 07:07:15', '2021-05-06 07:07:15'),
  (2, 'User', 'user@gmail.com', NULL, '$2y$10$mQE2WyU3ItATmmpymuNBVOfhmpQu1.K0Xhtvy8QY4s2a/TJDw.8ba', NULL, '2021-05-10 01:54:10', '2021-05-10 01:54:10');
  
  --
  -- 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 `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 `products`
  --
  ALTER TABLE `products`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `product_transactions`
  --
  ALTER TABLE `product_transactions`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `transactions`
  --
  ALTER TABLE `transactions`
    ADD PRIMARY KEY (`invoice_number`);
  
  --
  -- 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 `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
  
  --
  -- AUTO_INCREMENT for table `products`
  --
  ALTER TABLE `products`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
  
  --
  -- AUTO_INCREMENT for table `product_transactions`
  --
  ALTER TABLE `product_transactions`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  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 */;
  