text: -- phpMyAdmin SQL Dump
  -- version 4.9.0.1
  -- https://www.phpmyadmin.net/
  --
  -- Máy chủ: 127.0.0.1
  -- Thời gian đã tạo: Th6 11, 2020 lúc 11:48 AM
  -- Phiên bản máy phục vụ: 10.4.6-MariaDB
  -- Phiên bản PHP: 7.3.9
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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 */;
  
  --
  -- Cơ sở dữ liệu: `shopgiay`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `banners`
  --
  
  CREATE TABLE `banners` (
    `id` int(10) UNSIGNED NOT NULL,
    `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `target` int(10) UNSIGNED DEFAULT NULL,
    `description` text CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
    `type` int(10) UNSIGNED NOT NULL DEFAULT 0,
    `position` int(10) UNSIGNED NOT NULL DEFAULT 0,
    `is_active` int(10) UNSIGNED NOT NULL DEFAULT 1,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Đang đổ dữ liệu cho bảng `banners`
  --
  
  INSERT INTO `banners` (`id`, `title`, `slug`, `image`, `url`, `target`, `description`, `type`, `position`, `is_active`, `created_at`, `updated_at`) VALUES
  (1, 'ban', 'ban', 'uploads/banner/1590939251_65166870_315962699287405_6234691942689538048_o.jpg', 'https://fptshop.com.vn/dien-thoai/iphone-11-128gb', 1, '<p>sdwed</p>', 1, 2, 1, '2020-05-28 05:04:52', '2020-05-31 08:34:11'),
  (2, 'hien', 'hien', 'uploads/category/1590813734_65166870_315962699287405_6234691942689538048_o.jpg', 'https://fptshop.com.vn/dien-thoai/iphone-11-pro-max-256gb', 1, '<p>hello</p>', 1, 2, 0, '2020-05-29 21:42:14', '2020-05-29 21:44:21'),
  (4, 'nhb', 'nhb', 'uploads/category/1590831567_70834990_371163687100639_4144257692447277056_o.jpg', 'https://fptshop.com.vn/dien-thoai/iphone-11-128gb', 1, '<p>11ss</p>', 1, 2, 1, '2020-05-30 02:39:27', '2020-05-30 02:39:27');
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `blogs`
  --
  
  CREATE TABLE `blogs` (
    `id` int(10) UNSIGNED NOT NULL,
    `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `user_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `position` int(11) NOT NULL DEFAULT 0,
    `is_active` int(11) NOT NULL DEFAULT 1,
    `description` text 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;
  
  --
  -- Đang đổ dữ liệu cho bảng `blogs`
  --
  
  INSERT INTO `blogs` (`id`, `title`, `image`, `user_id`, `url`, `position`, `is_active`, `description`, `created_at`, `updated_at`) VALUES
  (1, 'hien', 'uploads/category/1591183666_70834990_371163687100639_4144257692447277056_o.jpg', NULL, 'abc.com', 1, 1, '<p>ạhvahmsvdjasvd</p>', '2020-06-03 04:27:46', '2020-06-03 04:27:46'),
  (2, 'abc', 'uploads/category/1591183735_65166870_315962699287405_6234691942689538048_o.jpg', 'Hiển', 'abc.com', 2, 1, '<p>&aacute;dasdfasdfasd</p>', '2020-06-03 04:28:55', '2020-06-03 04:28:55');
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `brands`
  --
  
  CREATE TABLE `brands` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `position` int(10) UNSIGNED NOT NULL DEFAULT 0,
    `is_active` int(10) UNSIGNED NOT NULL DEFAULT 1,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Đang đổ dữ liệu cho bảng `brands`
  --
  
  INSERT INTO `brands` (`id`, `name`, `slug`, `image`, `website`, `position`, `is_active`, `created_at`, `updated_at`) VALUES
  (2, 'LV', 'lv', 'uploads/category/1590939990_65166870_315962699287405_6234691942689538048_o.jpg', 'abc', 1, 1, '2020-05-31 08:46:30', '2020-05-31 08:46:30');
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `categories`
  --
  
  CREATE TABLE `categories` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `parent_id` int(10) UNSIGNED DEFAULT NULL,
    `position` int(10) UNSIGNED NOT NULL DEFAULT 0,
    `is_active` int(10) UNSIGNED NOT NULL DEFAULT 1,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Đang đổ dữ liệu cho bảng `categories`
  --
  
  INSERT INTO `categories` (`id`, `name`, `slug`, `image`, `parent_id`, `position`, `is_active`, `created_at`, `updated_at`) VALUES
  (15, 'Giày Nam', 'giay-nam', NULL, 0, 1, 1, '2020-06-11 02:40:50', '2020-06-11 02:40:50');
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `comments`
  --
  
  CREATE TABLE `comments` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `user_id` int(11) NOT NULL DEFAULT 0,
    `product_id` int(11) NOT NULL DEFAULT 0,
    `content` text 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;
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `contacts`
  --
  
  CREATE TABLE `contacts` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `contact` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `content` text 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;
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `image_uploads`
  --
  
  CREATE TABLE `image_uploads` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `filename` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `product_id` int(11) NOT NULL DEFAULT 0,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Đang đổ dữ liệu cho bảng `image_uploads`
  --
  
  INSERT INTO `image_uploads` (`id`, `filename`, `product_id`, `created_at`, `updated_at`) VALUES
  (38, '65166870_315962699287405_6234691942689538048_o.jpg', 22, '2020-06-09 10:21:45', '2020-06-09 10:21:45'),
  (39, '65166870_315962699287405_6234691942689538048_o.jpg', 22, '2020-06-09 10:21:45', '2020-06-09 10:21:45'),
  (40, '159172355222265166870_315962699287405_6234691942689538048_o.jpg', 0, '2020-06-09 10:25:52', '2020-06-09 10:25:52');
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `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;
  
  --
  -- Đang đổ dữ liệu cho bảng `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, '2020_05_26_110226_create_products_table', 1),
  (4, '2020_05_26_111732_add_role_id_to_users_table', 2),
  (5, '2020_05_26_112435_create_categoties_table', 2),
  (6, '2020_05_26_112447_create_brands_table', 2),
  (7, '2020_05_26_112456_create_bannes_table', 2),
  (8, '2020_05_26_112506_create_news_table', 2),
  (9, '2020_05_26_112528_create_comments_table', 2),
  (10, '2020_05_26_112540_create_vendors_table', 2),
  (11, '2020_05_26_112552_create_contacts_table', 2),
  (12, '2020_05_26_113106_create_brands_table', 3),
  (13, '2020_05_26_134103_create_products_table', 4),
  (14, '2020_05_27_143657_create_news_table', 5),
  (15, '2020_05_27_153943_create_banners_table', 6),
  (16, '2020_05_30_091729_create_blogs_table', 7),
  (17, '2020_05_31_082909_create_products_table', 8),
  (18, '2020_05_31_083946_add_image_id_to_products_table', 9),
  (19, '2020_05_31_090740_add_images_id_to_products_table', 10),
  (20, '2020_05_31_143806_create_products_table', 11),
  (21, '2020_06_03_095852_create_blogs_table', 12),
  (22, '2020_06_03_102234_add_avatar_to_users_table', 12),
  (23, '2020_06_03_104918_create_users_table', 13),
  (24, '2020_06_03_110015_add_avatar_to_users_table', 14),
  (25, '2020_06_05_041630_create_images_table', 15),
  (26, '2020_06_07_115742_create_image_uploads_table', 16),
  (27, '2020_06_07_141117_create_image_uploads_table', 17),
  (28, '2020_06_11_081800_create_users_table', 18);
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `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;
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `products`
  --
  
  CREATE TABLE `products` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `stock` int(11) NOT NULL DEFAULT 0,
    `price` int(11) NOT NULL DEFAULT 0,
    `sale` int(11) NOT NULL DEFAULT 0,
    `position` int(11) NOT NULL DEFAULT 0,
    `is_active` int(11) NOT NULL DEFAULT 1,
    `is_hot` int(11) NOT NULL DEFAULT 0,
    `views` int(11) NOT NULL DEFAULT 0,
    `category_id` int(11) NOT NULL DEFAULT 0,
    `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `sku` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `brand_id` int(11) NOT NULL DEFAULT 0,
    `vendor_id` int(11) NOT NULL DEFAULT 0,
    `summary` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `meta_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
    `meta_description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
    `user_id` int(11) NOT NULL DEFAULT 0,
    `comment_id` int(11) NOT NULL DEFAULT 0,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Đang đổ dữ liệu cho bảng `products`
  --
  
  INSERT INTO `products` (`id`, `name`, `slug`, `image`, `stock`, `price`, `sale`, `position`, `is_active`, `is_hot`, `views`, `category_id`, `url`, `sku`, `brand_id`, `vendor_id`, `summary`, `description`, `meta_title`, `meta_description`, `user_id`, `comment_id`, `created_at`, `updated_at`) VALUES
  (12, 'Hiển', 'hien', 'uploads/product/1591643155_65166870_315962699287405_6234691942689538048_o.jpg', 5, 8990000, 23990000, 1, 1, 1, 0, 14, 'https://fptshop.com.vn/dien-thoai/iphone-11-pro-max-64gb', 'mac', 2, 2, 'aaaaaaaaaaaaaaaa', '<p>aaaaaaaaaaaa</p>', 'a', NULL, 0, 0, '2020-06-08 12:05:55', '2020-06-08 12:05:55'),
  (15, 'Hiển', 'hien', 'uploads/product/1591718792_65166870_315962699287405_6234691942689538048_o.jpg', 2, 33990000, 29990000, 1, 1, 1, 0, 14, 'https://fptshop.com.vn/dien-thoai/iphone-11-pro-max-64gb', NULL, 2, 2, 'aaaaaaaaa', '<p>aaaaaaaaaaa</p>', 'aaaaaaaaaa', 'aaaaaaaaaaaaaaa', 0, 0, '2020-06-09 09:06:32', '2020-06-09 09:06:32'),
  (16, 'Hiển', 'hien', 'uploads/product/1591720298_65166870_315962699287405_6234691942689538048_o.jpg', 8, 43990000, 17990000, 1, 1, 1, 0, 14, 'https://fptshop.com.vn/dien-thoai/iphone-11-pro-max-256gb', 'mac', 2, 0, 'aaaaaaaaaaa', '<p>aaaaaaaaaaaa</p>', 'aaaaaaaaa', 'aaaaaaaaaaaa', 0, 0, '2020-06-09 09:31:38', '2020-06-09 09:31:38');
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `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,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `role_id` int(11) NOT NULL DEFAULT 0,
    `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `is_active` int(11) NOT NULL DEFAULT 1,
    `position` int(10) UNSIGNED NOT NULL DEFAULT 0,
    `remmber_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;
  
  --
  -- Đang đổ dữ liệu cho bảng `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `password`, `role_id`, `avatar`, `is_active`, `position`, `remmber_token`, `created_at`, `updated_at`) VALUES
  (3, 'Nam Lưu', 'AkiraNam17999@gmail.com', '$2y$10$alBI3DYt5Tq0oxaPg9.xreLi67A4rGMWXoMR.KsfZrxESK16Uh09W', 1, NULL, 1, 0, NULL, '2020-06-10 01:54:01', '2020-06-10 01:54:01'),
  (4, 'Nam Đẹp Trai', 'AkiraNam1999@gmail.com', '$2y$10$3T65HYvmQOjvQMb1v7QXHeyGnkFjF0PE5F0RDWHr0LVFTmMqX6iwC', 1, NULL, 1, 0, NULL, '2020-06-10 01:59:43', '2020-06-10 01:59:43'),
  (6, 'Nam Lưu', 'AkiraNam2000@gmail.com', '$2y$10$p26VMorNduDKzeju6u98y.WDPKr124lPXkIREUOa/m9ChGa0s6MGm', 1, NULL, 1, 0, NULL, '2020-06-11 01:44:36', '2020-06-11 01:44:36'),
  (7, 'Minh Hiển', 'hiendeptrai123@gmail.com', '$2y$10$A5aOdZAzEjzlQABtQq1C2OXCJvZK/c9ZzcHl60nZyTSpHb0GNns12', 1, NULL, 1, 0, NULL, '2020-06-11 02:27:10', '2020-06-11 02:27:10');
  
  -- --------------------------------------------------------
  
  --
  -- Cấu trúc bảng cho bảng `vendors`
  --
  
  CREATE TABLE `vendors` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
    `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `address` text CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
    `position` int(10) UNSIGNED NOT NULL DEFAULT 0,
    `is_active` int(10) UNSIGNED NOT NULL DEFAULT 1,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Đang đổ dữ liệu cho bảng `vendors`
  --
  
  INSERT INTO `vendors` (`id`, `name`, `slug`, `email`, `phone`, `image`, `website`, `address`, `position`, `is_active`, `created_at`, `updated_at`) VALUES
  (1, 'aaaa', 'aaaa', 'abc@gmail.com', '0869588581', 'uploads/category/1591530360_70834990_371163687100639_4144257692447277056_o.jpg', 'abc.com', 'hn', 1, 0, '2020-06-07 04:29:48', '2020-06-07 04:47:55'),
  (2, 'Hiển', 'hien', 'hiendeptrai2409@gmail.com', '0869588581', 'uploads/category/1591529765_65166870_315962699287405_6234691942689538048_o.jpg', NULL, 'aaa', 2, 1, '2020-06-07 04:36:05', '2020-06-07 04:36:05'),
  (3, 'Hiển', 'hiencde', 'hien2409@gmail.com', '0869588581', NULL, 'abc.com', 'aaa', 5, 1, '2020-06-07 04:38:08', '2020-06-07 04:38:08');
  
  --
  -- Chỉ mục cho các bảng đã đổ
  --
  
  --
  -- Chỉ mục cho bảng `banners`
  --
  ALTER TABLE `banners`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `banners_slug_unique` (`slug`);
  
  --
  -- Chỉ mục cho bảng `blogs`
  --
  ALTER TABLE `blogs`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Chỉ mục cho bảng `brands`
  --
  ALTER TABLE `brands`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `brands_slug_unique` (`slug`);
  
  --
  -- Chỉ mục cho bảng `categories`
  --
  ALTER TABLE `categories`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `categories_slug_unique` (`slug`);
  
  --
  -- Chỉ mục cho bảng `comments`
  --
  ALTER TABLE `comments`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Chỉ mục cho bảng `contacts`
  --
  ALTER TABLE `contacts`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Chỉ mục cho bảng `image_uploads`
  --
  ALTER TABLE `image_uploads`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Chỉ mục cho bảng `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Chỉ mục cho bảng `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Chỉ mục cho bảng `products`
  --
  ALTER TABLE `products`
    ADD PRIMARY KEY (`id`),
    ADD KEY `products_slug_index` (`slug`);
  
  --
  -- Chỉ mục cho bảng `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- Chỉ mục cho bảng `vendors`
  --
  ALTER TABLE `vendors`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `vendors_slug_unique` (`slug`);
  
  --
  -- AUTO_INCREMENT cho các bảng đã đổ
  --
  
  --
  -- AUTO_INCREMENT cho bảng `banners`
  --
  ALTER TABLE `banners`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT cho bảng `blogs`
  --
  ALTER TABLE `blogs`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT cho bảng `brands`
  --
  ALTER TABLE `brands`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT cho bảng `categories`
  --
  ALTER TABLE `categories`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
  
  --
  -- AUTO_INCREMENT cho bảng `comments`
  --
  ALTER TABLE `comments`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT cho bảng `contacts`
  --
  ALTER TABLE `contacts`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT cho bảng `image_uploads`
  --
  ALTER TABLE `image_uploads`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
  
  --
  -- AUTO_INCREMENT cho bảng `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
  
  --
  -- AUTO_INCREMENT cho bảng `products`
  --
  ALTER TABLE `products`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
  
  --
  -- AUTO_INCREMENT cho bảng `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT cho bảng `vendors`
  --
  ALTER TABLE `vendors`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  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 */;
  