text: -- phpMyAdmin SQL Dump
  -- version 5.1.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Nov 30, 2021 at 05:40 AM
  -- Server version: 10.4.19-MariaDB
  -- PHP Version: 8.0.6
  
  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: `it_shop24`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `categories`
  --
  
  CREATE TABLE `categories` (
    `category_id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) NOT NULL,
    `user_id` bigint(20) NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `categories`
  --
  
  INSERT INTO `categories` (`category_id`, `name`, `user_id`, `created_at`, `updated_at`) VALUES
  (1, 'พวงกุญแจไม้เพ้น', 1, '2021-11-26 12:41:21', '2021-11-30 04:02:49');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `connection` text NOT NULL,
    `queue` text NOT NULL,
    `payload` longtext NOT NULL,
    `exception` longtext NOT NULL,
    `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(255) NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- 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_08_31_235111_create_categories_table', 1),
  (5, '2021_09_10_174848_create_products_table', 1),
  (6, '2021_11_22_222846_add_admin_field', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(255) NOT NULL,
    `token` varchar(255) NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `products`
  --
  
  CREATE TABLE `products` (
    `id_product` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(200) NOT NULL,
    `description` text NOT NULL,
    `image` varchar(255) NOT NULL,
    `price` decimal(8,2) NOT NULL,
    `category_id` int(11) NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `products`
  --
  
  INSERT INTO `products` (`id_product`, `name`, `description`, `image`, `price`, `category_id`, `created_at`, `updated_at`) VALUES
  (1, 'พวงกุญแจลายนักเรียน', 'พวงกุญแจลายนักเรียนหญิงและชายสุดน่ารัก', 'Z9nwL1SgEo.jpg', '15.00', 1, '2021-11-30 04:01:50', '2021-11-30 04:01:50'),
  (2, 'พวงกุญแจไม้เปล่า', 'ลายไท้สีเปล่า', 'YNsJxVYFXT.jpg', '10.00', 1, '2021-11-30 04:02:32', '2021-11-30 04:02:32'),
  (3, 'พวงกุญแจลายทับทิม', 'ลายตัวการ์ตูนทับทิม', 'iZshLq8eCA.jpg', '15.00', 1, '2021-11-30 04:03:36', '2021-11-30 04:03:36'),
  (4, 'พวงกุญแจลาย Hand made', 'ลายการ์ตูน Hand made สุดน่ารัก', 'wIXiutKbDX.jpg', '15.00', 1, '2021-11-30 04:04:19', '2021-11-30 04:04:19'),
  (5, 'พวงกุญแจลาย Congratulations', 'ลาย Congratulations ที่หมายถึงยินดีด้วยพร้อมที่ชื่อเล่นที่เราต้องการ', '96zeSHXKgj.jpg', '15.00', 1, '2021-11-30 04:05:43', '2021-11-30 04:05:43');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) NOT NULL,
    `username` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `password` varchar(255) NOT NULL,
    `phone` varchar(255) NOT NULL,
    `address` varchar(255) NOT NULL,
    `isAdmin` tinyint(1) NOT NULL DEFAULT 0,
    `remember_token` varchar(100) DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `username`, `email`, `email_verified_at`, `password`, `phone`, `address`, `isAdmin`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'admin', 'admin@gmail.com', NULL, '$2y$10$oH9HZTPGDh2o3fbYKBxs2.sbrugIQraImcQLZlZPin9ZPdFPfBKqa', '035555655', 'จ.นนทบุรี', 1, NULL, '2021-11-26 02:39:44', '2021-11-26 02:39:44'),
  (2, 'users', 'user', 'users@gmail.com', NULL, '$2y$10$bAzSxwpRoJjZt3vpvrA7X.tTL0vXw/V9fr65quYY7LUr/mG.sCysO', '036666545', 'จ.จันทบุรี', 0, NULL, '2021-11-26 03:31:07', '2021-11-30 03:26:04');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `categories`
  --
  ALTER TABLE `categories`
    ADD PRIMARY KEY (`category_id`);
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    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 `products`
  --
  ALTER TABLE `products`
    ADD PRIMARY KEY (`id_product`);
  
  --
  -- 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 `categories`
  --
  ALTER TABLE `categories`
    MODIFY `category_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- 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=7;
  
  --
  -- AUTO_INCREMENT for table `products`
  --
  ALTER TABLE `products`
    MODIFY `id_product` bigint(20) UNSIGNED 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=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 */;
  