PHP Classes

File: database/sql/laravel_ecommerce_tutorial.sql

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Laravel Ecommerce Site   database/sql/laravel_ecommerce_tutorial.sql   Download  
File: database/sql/laravel_ecommerce_tutorial.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Ecommerce Site
Application to sell products using Laravel
Author: By
Last change:
Date: 1 year ago
Size: 24,357 bytes
 

Contents

Class file image Download
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 15, 2019 at 04:58 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.28 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 */; -- -- Database: `laravel_ecommerce_tutorial` -- -- -------------------------------------------------------- -- -- Table structure for table `admins` -- CREATE TABLE `admins` ( `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, `phone_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `avatar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Super Admin' COMMENT 'Admin|Super Admin', `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 `admins` -- INSERT INTO `admins` (`id`, `name`, `email`, `password`, `phone_no`, `avatar`, `type`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Maniruzzaman', 'manirujjamanakash@gmail.com', '$2y$10$mczx1Yyh.YYQ5LNqx.0vbuPfqUKaqcJaXHUTk0q3Q5syrpbWb9VKO', '01951233084', NULL, 'Super Admin', 'k0pg6dbf22vBmzlvvxph92bPlpxkqxTVxVaFvDEsgodjvx5yB2TtOUFTa8s3', '2018-08-28 23:18:25', '2018-08-30 21:06:13'); -- -------------------------------------------------------- -- -- Table structure for table `brands` -- CREATE TABLE `brands` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci, `image` varchar(191) 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 `brands` -- INSERT INTO `brands` (`id`, `name`, `description`, `image`, `created_at`, `updated_at`) VALUES (2, 'Sony', NULL, '1532150006.png', '2018-07-20 23:13:26', '2018-07-20 23:13:26'), (3, 'Samsung', NULL, '1532150024.png', '2018-07-20 23:13:44', '2018-07-20 23:13:44'), (4, 'Others', NULL, '1532150085.png', '2018-07-20 23:14:46', '2018-07-20 23:14:46'); -- -------------------------------------------------------- -- -- Table structure for table `carts` -- CREATE TABLE `carts` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED DEFAULT NULL, `order_id` int(10) UNSIGNED DEFAULT NULL, `ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `product_quantity` int(11) 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; -- -- Dumping data for table `carts` -- INSERT INTO `carts` (`id`, `product_id`, `user_id`, `order_id`, `ip_address`, `product_quantity`, `created_at`, `updated_at`) VALUES (5, 3, NULL, 5, '::1', 1, '2018-12-21 04:59:03', '2018-12-21 05:02:07'), (6, 3, NULL, 6, '::1', 5, '2018-12-21 05:02:48', '2019-03-21 10:03:18'), (20, 2, NULL, 7, '::1', 2, '2019-06-15 07:57:49', '2019-06-15 07:59:28'), (21, 3, NULL, 8, '::1', 1, '2019-06-15 07:59:39', '2019-06-15 07:59:49'), (22, 3, NULL, NULL, '::1', 1, '2019-06-15 08:26:16', '2019-06-15 08:26:16'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci, `image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `parent_id` int(11) 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 `categories` -- INSERT INTO `categories` (`id`, `name`, `description`, `image`, `parent_id`, `created_at`, `updated_at`) VALUES (1, 'Fashion', 'Fashion Category', '1532145104.jpg', NULL, '2018-07-20 21:51:44', '2018-07-20 21:51:44'), (2, 'Sunglass', NULL, '1532145185.jpg', 1, '2018-07-20 21:53:05', '2018-07-20 21:53:05'), (3, 'Household', NULL, '1532145244.jpg', NULL, '2018-07-20 21:54:04', '2018-07-20 21:54:04'), (4, 'Tree', NULL, '1560610660.jpg', NULL, '2019-06-15 08:57:40', '2019-06-15 08:57:40'); -- -------------------------------------------------------- -- -- Table structure for table `districts` -- CREATE TABLE `districts` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `division_id` int(10) 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 `districts` -- INSERT INTO `districts` (`id`, `name`, `division_id`, `created_at`, `updated_at`) VALUES (2, 'Mymensingh Sadar', 4, '2018-07-21 06:42:21', '2018-07-21 06:42:33'), (3, 'Khulna Sadar', 5, '2018-07-21 06:42:49', '2018-07-21 06:42:49'), (5, 'Dhaka', 2, '2018-07-21 06:43:13', '2018-07-21 06:43:13'), (6, 'Barisal Sadar', 6, '2018-07-21 06:44:42', '2018-07-21 06:44:42'), (7, 'Bagerhat', 5, '2018-07-21 06:45:37', '2018-07-21 06:45:37'); -- -------------------------------------------------------- -- -- Table structure for table `divisions` -- CREATE TABLE `divisions` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `priority` tinyint(3) 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; -- -- Dumping data for table `divisions` -- INSERT INTO `divisions` (`id`, `name`, `priority`, `created_at`, `updated_at`) VALUES (2, 'Dhaka', 1, '2018-07-21 06:24:27', '2018-07-21 06:24:27'), (3, 'Rajshahi', 2, '2018-07-21 06:24:39', '2018-07-21 06:24:39'), (4, 'Mymensingh', 8, '2018-07-21 06:24:51', '2018-07-21 06:24:51'), (5, 'Khulna', 4, '2018-07-21 06:25:14', '2018-07-21 06:25:14'), (6, 'Barisal', 5, '2018-07-21 06:43:36', '2018-07-21 06:43:36'), (7, 'Chittagong', 3, '2018-07-21 06:43:48', '2018-07-21 06:43:48'), (8, 'Sylhet', 6, '2018-07-21 06:44:02', '2018-07-21 06:44:02'), (9, 'Rangpur', 7, '2018-07-21 06:44:14', '2018-07-21 06:44:14'); -- -------------------------------------------------------- -- -- 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 (2, '2014_10_12_100000_create_password_resets_table', 1), (4, '2018_02_22_165732_create_products_table', 2), (5, '2018_02_23_014906_create_categories_table', 2), (6, '2018_02_23_015040_create_brands_table', 2), (8, '2018_02_23_020211_create_product_images_table', 2), (10, '2014_10_12_000000_create_users_table', 3), (11, '2018_07_21_115850_create_divisions_table', 4), (12, '2018_07_21_115908_create_districts_table', 4), (14, '2018_08_28_034133_create_carts_table', 5), (15, '2018_08_28_083714_create_settings_table', 6), (16, '2018_08_28_085245_create_payments_table', 7), (17, '2018_08_28_033110_create_orders_table', 8), (18, '2018_02_23_015128_create_admins_table', 9), (19, '2019_02_24_043826_create_sliders_table', 10); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED DEFAULT NULL, `payment_id` int(10) UNSIGNED DEFAULT NULL, `ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `shipping_address` text COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `message` text COLLATE utf8mb4_unicode_ci, `is_paid` tinyint(1) NOT NULL DEFAULT '0', `is_completed` tinyint(1) NOT NULL DEFAULT '0', `is_seen_by_admin` tinyint(1) NOT NULL DEFAULT '0', `transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `shipping_charge` int(11) NOT NULL DEFAULT '60', `custom_discount` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `orders` -- INSERT INTO `orders` (`id`, `user_id`, `payment_id`, `ip_address`, `name`, `phone_no`, `shipping_address`, `email`, `message`, `is_paid`, `is_completed`, `is_seen_by_admin`, `transaction_id`, `created_at`, `updated_at`, `shipping_charge`, `custom_discount`) VALUES (1, 8, 2, NULL, 'Maniruzzaman Akash', '1951233084', 'Dumki', 'manirujjamanakash@gmail.com', NULL, 1, 1, 1, NULL, '2018-08-28 20:01:58', '2018-08-28 20:01:58', 60, 0), (2, 8, 1, '::1', 'Maniruzzaman Akash', '1951233084', 'New', 'manirujjamanakash@gmail.com', NULL, 1, 1, 1, NULL, '2018-08-28 20:03:57', '2018-10-04 23:49:14', 60, 0), (3, 8, 2, '::1', 'Maniruzzaman Akash', '1951233084', 'New', 'manirujjamanakash@gmail.com', NULL, 0, 0, 0, '24343434', '2018-08-28 20:09:29', '2018-08-28 20:09:29', 60, 0), (4, 8, 1, '::1', 'Maniruzzaman Akash', '1951233084', 'New', 'manirujjamanakash@gmail.com', NULL, 1, 1, 0, NULL, '2018-08-28 20:09:58', '2018-10-04 23:48:19', 60, 0), (5, NULL, 2, '::1', 'Maniruzzaman Akash', '01951233084', 'Patuakhali, Bangladesh', 'manirujjamanakash@gmail.com', 'Please send me product', 0, 0, 0, '1212121212', '2018-12-21 05:02:07', '2018-12-21 05:02:07', 60, 0), (6, NULL, 1, '::1', 'Abul Kalam', '1951233084', 'Patuakhali, Bangladesh', 'manirujjamanakash@gmail.com', 'sdsd', 1, 1, 1, NULL, '2018-12-21 05:05:33', '2019-03-22 07:40:51', 70, 10), (7, 8, 1, '::1', 'Maniruzzaman Akash', '1951233084', 'New', 'manirujjamanakash@gmail.com', NULL, 0, 0, 0, NULL, '2019-06-15 07:59:28', '2019-06-15 07:59:28', 60, 0), (8, 8, 2, '::1', 'Maniruzzaman Akash', '1951233084', 'New', 'manirujjamanakash@gmail.com', NULL, 0, 0, 0, 'wewewe', '2019-06-15 07:59:49', '2019-06-15 07:59:49', 60, 0); -- -------------------------------------------------------- -- -- 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; -- -- Dumping data for table `password_resets` -- INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES ('manirujjamanakash@gmail.com', '$2y$10$6kvdXSTLNfyuumf/HeFgVuJLWKRsPNU248kv8PKbiOEddlq5U69Uq', '2019-06-15 07:40:30'); -- -------------------------------------------------------- -- -- Table structure for table `payments` -- CREATE TABLE `payments` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `priority` tinyint(4) NOT NULL DEFAULT '1', `short_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Payment No', `type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'agent|personal', `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 `payments` -- INSERT INTO `payments` (`id`, `name`, `image`, `priority`, `short_name`, `no`, `type`, `created_at`, `updated_at`) VALUES (1, 'Cash In', 'cash_in.jpg', 1, 'cash_in', NULL, NULL, '2018-08-28 08:57:00', '2018-08-28 08:57:00'), (2, 'Bkash', 'bkash.jpg', 2, 'bkash', '01951233084', 'personal', '2018-08-28 08:57:00', '2018-08-28 08:57:00'), (3, 'Rocket', 'rocket.jpg', 3, 'rocket', '019512330845', 'personal', '2018-08-28 08:57:00', '2018-08-28 08:57:00'); -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` int(10) UNSIGNED NOT NULL, `category_id` int(10) UNSIGNED NOT NULL, `brand_id` int(10) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `quantity` int(11) NOT NULL DEFAULT '1', `price` int(11) NOT NULL, `status` tinyint(4) NOT NULL DEFAULT '0', `offer_price` int(11) DEFAULT NULL, `admin_id` int(10) 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 `products` -- INSERT INTO `products` (`id`, `category_id`, `brand_id`, `title`, `description`, `slug`, `quantity`, `price`, `status`, `offer_price`, `admin_id`, `created_at`, `updated_at`) VALUES (1, 3, 2, 'Iphone 8', 'Iphone', 'Iphone-8', 1, 10000, 1, NULL, 1, '2018-02-21 18:00:00', '2018-02-21 18:00:00'), (2, 2, 2, 'Samsung Galaxy 2', 'Samsung GalaxySamsung GalaxySamsung Galaxy\r\n\r\nSamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung Galaxy\r\n\r\nSamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung GalaxySamsung Galaxy', 'Samsung-Galaxy-2', 0, 300, 1, NULL, 1, '2018-02-21 18:00:00', '2018-08-28 01:12:03'), (3, 2, 2, 'Sony Camera', 'Sony Camera', 'sony-camera', 20, 100, 0, NULL, 1, '2018-07-20 23:24:30', '2018-08-28 01:11:53'); -- -------------------------------------------------------- -- -- Table structure for table `product_images` -- CREATE TABLE `product_images` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `image` 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 `product_images` -- INSERT INTO `product_images` (`id`, `product_id`, `image`, `created_at`, `updated_at`) VALUES (1, 1, '1.png', NULL, NULL), (2, 2, '2.png', NULL, NULL), (3, 1, '3.png', NULL, NULL), (4, 2, '1519483410.png', '2018-02-24 08:43:31', '2018-02-24 08:43:31'), (5, 2, '1519483895.png', '2018-02-24 08:51:35', '2018-02-24 08:51:35'), (7, 3, '1532150670.png', '2018-07-20 23:24:30', '2018-07-20 23:24:30'), (8, 5, '1560609733.jpg', '2019-06-15 08:42:13', '2019-06-15 08:42:13'); -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` int(10) UNSIGNED NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `shipping_cost` int(10) UNSIGNED NOT NULL DEFAULT '100', `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 `settings` -- INSERT INTO `settings` (`id`, `email`, `phone`, `address`, `shipping_cost`, `created_at`, `updated_at`) VALUES (1, 'test@example.com', '01951233084', 'Dhaka-1200, Dhaka', 100, '2018-08-28 08:40:14', '2018-08-28 08:40:14'); -- -------------------------------------------------------- -- -- Table structure for table `sliders` -- CREATE TABLE `sliders` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `button_text` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `button_link` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `priority` tinyint(3) UNSIGNED NOT NULL DEFAULT '10', `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 `sliders` -- INSERT INTO `sliders` (`id`, `title`, `image`, `button_text`, `button_link`, `priority`, `created_at`, `updated_at`) VALUES (1, 'Fast and Secure Online System', '1550986944.jpg', NULL, NULL, 1, '2019-02-24 04:56:11', '2019-02-24 13:42:24'), (4, '24/7 Hour Online Support', '1550986974.jpg', NULL, NULL, 2, '2019-02-24 13:42:54', '2019-02-24 13:42:54'), (5, 'Easy and Quick Solution of Online Ecommerce', '1550987130.png', 'Visit Facebook Group', 'http://priyofashion.com/products/offer/discount', 3, '2019-02-24 13:45:30', '2019-02-24 14:12:41'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_no` 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, `street_address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `division_id` int(10) UNSIGNED NOT NULL COMMENT 'Division Table ID', `district_id` int(10) UNSIGNED NOT NULL COMMENT 'District Table ID', `status` tinyint(3) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0=Inactive|1=Active|2=Ban', `ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `avatar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `shipping_address` text COLLATE utf8mb4_unicode_ci, `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`, `first_name`, `last_name`, `username`, `phone_no`, `email`, `password`, `street_address`, `division_id`, `district_id`, `status`, `ip_address`, `avatar`, `shipping_address`, `remember_token`, `created_at`, `updated_at`) VALUES (8, 'Maniruzzaman', 'Akash', 'maniruzzamanakash2', '1951233084', 'manirujjamanakash@gmail.com', '$2y$10$hFKyIY6GoQ.anijWOknn7eKyXKn9xQC7jvWthDPs3./hXG3tXQ8Gi', 'Patuakhali, Bangladesh', 4, 2, 1, '::1', NULL, 'New', 'OOqu99dDW7f9qUdSPRk2KEqaTDjMeIWfEKFE4Hs9CCM8m29essCueddLBXRI', '2018-07-22 00:35:46', '2018-08-27 19:45:20'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admins` -- ALTER TABLE `admins` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `admins_email_unique` (`email`); -- -- Indexes for table `brands` -- ALTER TABLE `brands` ADD PRIMARY KEY (`id`); -- -- Indexes for table `carts` -- ALTER TABLE `carts` ADD PRIMARY KEY (`id`), ADD KEY `carts_user_id_foreign` (`user_id`), ADD KEY `carts_product_id_foreign` (`product_id`), ADD KEY `carts_order_id_foreign` (`order_id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `districts` -- ALTER TABLE `districts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `divisions` -- ALTER TABLE `divisions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`), ADD KEY `orders_user_id_foreign` (`user_id`), ADD KEY `orders_payment_id_foreign` (`payment_id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `payments` -- ALTER TABLE `payments` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `payments_short_name_unique` (`short_name`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `product_images` -- ALTER TABLE `product_images` ADD PRIMARY KEY (`id`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sliders` -- ALTER TABLE `sliders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_username_unique` (`username`), ADD UNIQUE KEY `users_phone_no_unique` (`phone_no`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admins` -- ALTER TABLE `admins` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `brands` -- ALTER TABLE `brands` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `carts` -- ALTER TABLE `carts` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `districts` -- ALTER TABLE `districts` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `divisions` -- ALTER TABLE `divisions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `payments` -- ALTER TABLE `payments` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `product_images` -- ALTER TABLE `product_images` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `sliders` -- ALTER TABLE `sliders` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- Constraints for dumped tables -- -- -- Constraints for table `carts` -- ALTER TABLE `carts` ADD CONSTRAINT `carts_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `carts_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `carts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `orders` -- ALTER TABLE `orders` ADD CONSTRAINT `orders_payment_id_foreign` FOREIGN KEY (`payment_id`) REFERENCES `payments` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; 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 */;