-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 16, 2026 at 03:04 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.0.30
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: `tmitstore`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE `admins` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`remember_token` varchar(100) 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`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Admin', 'admin@tmitstore.com', '$2y$10$CT/JOOjBVkkyNzTVnpWVb.DEyI4YmjEnD61WBXqwQC00TbiJv4b1a', NULL, '2026-06-16 05:05:06', '2026-06-16 05:05:06');
-- --------------------------------------------------------
--
-- Table structure for table `blog_posts`
--
CREATE TABLE `blog_posts` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`excerpt` text DEFAULT NULL,
`content` longtext NOT NULL,
`image` varchar(255) DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`published_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;
--
-- Dumping data for table `blog_posts`
--
INSERT INTO `blog_posts` (`id`, `title`, `slug`, `excerpt`, `content`, `image`, `status`, `published_at`, `created_at`, `updated_at`) VALUES
(1, 'Welcome to TMITStore - Best Online Shop in Bangladesh', 'welcome-to-tmitstore', 'We are excited to launch TMITStore, your one-stop online shopping destination in Bangladesh.', 'Welcome to TMITStore!\n\nWe are thrilled to bring you the best online shopping experience in Bangladesh. Our store offers a wide range of products including electronics, clothing, home goods, beauty products, and sports equipment.\n\nWhy shop with us?\n\n- Quality Products\n- Fast Delivery (2-3 business days)\n- Cash on Delivery Available\n- Easy Returns\n- 24/7 Customer Support\n\nBrowse our collection and find amazing deals today. Happy Shopping!', NULL, 1, '2026-06-16 05:05:06', '2026-06-16 05:05:06', '2026-06-16 05:05:06');
-- --------------------------------------------------------
--
-- Table structure for table `carts`
--
CREATE TABLE `carts` (
`id` bigint(20) UNSIGNED NOT NULL,
`session_id` varchar(255) NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`variation_id` bigint(20) UNSIGNED DEFAULT NULL,
`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`, `session_id`, `product_id`, `variation_id`, `quantity`, `created_at`, `updated_at`) VALUES
(1, '7yAnbUM86Jk6SMsqFItTib5QMXKjjiWMHAFJRowu', 18, NULL, 1, '2026-06-16 05:09:28', '2026-06-16 05:09:28');
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`description` text DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`sort_order` 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;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `slug`, `description`, `image`, `status`, `sort_order`, `created_at`, `updated_at`) VALUES
(1, 'Electronics', 'electronics', 'Electronic gadgets and accessories', NULL, 1, 0, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(2, 'Clothing', 'clothing', 'Men and women clothing', NULL, 1, 0, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(3, 'Home & Living', 'home-living', 'Home decor and furniture', NULL, 1, 0, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(4, 'Beauty', 'beauty', 'Beauty and personal care', NULL, 1, 0, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(5, 'Sports', 'sports', 'Sports and fitness equipment', NULL, 1, 0, '2026-06-16 05:05:06', '2026-06-16 05:05:06');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) 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=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- 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=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),
(5, '2024_01_01_000001_create_admins_table', 1),
(6, '2024_01_01_000002_create_settings_table', 1),
(7, '2024_01_01_000003_create_categories_table', 1),
(8, '2024_01_01_000004_create_tags_table', 1),
(9, '2024_01_01_000005_create_products_table', 1),
(10, '2024_01_01_000006_create_product_images_table', 1),
(11, '2024_01_01_000007_create_product_variations_table', 1),
(12, '2024_01_01_000008_create_product_tag_table', 1),
(13, '2024_01_01_000009_create_sliders_table', 1),
(14, '2024_01_01_000010_create_orders_table', 1),
(15, '2024_01_01_000011_create_order_items_table', 1),
(16, '2024_01_01_000012_create_tracking_updates_table', 1),
(17, '2024_01_01_000013_create_blog_posts_table', 1),
(18, '2024_01_01_000014_create_carts_table', 1),
(19, '2024_01_01_000015_add_shipping_to_products_and_orders', 2);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` bigint(20) UNSIGNED NOT NULL,
`order_number` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`address` text NOT NULL,
`mobile` varchar(20) NOT NULL,
`note` text DEFAULT NULL,
`shipping_area` varchar(255) NOT NULL DEFAULT 'inside_dhaka',
`shipping_charge` decimal(10,2) NOT NULL DEFAULT 0.00,
`subtotal` decimal(10,2) NOT NULL DEFAULT 0.00,
`total` decimal(10,2) NOT NULL DEFAULT 0.00,
`status` enum('pending','confirmed','processing','shipped','delivered','cancelled') NOT NULL DEFAULT 'pending',
`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 `orders`
--
INSERT INTO `orders` (`id`, `order_number`, `name`, `address`, `mobile`, `note`, `shipping_area`, `shipping_charge`, `subtotal`, `total`, `status`, `created_at`, `updated_at`) VALUES
(1, 'ORD-JMOYPVQKL1', 'Md. Tanzim Hossen', 'Zora Zaider Para, Shajahanpur,Ranirhat, Bogura', '+8801774137135', NULL, 'inside_dhaka', 0.00, 990.00, 990.00, 'delivered', '2026-06-16 05:23:43', '2026-06-16 05:58:36');
-- --------------------------------------------------------
--
-- Table structure for table `order_items`
--
CREATE TABLE `order_items` (
`id` bigint(20) UNSIGNED NOT NULL,
`order_id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED DEFAULT NULL,
`variation_id` bigint(20) UNSIGNED DEFAULT NULL,
`product_name` varchar(255) NOT NULL,
`variation_details` varchar(255) DEFAULT NULL,
`price` decimal(10,2) NOT NULL,
`quantity` int(11) NOT NULL,
`subtotal` decimal(10,2) 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 `order_items`
--
INSERT INTO `order_items` (`id`, `order_id`, `product_id`, `variation_id`, `product_name`, `variation_details`, `price`, `quantity`, `subtotal`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, NULL, 'Wireless Bluetooth Earbuds', NULL, 990.00, 1, 990.00, '2026-06-16 05:23:43', '2026-06-16 05:23:43');
-- --------------------------------------------------------
--
-- 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=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `personal_access_tokens`
--
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenable_type` varchar(255) NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`token` varchar(64) NOT NULL,
`abilities` text 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 `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_id` bigint(20) UNSIGNED DEFAULT NULL,
`name` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`sku` varchar(255) DEFAULT NULL,
`short_description` text DEFAULT NULL,
`description` longtext DEFAULT NULL,
`regular_price` decimal(10,2) NOT NULL DEFAULT 0.00,
`sale_price` decimal(10,2) DEFAULT NULL,
`offer_text` varchar(255) DEFAULT NULL,
`shipping_inside_dhaka` int(10) UNSIGNED DEFAULT NULL,
`shipping_outside_dhaka` int(10) UNSIGNED DEFAULT NULL,
`stock` int(11) NOT NULL DEFAULT 0,
`status` tinyint(1) NOT NULL DEFAULT 1,
`featured` tinyint(1) NOT NULL DEFAULT 0,
`thumbnail` varchar(255) DEFAULT NULL,
`sort_order` 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;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `category_id`, `name`, `slug`, `sku`, `short_description`, `description`, `regular_price`, `sale_price`, `offer_text`, `shipping_inside_dhaka`, `shipping_outside_dhaka`, `stock`, `status`, `featured`, `thumbnail`, `sort_order`, `created_at`, `updated_at`) VALUES
(2, 1, 'Smart Watch Pro', 'smart-watch-pro', 'SKU-B0VRMFUD', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 3500.00, 2999.00, 'Limited time offer!', NULL, NULL, 30, 1, 1, NULL, 1, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(3, 1, 'USB-C Fast Charger 65W', 'usb-c-fast-charger-65w', 'SKU-AJR13MER', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 850.00, NULL, NULL, NULL, NULL, 100, 1, 1, NULL, 2, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(4, 2, 'Mens Cotton T-Shirt', 'mens-cotton-t-shirt', 'SKU-8SHYUMUN', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 450.00, 380.00, 'Limited time offer!', NULL, NULL, 200, 1, 1, NULL, 3, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(5, 2, 'Womens Summer Dress', 'womens-summer-dress', 'SKU-IGL1DSTZ', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 980.00, NULL, NULL, NULL, NULL, 80, 1, 1, NULL, 4, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(6, 2, 'Denim Jeans Classic Fit', 'denim-jeans-classic-fit', 'SKU-ZNB8Z93Q', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 1200.00, 999.00, 'Limited time offer!', NULL, NULL, 60, 1, 0, NULL, 5, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(7, 3, 'Decorative LED Fairy Lights', 'decorative-led-fairy-lights', 'SKU-TKOTYVXJ', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 350.00, NULL, NULL, NULL, NULL, 150, 1, 0, NULL, 6, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(8, 3, 'Ceramic Coffee Mug Set', 'ceramic-coffee-mug-set', 'SKU-MEFKXQGD', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 680.00, 550.00, 'Limited time offer!', NULL, NULL, 70, 1, 0, NULL, 7, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(9, 4, 'Face Wash Neem Tulsi', 'face-wash-neem-tulsi', 'SKU-XWYI9CXS', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 280.00, NULL, NULL, NULL, NULL, 300, 1, 0, NULL, 8, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(10, 4, 'Vitamin C Serum 30ml', 'vitamin-c-serum-30ml', 'SKU-1YD5EUJT', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 750.00, 600.00, 'Limited time offer!', NULL, NULL, 90, 1, 0, NULL, 9, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(11, 5, 'Yoga Mat Anti-Slip', 'yoga-mat-anti-slip', 'SKU-CAKNEQES', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 950.00, 799.00, 'Limited time offer!', NULL, NULL, 40, 1, 0, NULL, 10, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(12, 5, 'Jump Rope Fitness', 'jump-rope-fitness', 'SKU-MDRBOCYM', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 250.00, NULL, NULL, NULL, NULL, 200, 1, 0, NULL, 11, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(13, 1, 'Portable Power Bank 20000mAh', 'portable-power-bank-20000mah', 'SKU-IVKXONF8', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 2200.00, 1800.00, 'Limited time offer!', NULL, NULL, 55, 1, 0, NULL, 12, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(14, 1, 'Laptop Stand Adjustable', 'laptop-stand-adjustable', 'SKU-6ICMLEA2', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 1500.00, NULL, NULL, NULL, NULL, 35, 1, 0, NULL, 13, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(15, 3, 'Cotton Bed Sheet King Size', 'cotton-bed-sheet-king-size', 'SKU-AFPNFFB6', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 1800.00, 1499.00, 'Limited time offer!', NULL, NULL, 45, 1, 0, NULL, 14, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(16, 5, 'Kids Sports Shoes', 'kids-sports-shoes', 'SKU-UH3COGBI', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 850.00, 699.00, 'Limited time offer!', NULL, NULL, 80, 1, 0, NULL, 15, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(17, 4, 'Moisturizing Body Lotion', 'moisturizing-body-lotion', 'SKU-N1MQNPVT', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 320.00, NULL, NULL, NULL, NULL, 120, 1, 0, NULL, 16, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(18, 2, 'Polo Shirt Casual', 'polo-shirt-casual', 'SKU-CNXMFMG3', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 650.00, 520.00, 'Limited time offer!', NULL, NULL, 90, 1, 0, NULL, 17, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(19, 1, 'Wireless Mouse Ergonomic', 'wireless-mouse-ergonomic', 'SKU-822FCV9K', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 950.00, 799.00, 'Limited time offer!', NULL, NULL, 65, 1, 0, NULL, 18, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(20, 3, 'Kitchen Knife Set Stainless', 'kitchen-knife-set-stainless', 'SKU-QA7TFPGB', 'High-quality product. Fast delivery all over Bangladesh.', 'Premium quality product at the best price. Free delivery on orders above ৳500. Order now and receive it within 2-3 business days.', 1100.00, 899.00, 'Limited time offer!', NULL, NULL, 40, 1, 0, NULL, 19, '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(21, 1, 'iphone', 'iphone', 'SKU-GHBW0EOB', 'asddasd', NULL, 1000.00, 800.00, NULL, 0, 0, 100, 1, 0, 'products/EviHdHEq446FXIh4d0RVoSqdWunej3deixFDJoBG.webp', 0, '2026-06-16 05:52:19', '2026-06-16 05:52:19'),
(22, 1, 'Wireless Bluetooth Earbuds', 'wireless-bluetooth-earbuds', 'SKU-QXPEDG4N', NULL, NULL, 2000.00, NULL, NULL, NULL, NULL, 200, 1, 0, 'products/Kwm5vS3uuEPGZo94K9o83aOERRZBSWzxaa9QhbsP.webp', 0, '2026-06-16 05:56:47', '2026-06-16 05:56:47');
-- --------------------------------------------------------
--
-- Table structure for table `product_images`
--
CREATE TABLE `product_images` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`image` varchar(255) NOT NULL,
`sort_order` 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;
-- --------------------------------------------------------
--
-- Table structure for table `product_tag`
--
CREATE TABLE `product_tag` (
`product_id` bigint(20) UNSIGNED NOT NULL,
`tag_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_tag`
--
INSERT INTO `product_tag` (`product_id`, `tag_id`) VALUES
(2, 1),
(2, 2),
(2, 4),
(3, 1),
(3, 2),
(4, 1),
(4, 2),
(4, 4),
(5, 1),
(5, 2),
(6, 2),
(6, 4),
(7, 2),
(8, 2),
(8, 4),
(9, 2),
(10, 2),
(10, 4),
(11, 4),
(13, 4),
(15, 4),
(16, 4),
(18, 4),
(19, 4),
(20, 4),
(21, 5),
(22, 4);
-- --------------------------------------------------------
--
-- Table structure for table `product_variations`
--
CREATE TABLE `product_variations` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`type` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
`price_adjustment` decimal(10,2) NOT NULL DEFAULT 0.00,
`stock` int(11) NOT NULL DEFAULT 0,
`status` tinyint(1) 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 `product_variations`
--
INSERT INTO `product_variations` (`id`, `product_id`, `type`, `value`, `price_adjustment`, `stock`, `status`, `created_at`, `updated_at`) VALUES
(1, 21, 'color', 'red', 0.00, 2, 1, '2026-06-16 05:52:19', '2026-06-16 05:52:19'),
(2, 21, 'color', 'green', 0.00, 3, 1, '2026-06-16 05:52:19', '2026-06-16 05:52:19');
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE `settings` (
`id` bigint(20) UNSIGNED NOT NULL,
`key` varchar(255) NOT NULL,
`value` text 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 `settings`
--
INSERT INTO `settings` (`id`, `key`, `value`, `created_at`, `updated_at`) VALUES
(1, 'site_name', 'TM IT STORE', '2026-06-16 05:05:06', '2026-06-16 05:14:24'),
(2, 'site_tagline', 'Best Online Shop in Bangladesh', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(3, 'site_email', 'info@tmitstore.com', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(4, 'site_phone', '+880 177412343', '2026-06-16 05:05:06', '2026-06-16 05:30:07'),
(5, 'site_address', 'Dhaka, Bangladesh', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(6, 'facebook_url', 'https://facebook.com/tmitstore', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(7, 'youtube_url', NULL, '2026-06-16 05:05:06', '2026-06-16 05:14:24'),
(8, 'instagram_url', NULL, '2026-06-16 05:05:06', '2026-06-16 05:14:24'),
(9, 'meta_description', 'TM IT STORE - Best online shopping destination in Bangladesh.', '2026-06-16 05:05:06', '2026-06-16 05:14:24'),
(10, 'meta_keywords', 'online shop bangladesh, buy online, ecommerce bangladesh', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(11, 'footer_text', 'All rights reserved by tmitstore.com', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(12, 'facebook_pixel_id', NULL, '2026-06-16 05:14:24', '2026-06-16 05:14:24'),
(13, 'google_analytics_id', NULL, '2026-06-16 05:14:24', '2026-06-16 05:14:24'),
(14, 'google_tag_manager_id', NULL, '2026-06-16 05:14:24', '2026-06-16 05:14:24'),
(15, 'shipping_inside_dhaka', '60', '2026-06-16 05:36:19', '2026-06-16 05:36:19'),
(16, 'shipping_outside_dhaka', '120', '2026-06-16 05:36:19', '2026-06-16 05:36:19'),
(17, 'site_logo', 'settings/awldIDo0V7VICsvZCr7Dy1kPfX1CKRrnHicDm87P.png', '2026-06-16 06:03:01', '2026-06-16 06:03:01');
-- --------------------------------------------------------
--
-- Table structure for table `sliders`
--
CREATE TABLE `sliders` (
`id` bigint(20) UNSIGNED NOT NULL,
`image` varchar(255) NOT NULL,
`sort_order` int(11) NOT NULL DEFAULT 0,
`status` tinyint(1) 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 `sliders`
--
INSERT INTO `sliders` (`id`, `image`, `sort_order`, `status`, `created_at`, `updated_at`) VALUES
(1, 'sliders/b8k8gmRcHPeq2ObjEaSX0kk5QLaHtbRNoggbi0Az.png', 1, 1, '2026-06-16 05:48:34', '2026-06-16 05:48:34'),
(2, 'sliders/wcsu3sd5Gt2TIJIlN12y0lVuocqvuxJpTII5Mczy.png', 2, 1, '2026-06-16 05:49:20', '2026-06-16 05:49:20');
-- --------------------------------------------------------
--
-- Table structure for table `tags`
--
CREATE TABLE `tags` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`slug` varchar(255) 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 `tags`
--
INSERT INTO `tags` (`id`, `name`, `slug`, `created_at`, `updated_at`) VALUES
(1, 'Featured', 'featured', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(2, 'New Arrival', 'new-arrival', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(3, 'Best Seller', 'best-seller', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(4, 'Sale', 'sale', '2026-06-16 05:05:06', '2026-06-16 05:05:06'),
(5, 'Popular', 'popular', '2026-06-16 05:05:06', '2026-06-16 05:05:06');
-- --------------------------------------------------------
--
-- Table structure for table `tracking_updates`
--
CREATE TABLE `tracking_updates` (
`id` bigint(20) UNSIGNED NOT NULL,
`order_id` bigint(20) UNSIGNED NOT NULL,
`status` varchar(255) NOT NULL,
`message` text 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 `tracking_updates`
--
INSERT INTO `tracking_updates` (`id`, `order_id`, `status`, `message`, `created_at`, `updated_at`) VALUES
(1, 1, 'order shiped', 'অতি দ্রুত পেয়ে যাবেন', '2026-06-16 05:25:06', '2026-06-16 05:25:06'),
(2, 1, 'Delivred', 'Your product is derived', '2026-06-16 05:58:59', '2026-06-16 05:58:59');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) NOT NULL,
`remember_token` varchar(100) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- 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 `blog_posts`
--
ALTER TABLE `blog_posts`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `blog_posts_slug_unique` (`slug`);
--
-- Indexes for table `carts`
--
ALTER TABLE `carts`
ADD PRIMARY KEY (`id`),
ADD KEY `carts_product_id_foreign` (`product_id`),
ADD KEY `carts_variation_id_foreign` (`variation_id`),
ADD KEY `carts_session_id_index` (`session_id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `categories_slug_unique` (`slug`);
--
-- 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 `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `orders_order_number_unique` (`order_number`);
--
-- Indexes for table `order_items`
--
ALTER TABLE `order_items`
ADD PRIMARY KEY (`id`),
ADD KEY `order_items_order_id_foreign` (`order_id`),
ADD KEY `order_items_product_id_foreign` (`product_id`),
ADD KEY `order_items_variation_id_foreign` (`variation_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- 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 `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `products_slug_unique` (`slug`),
ADD UNIQUE KEY `products_sku_unique` (`sku`),
ADD KEY `products_category_id_foreign` (`category_id`);
--
-- Indexes for table `product_images`
--
ALTER TABLE `product_images`
ADD PRIMARY KEY (`id`),
ADD KEY `product_images_product_id_foreign` (`product_id`);
--
-- Indexes for table `product_tag`
--
ALTER TABLE `product_tag`
ADD PRIMARY KEY (`product_id`,`tag_id`),
ADD KEY `product_tag_tag_id_foreign` (`tag_id`);
--
-- Indexes for table `product_variations`
--
ALTER TABLE `product_variations`
ADD PRIMARY KEY (`id`),
ADD KEY `product_variations_product_id_foreign` (`product_id`);
--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `settings_key_unique` (`key`);
--
-- Indexes for table `sliders`
--
ALTER TABLE `sliders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `tags_slug_unique` (`slug`);
--
-- Indexes for table `tracking_updates`
--
ALTER TABLE `tracking_updates`
ADD PRIMARY KEY (`id`),
ADD KEY `tracking_updates_order_id_foreign` (`order_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 `admins`
--
ALTER TABLE `admins`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `blog_posts`
--
ALTER TABLE `blog_posts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `carts`
--
ALTER TABLE `carts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- 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=20;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `order_items`
--
ALTER TABLE `order_items`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- 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 `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `product_images`
--
ALTER TABLE `product_images`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `product_variations`
--
ALTER TABLE `product_variations`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `sliders`
--
ALTER TABLE `sliders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tracking_updates`
--
ALTER TABLE `tracking_updates`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `carts`
--
ALTER TABLE `carts`
ADD CONSTRAINT `carts_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `carts_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `product_variations` (`id`) ON DELETE SET NULL;
--
-- Constraints for table `order_items`
--
ALTER TABLE `order_items`
ADD CONSTRAINT `order_items_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `order_items_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL,
ADD CONSTRAINT `order_items_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `product_variations` (`id`) ON DELETE SET NULL;
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL;
--
-- Constraints for table `product_images`
--
ALTER TABLE `product_images`
ADD CONSTRAINT `product_images_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `product_tag`
--
ALTER TABLE `product_tag`
ADD CONSTRAINT `product_tag_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `product_tag_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `product_variations`
--
ALTER TABLE `product_variations`
ADD CONSTRAINT `product_variations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `tracking_updates`
--
ALTER TABLE `tracking_updates`
ADD CONSTRAINT `tracking_updates_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`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 */;